{"type": "func", "start": 4299675472, "end": 4299675688, "name": "-[AccelerometerDispatcher accelerometer:didAccelerate:]", "pseudocode": "// \n// -[AccelerometerDispatcher accelerometer:didAccelerate:] from 0x10047d750 to 0x10047d828 (216 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009d04b8\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:05:44 +0000\n// \n\nvoid __cdecl -[AccelerometerDispatcher accelerometer:didAccelerate:](\n        AccelerometerDispatcher *self,\n        SEL a2,\n        id a3,\n        id a4)\n{\n  double v6; // d0\n  double v7; // d0\n  double v8; // d0\n  CCAcceleration *acceleration; // x8\n  double v10; // d0\n  double var0; // d8\n  UIInterfaceOrientation v12; // x0\n  CCAcceleration *v13; // x1\n  double var1; // d0\n\n  if ( self->delegate_ )\n  {\n    objc_msgSend(a4, \"x\", a3);\n    self->acceleration_->var0 = v6;\n    objc_msgSend(a4, \"y\");\n    self->acceleration_->var1 = v7;\n    objc_msgSend(a4, \"z\");\n    self->acceleration_->var2 = v8;\n    objc_msgSend(a4, \"timestamp\");\n    acceleration = self->acceleration_;\n    acceleration->var3 = v10;\n    var0 = acceleration->var0;\n    v12 = -[UIApplication statusBarOrientation](\n            +[UIApplication sharedApplication](&OBJC_CLASS___UIApplication, \"sharedApplication\"),\n            \"statusBarOrientation\");\n    v13 = self->acceleration_;\n    if ( v12 == UIInterfaceOrientationPortraitUpsideDown )\n    {\n      var1 = -v13->var1;\n    }\n    else\n    {\n      if ( v12 != UIInterfaceOrientationLandscapeLeft )\n      {\n        if ( v12 == UIInterfaceOrientationLandscapeRight )\n        {\n          v13->var0 = -v13->var1;\n          v13->var1 = var0;\n        }\n        goto LABEL_10;\n      }\n      var1 = v13->var1;\n    }\n    v13->var0 = var1;\n    v13->var1 = -var0;\nLABEL_10:\n    ((void (__fastcall *)(CCAccelerometerDelegate *))*self->delegate_->var0)(self->delegate_);\n  }\n}", "assembly": "; \n; -[AccelerometerDispatcher accelerometer:didAccelerate:] from 0x10047d750 to 0x10047d828 (216 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009d04b8\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:05:44 +0000\n; \nLDR             X8, [X0,#8]                                            ; +0x0, 0x10047d750\nCBZ             X8, locret_10047D7F0                                   ; +0x4, 0x10047d754\nSTP             D9, D8, [SP,#-0x10+var_20]!                            ; +0x8, 0x10047d758\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0xc, 0x10047d75c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x10, 0x10047d760\nADD             X29, SP, #0x20                                         ; +0x14, 0x10047d764\nMOV             X20, X3                                                ; +0x18, 0x10047d768\nMOV             X19, X0                                                ; +0x1c, 0x10047d76c\nMOV             X0, X3                                                 ; +0x20, 0x10047d770\nBL              _objc_msgSend$x                                        ; +0x24, 0x10047d774\nLDR             X8, [X19,#0x10]                                        ; +0x28, 0x10047d778\nSTR             D0, [X8]                                               ; +0x2c, 0x10047d77c\nMOV             X0, X20                                                ; +0x30, 0x10047d780\nBL              _objc_msgSend$y                                        ; +0x34, 0x10047d784\nLDR             X8, [X19,#0x10]                                        ; +0x38, 0x10047d788\nSTR             D0, [X8,#8]                                            ; +0x3c, 0x10047d78c\nMOV             X0, X20                                                ; +0x40, 0x10047d790\nBL              _objc_msgSend$z                                        ; +0x44, 0x10047d794\nLDR             X8, [X19,#0x10]                                        ; +0x48, 0x10047d798\nSTR             D0, [X8,#0x10]                                         ; +0x4c, 0x10047d79c\nMOV             X0, X20                                                ; +0x50, 0x10047d7a0\nBL              _objc_msgSend$timestamp                                ; +0x54, 0x10047d7a4\nLDR             X8, [X19,#0x10]                                        ; +0x58, 0x10047d7a8\nSTR             D0, [X8,#0x18]                                         ; +0x5c, 0x10047d7ac\nLDR             D8, [X8]                                               ; +0x60, 0x10047d7b0\nADRP            X8, #classRef_UIApplication@PAGE                       ; +0x64, 0x10047d7b4\nLDR             X0, [X8,#classRef_UIApplication@PAGEOFF]; _OBJC_CLASS_$_UIApplication ; +0x68, 0x10047d7b8\nBL              _objc_msgSend$sharedApplication; +[UIApplication sharedApplication] ... ; +0x6c, 0x10047d7bc\nBL              _objc_msgSend$statusBarOrientation; -[UIApplication statusBarOrientation] ... ; +0x70, 0x10047d7c0\nLDR             X1, [X19,#0x10]                                        ; +0x74, 0x10047d7c4\nCMP             X0, #2                                                 ; +0x78, 0x10047d7c8\nB.EQ            loc_10047D7FC                                          ; +0x7c, 0x10047d7cc\nCMP             X0, #4                                                 ; +0x80, 0x10047d7d0\nB.EQ            loc_10047D7F4                                          ; +0x84, 0x10047d7d4\nCMP             X0, #3                                                 ; +0x88, 0x10047d7d8\nB.NE            loc_10047D80C                                          ; +0x8c, 0x10047d7dc\nLDR             D0, [X1,#8]                                            ; +0x90, 0x10047d7e0\nFNEG            D0, D0                                                 ; +0x94, 0x10047d7e4\nSTP             D0, D8, [X1]                                           ; +0x98, 0x10047d7e8\nB               loc_10047D80C                                          ; +0x9c, 0x10047d7ec\nRET                                                                    ; +0xa0, 0x10047d7f0\nLDR             D0, [X1,#8]                                            ; +0xa4, 0x10047d7f4\nB               loc_10047D804                                          ; +0xa8, 0x10047d7f8\nLDR             D0, [X1,#8]                                            ; +0xac, 0x10047d7fc\nFNEG            D0, D0                                                 ; +0xb0, 0x10047d800\nFNEG            D1, D8                                                 ; +0xb4, 0x10047d804\nSTP             D0, D1, [X1]                                           ; +0xb8, 0x10047d808\nLDR             X0, [X19,#8]                                           ; +0xbc, 0x10047d80c\nLDR             X8, [X0]                                               ; +0xc0, 0x10047d810\nLDR             X2, [X8]                                               ; +0xc4, 0x10047d814\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc8, 0x10047d818\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xcc, 0x10047d81c\nLDP             D9, D8, [SP+0x20+var_20],#0x30                         ; +0xd0, 0x10047d820\nBR              X2                                                     ; +0xd4, 0x10047d824", "xrefs": ["<???> @ 0x1009d04b8"], "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"}