Skip to content

Add Apple AARCH64 proprietary instructions#9059

Open
PatriceBlin wants to merge 1 commit intoNationalSecurityAgency:masterfrom
PatriceBlin:add-apple-instructions
Open

Add Apple AARCH64 proprietary instructions#9059
PatriceBlin wants to merge 1 commit intoNationalSecurityAgency:masterfrom
PatriceBlin:add-apple-instructions

Conversation

@PatriceBlin
Copy link
Copy Markdown

This change adds Apple proprietary instructions found in iPhone and ARM64 based Mac.

They are described in https://asahilinux.org/docs/hw/cpu/apple-instructions/

I checked the existing issues but I did no found anything related to Apple's instructions.
Thoses instrustions are implemented in capstone-next: [(https://github.com/capstone-engine/capstone/blob/905d2d29514a97e18516871ec36bc4143549905d/bindings/python/capstone/aarch64_const.py)

To test it I applied the patch to Ghidra 12.0.4 and tested it on archlinux.

genter and gexit can be found in XNU, SPTM binary, at_as1elx can be found in TXM binary

ipsw download ipsw --device "iPhone16,2" --build "23D127"
ipsw extract --sptm iPhone16,2_26.3_23D127_Restore.ipsw
  • 23D127__iPhone16,2/Firmware/sptm.t8122.release
  • 23D127__iPhone16,2/Firmware/txm.iphoneos.release
screen_2026-03-23_17-22-51 screen_2026-03-23_17-21-23 screen_2026-03-23_17-26-32

While searching for other examples I checked the decompilation with a man made binary

Full disclosure: I used LLM (Claude+Opus) for this.

@GhidorahRex GhidorahRex self-assigned this Mar 24, 2026
@GhidorahRex GhidorahRex added Type: Enhancement New feature or request Feature: Processor/AARCH64 Status: Triage Information is being gathered labels Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature: Processor/AARCH64 Status: Triage Information is being gathered Type: Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants