; ; -[AccelerometerSimulation setUpThreadingSupport] from 0x1001528f4 to 0x1001529b8 (196 bytes) ; ; 1 xrefs: ; > @ 0x100845b00 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; STP X20, X19, [SP,#-0x10+var_10]! ; +0x0, 0x1001528f4 STP X29, X30, [SP,#0x10+var_s0] ; +0x4, 0x1001528f8 ADD X29, SP, #0x10 ; +0x8, 0x1001528fc ADRP X8, #_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGE; NSMutableArray *notifications; ; +0xc, 0x100152900 LDRSW X20, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGEOFF]; NSMutableArray *notifications; ; +0x10, 0x100152904 LDR X8, [X0,X20] ; +0x14, 0x100152908 CBZ X8, loc_10015291C ; +0x18, 0x10015290c LDP X29, X30, [SP,#0x10+var_s0] ; +0x1c, 0x100152910 LDP X20, X19, [SP+0x10+var_10],#0x20 ; +0x20, 0x100152914 RET ; +0x24, 0x100152918 MOV X19, X0 ; +0x28, 0x10015291c ADRP X8, #classRef_NSMutableArray@PAGE ; +0x2c, 0x100152920 LDR X0, [X8,#classRef_NSMutableArray@PAGEOFF]; _OBJC_CLASS_$_NSMutableArray ; Class ; +0x30, 0x100152924 BL _objc_alloc ; +0x34, 0x100152928 BL _objc_msgSend$init ; +0x38, 0x10015292c STR X0, [X19,X20] ; +0x3c, 0x100152930 ADRP X8, #classRef_NSLock@PAGE ; +0x40, 0x100152934 LDR X0, [X8,#classRef_NSLock@PAGEOFF]; _OBJC_CLASS_$_NSLock ; Class ; +0x44, 0x100152938 BL _objc_alloc ; +0x48, 0x10015293c BL _objc_msgSend$init ; +0x4c, 0x100152940 ADRP X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGE; NSLock *notificationLock; ; +0x50, 0x100152944 LDRSW X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGEOFF]; NSLock *notificationLock; ; +0x54, 0x100152948 STR X0, [X19,X8] ; +0x58, 0x10015294c ADRP X8, #classRef_NSThread@PAGE ; +0x5c, 0x100152950 LDR X0, [X8,#classRef_NSThread@PAGEOFF]; _OBJC_CLASS_$_NSThread ; +0x60, 0x100152954 BL _objc_msgSend$currentThread; +[NSThread currentThread] ... ; +0x64, 0x100152958 BL _objc_retain ; +0x68, 0x10015295c ADRP X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationThread@PAGE; NSThread *notificationThread; ; +0x6c, 0x100152960 LDRSW X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationThread@PAGEOFF]; NSThread *notificationThread; ; +0x70, 0x100152964 STR X0, [X19,X8] ; +0x74, 0x100152968 ADRP X8, #classRef_NSMachPort@PAGE ; +0x78, 0x10015296c LDR X0, [X8,#classRef_NSMachPort@PAGEOFF]; _OBJC_CLASS_$_NSMachPort ; Class ; +0x7c, 0x100152970 BL _objc_alloc ; +0x80, 0x100152974 BL _objc_msgSend$init ; +0x84, 0x100152978 ADRP X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationPort@PAGE; NSMachPort *notificationPort; ; +0x88, 0x10015297c LDRSW X20, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationPort@PAGEOFF]; NSMachPort *notificationPort; ; +0x8c, 0x100152980 STR X0, [X19,X20] ; +0x90, 0x100152984 MOV X2, X19 ; +0x94, 0x100152988 BL _objc_msgSend$setDelegate_; -[NSMachPort setDelegate:] ... ; +0x98, 0x10015298c ADRP X8, #classRef_NSRunLoop@PAGE ; +0x9c, 0x100152990 LDR X0, [X8,#classRef_NSRunLoop@PAGEOFF]; _OBJC_CLASS_$_NSRunLoop ; +0xa0, 0x100152994 BL _objc_msgSend$currentRunLoop; +[NSRunLoop currentRunLoop] ... ; +0xa4, 0x100152998 LDR X2, [X19,X20] ; +0xa8, 0x10015299c ADRP X8, #_kCFRunLoopCommonModes_ptr@PAGE ; +0xac, 0x1001529a0 LDR X8, [X8,#_kCFRunLoopCommonModes_ptr@PAGEOFF]; _kCFRunLoopCommonModes ; +0xb0, 0x1001529a4 LDR X3, [X8] ; +0xb4, 0x1001529a8 LDP X29, X30, [SP,#0x10+var_s0] ; +0xb8, 0x1001529ac LDP X20, X19, [SP+0x10+var_10],#0x20 ; +0xbc, 0x1001529b0 B _objc_msgSend$addPort_forMode_ ; +0xc0, 0x1001529b4