{"type": "func", "start": 4297448064, "end": 4297448382, "name": "EnhancedGameObject::setupAnimationVariables", "pseudocode": "// \n// EnhancedGameObject::setupAnimationVariables from 0x10025da80 to 0x10025dbbe (318 bytes)\n// \n// 5 xrefs:\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0x10009b49a\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0x10009b4d2\n// > SetupAnimSettingsPopup::onClose @ 0x10009b50c\n// > SetupAnimSettingsPopup::onClose @ 0x10009b542\n// > EnhancedGameObject::saveActiveColors @ 0x1005cc35a\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 *v1; // rax\n  cocos2d::CCObject *v2; // rax\n  __int16 v3; // ax\n  GameManager *v4; // rax\n  cocos2d::CCObject *v5; // rax\n  float v6; // xmm0_4\n  float m_randomFrameTime; // xmm0_4\n  float m_animationSpeed; // xmm1_4\n  bool m_disableDelayedLoop; // al\n  int m_objectID; // ecx\n  bool v11; // al\n\n  if ( a1->m_objectID != 2065 )\n  {\n    v1 = GameManager::sharedState();\n    v2 = cocos2d::CCDictionary::objectForKey(v1->m_framesForAnimation, a1->m_objectID);\n    if ( v2 )\n      v3 = (__int16)v2[1].__vftable;\n    else\n      v3 = 1;\n    a1->m_frames = v3;\n    v4 = GameManager::sharedState();\n    v5 = cocos2d::CCDictionary::objectForKey(v4->m_frameTimeForAnimation, a1->m_objectID);\n    if ( v5 )\n      v6 = *(float *)&v5[1].__vftable;\n    else\n      v6 = 1.0;\n    a1->m_frameTime = v6;\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 = fabs(m_animationSpeed);\n  }\n  a1->m_frameTime = a1->m_frameTime / m_randomFrameTime;\n  if ( !GameObject::usesFreezeAnimation(a1) )\n  {\n    a1->m_visible = 0;\n    goto LABEL_16;\n  }\n  m_disableDelayedLoop = a1->m_disableDelayedLoop;\n  a1->m_visible = !m_disableDelayedLoop;\n  if ( m_disableDelayedLoop )\nLABEL_16:\n    a1->m_isDisabled2 = 0;\n  m_objectID = a1->m_objectID;\n  a1->m_shouldNotHideAnimFreeze = m_objectID == 1855;\n  v11 = 1;\n  if ( m_objectID > 2891 )\n  {\n    if ( (unsigned int)(m_objectID - 2892) < 2 )\n      goto LABEL_23;\n    goto LABEL_21;\n  }\n  if ( (unsigned int)(m_objectID - 1839) >= 4 && m_objectID != 1591 && m_objectID != 1593 )\nLABEL_21:\n    v11 = 0;\nLABEL_23:\n  a1->m_usesSpecialAnimation = v11;\n}", "assembly": "; \n; EnhancedGameObject::setupAnimationVariables from 0x10025da80 to 0x10025dbbe (318 bytes)\n; \n; 5 xrefs:\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0x10009b49a\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0x10009b4d2\n; > SetupAnimSettingsPopup::onClose @ 0x10009b50c\n; > SetupAnimSettingsPopup::onClose @ 0x10009b542\n; > EnhancedGameObject::saveActiveColors @ 0x1005cc35a\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    rbp                                                            ; +0x0, 0x10025da80\nmov     rbp, rsp                                                       ; +0x1, 0x10025da81\npush    rbx                                                            ; +0x4, 0x10025da84\npush    rax                                                            ; +0x5, 0x10025da85\nmov     rbx, rdi                                                       ; +0x6, 0x10025da86\ncmp     dword ptr [rdi+404h], 811h                                     ; +0x9, 0x10025da89\njz      short loc_10025DAF7                                            ; +0x13, 0x10025da93\ncall    GameManager__sharedState                                       ; +0x15, 0x10025da95\nmovsxd  rsi, dword ptr [rbx+404h]                                      ; +0x1a, 0x10025da9a\nmov     rdi, [rax+178h]                                                ; +0x21, 0x10025daa1\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x28, 0x10025daa8\ntest    rax, rax                                                       ; +0x2d, 0x10025daad\njz      short loc_10025DAB8                                            ; +0x30, 0x10025dab0\nmovzx   eax, word ptr [rax+38h]                                        ; +0x32, 0x10025dab2\njmp     short loc_10025DABC                                            ; +0x36, 0x10025dab6\nmov     ax, 1                                                          ; +0x38, 0x10025dab8\nmov     [rbx+568h], ax                                                 ; +0x3c, 0x10025dabc\ncall    GameManager__sharedState                                       ; +0x43, 0x10025dac3\nmovsxd  rsi, dword ptr [rbx+404h]                                      ; +0x48, 0x10025dac8\nmov     rdi, [rax+170h]                                                ; +0x4f, 0x10025dacf\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x56, 0x10025dad6\ntest    rax, rax                                                       ; +0x5b, 0x10025dadb\njz      short loc_10025DAE7                                            ; +0x5e, 0x10025dade\nmovss   xmm0, dword ptr [rax+38h]                                      ; +0x60, 0x10025dae0\njmp     short loc_10025DAEF                                            ; +0x65, 0x10025dae5\nmovss   xmm0, cs:alpha                                                 ; +0x67, 0x10025dae7\nmovss   dword ptr [rbx+564h], xmm0                                     ; +0x6f, 0x10025daef\nmovss   xmm0, dword ptr [rbx+55Ch]                                     ; +0x77, 0x10025daf7\ncmp     byte ptr [rbx+588h], 1                                         ; +0x7f, 0x10025daff\njnz     short loc_10025DB24                                            ; +0x86, 0x10025db06\nmovss   xmm1, dword ptr [rbx+584h]                                     ; +0x88, 0x10025db08\nxorps   xmm2, xmm2                                                     ; +0x90, 0x10025db10\nucomiss xmm1, xmm2                                                     ; +0x93, 0x10025db13\njnz     short loc_10025DB1A                                            ; +0x96, 0x10025db16\njnp     short loc_10025DB24                                            ; +0x98, 0x10025db18\nandps   xmm1, cs:xmmword_100815500                                     ; +0x9a, 0x10025db1a\nmovaps  xmm0, xmm1                                                     ; +0xa1, 0x10025db21\nmovss   xmm1, dword ptr [rbx+564h]                                     ; +0xa4, 0x10025db24\ndivss   xmm1, xmm0                                                     ; +0xac, 0x10025db2c\nmovss   dword ptr [rbx+564h], xmm1                                     ; +0xb0, 0x10025db30\nmov     rdi, rbx                                                       ; +0xb8, 0x10025db38\ncall    GameObject__usesFreezeAnimation                                ; +0xbb, 0x10025db3b\ntest    al, al                                                         ; +0xc0, 0x10025db40\njz      short loc_10025DB5C                                            ; +0xc2, 0x10025db42\nmovzx   eax, byte ptr [rbx+58Ah]                                       ; +0xc4, 0x10025db44\nmov     ecx, eax                                                       ; +0xcb, 0x10025db4b\nxor     cl, 1                                                          ; +0xcd, 0x10025db4d\nmov     [rbx+560h], cl                                                 ; +0xd0, 0x10025db50\ntest    al, al                                                         ; +0xd6, 0x10025db56\njnz     short loc_10025DB63                                            ; +0xd8, 0x10025db58\njmp     short loc_10025DB6A                                            ; +0xda, 0x10025db5a\nmov     byte ptr [rbx+560h], 0                                         ; +0xdc, 0x10025db5c\nmov     byte ptr [rbx+306h], 0                                         ; +0xe3, 0x10025db63\nmov     ecx, [rbx+404h]                                                ; +0xea, 0x10025db6a\ncmp     ecx, 73Fh                                                      ; +0xf0, 0x10025db70\nsetz    byte ptr [rbx+561h]                                            ; +0xf6, 0x10025db76\nmov     al, 1                                                          ; +0xfd, 0x10025db7d\ncmp     ecx, 0B4Bh                                                     ; +0xff, 0x10025db7f\njg      short loc_10025DBA6                                            ; +0x105, 0x10025db85\nlea     edx, [rcx-72Fh]                                                ; +0x107, 0x10025db87\ncmp     edx, 4                                                         ; +0x10d, 0x10025db8d\njb      short loc_10025DBB1                                            ; +0x110, 0x10025db90\ncmp     ecx, 637h                                                      ; +0x112, 0x10025db92\njz      short loc_10025DBB1                                            ; +0x118, 0x10025db98\ncmp     ecx, 639h                                                      ; +0x11a, 0x10025db9a\njz      short loc_10025DBB1                                            ; +0x120, 0x10025dba0\nxor     eax, eax                                                       ; +0x122, 0x10025dba2\njmp     short loc_10025DBB1                                            ; +0x124, 0x10025dba4\nadd     ecx, 0FFFFF4B4h                                                ; +0x126, 0x10025dba6\ncmp     ecx, 2                                                         ; +0x12c, 0x10025dbac\njnb     short loc_10025DBA2                                            ; +0x12f, 0x10025dbaf\nmov     [rbx+562h], al                                                 ; +0x131, 0x10025dbb1\nadd     rsp, 8                                                         ; +0x137, 0x10025dbb7\npop     rbx                                                            ; +0x13b, 0x10025dbbb\npop     rbp                                                            ; +0x13c, 0x10025dbbc\nretn                                                                   ; +0x13d, 0x10025dbbd", "xrefs": ["SetupAnimSettingsPopup::updateAnimSettings @ 0x10009b49a", "SetupAnimSettingsPopup::updateAnimSettings @ 0x10009b4d2", "SetupAnimSettingsPopup::onClose @ 0x10009b50c", "SetupAnimSettingsPopup::onClose @ 0x10009b542", "EnhancedGameObject::saveActiveColors @ 0x1005cc35a"], "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"}