{"type": "func", "start": 4531384, "end": 4531570, "name": "EnhancedGameObject::updateRotateAction", "pseudocode": "// \n// EnhancedGameObject::updateRotateAction from 0x4524b8 to 0x452572 (186 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::updateVisibility @ 0x407046\n// > LevelEditorLayer::updatePreviewAnim @ 0x462636\n// > LevelEditorLayer::updateVisibility @ 0x462fb8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:48:37 +0000\n// \n\nint __fastcall EnhancedGameObject::updateRotateAction(int this, float a2)\n{\n  int v2; // r5\n  int v3; // r7\n  float v4; // s15\n  float v5; // s16\n  _DWORD *v6; // r2\n  int *v7; // r6\n  int *v8; // r4\n  int v9; // r8\n  int v10; // t1\n  int (__fastcall *v11)(int, _DWORD); // r9\n  int v12; // r0\n\n  v2 = this;\n  if ( !*(_BYTE *)(this + 1208) )\n  {\n    v3 = 1;\n    v4 = a2 + *(float *)(this + 1224);\n    *(float *)(this + 1224) = v4;\n    v5 = v4 * *(float *)(this + 1220);\n    while ( 1 )\n    {\n      if ( v3 == 1 )\n      {\n        this = v2;\n      }\n      else if ( v3 == 2 )\n      {\n        this = *(_DWORD *)(v2 + 756);\n        if ( *(_BYTE *)(v2 + 734) )\n          goto LABEL_7;\n        if ( !this )\n          goto LABEL_8;\n      }\n      else\n      {\n        this = *(_DWORD *)(v2 + 640);\n        if ( !this )\n          goto LABEL_7;\n      }\n      this = (*(int (__fastcall **)(int))(*(_DWORD *)this + 244))(this);\n      if ( this )\n      {\n        v6 = *(_DWORD **)(this + 52);\n        if ( *v6 )\n        {\n          v7 = (int *)v6[3];\n          v8 = &v7[*v6 - 1];\n          while ( v7 <= v8 )\n          {\n            v10 = *v7++;\n            v9 = v10;\n            if ( !v10 )\n              break;\n            v11 = *(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v9 + 180);\n            v12 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 32))(v9);\n            this = v11(v9, v5 + (float)v12);\n          }\n        }\n      }\nLABEL_7:\n      if ( v3 == 3 )\n        return this;\nLABEL_8:\n      ++v3;\n    }\n  }\n  return this;\n}", "assembly": "; \n; EnhancedGameObject::updateRotateAction from 0x4524b8 to 0x452572 (186 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::updateVisibility @ 0x407046\n; > LevelEditorLayer::updatePreviewAnim @ 0x462636\n; > LevelEditorLayer::updateVisibility @ 0x462fb8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:48:37 +0000\n; \nPUSH.W          {R3-R9,LR}                                             ; +0x0, 0x4524b8\nVMOV            S15, R1                                                ; +0x4, 0x4524bc\nVPUSH           {D8}                                                   ; +0x8, 0x4524c0\nMOV             R5, R0                                                 ; +0xc, 0x4524c4\nLDRB.W          R3, [R0,#0x4B8]                                        ; +0xe, 0x4524c6\nCMP             R3, #0                                                 ; +0x12, 0x4524ca\nBNE             loc_45256A                                             ; +0x14, 0x4524cc\nADD.W           R3, R0, #0x4C8                                         ; +0x16, 0x4524ce\nMOVS            R7, #1                                                 ; +0x1a, 0x4524d2\nVLDR            S14, [R3]                                              ; +0x1c, 0x4524d4\nVADD.F32        S15, S15, S14                                          ; +0x20, 0x4524d8\nVSTR            S15, [R3]                                              ; +0x24, 0x4524dc\nADDW            R3, R0, #0x4C4                                         ; +0x28, 0x4524e0\nVLDR            S16, [R3]                                              ; +0x2c, 0x4524e4\nVMUL.F32        S16, S15, S16                                          ; +0x30, 0x4524e8\nSUBS            R3, R7, #1                                             ; +0x34, 0x4524ec\nBNE             loc_4524F4                                             ; +0x36, 0x4524ee\nMOV             R0, R5                                                 ; +0x38, 0x4524f0\nB               loc_452512                                             ; +0x3a, 0x4524f2\nCMP             R3, #1                                                 ; +0x3c, 0x4524f4\nBNE             loc_45250A                                             ; +0x3e, 0x4524f6\nLDRB.W          R3, [R5,#0x2DE]                                        ; +0x40, 0x4524f8\nLDR.W           R0, [R5,#0x2F4]                                        ; +0x44, 0x4524fc\nCBZ             R3, loc_452564                                         ; +0x48, 0x452500\nCMP             R7, #3                                                 ; +0x4a, 0x452502\nBEQ             loc_45256A                                             ; +0x4c, 0x452504\nADDS            R7, #1                                                 ; +0x4e, 0x452506\nB               loc_4524EC                                             ; +0x50, 0x452508\nLDR.W           R0, [R5,#0x280]                                        ; +0x52, 0x45250a\nCMP             R0, #0                                                 ; +0x56, 0x45250e\nBEQ             loc_452502                                             ; +0x58, 0x452510\nLDR             R3, [R0]                                               ; +0x5a, 0x452512\nLDR.W           R3, [R3,#0xF4]                                         ; +0x5c, 0x452514\nBLX             R3                                                     ; +0x60, 0x452518\nCMP             R0, #0                                                 ; +0x62, 0x45251a\nBEQ             loc_452502                                             ; +0x64, 0x45251c\nLDR             R2, [R0,#0x34]                                         ; +0x66, 0x45251e\nLDR             R3, [R2]                                               ; +0x68, 0x452520\nCMP             R3, #0                                                 ; +0x6a, 0x452522\nBEQ             loc_452502                                             ; +0x6c, 0x452524\nADD.W           R3, R3, #0x40000000                                    ; +0x6e, 0x452526\nLDR             R6, [R2,#0xC]                                          ; +0x72, 0x45252a\nSUBS            R3, #1                                                 ; +0x74, 0x45252c\nADD.W           R4, R6, R3,LSL#2                                       ; +0x76, 0x45252e\nCMP             R6, R4                                                 ; +0x7a, 0x452532\nBHI             loc_452502                                             ; +0x7c, 0x452534\nLDR.W           R8, [R6],#4                                            ; +0x7e, 0x452536\nCMP.W           R8, #0                                                 ; +0x82, 0x45253a\nBEQ             loc_452502                                             ; +0x86, 0x45253e\nLDR.W           R3, [R8]                                               ; +0x88, 0x452540\nMOV             R0, R8                                                 ; +0x8c, 0x452544\nLDR.W           R9, [R3,#0xB4]                                         ; +0x8e, 0x452546\nLDR             R3, [R3,#0x20]                                         ; +0x92, 0x45254a\nBLX             R3                                                     ; +0x94, 0x45254c\nVMOV            S15, R0                                                ; +0x96, 0x45254e\nMOV             R0, R8                                                 ; +0x9a, 0x452552\nVCVT.F32.S32    S15, S15                                               ; +0x9c, 0x452554\nVADD.F32        S15, S16, S15                                          ; +0xa0, 0x452558\nVMOV            R1, S15                                                ; +0xa4, 0x45255c\nBLX             R9                                                     ; +0xa8, 0x452560\nB               loc_452532                                             ; +0xaa, 0x452562\nCMP             R0, #0                                                 ; +0xac, 0x452564\nBEQ             loc_452506                                             ; +0xae, 0x452566\nB               loc_452512                                             ; +0xb0, 0x452568\nVPOP            {D8}                                                   ; +0xb2, 0x45256a\nPOP.W           {R3-R9,PC}                                             ; +0xb6, 0x45256e", "xrefs": ["PlayLayer::updateVisibility @ 0x407046", "LevelEditorLayer::updatePreviewAnim @ 0x462636", "LevelEditorLayer::updateVisibility @ 0x462fb8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}