{"type": "func", "start": 4297357840, "end": 4297358158, "name": "EnhancedGameObject::setupAnimationVariables", "pseudocode": "// \n// EnhancedGameObject::setupAnimationVariables from 0x100247a10 to 0x100247b4e (318 bytes)\n// \n// 5 xrefs:\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0x10006278a\n// > SetupAnimSettingsPopup::updateAnimSettings @ 0x1000627c2\n// > SetupAnimSettingsPopup::onClose @ 0x1000627fc\n// > SetupAnimSettingsPopup::onClose @ 0x100062832\n// > EnhancedGameObject::saveActiveColors @ 0x10069da5a\n// \n// This function is hookable on this platform (idp: pc, 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 12:27:20 +0000\n// \n\nchar __fastcall EnhancedGameObject::setupAnimationVariables(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v4; // rsi\n  __int64 v5; // rax\n  __int64 v6; // rdi\n  __int64 v7; // rax\n  __int64 v8; // rdx\n  __int16 v9; // ax\n  __int64 v10; // rax\n  __int64 v11; // rax\n  int v12; // xmm0_4\n  float v13; // xmm0_4\n  float v14; // xmm1_4\n  char v15; // al\n  int v16; // ecx\n  char result; // al\n\n  if ( *(_DWORD *)(a1 + 1028) != 2065 )\n  {\n    GameManager::sharedState(a1, a2, a3);\n    v4 = *(int *)(a1 + 1028);\n    v6 = *(_QWORD *)(v5 + 400);\n    v7 = cocos2d::CCDictionary::objectForKey_1(v6);\n    if ( v7 )\n      v9 = *(_WORD *)(v7 + 56);\n    else\n      v9 = 1;\n    *(_WORD *)(a1 + 1384) = v9;\n    GameManager::sharedState(v6, v4, v8);\n    v11 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(v10 + 392));\n    if ( v11 )\n      v12 = *(_DWORD *)(v11 + 56);\n    else\n      v12 = 1065353216;\n    *(_DWORD *)(a1 + 1380) = v12;\n  }\n  v13 = *(float *)(a1 + 1372);\n  if ( *(_BYTE *)(a1 + 1416) == 1 )\n  {\n    v14 = *(float *)(a1 + 1412);\n    if ( v14 != 0.0 )\n      v13 = fabs(v14);\n  }\n  *(float *)(a1 + 1380) = *(float *)(a1 + 1380) / v13;\n  if ( !(unsigned __int8)GameObject::usesFreezeAnimation(a1) )\n  {\n    *(_BYTE *)(a1 + 1376) = 0;\n    goto LABEL_16;\n  }\n  v15 = *(_BYTE *)(a1 + 1418);\n  *(_BYTE *)(a1 + 1376) = v15 ^ 1;\n  if ( v15 )\nLABEL_16:\n    *(_BYTE *)(a1 + 774) = 0;\n  v16 = *(_DWORD *)(a1 + 1028);\n  *(_BYTE *)(a1 + 1377) = v16 == 1855;\n  result = 1;\n  if ( v16 > 2891 )\n  {\n    if ( (unsigned int)(v16 - 2892) < 2 )\n      goto LABEL_23;\n    goto LABEL_21;\n  }\n  if ( (unsigned int)(v16 - 1839) >= 4 && v16 != 1591 && v16 != 1593 )\nLABEL_21:\n    result = 0;\nLABEL_23:\n  *(_BYTE *)(a1 + 1378) = result;\n  return result;\n}", "assembly": "; \n; EnhancedGameObject::setupAnimationVariables from 0x100247a10 to 0x100247b4e (318 bytes)\n; \n; 5 xrefs:\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0x10006278a\n; > SetupAnimSettingsPopup::updateAnimSettings @ 0x1000627c2\n; > SetupAnimSettingsPopup::onClose @ 0x1000627fc\n; > SetupAnimSettingsPopup::onClose @ 0x100062832\n; > EnhancedGameObject::saveActiveColors @ 0x10069da5a\n; \n; This function is hookable on this platform (idp: pc, 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 12:27:20 +0000\n; \npush    rbp                                                            ; +0x0, 0x100247a10\nmov     rbp, rsp                                                       ; +0x1, 0x100247a11\npush    rbx                                                            ; +0x4, 0x100247a14\npush    rax                                                            ; +0x5, 0x100247a15\nmov     rbx, rdi                                                       ; +0x6, 0x100247a16\ncmp     dword ptr [rdi+404h], 811h                                     ; +0x9, 0x100247a19\njz      short loc_100247A87                                            ; +0x13, 0x100247a23\ncall    GameManager__sharedState                                       ; +0x15, 0x100247a25\nmovsxd  rsi, dword ptr [rbx+404h]                                      ; +0x1a, 0x100247a2a\nmov     rdi, [rax+190h]                                                ; +0x21, 0x100247a31\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x28, 0x100247a38\ntest    rax, rax                                                       ; +0x2d, 0x100247a3d\njz      short loc_100247A48                                            ; +0x30, 0x100247a40\nmovzx   eax, word ptr [rax+38h]                                        ; +0x32, 0x100247a42\njmp     short loc_100247A4C                                            ; +0x36, 0x100247a46\nmov     ax, 1                                                          ; +0x38, 0x100247a48\nmov     [rbx+568h], ax                                                 ; +0x3c, 0x100247a4c\ncall    GameManager__sharedState                                       ; +0x43, 0x100247a53\nmovsxd  rsi, dword ptr [rbx+404h]                                      ; +0x48, 0x100247a58\nmov     rdi, [rax+188h]                                                ; +0x4f, 0x100247a5f\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x56, 0x100247a66\ntest    rax, rax                                                       ; +0x5b, 0x100247a6b\njz      short loc_100247A77                                            ; +0x5e, 0x100247a6e\nmovss   xmm0, dword ptr [rax+38h]                                      ; +0x60, 0x100247a70\njmp     short loc_100247A7F                                            ; +0x65, 0x100247a75\nmovss   xmm0, cs:alpha                                                 ; +0x67, 0x100247a77\nmovss   dword ptr [rbx+564h], xmm0                                     ; +0x6f, 0x100247a7f\nmovss   xmm0, dword ptr [rbx+55Ch]                                     ; +0x77, 0x100247a87\ncmp     byte ptr [rbx+588h], 1                                         ; +0x7f, 0x100247a8f\njnz     short loc_100247AB4                                            ; +0x86, 0x100247a96\nmovss   xmm1, dword ptr [rbx+584h]                                     ; +0x88, 0x100247a98\nxorps   xmm2, xmm2                                                     ; +0x90, 0x100247aa0\nucomiss xmm1, xmm2                                                     ; +0x93, 0x100247aa3\njnz     short loc_100247AAA                                            ; +0x96, 0x100247aa6\njnp     short loc_100247AB4                                            ; +0x98, 0x100247aa8\nandps   xmm1, cs:xmmword_100A038A0                                     ; +0x9a, 0x100247aaa\nmovaps  xmm0, xmm1                                                     ; +0xa1, 0x100247ab1\nmovss   xmm1, dword ptr [rbx+564h]                                     ; +0xa4, 0x100247ab4\ndivss   xmm1, xmm0                                                     ; +0xac, 0x100247abc\nmovss   dword ptr [rbx+564h], xmm1                                     ; +0xb0, 0x100247ac0\nmov     rdi, rbx                                                       ; +0xb8, 0x100247ac8\ncall    GameObject__usesFreezeAnimation                                ; +0xbb, 0x100247acb\ntest    al, al                                                         ; +0xc0, 0x100247ad0\njz      short loc_100247AEC                                            ; +0xc2, 0x100247ad2\nmovzx   eax, byte ptr [rbx+58Ah]                                       ; +0xc4, 0x100247ad4\nmov     ecx, eax                                                       ; +0xcb, 0x100247adb\nxor     cl, 1                                                          ; +0xcd, 0x100247add\nmov     [rbx+560h], cl                                                 ; +0xd0, 0x100247ae0\ntest    al, al                                                         ; +0xd6, 0x100247ae6\njnz     short loc_100247AF3                                            ; +0xd8, 0x100247ae8\njmp     short loc_100247AFA                                            ; +0xda, 0x100247aea\nmov     byte ptr [rbx+560h], 0                                         ; +0xdc, 0x100247aec\nmov     byte ptr [rbx+306h], 0                                         ; +0xe3, 0x100247af3\nmov     ecx, [rbx+404h]                                                ; +0xea, 0x100247afa\ncmp     ecx, 73Fh                                                      ; +0xf0, 0x100247b00\nsetz    byte ptr [rbx+561h]                                            ; +0xf6, 0x100247b06\nmov     al, 1                                                          ; +0xfd, 0x100247b0d\ncmp     ecx, 0B4Bh                                                     ; +0xff, 0x100247b0f\njg      short loc_100247B36                                            ; +0x105, 0x100247b15\nlea     edx, [rcx-72Fh]                                                ; +0x107, 0x100247b17\ncmp     edx, 4                                                         ; +0x10d, 0x100247b1d\njb      short loc_100247B41                                            ; +0x110, 0x100247b20\ncmp     ecx, 637h                                                      ; +0x112, 0x100247b22\njz      short loc_100247B41                                            ; +0x118, 0x100247b28\ncmp     ecx, 639h                                                      ; +0x11a, 0x100247b2a\njz      short loc_100247B41                                            ; +0x120, 0x100247b30\nxor     eax, eax                                                       ; +0x122, 0x100247b32\njmp     short loc_100247B41                                            ; +0x124, 0x100247b34\nadd     ecx, 0FFFFF4B4h                                                ; +0x126, 0x100247b36\ncmp     ecx, 2                                                         ; +0x12c, 0x100247b3c\njnb     short loc_100247B32                                            ; +0x12f, 0x100247b3f\nmov     [rbx+562h], al                                                 ; +0x131, 0x100247b41\nadd     rsp, 8                                                         ; +0x137, 0x100247b47\npop     rbx                                                            ; +0x13b, 0x100247b4b\npop     rbp                                                            ; +0x13c, 0x100247b4c\nretn                                                                   ; +0x13d, 0x100247b4d", "xrefs": ["SetupAnimSettingsPopup::updateAnimSettings @ 0x10006278a", "SetupAnimSettingsPopup::updateAnimSettings @ 0x1000627c2", "SetupAnimSettingsPopup::onClose @ 0x1000627fc", "SetupAnimSettingsPopup::onClose @ 0x100062832", "EnhancedGameObject::saveActiveColors @ 0x10069da5a"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}