{"type": "func", "start": 4296873804, "end": 4296873952, "name": "-[AccelerometerSimulation threadLoop:]", "pseudocode": "// \n// -[AccelerometerSimulation threadLoop:] from 0x1001d174c to 0x1001d17e0 (148 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009cd818\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 __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 0x1001d174c to 0x1001d17e0 (148 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009cd818\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             X26, X25, [SP,#-0x10+var_40]!                          ; +0x0, 0x1001d174c\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1001d1750\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001d1754\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001d1758\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001d175c\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001d1760\nSUB             SP, SP, #0x400                                         ; +0x18, 0x1001d1764\nMOV             X19, X0                                                ; +0x1c, 0x1001d1768\nADRP            X8, #_OBJC_IVAR_$_AccelerometerSimulation.udpSocket@PAGE; int udpSocket; ; +0x20, 0x1001d176c\nLDRSW           X22, [X8,#_OBJC_IVAR_$_AccelerometerSimulation.udpSocket@PAGEOFF]; int udpSocket; ; +0x24, 0x1001d1770\nMOV             X23, SP                                                ; +0x28, 0x1001d1774\nADRP            X24, #classRef_NSString@PAGE                           ; +0x2c, 0x1001d1778\nADRP            X25, #classRef_NSNotificationCenter@PAGE               ; +0x30, 0x1001d177c\nADRL            X20, cfstr_Threadaccelnot; \"ThreadAccelNotification\"   ; +0x34, 0x1001d1780\nLDR             W0, [X19,X22]; int                                     ; +0x3c, 0x1001d1788\nMOV             X1, SP; void *                                         ; +0x40, 0x1001d178c\nMOV             W2, #0x400; size_t                                     ; +0x44, 0x1001d1790\nMOV             W3, #0; int                                            ; +0x48, 0x1001d1794\nBL              _recv                                                  ; +0x4c, 0x1001d1798\nCMP             W0, #1                                                 ; +0x50, 0x1001d179c\nB.LT            loc_1001D1788                                          ; +0x54, 0x1001d17a0\nAND             X8, X0, #0x7FFFFFFF                                    ; +0x58, 0x1001d17a4\nSTRB            WZR, [X23,X8]                                          ; +0x5c, 0x1001d17a8\nLDR             X0, [X24,#classRef_NSString@PAGEOFF]; _OBJC_CLASS_$_NSString ; Class ; +0x60, 0x1001d17ac\nBL              _objc_alloc                                            ; +0x64, 0x1001d17b0\nMOV             X2, SP                                                 ; +0x68, 0x1001d17b4\nBL              _objc_msgSend$initWithUTF8String_                      ; +0x6c, 0x1001d17b8\nMOV             X21, X0                                                ; +0x70, 0x1001d17bc\nLDR             X0, [X25,#classRef_NSNotificationCenter@PAGEOFF]; _OBJC_CLASS_$_NSNotificationCenter ; +0x74, 0x1001d17c0\nBL              _objc_msgSend$defaultCenter; +[NSNotificationCenter defaultCenter] ... ; +0x78, 0x1001d17c4\nMOV             X2, X20                                                ; +0x7c, 0x1001d17c8\nMOV             X3, X21                                                ; +0x80, 0x1001d17cc\nBL              _objc_msgSend$postNotificationName_object_; -[NSNotificationCenter postNotificationName:object:] ... ; +0x84, 0x1001d17d0\nMOV             X0, X21; id                                            ; +0x88, 0x1001d17d4\nBL              _objc_release                                          ; +0x8c, 0x1001d17d8\nB               loc_1001D1788                                          ; +0x90, 0x1001d17dc", "xrefs": ["<???> @ 0x1009cd818"], "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"}