{"type": "func", "start": 6678854, "end": 6679000, "name": "EnhancedGameObject::setupAnimationVariables", "pseudocode": "// \n// EnhancedGameObject::setupAnimationVariables from 0x65e946 to 0x65e9d8 (146 bytes)\n// \n// 3 xrefs:\n// > EnhancedGameObject::saveActiveColors @ 0x44f190\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0x62510a\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0x625116\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:55:35 +0000\n// \n\nbool __fastcall EnhancedGameObject::setupAnimationVariables(EnhancedGameObject *this)\n{\n  int *v2; // r5\n  cocos2d::CCDictionary **v3; // r0\n  GameManager *v4; // r0\n  cocos2d::CCDictionary **v5; // r0\n  float v6; // s14\n  float v7; // s15\n  int v8; // r0\n  _BOOL4 result; // r0\n\n  v2 = (int *)((char *)this + 1200);\n  if ( *((_DWORD *)this + 223) != 2065 )\n  {\n    v3 = (cocos2d::CCDictionary **)GameManager::sharedState(this);\n    v4 = (GameManager *)GameManager::framesForAnimation(v3, *((_DWORD *)this + 223));\n    *((_WORD *)this + 602) = (_WORD)v4;\n    v5 = (cocos2d::CCDictionary **)GameManager::sharedState(v4);\n    *v2 = GameManager::frameTimeForAnimation(v5, *((_DWORD *)this + 223));\n  }\n  v6 = *((float *)this + 298);\n  if ( *((_BYTE *)this + 1236) )\n  {\n    v7 = *((float *)this + 308);\n    if ( v7 != 0.0 )\n      v6 = fabsf(v7);\n  }\n  *(float *)v2 = *(float *)v2 / v6;\n  v8 = GameObject::usesFreezeAnimation(this);\n  if ( v8 )\n    v8 = *((unsigned __int8 *)this + 1238) ^ 1;\n  *((_BYTE *)this + 1196) = v8;\n  if ( !v8 )\n    *((_BYTE *)this + 658) = 0;\n  *((_BYTE *)this + 1197) = GameObject::shouldNotHideAnimFreeze(this);\n  result = GameObject::usesSpecialAnimation(this);\n  *((_BYTE *)this + 1198) = result;\n  return result;\n}", "assembly": "; \n; EnhancedGameObject::setupAnimationVariables from 0x65e946 to 0x65e9d8 (146 bytes)\n; \n; 3 xrefs:\n; > EnhancedGameObject::saveActiveColors @ 0x44f190\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0x62510a\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0x625116\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:55:35 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x65e946\nMOVW            R3, #0x811                                             ; +0x2, 0x65e948\nLDR.W           R2, [R0,#0x37C]                                        ; +0x6, 0x65e94c\nMOV             R4, R0                                                 ; +0xa, 0x65e950\nADD.W           R5, R0, #0x4B0                                         ; +0xc, 0x65e952\nCMP             R2, R3                                                 ; +0x10, 0x65e956\nBEQ             loc_65E978                                             ; +0x12, 0x65e958\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x65e95a\nLDR.W           R1, [R4,#0x37C]; int                                   ; +0x18, 0x65e95e\nBL              _ZN11GameManager18framesForAnimationEi; GameManager::framesForAnimation(int) ; +0x1c, 0x65e962\nSTRH.W          R0, [R4,#0x4B4]                                        ; +0x20, 0x65e966\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x24, 0x65e96a\nLDR.W           R1, [R4,#0x37C]; int                                   ; +0x28, 0x65e96e\nBL              _ZN11GameManager21frameTimeForAnimationEi; GameManager::frameTimeForAnimation(int) ; +0x2c, 0x65e972\nSTR             R0, [R5]                                               ; +0x30, 0x65e976\nADD.W           R3, R4, #0x4A8                                         ; +0x32, 0x65e978\nVLDR            S14, [R3]                                              ; +0x36, 0x65e97c\nLDRB.W          R3, [R4,#0x4D4]                                        ; +0x3a, 0x65e980\nCBZ             R3, loc_65E99C                                         ; +0x3e, 0x65e984\nADD.W           R3, R4, #0x4D0                                         ; +0x40, 0x65e986\nVLDR            S15, [R3]                                              ; +0x44, 0x65e98a\nVCMP.F32        S15, #0.0                                              ; +0x48, 0x65e98e\nVMRS            APSR_nzcv, FPSCR                                       ; +0x4c, 0x65e992\nIT NE                                                                  ; +0x50, 0x65e996\nVABSNE.F32      S14, S15                                               ; +0x52, 0x65e998\nVLDR            S15, [R5]                                              ; +0x56, 0x65e99c\nMOV             R0, R4; this                                           ; +0x5a, 0x65e9a0\nVDIV.F32        S15, S15, S14                                          ; +0x5c, 0x65e9a2\nVSTR            S15, [R5]                                              ; +0x60, 0x65e9a6\nBL              _ZN10GameObject19usesFreezeAnimationEv; GameObject::usesFreezeAnimation(void) ; +0x64, 0x65e9aa\nCBZ             R0, loc_65E9B8                                         ; +0x68, 0x65e9ae\nLDRB.W          R0, [R4,#0x4D6]                                        ; +0x6a, 0x65e9b0\nEOR.W           R0, R0, #1                                             ; +0x6e, 0x65e9b4\nSTRB.W          R0, [R4,#0x4AC]                                        ; +0x72, 0x65e9b8\nCBNZ            R0, loc_65E9C2                                         ; +0x76, 0x65e9bc\nSTRB.W          R0, [R4,#0x292]                                        ; +0x78, 0x65e9be\nMOV             R0, R4; this                                           ; +0x7c, 0x65e9c2\nBL              _ZN10GameObject23shouldNotHideAnimFreezeEv; GameObject::shouldNotHideAnimFreeze(void) ; +0x7e, 0x65e9c4\nSTRB.W          R0, [R4,#0x4AD]                                        ; +0x82, 0x65e9c8\nMOV             R0, R4; this                                           ; +0x86, 0x65e9cc\nBL              _ZN10GameObject20usesSpecialAnimationEv; GameObject::usesSpecialAnimation(void) ; +0x88, 0x65e9ce\nSTRB.W          R0, [R4,#0x4AE]                                        ; +0x8c, 0x65e9d2\nPOP             {R3-R5,PC}                                             ; +0x90, 0x65e9d6", "xrefs": ["EnhancedGameObject::saveActiveColors @ 0x44f190", "SetupAnimSettingsPopup::updateAnimSettings @ 0x62510a", "SetupAnimSettingsPopup::updateAnimSettings @ 0x625116"], "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"}