{"type": "func", "start": 3545916, "end": 3546102, "name": "EnhancedGameObject::updateRotateAction", "pseudocode": "// \n// EnhancedGameObject::updateRotateAction from 0x361b3c to 0x361bf6 (186 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::updateVisibility @ 0x315be2\n// > LevelEditorLayer::updatePreviewAnim @ 0x368eee\n// > LevelEditorLayer::updateVisibility @ 0x36984a\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 EnhancedGameObject::updateRotateAction(EnhancedGameObject *a1, float a2)\n{\n  int v3; // r7\n  float v4; // s15\n  float v5; // s16\n  EnhancedGameObject *m_colorSprite; // r0\n  int v7; // r0\n  _DWORD *v8; // r2\n  int *v9; // r6\n  int *v10; // r4\n  int v11; // r8\n  int v12; // t1\n  void (__fastcall *v13)(int, _DWORD); // r9\n  int v14; // r0\n\n  if ( !a1->m_disableRotation )\n  {\n    v3 = 1;\n    v4 = a2 + a1->m_rotationAnimationSpeed;\n    a1->m_rotationAnimationSpeed = v4;\n    v5 = v4 * a1->m_rotationDelta;\n    while ( 1 )\n    {\n      if ( v3 == 1 )\n      {\n        m_colorSprite = a1;\n      }\n      else if ( v3 == 2 )\n      {\n        m_colorSprite = (EnhancedGameObject *)a1->m_colorSprite;\n        if ( a1->m_colorSpriteLocked )\n          goto LABEL_7;\n        if ( !m_colorSprite )\n          goto LABEL_8;\n      }\n      else\n      {\n        m_colorSprite = (EnhancedGameObject *)a1->m_glowSprite;\n        if ( !m_colorSprite )\n          goto LABEL_7;\n      }\n      v7 = (int)m_colorSprite->getChildren(m_colorSprite);\n      if ( v7 )\n      {\n        v8 = *(_DWORD **)(v7 + 52);\n        if ( *v8 )\n        {\n          v9 = (int *)v8[3];\n          v10 = &v9[*v8 - 1];\n          while ( v9 <= v10 )\n          {\n            v12 = *v9++;\n            v11 = v12;\n            if ( !v12 )\n              break;\n            v13 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v11 + 172);\n            v14 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 32))(v11);\n            v13(v11, v5 + (float)v14);\n          }\n        }\n      }\nLABEL_7:\n      if ( v3 == 3 )\n        return;\nLABEL_8:\n      ++v3;\n    }\n  }\n}", "assembly": "; \n; EnhancedGameObject::updateRotateAction from 0x361b3c to 0x361bf6 (186 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::updateVisibility @ 0x315be2\n; > LevelEditorLayer::updatePreviewAnim @ 0x368eee\n; > LevelEditorLayer::updateVisibility @ 0x36984a\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\nPUSH.W          {R3-R9,LR}                                             ; +0x0, 0x361b3c\nVMOV            S15, R1                                                ; +0x4, 0x361b40\nLDRB.W          R3, [R0,#0x4B0]                                        ; +0x8, 0x361b44\nMOV             R5, R0                                                 ; +0xc, 0x361b48\nVPUSH           {D8}                                                   ; +0xe, 0x361b4a\nCMP             R3, #0                                                 ; +0x12, 0x361b4e\nBNE             loc_361BEE                                             ; +0x14, 0x361b50\nADD.W           R3, R0, #0x4C0                                         ; +0x16, 0x361b52\nMOVS            R7, #1                                                 ; +0x1a, 0x361b56\nVLDR            S14, [R3]                                              ; +0x1c, 0x361b58\nVADD.F32        S15, S15, S14                                          ; +0x20, 0x361b5c\nVSTR            S15, [R3]                                              ; +0x24, 0x361b60\nADDW            R3, R0, #0x4BC                                         ; +0x28, 0x361b64\nVLDR            S16, [R3]                                              ; +0x2c, 0x361b68\nVMUL.F32        S16, S15, S16                                          ; +0x30, 0x361b6c\nSUBS            R3, R7, #1                                             ; +0x34, 0x361b70\nBNE             loc_361B78                                             ; +0x36, 0x361b72\nMOV             R0, R5                                                 ; +0x38, 0x361b74\nB               loc_361B96                                             ; +0x3a, 0x361b76\nCMP             R3, #1                                                 ; +0x3c, 0x361b78\nBNE             loc_361B8E                                             ; +0x3e, 0x361b7a\nLDRB.W          R3, [R5,#0x2D6]                                        ; +0x40, 0x361b7c\nLDR.W           R0, [R5,#0x2EC]                                        ; +0x44, 0x361b80\nCBZ             R3, loc_361BE8                                         ; +0x48, 0x361b84\nCMP             R7, #3                                                 ; +0x4a, 0x361b86\nBEQ             loc_361BEE                                             ; +0x4c, 0x361b88\nADDS            R7, #1                                                 ; +0x4e, 0x361b8a\nB               loc_361B70                                             ; +0x50, 0x361b8c\nLDR.W           R0, [R5,#0x280]                                        ; +0x52, 0x361b8e\nCMP             R0, #0                                                 ; +0x56, 0x361b92\nBEQ             loc_361B86                                             ; +0x58, 0x361b94\nLDR             R3, [R0]                                               ; +0x5a, 0x361b96\nLDR.W           R3, [R3,#0xEC]                                         ; +0x5c, 0x361b98\nBLX             R3                                                     ; +0x60, 0x361b9c\nCMP             R0, #0                                                 ; +0x62, 0x361b9e\nBEQ             loc_361B86                                             ; +0x64, 0x361ba0\nLDR             R2, [R0,#0x34]                                         ; +0x66, 0x361ba2\nLDR             R3, [R2]                                               ; +0x68, 0x361ba4\nCMP             R3, #0                                                 ; +0x6a, 0x361ba6\nBEQ             loc_361B86                                             ; +0x6c, 0x361ba8\nADD.W           R3, R3, #0x40000000                                    ; +0x6e, 0x361baa\nLDR             R6, [R2,#0xC]                                          ; +0x72, 0x361bae\nSUBS            R3, #1                                                 ; +0x74, 0x361bb0\nADD.W           R4, R6, R3,LSL#2                                       ; +0x76, 0x361bb2\nCMP             R6, R4                                                 ; +0x7a, 0x361bb6\nBHI             loc_361B86                                             ; +0x7c, 0x361bb8\nLDR.W           R8, [R6],#4                                            ; +0x7e, 0x361bba\nCMP.W           R8, #0                                                 ; +0x82, 0x361bbe\nBEQ             loc_361B86                                             ; +0x86, 0x361bc2\nLDR.W           R3, [R8]                                               ; +0x88, 0x361bc4\nMOV             R0, R8                                                 ; +0x8c, 0x361bc8\nLDR.W           R9, [R3,#0xAC]                                         ; +0x8e, 0x361bca\nLDR             R3, [R3,#0x20]                                         ; +0x92, 0x361bce\nBLX             R3                                                     ; +0x94, 0x361bd0\nVMOV            S15, R0                                                ; +0x96, 0x361bd2\nMOV             R0, R8                                                 ; +0x9a, 0x361bd6\nVCVT.F32.S32    S15, S15                                               ; +0x9c, 0x361bd8\nVADD.F32        S15, S16, S15                                          ; +0xa0, 0x361bdc\nVMOV            R1, S15                                                ; +0xa4, 0x361be0\nBLX             R9                                                     ; +0xa8, 0x361be4\nB               loc_361BB6                                             ; +0xaa, 0x361be6\nCMP             R0, #0                                                 ; +0xac, 0x361be8\nBEQ             loc_361B8A                                             ; +0xae, 0x361bea\nB               loc_361B96                                             ; +0xb0, 0x361bec\nVPOP            {D8}                                                   ; +0xb2, 0x361bee\nPOP.W           {R3-R9,PC}                                             ; +0xb6, 0x361bf2", "xrefs": ["PlayLayer::updateVisibility @ 0x315be2", "LevelEditorLayer::updatePreviewAnim @ 0x368eee", "LevelEditorLayer::updateVisibility @ 0x36984a"], "is_objc": false, "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"}