{"type": "func", "start": 11483528, "end": 11483708, "name": "EnhancedGameObject::setupAnimationVariables", "pseudocode": "// \n// EnhancedGameObject::setupAnimationVariables from 0xaf3988 to 0xaf3a3c (180 bytes)\n// \n// 4 xrefs:\n// > EnhancedGameObject::saveActiveColors @ 0x772028\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0xa9a5a8\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0xa9a5c0\n// > <???> @ 0xdd410\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 13:01:14 +0000\n// \n\n__int64 __fastcall EnhancedGameObject::setupAnimationVariables(EnhancedGameObject *this)\n{\n  GameManager *v2; // x0\n  cocos2d::CCDictionary **v3; // x0\n  GameManager *v4; // x0\n  cocos2d::CCDictionary **v5; // x0\n  float v6; // s0\n  float v7; // s1\n  float v8; // s2\n  bool v9; // w0\n  __int64 result; // x0\n\n  v2 = (GameManager *)*((unsigned int *)this + 257);\n  if ( (_DWORD)v2 == 2065 )\n  {\n    v6 = *((float *)this + 345);\n  }\n  else\n  {\n    v3 = (cocos2d::CCDictionary **)GameManager::sharedState(v2);\n    v4 = (GameManager *)GameManager::framesForAnimation(v3, *((_DWORD *)this + 257));\n    *((_WORD *)this + 692) = (_WORD)v4;\n    v5 = (cocos2d::CCDictionary **)GameManager::sharedState(v4);\n    v6 = GameManager::frameTimeForAnimation(v5, *((_DWORD *)this + 257));\n  }\n  v7 = *((float *)this + 343);\n  if ( *((_BYTE *)this + 1416) )\n  {\n    v8 = *((float *)this + 353);\n    if ( v8 != 0.0 )\n      v7 = fabsf(v8);\n  }\n  *((float *)this + 345) = v6 / v7;\n  v9 = GameObject::usesFreezeAnimation(this);\n  if ( !v9 || *((_BYTE *)this + 1418) )\n  {\n    *((_BYTE *)this + 774) = 0;\n    v9 = 0;\n  }\n  *((_BYTE *)this + 1376) = v9;\n  *((_BYTE *)this + 1377) = GameObject::shouldNotHideAnimFreeze(this);\n  result = GameObject::usesSpecialAnimation(this);\n  *((_BYTE *)this + 1378) = result;\n  return result;\n}", "assembly": "; \n; EnhancedGameObject::setupAnimationVariables from 0xaf3988 to 0xaf3a3c (180 bytes)\n; \n; 4 xrefs:\n; > EnhancedGameObject::saveActiveColors @ 0x772028\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0xa9a5a8\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0xa9a5c0\n; > <???> @ 0xdd410\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 13:01:14 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xaf3988\nMOV             X29, SP                                                ; +0x4, 0xaf398c\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xaf3990\nMOV             X19, X0                                                ; +0xc, 0xaf3994\nLDR             W0, [X0,#0x404]; this                                  ; +0x10, 0xaf3998\nCMP             W0, #0x811                                             ; +0x14, 0xaf399c\nB.EQ            loc_AF3A34                                             ; +0x18, 0xaf39a0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1c, 0xaf39a4\nLDR             W1, [X19,#0x404]; int                                  ; +0x20, 0xaf39a8\nBL              _ZN11GameManager18framesForAnimationEi; GameManager::framesForAnimation(int) ; +0x24, 0xaf39ac\nSTRH            W0, [X19,#0x568]                                       ; +0x28, 0xaf39b0\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2c, 0xaf39b4\nLDR             W1, [X19,#0x404]; int                                  ; +0x30, 0xaf39b8\nBL              _ZN11GameManager21frameTimeForAnimationEi; GameManager::frameTimeForAnimation(int) ; +0x34, 0xaf39bc\nLDRB            W0, [X19,#0x588]                                       ; +0x38, 0xaf39c0\nLDR             S1, [X19,#0x55C]                                       ; +0x3c, 0xaf39c4\nCBZ             W0, loc_AF39D8                                         ; +0x40, 0xaf39c8\nLDR             S2, [X19,#0x584]                                       ; +0x44, 0xaf39cc\nFCMP            S2, #0.0                                               ; +0x48, 0xaf39d0\nB.NE            loc_AF3A2C                                             ; +0x4c, 0xaf39d4\nFDIV            S0, S0, S1                                             ; +0x50, 0xaf39d8\nMOV             X0, X19; this                                          ; +0x54, 0xaf39dc\nSTR             S0, [X19,#0x564]                                       ; +0x58, 0xaf39e0\nBL              _ZN10GameObject19usesFreezeAnimationEv; GameObject::usesFreezeAnimation(void) ; +0x5c, 0xaf39e4\nUXTB            W0, W0                                                 ; +0x60, 0xaf39e8\nCBZ             W0, loc_AF3A20                                         ; +0x64, 0xaf39ec\nLDRB            W1, [X19,#0x58A]                                       ; +0x68, 0xaf39f0\nCBNZ            W1, loc_AF3A20                                         ; +0x6c, 0xaf39f4\nSTRB            W0, [X19,#0x560]                                       ; +0x70, 0xaf39f8\nMOV             X0, X19; this                                          ; +0x74, 0xaf39fc\nBL              _ZN10GameObject23shouldNotHideAnimFreezeEv; GameObject::shouldNotHideAnimFreeze(void) ; +0x78, 0xaf3a00\nSTRB            W0, [X19,#0x561]                                       ; +0x7c, 0xaf3a04\nMOV             X0, X19; this                                          ; +0x80, 0xaf3a08\nBL              _ZN10GameObject20usesSpecialAnimationEv; GameObject::usesSpecialAnimation(void) ; +0x84, 0xaf3a0c\nSTRB            W0, [X19,#0x562]                                       ; +0x88, 0xaf3a10\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x8c, 0xaf3a14\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x90, 0xaf3a18\nRET                                                                    ; +0x94, 0xaf3a1c\nSTRB            WZR, [X19,#0x306]                                      ; +0x98, 0xaf3a20\nMOV             W0, #0                                                 ; +0x9c, 0xaf3a24\nB               loc_AF39F8                                             ; +0xa0, 0xaf3a28\nFABS            S1, S2                                                 ; +0xa4, 0xaf3a2c\nB               loc_AF39D8                                             ; +0xa8, 0xaf3a30\nLDR             S0, [X19,#0x564]                                       ; +0xac, 0xaf3a34\nB               loc_AF39C0                                             ; +0xb0, 0xaf3a38", "xrefs": ["EnhancedGameObject::saveActiveColors @ 0x772028", "SetupAnimSettingsPopup::updateAnimSettings @ 0xa9a5a8", "SetupAnimSettingsPopup::updateAnimSettings @ 0xa9a5c0", "<???> @ 0xdd410"], "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"}