{"type": "func", "start": 7820188, "end": 7820456, "name": "EnhancedGameObject::updateRotateAction", "pseudocode": "// \n// EnhancedGameObject::updateRotateAction from 0x77539c to 0x7754a8 (268 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::updateVisibility @ 0x7012f0\n// > LevelEditorLayer::updatePreviewAnim @ 0x78d8a4\n// > LevelEditorLayer::updateVisibility @ 0x78e904\n// > <???> @ 0xfc040\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 12:53:14 +0000\n// \n\nfloat *__fastcall EnhancedGameObject::updateRotateAction(float *this, float a2)\n{\n  float *v2; // x23\n  int v3; // w22\n  float v4; // s0\n  int v5; // w24\n  float v6; // s8\n  __int64 *v7; // x20\n  __int64 *i; // x26\n  __int64 v9; // x19\n  __int64 v10; // x0\n  __int64 (__fastcall *v11)(__int64, float); // x21\n  int v12; // w0\n\n  if ( !*((_BYTE *)this + 1388) )\n  {\n    v2 = this;\n    v3 = 1;\n    v4 = a2 + *(this + 351);\n    v5 = 0;\n    v6 = v4 * *(this + 350);\n    *(this + 351) = v4;\n    while ( 1 )\n    {\n      this = v2;\n      if ( v5 )\n      {\n        if ( v5 == 1 )\n        {\n          this = *((float **)v2 + 111);\n          if ( *((_BYTE *)v2 + 866) || !this )\n            goto LABEL_12;\n        }\n        else\n        {\n          this = *((float **)v2 + 94);\n          if ( !this )\n            goto LABEL_11;\n        }\n      }\n      this = (float *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)this + 488LL))(this);\n      if ( this )\n      {\n        this = *((float **)this + 7);\n        if ( *(_DWORD *)this )\n        {\n          v7 = *((__int64 **)this + 2);\n          for ( i = &v7[*(unsigned int *)this - 1]; i >= v7; this = (float *)v11(v9, (float)v12 + v6) )\n          {\n            v9 = *v7;\n            if ( !*v7 )\n              break;\n            v10 = *v7++;\n            v11 = *(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 360LL);\n            v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 64LL))(v10);\n          }\n        }\n      }\nLABEL_11:\n      if ( v3 == 3 )\n        return this;\nLABEL_12:\n      ++v5;\n      ++v3;\n    }\n  }\n  return this;\n}", "assembly": "; \n; EnhancedGameObject::updateRotateAction from 0x77539c to 0x7754a8 (268 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::updateVisibility @ 0x7012f0\n; > LevelEditorLayer::updatePreviewAnim @ 0x78d8a4\n; > LevelEditorLayer::updateVisibility @ 0x78e904\n; > <???> @ 0xfc040\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 12:53:14 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x77539c\nMOV             X29, SP                                                ; +0x4, 0x7753a0\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x7753a4\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0xc, 0x7753a8\nSTP             X23, X24, [SP,#0x60+var_30]                            ; +0x10, 0x7753ac\nSTP             X25, X26, [SP,#0x60+var_20]                            ; +0x14, 0x7753b0\nSTR             D8, [SP,#0x60+var_10]                                  ; +0x18, 0x7753b4\nLDRB            W1, [X0,#0x56C]                                        ; +0x1c, 0x7753b8\nCBNZ            W1, loc_775478                                         ; +0x20, 0x7753bc\nLDR             S1, [X0,#0x57C]                                        ; +0x24, 0x7753c0\nMOV             X23, X0                                                ; +0x28, 0x7753c4\nLDR             S8, [X0,#0x578]                                        ; +0x2c, 0x7753c8\nMOV             W22, #1                                                ; +0x30, 0x7753cc\nFADD            S0, S0, S1                                             ; +0x34, 0x7753d0\nMOV             W24, #0                                                ; +0x38, 0x7753d4\nMOV             X25, #0xFFFFFFFFFFFFFFF8                               ; +0x3c, 0x7753d8\nFMUL            S8, S0, S8                                             ; +0x40, 0x7753dc\nSTR             S0, [X0,#0x57C]                                        ; +0x44, 0x7753e0\nMOV             X0, X23                                                ; +0x48, 0x7753e4\nCBZ             W24, loc_7753FC                                        ; +0x4c, 0x7753e8\nCMP             W24, #1                                                ; +0x50, 0x7753ec\nB.EQ            loc_775494                                             ; +0x54, 0x7753f0\nLDR             X0, [X23,#0x2F0]                                       ; +0x58, 0x7753f4\nCBZ             X0, loc_775464                                         ; +0x5c, 0x7753f8\nLDR             X1, [X0]                                               ; +0x60, 0x7753fc\nLDR             X1, [X1,#0x1E8]                                        ; +0x64, 0x775400\nBLR             X1                                                     ; +0x68, 0x775404\nCBZ             X0, loc_775464                                         ; +0x6c, 0x775408\nLDR             X0, [X0,#0x38]                                         ; +0x70, 0x77540c\nLDR             W26, [X0]                                              ; +0x74, 0x775410\nCBZ             W26, loc_775464                                        ; +0x78, 0x775414\nLDR             X20, [X0,#0x10]                                        ; +0x7c, 0x775418\nADD             X26, X25, W26,UXTW#3                                   ; +0x80, 0x77541c\nADD             X26, X20, X26                                          ; +0x84, 0x775420\nCMP             X20, X26                                               ; +0x88, 0x775424\nB.HI            loc_775464                                             ; +0x8c, 0x775428\nLDR             X19, [X20]                                             ; +0x90, 0x77542c\nCBZ             X19, loc_775464                                        ; +0x94, 0x775430\nLDR             X1, [X19]                                              ; +0x98, 0x775434\nMOV             X0, X19                                                ; +0x9c, 0x775438\nADD             X20, X20, #8                                           ; +0xa0, 0x77543c\nLDR             X2, [X1,#0x40]                                         ; +0xa4, 0x775440\nLDR             X21, [X1,#0x168]                                       ; +0xa8, 0x775444\nBLR             X2                                                     ; +0xac, 0x775448\nSCVTF           S0, W0                                                 ; +0xb0, 0x77544c\nMOV             X0, X19                                                ; +0xb4, 0x775450\nFADD            S0, S0, S8                                             ; +0xb8, 0x775454\nBLR             X21                                                    ; +0xbc, 0x775458\nCMP             X26, X20                                               ; +0xc0, 0x77545c\nB.CS            loc_77542C                                             ; +0xc4, 0x775460\nCMP             W22, #3                                                ; +0xc8, 0x775464\nB.EQ            loc_775478                                             ; +0xcc, 0x775468\nADD             W24, W24, #1                                           ; +0xd0, 0x77546c\nADD             W22, W22, #1                                           ; +0xd4, 0x775470\nB               loc_7753E4                                             ; +0xd8, 0x775474\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xdc, 0x775478\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xe0, 0x77547c\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0xe4, 0x775480\nLDP             X25, X26, [SP,#0x60+var_20]                            ; +0xe8, 0x775484\nLDR             D8, [SP,#0x60+var_10]                                  ; +0xec, 0x775488\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xf0, 0x77548c\nRET                                                                    ; +0xf4, 0x775490\nLDRB            W1, [X23,#0x362]                                       ; +0xf8, 0x775494\nLDR             X0, [X23,#0x378]                                       ; +0xfc, 0x775498\nCBNZ            W1, loc_77546C                                         ; +0x100, 0x77549c\nCBZ             X0, loc_77546C                                         ; +0x104, 0x7754a0\nB               loc_7753FC                                             ; +0x108, 0x7754a4", "xrefs": ["PlayLayer::updateVisibility @ 0x7012f0", "LevelEditorLayer::updatePreviewAnim @ 0x78d8a4", "LevelEditorLayer::updateVisibility @ 0x78e904", "<???> @ 0xfc040"], "is_objc": false, "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"}