{"type": "func", "start": 5432226, "end": 5432372, "name": "EnhancedGameObject::setupAnimationVariables", "pseudocode": "// \n// EnhancedGameObject::setupAnimationVariables from 0x52e3a2 to 0x52e434 (146 bytes)\n// \n// 3 xrefs:\n// > EnhancedGameObject::saveActiveColors @ 0x358e2c\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0x4f418c\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0x4f4198\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::setupAnimationVariables(EnhancedGameObject *a1)\n{\n  float *p_m_frameTime; // r5\n  GameManager *v3; // r0\n  GameManager *v4; // r0\n  float m_randomFrameTime; // s14\n  float m_animationSpeed; // s15\n  _BOOL4 v7; // r0\n\n  p_m_frameTime = &a1->m_frameTime;\n  if ( a1->m_objectID != 2065 )\n  {\n    v3 = GameManager::sharedState();\n    a1->m_frames = GameManager::framesForAnimation(v3, a1->m_objectID);\n    v4 = GameManager::sharedState();\n    *p_m_frameTime = GameManager::frameTimeForAnimation(v4, a1->m_objectID);\n  }\n  m_randomFrameTime = a1->m_randomFrameTime;\n  if ( a1->m_animationShouldUseSpeed )\n  {\n    m_animationSpeed = a1->m_animationSpeed;\n    if ( m_animationSpeed != 0.0 )\n      m_randomFrameTime = fabsf(m_animationSpeed);\n  }\n  *p_m_frameTime = *p_m_frameTime / m_randomFrameTime;\n  v7 = GameObject::usesFreezeAnimation(a1);\n  if ( v7 )\n    v7 = !a1->m_disableDelayedLoop;\n  a1->m_visible = v7;\n  if ( !v7 )\n    a1->m_isDisabled2 = 0;\n  a1->m_shouldNotHideAnimFreeze = GameObject::shouldNotHideAnimFreeze(a1);\n  a1->m_usesSpecialAnimation = GameObject::usesSpecialAnimation(a1);\n}", "assembly": "; \n; EnhancedGameObject::setupAnimationVariables from 0x52e3a2 to 0x52e434 (146 bytes)\n; \n; 3 xrefs:\n; > EnhancedGameObject::saveActiveColors @ 0x358e2c\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0x4f418c\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0x4f4198\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\nLDR.W           R2, [R0,#0x374]                                        ; +0x0, 0x52e3a2\nPUSH            {R3-R5,LR}                                             ; +0x4, 0x52e3a6\nMOVW            R3, #0x811                                             ; +0x6, 0x52e3a8\nCMP             R2, R3                                                 ; +0xa, 0x52e3ac\nMOV             R4, R0                                                 ; +0xc, 0x52e3ae\nADD.W           R5, R0, #0x4A8                                         ; +0xe, 0x52e3b0\nBEQ             loc_52E3D4                                             ; +0x12, 0x52e3b4\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x52e3b6\nLDR.W           R1, [R4,#0x374]; int                                   ; +0x18, 0x52e3ba\nBL              _ZN11GameManager18framesForAnimationEi; GameManager::framesForAnimation(int) ; +0x1c, 0x52e3be\nSTRH.W          R0, [R4,#0x4AC]                                        ; +0x20, 0x52e3c2\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0x52e3c6\nLDR.W           R1, [R4,#0x374]; int                                   ; +0x28, 0x52e3ca\nBL              _ZN11GameManager21frameTimeForAnimationEi; GameManager::frameTimeForAnimation(int) ; +0x2c, 0x52e3ce\nSTR             R0, [R5]                                               ; +0x30, 0x52e3d2\nADD.W           R3, R4, #0x4A0                                         ; +0x32, 0x52e3d4\nVLDR            S14, [R3]                                              ; +0x36, 0x52e3d8\nLDRB.W          R3, [R4,#0x4CC]                                        ; +0x3a, 0x52e3dc\nCBZ             R3, loc_52E3F8                                         ; +0x3e, 0x52e3e0\nADD.W           R3, R4, #0x4C8                                         ; +0x40, 0x52e3e2\nVLDR            S15, [R3]                                              ; +0x44, 0x52e3e6\nVCMP.F32        S15, #0.0                                              ; +0x48, 0x52e3ea\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4c, 0x52e3ee\nIT NE                                                                  ; +0x50, 0x52e3f2\nVABSNE.F32      S14, S15                                               ; +0x52, 0x52e3f4\nVLDR            S15, [R5]                                              ; +0x56, 0x52e3f8\nMOV             R0, R4; this                                           ; +0x5a, 0x52e3fc\nVDIV.F32        S15, S15, S14                                          ; +0x5c, 0x52e3fe\nVSTR            S15, [R5]                                              ; +0x60, 0x52e402\nBL              _ZN10GameObject19usesFreezeAnimationEv; GameObject::usesFreezeAnimation(void) ; +0x64, 0x52e406\nCBZ             R0, loc_52E414                                         ; +0x68, 0x52e40a\nLDRB.W          R0, [R4,#0x4CE]                                        ; +0x6a, 0x52e40c\nEOR.W           R0, R0, #1                                             ; +0x6e, 0x52e410\nSTRB.W          R0, [R4,#0x4A4]                                        ; +0x72, 0x52e414\nCBNZ            R0, loc_52E41E                                         ; +0x76, 0x52e418\nSTRB.W          R0, [R4,#0x292]                                        ; +0x78, 0x52e41a\nMOV             R0, R4; this                                           ; +0x7c, 0x52e41e\nBL              _ZN10GameObject23shouldNotHideAnimFreezeEv; GameObject::shouldNotHideAnimFreeze(void) ; +0x7e, 0x52e420\nSTRB.W          R0, [R4,#0x4A5]                                        ; +0x82, 0x52e424\nMOV             R0, R4; this                                           ; +0x86, 0x52e428\nBL              _ZN10GameObject20usesSpecialAnimationEv; GameObject::usesSpecialAnimation(void) ; +0x88, 0x52e42a\nSTRB.W          R0, [R4,#0x4A6]                                        ; +0x8c, 0x52e42e\nPOP             {R3-R5,PC}                                             ; +0x90, 0x52e432", "xrefs": ["EnhancedGameObject::saveActiveColors @ 0x358e2c", "SetupAnimSettingsPopup::updateAnimSettings @ 0x4f418c", "SetupAnimSettingsPopup::updateAnimSettings @ 0x4f4198"], "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"}