{"type": "func", "start": 4296354596, "end": 4296354744, "name": "-[AccelerometerSimulation handleMachMessage:]", "pseudocode": "// \n// -[AccelerometerSimulation handleMachMessage:] from 0x100152b24 to 0x100152bb8 (148 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100845b30\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 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 0x100152b24 to 0x100152bb8 (148 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100845b30\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100152b24\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100152b28\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100152b2c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100152b30\nMOV             X19, X0                                                ; +0x10, 0x100152b34\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGE; NSLock *notificationLock; ; +0x14, 0x100152b38\nLDRSW           X21, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGEOFF]; NSLock *notificationLock; ; +0x18, 0x100152b3c\nLDR             X0, [X0,X21]                                           ; +0x1c, 0x100152b40\nBL              _objc_msgSend$lock; -[NSLock lock] ...                 ; +0x20, 0x100152b44\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGE; NSMutableArray *notifications; ; +0x24, 0x100152b48\nLDRSW           X22, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGEOFF]; NSMutableArray *notifications; ; +0x28, 0x100152b4c\nLDR             X0, [X19,X22]                                          ; +0x2c, 0x100152b50\nBL              _objc_msgSend$count; -[NSMutableArray count] ...       ; +0x30, 0x100152b54\nCBZ             X0, loc_100152BA4                                      ; +0x34, 0x100152b58\nLDR             X0, [X19,X22]                                          ; +0x38, 0x100152b5c\nMOV             X2, #0                                                 ; +0x3c, 0x100152b60\nBL              _objc_msgSend$objectAtIndex_; -[NSMutableArray objectAtIndex:] ... ; +0x40, 0x100152b64\nBL              _objc_retain                                           ; +0x44, 0x100152b68\nMOV             X20, X0                                                ; +0x48, 0x100152b6c\nLDR             X0, [X19,X22]                                          ; +0x4c, 0x100152b70\nMOV             X2, #0                                                 ; +0x50, 0x100152b74\nBL              _objc_msgSend$removeObjectAtIndex_; -[NSMutableArray removeObjectAtIndex:] ... ; +0x54, 0x100152b78\nLDR             X0, [X19,X21]                                          ; +0x58, 0x100152b7c\nBL              _objc_msgSend$unlock; -[NSLock unlock] ...             ; +0x5c, 0x100152b80\nMOV             X0, X19                                                ; +0x60, 0x100152b84\nMOV             X2, X20                                                ; +0x64, 0x100152b88\nBL              _objc_msgSend$processNotification_; -[AccelerometerSimulation processNotification:] ... ; +0x68, 0x100152b8c\nMOV             X0, X20; id                                            ; +0x6c, 0x100152b90\nBL              _objc_release                                          ; +0x70, 0x100152b94\nLDR             X0, [X19,X21]                                          ; +0x74, 0x100152b98\nBL              _objc_msgSend$lock; -[NSLock lock] ...                 ; +0x78, 0x100152b9c\nB               loc_100152B50                                          ; +0x7c, 0x100152ba0\nLDR             X0, [X19,X21]                                          ; +0x80, 0x100152ba4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x100152ba8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x100152bac\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x100152bb0\nB               _objc_msgSend$unlock; -[NSLock unlock] ...             ; +0x90, 0x100152bb4", "xrefs": ["<???> @ 0x100845b30"], "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"}