{"type": "func", "start": 4296354800, "end": 4296354948, "name": "-[AccelerometerSimulation threadLoop:]", "pseudocode": "// \n// -[AccelerometerSimulation threadLoop:] from 0x100152bf0 to 0x100152c84 (148 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100845b48\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 __noreturn -[AccelerometerSimulation threadLoop:](AccelerometerSimulation *self, SEL a2, id a3)\n{\n  int v4; // w0\n  void *v5; // x21\n  _BYTE v6[1024]; // [xsp+0h] [xbp-440h] BYREF\n\n  while ( 1 )\n  {\n    do\n      v4 = recv(self->udpSocket, v6, 0x400u, 0);\n    while ( v4 < 1 );\n    v6[v4 & 0x7FFFFFFF] = 0;\n    v5 = objc_msgSend(objc_alloc((Class)&OBJC_CLASS___NSString), \"initWithUTF8String:\", v6);\n    -[NSNotificationCenter postNotificationName:object:](\n      +[NSNotificationCenter defaultCenter](&OBJC_CLASS___NSNotificationCenter, \"defaultCenter\"),\n      \"postNotificationName:object:\",\n      CFSTR(\"ThreadAccelNotification\"),\n      v5);\n    objc_release(v5);\n  }\n}", "assembly": "; \n; -[AccelerometerSimulation threadLoop:] from 0x100152bf0 to 0x100152c84 (148 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100845b48\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             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x100152bf0\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x100152bf4\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x100152bf8\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x100152bfc\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x100152c00\nADD             X29, SP, #0x40                                         ; +0x14, 0x100152c04\nSUB             SP, SP, #0x400                                         ; +0x18, 0x100152c08\nMOV             X19, X0                                                ; +0x1c, 0x100152c0c\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.udpSocket@PAGE; int udpSocket; ; +0x20, 0x100152c10\nLDRSW           X22, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.udpSocket@PAGEOFF]; int udpSocket; ; +0x24, 0x100152c14\nMOV             X23, SP                                                ; +0x28, 0x100152c18\nADRP            X24, #classRef_NSString@PAGE                           ; +0x2c, 0x100152c1c\nADRP            X25, #classRef_NSNotificationCenter@PAGE               ; +0x30, 0x100152c20\nADRL            X20, cfstr_Threadaccelnot; \"ThreadAccelNotification\"   ; +0x34, 0x100152c24\nLDR             W0, [X19,X22]; int                                     ; +0x3c, 0x100152c2c\nMOV             X1, SP; void *                                         ; +0x40, 0x100152c30\nMOV             W2, #0x400; size_t                                     ; +0x44, 0x100152c34\nMOV             W3, #0; int                                            ; +0x48, 0x100152c38\nBL              _recv                                                  ; +0x4c, 0x100152c3c\nCMP             W0, #1                                                 ; +0x50, 0x100152c40\nB.LT            loc_100152C2C                                          ; +0x54, 0x100152c44\nAND             X8, X0, #0x7FFFFFFF                                    ; +0x58, 0x100152c48\nSTRB            WZR, [X23,X8]                                          ; +0x5c, 0x100152c4c\nLDR             X0, [X24,#classRef_NSString@PAGEOFF]; _OBJC_CLASS_$_NSString ; Class ; +0x60, 0x100152c50\nBL              _objc_alloc                                            ; +0x64, 0x100152c54\nMOV             X2, SP                                                 ; +0x68, 0x100152c58\nBL              _objc_msgSend$initWithUTF8String_                      ; +0x6c, 0x100152c5c\nMOV             X21, X0                                                ; +0x70, 0x100152c60\nLDR             X0, [X25,#classRef_NSNotificationCenter@PAGEOFF]; _OBJC_CLASS_$_NSNotificationCenter ; +0x74, 0x100152c64\nBL              _objc_msgSend$defaultCenter; +[NSNotificationCenter defaultCenter] ... ; +0x78, 0x100152c68\nMOV             X2, X20                                                ; +0x7c, 0x100152c6c\nMOV             X3, X21                                                ; +0x80, 0x100152c70\nBL              _objc_msgSend$postNotificationName_object_; -[NSNotificationCenter postNotificationName:object:] ... ; +0x84, 0x100152c74\nMOV             X0, X21; id                                            ; +0x88, 0x100152c78\nBL              _objc_release                                          ; +0x8c, 0x100152c7c\nB               loc_100152C2C                                          ; +0x90, 0x100152c80", "xrefs": ["<???> @ 0x100845b48"], "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"}