{"type": "func", "start": 4296354232, "end": 4296354596, "name": "-[AccelerometerSimulation processNotification:]", "pseudocode": "// \n// -[AccelerometerSimulation processNotification:] from 0x1001529b8 to 0x100152b24 (364 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100845b18\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 processNotification:](AccelerometerSimulation *self, SEL a2, id a3)\n{\n  void *v5; // x21\n  void *v6; // x20\n  UIAccelerationSimulation *accObject; // x21\n  double v8; // d0\n  double v9; // d8\n  double v10; // d0\n  double v11; // d9\n  double v12; // d0\n  double v13; // d10\n  double v14; // d0\n\n  if ( +[NSThread currentThread](&OBJC_CLASS___NSThread, \"currentThread\") == self->notificationThread )\n  {\n    v6 = objc_msgSend(objc_msgSend(a3, \"object\"), \"componentsSeparatedByString:\", CFSTR(\",\"));\n    accObject = self->accObject;\n    objc_msgSend(objc_msgSend(v6, \"objectAtIndex:\", 1), \"doubleValue\");\n    v9 = v8;\n    objc_msgSend(objc_msgSend(v6, \"objectAtIndex:\", 2), \"doubleValue\");\n    v11 = v10;\n    objc_msgSend(objc_msgSend(v6, \"objectAtIndex:\", 3), \"doubleValue\");\n    v13 = v12;\n    objc_msgSend(objc_msgSend(v6, \"objectAtIndex:\", 4), \"doubleValue\");\n    -[UIAccelerationSimulation initWithTimestamp:X:Y:Z:](accObject, \"initWithTimestamp:X:Y:Z:\", v9, v11, v13, v14);\n    -[UIAccelerometerDelegate accelerometer:didAccelerate:](\n      self->accelDelegate,\n      \"accelerometer:didAccelerate:\",\n      self,\n      self->accObject);\n  }\n  else\n  {\n    v5 = objc_msgSend(objc_alloc((Class)&OBJC_CLASS___NSDate), \"init\");\n    -[NSLock lock](self->notificationLock, \"lock\");\n    -[NSMutableArray addObject:](self->notifications, \"addObject:\", a3);\n    -[NSLock unlock](self->notificationLock, \"unlock\");\n    -[NSMachPort sendBeforeDate:components:from:reserved:](\n      self->notificationPort,\n      \"sendBeforeDate:components:from:reserved:\",\n      v5,\n      0,\n      0,\n      0);\n    objc_release(v5);\n  }\n}", "assembly": "; \n; -[AccelerometerSimulation processNotification:] from 0x1001529b8 to 0x100152b24 (364 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100845b18\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             D11, D10, [SP,#-0x10+var_40]!                          ; +0x0, 0x1001529b8\nSTP             D9, D8, [SP,#0x40+var_30]                              ; +0x4, 0x1001529bc\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001529c0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001529c4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001529c8\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001529cc\nMOV             X20, X2                                                ; +0x18, 0x1001529d0\nMOV             X19, X0                                                ; +0x1c, 0x1001529d4\nADRP            X8, #classRef_NSThread@PAGE                            ; +0x20, 0x1001529d8\nLDR             X0, [X8,#classRef_NSThread@PAGEOFF]; _OBJC_CLASS_$_NSThread ; +0x24, 0x1001529dc\nBL              _objc_msgSend$currentThread; +[NSThread currentThread] ... ; +0x28, 0x1001529e0\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationThread@PAGE; NSThread *notificationThread; ; +0x2c, 0x1001529e4\nLDRSW           X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationThread@PAGEOFF]; NSThread *notificationThread; ; +0x30, 0x1001529e8\nLDR             X8, [X19,X8]                                           ; +0x34, 0x1001529ec\nCMP             X0, X8                                                 ; +0x38, 0x1001529f0\nB.EQ            loc_100152A74                                          ; +0x3c, 0x1001529f4\nADRP            X8, #classRef_NSDate@PAGE                              ; +0x40, 0x1001529f8\nLDR             X0, [X8,#classRef_NSDate@PAGEOFF]; _OBJC_CLASS_$_NSDate ; Class ; +0x44, 0x1001529fc\nBL              _objc_alloc                                            ; +0x48, 0x100152a00\nBL              _objc_msgSend$init                                     ; +0x4c, 0x100152a04\nMOV             X21, X0                                                ; +0x50, 0x100152a08\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGE; NSLock *notificationLock; ; +0x54, 0x100152a0c\nLDRSW           X22, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationLock@PAGEOFF]; NSLock *notificationLock; ; +0x58, 0x100152a10\nLDR             X0, [X19,X22]                                          ; +0x5c, 0x100152a14\nBL              _objc_msgSend$lock; -[NSLock lock] ...                 ; +0x60, 0x100152a18\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGE; NSMutableArray *notifications; ; +0x64, 0x100152a1c\nLDRSW           X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notifications@PAGEOFF]; NSMutableArray *notifications; ; +0x68, 0x100152a20\nLDR             X0, [X19,X8]                                           ; +0x6c, 0x100152a24\nMOV             X2, X20                                                ; +0x70, 0x100152a28\nBL              _objc_msgSend$addObject_; -[NSMutableArray addObject:] ... ; +0x74, 0x100152a2c\nLDR             X0, [X19,X22]                                          ; +0x78, 0x100152a30\nBL              _objc_msgSend$unlock; -[NSLock unlock] ...             ; +0x7c, 0x100152a34\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.notificationPort@PAGE; NSMachPort *notificationPort; ; +0x80, 0x100152a38\nLDRSW           X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.notificationPort@PAGEOFF]; NSMachPort *notificationPort; ; +0x84, 0x100152a3c\nLDR             X0, [X19,X8]                                           ; +0x88, 0x100152a40\nMOV             X2, X21                                                ; +0x8c, 0x100152a44\nMOV             X3, #0                                                 ; +0x90, 0x100152a48\nMOV             X4, #0                                                 ; +0x94, 0x100152a4c\nMOV             X5, #0                                                 ; +0x98, 0x100152a50\nBL              _objc_msgSend$sendBeforeDate_components_from_reserved_; -[NSMachPort sendBeforeDate:components:from:reserved:] ... ; +0x9c, 0x100152a54\nMOV             X0, X21; id                                            ; +0xa0, 0x100152a58\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa4, 0x100152a5c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa8, 0x100152a60\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xac, 0x100152a64\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0xb0, 0x100152a68\nLDP             D11, D10, [SP+0x40+var_40],#0x50                       ; +0xb4, 0x100152a6c\nB               _objc_release                                          ; +0xb8, 0x100152a70\nMOV             X0, X20                                                ; +0xbc, 0x100152a74\nBL              _objc_msgSend$object                                   ; +0xc0, 0x100152a78\nADRL            X2, stru_100844108; \",\"                                ; +0xc4, 0x100152a7c\nBL              _objc_msgSend$componentsSeparatedByString_             ; +0xcc, 0x100152a84\nMOV             X20, X0                                                ; +0xd0, 0x100152a88\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.accObject@PAGE; UIAccelerationSimulation *accObject; ; +0xd4, 0x100152a8c\nLDRSW           X22, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.accObject@PAGEOFF]; UIAccelerationSimulation *accObject; ; +0xd8, 0x100152a90\nLDR             X21, [X19,X22]                                         ; +0xdc, 0x100152a94\nMOV             W2, #1                                                 ; +0xe0, 0x100152a98\nBL              _objc_msgSend$objectAtIndex_                           ; +0xe4, 0x100152a9c\nBL              _objc_msgSend$doubleValue                              ; +0xe8, 0x100152aa0\nFMOV            D8, D0                                                 ; +0xec, 0x100152aa4\nMOV             X0, X20                                                ; +0xf0, 0x100152aa8\nMOV             W2, #2                                                 ; +0xf4, 0x100152aac\nBL              _objc_msgSend$objectAtIndex_                           ; +0xf8, 0x100152ab0\nBL              _objc_msgSend$doubleValue                              ; +0xfc, 0x100152ab4\nFMOV            D9, D0                                                 ; +0x100, 0x100152ab8\nMOV             X0, X20                                                ; +0x104, 0x100152abc\nMOV             W2, #3                                                 ; +0x108, 0x100152ac0\nBL              _objc_msgSend$objectAtIndex_                           ; +0x10c, 0x100152ac4\nBL              _objc_msgSend$doubleValue                              ; +0x110, 0x100152ac8\nFMOV            D10, D0                                                ; +0x114, 0x100152acc\nMOV             X0, X20                                                ; +0x118, 0x100152ad0\nMOV             W2, #4                                                 ; +0x11c, 0x100152ad4\nBL              _objc_msgSend$objectAtIndex_                           ; +0x120, 0x100152ad8\nBL              _objc_msgSend$doubleValue                              ; +0x124, 0x100152adc\nFMOV            D3, D0                                                 ; +0x128, 0x100152ae0\nMOV             X0, X21                                                ; +0x12c, 0x100152ae4\nFMOV            D0, D8                                                 ; +0x130, 0x100152ae8\nFMOV            D1, D9                                                 ; +0x134, 0x100152aec\nFMOV            D2, D10                                                ; +0x138, 0x100152af0\nBL              _objc_msgSend$initWithTimestamp_X_Y_Z_; -[UIAccelerationSimulation initWithTimestamp:X:Y:Z:] ... ; +0x13c, 0x100152af4\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.accelDelegate@PAGE; UIAccelerometerDelegate *accelDelegate; ; +0x140, 0x100152af8\nLDRSW           X8, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.accelDelegate@PAGEOFF]; UIAccelerometerDelegate *accelDelegate; ; +0x144, 0x100152afc\nLDR             X0, [X19,X8]                                           ; +0x148, 0x100152b00\nLDR             X3, [X19,X22]                                          ; +0x14c, 0x100152b04\nMOV             X2, X19                                                ; +0x150, 0x100152b08\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x154, 0x100152b0c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x158, 0x100152b10\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x15c, 0x100152b14\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0x160, 0x100152b18\nLDP             D11, D10, [SP+0x40+var_40],#0x50                       ; +0x164, 0x100152b1c\nB               _objc_msgSend$accelerometer_didAccelerate_             ; +0x168, 0x100152b20", "xrefs": ["<???> @ 0x100845b18"], "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"}