{"type": "func", "start": 4298412160, "end": 4298412384, "name": "EnhancedGameObject::setupAnimationVariables", "pseudocode": "// \n// EnhancedGameObject::setupAnimationVariables from 0x100349080 to 0x100349160 (224 bytes)\n// \n// 3 xrefs:\n// > EnhancedGameObject::saveActiveColors @ 0x10026320c\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0x1002e7d20\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0x1002e7d40\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 __fastcall EnhancedGameObject::setupAnimationVariables(EnhancedGameObject *a1)\n{\n  GameManager *v2; // x0\n  cocos2d::CCObject *v3; // x0\n  int v4; // w8\n  GameManager *v5; // x0\n  cocos2d::CCObject *v6; // x0\n  float v7; // s0\n  float m_randomFrameTime; // s0\n  float m_animationSpeed; // s1\n  bool m_disableDelayedLoop; // w8\n\n  if ( a1->m_objectID != 2065 )\n  {\n    v2 = GameManager::sharedState();\n    v3 = cocos2d::CCDictionary::objectForKey(v2->m_framesForAnimation, a1->m_objectID);\n    if ( v3 )\n      v4 = (int)v3[1].__vftable;\n    else\n      LOWORD(v4) = 1;\n    a1->m_frames = v4;\n    v5 = GameManager::sharedState();\n    v6 = cocos2d::CCDictionary::objectForKey(v5->m_frameTimeForAnimation, a1->m_objectID);\n    if ( v6 )\n      v7 = *(float *)&v6[1].__vftable;\n    else\n      v7 = 1.0;\n    a1->m_frameTime = v7;\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  a1->m_frameTime = a1->m_frameTime / m_randomFrameTime;\n  if ( GameObject::usesFreezeAnimation(a1) )\n  {\n    m_disableDelayedLoop = a1->m_disableDelayedLoop;\n    a1->m_visible = !m_disableDelayedLoop;\n    if ( !m_disableDelayedLoop )\n      goto LABEL_17;\n  }\n  else\n  {\n    a1->m_visible = 0;\n  }\n  a1->m_isDisabled2 = 0;\nLABEL_17:\n  a1->m_shouldNotHideAnimFreeze = a1->m_objectID == 1855;\n  a1->m_usesSpecialAnimation = GameObject::usesSpecialAnimation(a1);\n}", "assembly": "; \n; EnhancedGameObject::setupAnimationVariables from 0x100349080 to 0x100349160 (224 bytes)\n; \n; 3 xrefs:\n; > EnhancedGameObject::saveActiveColors @ 0x10026320c\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0x1002e7d20\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0x1002e7d40\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100349080\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100349084\nADD             X29, SP, #0x10                                         ; +0x8, 0x100349088\nMOV             X19, X0                                                ; +0xc, 0x10034908c\nLDR             W8, [X0,#0x404]                                        ; +0x10, 0x100349090\nCMP             W8, #0x811                                             ; +0x14, 0x100349094\nB.EQ            loc_1003490E4                                          ; +0x18, 0x100349098\nBL              GameManager__sharedState                               ; +0x1c, 0x10034909c\nLDRSW           X1, [X19,#0x404]                                       ; +0x20, 0x1003490a0\nLDR             X0, [X0,#0x178]                                        ; +0x24, 0x1003490a4\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x28, 0x1003490a8\nCBZ             X0, loc_1003490B8                                      ; +0x2c, 0x1003490ac\nLDR             W8, [X0,#0x38]                                         ; +0x30, 0x1003490b0\nB               loc_1003490BC                                          ; +0x34, 0x1003490b4\nMOV             W8, #1                                                 ; +0x38, 0x1003490b8\nSTRH            W8, [X19,#0x568]                                       ; +0x3c, 0x1003490bc\nBL              GameManager__sharedState                               ; +0x40, 0x1003490c0\nLDRSW           X1, [X19,#0x404]                                       ; +0x44, 0x1003490c4\nLDR             X0, [X0,#0x170]                                        ; +0x48, 0x1003490c8\nBL              cocos2d__CCDictionary__objectForKey                    ; +0x4c, 0x1003490cc\nCBZ             X0, loc_1003490DC                                      ; +0x50, 0x1003490d0\nLDR             S0, [X0,#0x38]                                         ; +0x54, 0x1003490d4\nB               loc_1003490E0                                          ; +0x58, 0x1003490d8\nFMOV            S0, #1.0                                               ; +0x5c, 0x1003490dc\nSTR             S0, [X19,#0x564]                                       ; +0x60, 0x1003490e0\nLDR             S0, [X19,#0x55C]                                       ; +0x64, 0x1003490e4\nLDRB            W8, [X19,#0x588]                                       ; +0x68, 0x1003490e8\nCMP             W8, #1                                                 ; +0x6c, 0x1003490ec\nB.NE            loc_100349104                                          ; +0x70, 0x1003490f0\nLDR             S1, [X19,#0x584]                                       ; +0x74, 0x1003490f4\nFCMP            S1, #0.0                                               ; +0x78, 0x1003490f8\nB.EQ            loc_100349104                                          ; +0x7c, 0x1003490fc\nFABS            S0, S1                                                 ; +0x80, 0x100349100\nLDR             S1, [X19,#0x564]                                       ; +0x84, 0x100349104\nFDIV            S0, S1, S0                                             ; +0x88, 0x100349108\nSTR             S0, [X19,#0x564]                                       ; +0x8c, 0x10034910c\nMOV             X0, X19                                                ; +0x90, 0x100349110\nBL              GameObject__usesFreezeAnimation                        ; +0x94, 0x100349114\nCBZ             W0, loc_100349130                                      ; +0x98, 0x100349118\nLDRB            W8, [X19,#0x58A]                                       ; +0x9c, 0x10034911c\nEOR             W9, W8, #1                                             ; +0xa0, 0x100349120\nSTRB            W9, [X19,#0x560]                                       ; +0xa4, 0x100349124\nTBNZ            W8, #0, loc_100349134                                  ; +0xa8, 0x100349128\nB               loc_100349138                                          ; +0xac, 0x10034912c\nSTRB            WZR, [X19,#0x560]                                      ; +0xb0, 0x100349130\nSTRB            WZR, [X19,#0x306]                                      ; +0xb4, 0x100349134\nLDR             W8, [X19,#0x404]                                       ; +0xb8, 0x100349138\nCMP             W8, #0x73F                                             ; +0xbc, 0x10034913c\nCSET            W8, EQ                                                 ; +0xc0, 0x100349140\nSTRB            W8, [X19,#0x561]                                       ; +0xc4, 0x100349144\nMOV             X0, X19                                                ; +0xc8, 0x100349148\nBL              GameObject__usesSpecialAnimation                       ; +0xcc, 0x10034914c\nSTRB            W0, [X19,#0x562]                                       ; +0xd0, 0x100349150\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xd4, 0x100349154\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xd8, 0x100349158\nRET                                                                    ; +0xdc, 0x10034915c", "xrefs": ["EnhancedGameObject::saveActiveColors @ 0x10026320c", "SetupAnimSettingsPopup::updateAnimSettings @ 0x1002e7d20", "SetupAnimSettingsPopup::updateAnimSettings @ 0x1002e7d40"], "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"}