{"type": "func", "start": 4296873600, "end": 4296873748, "name": "-[AccelerometerSimulation handleMachMessage:]", "pseudocode": "// \n// -[AccelerometerSimulation handleMachMessage:] from 0x1001d1680 to 0x1001d1714 (148 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009cd800\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 handleMachMessage:](AccelerometerSimulation *self, SEL a2, void *a3)\n{\n  void *v4; // x20\n\n  -[NSLock lock](self->notificationLock, \"lock\", a3);\n  while ( -[NSMutableArray count](self->notifications, \"count\") )\n  {\n    v4 = objc_retain(-[NSMutableArray objectAtIndex:](self->notifications, \"objectAtIndex:\", 0));\n    -[NSMutableArray removeObjectAtIndex:](self->notifications, \"removeObjectAtIndex:\", 0);\n    -[NSLock unlock](self->notificationLock, \"unlock\");\n    -[AccelerometerSimulation processNotification:](self, \"processNotification:\", v4);\n    objc_release(v4);\n    -[NSLock lock](self->notificationLock, \"lock\");\n  }\n  -[NSLock unlock](self->notificationLock, \"unlock\");\n}", "assembly": "; \n; -[AccelerometerSimulation handleMachMessage:] from 0x1001d1680 to 0x1001d1714 (148 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009cd800\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1001d1680\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001d1684\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001d1688\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001d168c\nMOV             X19, X0                                                ; +0x10, 0x1001d1690\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGE; NSLock *notificationLock; ; +0x14, 0x1001d1694\nLDRSW           X21, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGEOFF]; NSLock *notificationLock; ; +0x18, 0x1001d1698\nLDR             X0, [X0,X21]                                           ; +0x1c, 0x1001d169c\nBL              _objc_msgSend$lock; -[NSLock lock] ...                 ; +0x20, 0x1001d16a0\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGE; NSMutableArray *notifications; ; +0x24, 0x1001d16a4\nLDRSW           X22, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGEOFF]; NSMutableArray *notifications; ; +0x28, 0x1001d16a8\nLDR             X0, [X19,X22]                                          ; +0x2c, 0x1001d16ac\nBL              _objc_msgSend$count; -[NSMutableArray count] ...       ; +0x30, 0x1001d16b0\nCBZ             X0, loc_1001D1700                                      ; +0x34, 0x1001d16b4\nLDR             X0, [X19,X22]                                          ; +0x38, 0x1001d16b8\nMOV             X2, #0                                                 ; +0x3c, 0x1001d16bc\nBL              _objc_msgSend$objectAtIndex_; -[NSMutableArray objectAtIndex:] ... ; +0x40, 0x1001d16c0\nBL              _objc_retain                                           ; +0x44, 0x1001d16c4\nMOV             X20, X0                                                ; +0x48, 0x1001d16c8\nLDR             X0, [X19,X22]                                          ; +0x4c, 0x1001d16cc\nMOV             X2, #0                                                 ; +0x50, 0x1001d16d0\nBL              _objc_msgSend$removeObjectAtIndex_; -[NSMutableArray removeObjectAtIndex:] ... ; +0x54, 0x1001d16d4\nLDR             X0, [X19,X21]                                          ; +0x58, 0x1001d16d8\nBL              _objc_msgSend$unlock; -[NSLock unlock] ...             ; +0x5c, 0x1001d16dc\nMOV             X0, X19                                                ; +0x60, 0x1001d16e0\nMOV             X2, X20                                                ; +0x64, 0x1001d16e4\nBL              _objc_msgSend$processNotification_; -[AccelerometerSimulation processNotification:] ... ; +0x68, 0x1001d16e8\nMOV             X0, X20; id                                            ; +0x6c, 0x1001d16ec\nBL              _objc_release                                          ; +0x70, 0x1001d16f0\nLDR             X0, [X19,X21]                                          ; +0x74, 0x1001d16f4\nBL              _objc_msgSend$lock; -[NSLock lock] ...                 ; +0x78, 0x1001d16f8\nB               loc_1001D16AC                                          ; +0x7c, 0x1001d16fc\nLDR             X0, [X19,X21]                                          ; +0x80, 0x1001d1700\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x1001d1704\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x1001d1708\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x1001d170c\nB               _objc_msgSend$unlock; -[NSLock unlock] ...             ; +0x90, 0x1001d1710", "xrefs": ["<???> @ 0x1009cd800"], "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"}