{"type": "func", "start": 4296354036, "end": 4296354232, "name": "-[AccelerometerSimulation setUpThreadingSupport]", "pseudocode": "// \n// -[AccelerometerSimulation setUpThreadingSupport] from 0x1001528f4 to 0x1001529b8 (196 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100845b00\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __cdecl -[AccelerometerSimulation setUpThreadingSupport](AccelerometerSimulation *self, SEL a2)\n{\n  NSMachPort *v3; // x0\n\n  if ( !self->notifications )\n  {\n    self->notifications = (NSMutableArray *)objc_msgSend(objc_alloc((Class)&OBJC_CLASS___NSMutableArray), \"init\");\n    self->notificationLock = (NSLock *)objc_msgSend(objc_alloc((Class)&OBJC_CLASS___NSLock), \"init\");\n    self->notificationThread = objc_retain(+[NSThread currentThread](&OBJC_CLASS___NSThread, \"currentThread\"));\n    v3 = (NSMachPort *)objc_msgSend(objc_alloc((Class)&OBJC_CLASS___NSMachPort), \"init\");\n    self->notificationPort = v3;\n    -[NSMachPort setDelegate:](v3, \"setDelegate:\", self);\n    -[NSRunLoop addPort:forMode:](\n      +[NSRunLoop currentRunLoop](&OBJC_CLASS___NSRunLoop, \"currentRunLoop\"),\n      \"addPort:forMode:\",\n      self->notificationPort,\n      kCFRunLoopCommonModes);\n  }\n}", "assembly": "; \n; -[AccelerometerSimulation setUpThreadingSupport] from 0x1001528f4 to 0x1001529b8 (196 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100845b00\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001528f4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001528f8\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001528fc\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGE; NSMutableArray *notifications; ; +0xc, 0x100152900\nLDRSW           X20, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGEOFF]; NSMutableArray *notifications; ; +0x10, 0x100152904\nLDR             X8, [X0,X20]                                           ; +0x14, 0x100152908\nCBZ             X8, loc_10015291C                                      ; +0x18, 0x10015290c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x1c, 0x100152910\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x20, 0x100152914\nRET                                                                    ; +0x24, 0x100152918\nMOV             X19, X0                                                ; +0x28, 0x10015291c\nADRP            X8, #classRef_NSMutableArray@PAGE                      ; +0x2c, 0x100152920\nLDR             X0, [X8,#classRef_NSMutableArray@PAGEOFF]; _OBJC_CLASS_$_NSMutableArray ; Class ; +0x30, 0x100152924\nBL              _objc_alloc                                            ; +0x34, 0x100152928\nBL              _objc_msgSend$init                                     ; +0x38, 0x10015292c\nSTR             X0, [X19,X20]                                          ; +0x3c, 0x100152930\nADRP            X8, #classRef_NSLock@PAGE                              ; +0x40, 0x100152934\nLDR             X0, [X8,#classRef_NSLock@PAGEOFF]; _OBJC_CLASS_$_NSLock ; Class ; +0x44, 0x100152938\nBL              _objc_alloc                                            ; +0x48, 0x10015293c\nBL              _objc_msgSend$init                                     ; +0x4c, 0x100152940\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGE; NSLock *notificationLock; ; +0x50, 0x100152944\nLDRSW           X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGEOFF]; NSLock *notificationLock; ; +0x54, 0x100152948\nSTR             X0, [X19,X8]                                           ; +0x58, 0x10015294c\nADRP            X8, #classRef_NSThread@PAGE                            ; +0x5c, 0x100152950\nLDR             X0, [X8,#classRef_NSThread@PAGEOFF]; _OBJC_CLASS_$_NSThread ; +0x60, 0x100152954\nBL              _objc_msgSend$currentThread; +[NSThread currentThread] ... ; +0x64, 0x100152958\nBL              _objc_retain                                           ; +0x68, 0x10015295c\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationThread@PAGE; NSThread *notificationThread; ; +0x6c, 0x100152960\nLDRSW           X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationThread@PAGEOFF]; NSThread *notificationThread; ; +0x70, 0x100152964\nSTR             X0, [X19,X8]                                           ; +0x74, 0x100152968\nADRP            X8, #classRef_NSMachPort@PAGE                          ; +0x78, 0x10015296c\nLDR             X0, [X8,#classRef_NSMachPort@PAGEOFF]; _OBJC_CLASS_$_NSMachPort ; Class ; +0x7c, 0x100152970\nBL              _objc_alloc                                            ; +0x80, 0x100152974\nBL              _objc_msgSend$init                                     ; +0x84, 0x100152978\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationPort@PAGE; NSMachPort *notificationPort; ; +0x88, 0x10015297c\nLDRSW           X20, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationPort@PAGEOFF]; NSMachPort *notificationPort; ; +0x8c, 0x100152980\nSTR             X0, [X19,X20]                                          ; +0x90, 0x100152984\nMOV             X2, X19                                                ; +0x94, 0x100152988\nBL              _objc_msgSend$setDelegate_; -[NSMachPort setDelegate:] ... ; +0x98, 0x10015298c\nADRP            X8, #classRef_NSRunLoop@PAGE                           ; +0x9c, 0x100152990\nLDR             X0, [X8,#classRef_NSRunLoop@PAGEOFF]; _OBJC_CLASS_$_NSRunLoop ; +0xa0, 0x100152994\nBL              _objc_msgSend$currentRunLoop; +[NSRunLoop currentRunLoop] ... ; +0xa4, 0x100152998\nLDR             X2, [X19,X20]                                          ; +0xa8, 0x10015299c\nADRP            X8, #_kCFRunLoopCommonModes_ptr@PAGE                   ; +0xac, 0x1001529a0\nLDR             X8, [X8,#_kCFRunLoopCommonModes_ptr@PAGEOFF]; _kCFRunLoopCommonModes ; +0xb0, 0x1001529a4\nLDR             X3, [X8]                                               ; +0xb4, 0x1001529a8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xb8, 0x1001529ac\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xbc, 0x1001529b0\nB               _objc_msgSend$addPort_forMode_                         ; +0xc0, 0x1001529b4", "xrefs": ["<???> @ 0x100845b00"], "is_objc": true, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}