{"type": "func", "start": 4296873056, "end": 4296873240, "name": "-[AccelerometerSimulation setUpThreadingSupport]", "pseudocode": "// \n// -[AccelerometerSimulation setUpThreadingSupport] from 0x1001d1460 to 0x1001d1518 (184 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009cd7d0\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:00:23 +0000\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_alloc_init((Class)&OBJC_CLASS___NSMutableArray);\n    self->notificationLock = (NSLock *)objc_alloc_init((Class)&OBJC_CLASS___NSLock);\n    self->notificationThread = objc_retain(+[NSThread currentThread](&OBJC_CLASS___NSThread, \"currentThread\"));\n    v3 = (NSMachPort *)objc_alloc_init((Class)&OBJC_CLASS___NSMachPort);\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 0x1001d1460 to 0x1001d1518 (184 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009cd7d0\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:00:23 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001d1460\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001d1464\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001d1468\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGE; NSMutableArray *notifications; ; +0xc, 0x1001d146c\nLDRSW           X20, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGEOFF]; NSMutableArray *notifications; ; +0x10, 0x1001d1470\nLDR             X8, [X0,X20]                                           ; +0x14, 0x1001d1474\nCBZ             X8, loc_1001D1488                                      ; +0x18, 0x1001d1478\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x1c, 0x1001d147c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x20, 0x1001d1480\nRET                                                                    ; +0x24, 0x1001d1484\nMOV             X19, X0                                                ; +0x28, 0x1001d1488\nADRP            X8, #classRef_NSMutableArray@PAGE                      ; +0x2c, 0x1001d148c\nLDR             X0, [X8,#classRef_NSMutableArray@PAGEOFF]; _OBJC_CLASS_$_NSMutableArray ; +0x30, 0x1001d1490\nBL              _objc_alloc_init                                       ; +0x34, 0x1001d1494\nSTR             X0, [X19,X20]                                          ; +0x38, 0x1001d1498\nADRP            X8, #classRef_NSLock@PAGE                              ; +0x3c, 0x1001d149c\nLDR             X0, [X8,#classRef_NSLock@PAGEOFF]; _OBJC_CLASS_$_NSLock ; +0x40, 0x1001d14a0\nBL              _objc_alloc_init                                       ; +0x44, 0x1001d14a4\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGE; NSLock *notificationLock; ; +0x48, 0x1001d14a8\nLDRSW           X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGEOFF]; NSLock *notificationLock; ; +0x4c, 0x1001d14ac\nSTR             X0, [X19,X8]                                           ; +0x50, 0x1001d14b0\nADRP            X8, #classRef_NSThread@PAGE                            ; +0x54, 0x1001d14b4\nLDR             X0, [X8,#classRef_NSThread@PAGEOFF]; _OBJC_CLASS_$_NSThread ; +0x58, 0x1001d14b8\nBL              _objc_msgSend$currentThread; +[NSThread currentThread] ... ; +0x5c, 0x1001d14bc\nBL              _objc_retain                                           ; +0x60, 0x1001d14c0\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationThread@PAGE; NSThread *notificationThread; ; +0x64, 0x1001d14c4\nLDRSW           X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationThread@PAGEOFF]; NSThread *notificationThread; ; +0x68, 0x1001d14c8\nSTR             X0, [X19,X8]                                           ; +0x6c, 0x1001d14cc\nADRP            X8, #classRef_NSMachPort@PAGE                          ; +0x70, 0x1001d14d0\nLDR             X0, [X8,#classRef_NSMachPort@PAGEOFF]; _OBJC_CLASS_$_NSMachPort ; +0x74, 0x1001d14d4\nBL              _objc_alloc_init                                       ; +0x78, 0x1001d14d8\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationPort@PAGE; NSMachPort *notificationPort; ; +0x7c, 0x1001d14dc\nLDRSW           X20, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationPort@PAGEOFF]; NSMachPort *notificationPort; ; +0x80, 0x1001d14e0\nSTR             X0, [X19,X20]                                          ; +0x84, 0x1001d14e4\nMOV             X2, X19                                                ; +0x88, 0x1001d14e8\nBL              _objc_msgSend$setDelegate_; -[NSMachPort setDelegate:] ... ; +0x8c, 0x1001d14ec\nADRP            X8, #classRef_NSRunLoop@PAGE                           ; +0x90, 0x1001d14f0\nLDR             X0, [X8,#classRef_NSRunLoop@PAGEOFF]; _OBJC_CLASS_$_NSRunLoop ; +0x94, 0x1001d14f4\nBL              _objc_msgSend$currentRunLoop; +[NSRunLoop currentRunLoop] ... ; +0x98, 0x1001d14f8\nLDR             X2, [X19,X20]                                          ; +0x9c, 0x1001d14fc\nADRP            X8, #_kCFRunLoopCommonModes_ptr@PAGE                   ; +0xa0, 0x1001d1500\nLDR             X8, [X8,#_kCFRunLoopCommonModes_ptr@PAGEOFF]; _kCFRunLoopCommonModes ; +0xa4, 0x1001d1504\nLDR             X3, [X8]                                               ; +0xa8, 0x1001d1508\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xac, 0x1001d150c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xb0, 0x1001d1510\nB               _objc_msgSend$addPort_forMode_                         ; +0xb4, 0x1001d1514", "xrefs": ["<???> @ 0x1009cd7d0"], "is_objc": true, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}