{"type": "func", "start": 5369992976, "end": 5369993522, "name": "EnterEffectInstance::updateTransitions", "pseudocode": "// \n// EnterEffectInstance::updateTransitions from 0x140139710 to 0x140139932 (546 bytes)\n// \n// 7 xrefs:\n// > GJBaseGameLayer::updateEnterEffects @ 0x14020e9b9\n// > GJBaseGameLayer::updateEnterEffects @ 0x14020e9f9\n// > GJBaseGameLayer::processAreaEffects @ 0x1402285ce\n// > <???> @ 0x140671600\n// > <???> @ 0x140671610\n// > <???> @ 0x1406ca0d4\n// > <???> @ 0x1406ca0e0\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 EnterEffectInstance::updateTransitions(EnterEffectInstance *a1, float a2, GJBaseGameLayer *a3)\n{\n  std::_Tree_node<std::pair<const int, EnterEffectAnimValue>, void *>::_Nodeptr Left; // rbx\n  float v6; // xmm3_4\n  float m_duration; // xmm0_4\n  std::_Tree_node<std::pair<const int, EnterEffectAnimValue>, void *>::_Nodeptr v8; // rax\n  __int64 *v9; // rdx\n  std::_Tree_node<std::pair<const int, EnterEffectAnimValue>, void *>::_Nodeptr k; // rax\n  std::_Tree_node<std::pair<const int, EnterEffectAnimValue>, void *> *v11; // rcx\n  int m_easingBuffer; // ecx\n  float EasedValue; // xmm3_4\n  std::_Tree_node<std::pair<const int, EnterEffectAnimValue>, void *>::_Nodeptr Right; // rcx\n  std::_Tree_node<std::pair<const int, EnterEffectAnimValue>, void *>::_Nodeptr i; // rax\n  std::_Tree_node<std::pair<const int, EnterEffectAnimValue>, void *> *j; // rcx\n\n  Left = a1->m_enterEffectAnimMap._Mypair._Myval2._Myval2._Myhead->_Left;\n  while ( Left != a1->m_enterEffectAnimMap._Mypair._Myval2._Myval2._Myhead )\n  {\n    v6 = a2 + Left->_Myval.second.m_elapsed;\n    Left->_Myval.second.m_elapsed = v6;\n    m_duration = Left->_Myval.second.m_duration;\n    if ( v6 < m_duration )\n    {\n      m_easingBuffer = Left->_Myval.second.m_easingBuffer;\n      EasedValue = v6 / m_duration;\n      if ( m_easingBuffer != -1 )\n      {\n        if ( m_easingBuffer == -2 )\n          EasedValue = GameToolbox::getEasedValue(\n                         EasedValue,\n                         Left->_Myval.second.m_easingType,\n                         Left->_Myval.second.m_easingRate);\n        else\n          EasedValue = (float)((float)((float)(EasedValue\n                                             - (float)((float)(int)(float)(EasedValue * 100.0) * 0.0099999998))\n                                     * (float)(a3->m_enterEasingValues._Mypair._Myval2._Myfirst[m_easingBuffer\n                                                                                              - (int)(float)(EasedValue * -100.0)\n                                                                                              + 1]\n                                             - a3->m_enterEasingValues._Mypair._Myval2._Myfirst[m_easingBuffer\n                                                                                              - (int)(float)(EasedValue * -100.0)]))\n                             * 100.0)\n                     + a3->m_enterEasingValues._Mypair._Myval2._Myfirst[m_easingBuffer\n                                                                      - (int)(float)(EasedValue * -100.0)];\n      }\n      EnterEffectInstance::setValue(\n        a1,\n        Left->_Myval.second.m_key,\n        (float)((float)(Left->_Myval.second.m_distance - Left->_Myval.second.m_value) * EasedValue)\n      + Left->_Myval.second.m_value);\n      Right = Left->_Right;\n      if ( Right->_Isnil )\n      {\n        for ( i = Left->_Parent; !i->_Isnil; i = i->_Parent )\n        {\n          if ( Left != i->_Right )\n            break;\n          Left = i;\n        }\n        Left = i;\n      }\n      else\n      {\n        Left = Left->_Right;\n        for ( j = Right->_Left; !j->_Isnil; j = j->_Left )\n          Left = j;\n      }\n    }\n    else\n    {\n      EnterEffectInstance::setValue(a1, Left->_Myval.second.m_key, Left->_Myval.second.m_distance);\n      v8 = Left->_Right;\n      v9 = (__int64 *)Left;\n      if ( v8->_Isnil )\n      {\n        for ( k = Left->_Parent; !k->_Isnil; k = k->_Parent )\n        {\n          if ( Left != k->_Right )\n            break;\n          Left = k;\n        }\n        Left = k;\n        sub_14005F190((__int64)a1, v9);\n      }\n      else\n      {\n        v11 = v8->_Left;\n        for ( Left = Left->_Right; !v11->_Isnil; v11 = v11->_Left )\n          Left = v11;\n        sub_14005F190((__int64)a1, v9);\n      }\n    }\n  }\n  a1->m_hsvValue.h = a1->m_hue;\n  a1->m_hsvValue.s = a1->m_saturation;\n  a1->m_hsvValue.v = a1->m_value;\n}", "assembly": "; \n; EnterEffectInstance::updateTransitions from 0x140139710 to 0x140139932 (546 bytes)\n; \n; 7 xrefs:\n; > GJBaseGameLayer::updateEnterEffects @ 0x14020e9b9\n; > GJBaseGameLayer::updateEnterEffects @ 0x14020e9f9\n; > GJBaseGameLayer::processAreaEffects @ 0x1402285ce\n; > <???> @ 0x140671600\n; > <???> @ 0x140671610\n; > <???> @ 0x1406ca0d4\n; > <???> @ 0x1406ca0e0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140139710\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140139715\npush    rdi                                                            ; +0xa, 0x14013971a\nsub     rsp, 60h                                                       ; +0xb, 0x14013971b\nmov     rax, [rcx]                                                     ; +0xf, 0x14013971f\nmov     rsi, r8                                                        ; +0x12, 0x140139722\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0x15, 0x140139725\nmov     rdi, rcx                                                       ; +0x1a, 0x14013972a\nmovaps  xmm6, xmm1                                                     ; +0x1d, 0x14013972d\nmov     rbx, [rax]                                                     ; +0x20, 0x140139730\ncmp     rbx, rax                                                       ; +0x23, 0x140139733\njz      loc_1401398F9                                                  ; +0x26, 0x140139736\nmovaps  [rsp+68h+var_28], xmm7                                         ; +0x2c, 0x14013973c\nmovss   xmm7, cs:dword_1406232BC                                       ; +0x31, 0x140139741\nmovaps  [rsp+68h+var_38], xmm8                                         ; +0x39, 0x140139749\nmovss   xmm8, cs:dword_1406239E8                                       ; +0x3f, 0x14013974f\nmovaps  [rsp+68h+var_48], xmm9                                         ; +0x48, 0x140139758\nmovss   xmm9, cs:dword_1406229AC                                       ; +0x4e, 0x14013975e\nnop     word ptr [rax+rax+00000000h]                                   ; +0x57, 0x140139767\nmovaps  xmm3, xmm6                                                     ; +0x60, 0x140139770\naddss   xmm3, dword ptr [rbx+30h]                                      ; +0x63, 0x140139773\nmovss   dword ptr [rbx+30h], xmm3                                      ; +0x68, 0x140139778\nmovss   xmm0, dword ptr [rbx+2Ch]                                      ; +0x6d, 0x14013977d\ncomiss  xmm3, xmm0                                                     ; +0x72, 0x140139782\njb      short loc_1401397FC                                            ; +0x75, 0x140139785\nmovss   xmm2, dword ptr [rbx+28h]                                      ; +0x77, 0x140139787\nmov     rcx, rdi                                                       ; +0x7c, 0x14013978c\nmov     edx, [rbx+20h]                                                 ; +0x7f, 0x14013978f\ncall    EnterEffectInstance__setValue                                  ; +0x82, 0x140139792\nmov     rax, [rbx+10h]                                                 ; +0x87, 0x140139797\nmov     rdx, rbx                                                       ; +0x8b, 0x14013979b\ncmp     byte ptr [rax+19h], 0                                          ; +0x8e, 0x14013979e\njz      short loc_1401397D3                                            ; +0x92, 0x1401397a2\nmov     rax, [rbx+8]                                                   ; +0x94, 0x1401397a4\ncmp     byte ptr [rax+19h], 0                                          ; +0x98, 0x1401397a8\njnz     short loc_1401397C3                                            ; +0x9c, 0x1401397ac\nxchg    ax, ax                                                         ; +0x9e, 0x1401397ae\ncmp     rbx, [rax+10h]                                                 ; +0xa0, 0x1401397b0\njnz     short loc_1401397C3                                            ; +0xa4, 0x1401397b4\nmov     rbx, rax                                                       ; +0xa6, 0x1401397b6\nmov     rax, [rax+8]                                                   ; +0xa9, 0x1401397b9\ncmp     byte ptr [rax+19h], 0                                          ; +0xad, 0x1401397bd\njz      short loc_1401397B0                                            ; +0xb1, 0x1401397c1\nmov     rcx, rdi                                                       ; +0xb3, 0x1401397c3\nmov     rbx, rax                                                       ; +0xb6, 0x1401397c6\ncall    sub_14005F190                                                  ; +0xb9, 0x1401397c9\njmp     loc_1401398DF                                                  ; +0xbe, 0x1401397ce\nmov     rcx, [rax]                                                     ; +0xc3, 0x1401397d3\nmov     rbx, rax                                                       ; +0xc6, 0x1401397d6\ncmp     byte ptr [rcx+19h], 0                                          ; +0xc9, 0x1401397d9\njnz     short loc_1401397EF                                            ; +0xcd, 0x1401397dd\nnop                                                                    ; +0xcf, 0x1401397df\nmov     rax, [rcx]                                                     ; +0xd0, 0x1401397e0\nmov     rbx, rcx                                                       ; +0xd3, 0x1401397e3\nmov     rcx, rax                                                       ; +0xd6, 0x1401397e6\ncmp     byte ptr [rax+19h], 0                                          ; +0xd9, 0x1401397e9\njz      short loc_1401397E0                                            ; +0xdd, 0x1401397ed\nmov     rcx, rdi                                                       ; +0xdf, 0x1401397ef\ncall    sub_14005F190                                                  ; +0xe2, 0x1401397f2\njmp     loc_1401398DF                                                  ; +0xe7, 0x1401397f7\nmov     ecx, [rbx+3Ch]                                                 ; +0xec, 0x1401397fc\ndivss   xmm3, xmm0                                                     ; +0xef, 0x1401397ff\ncmp     ecx, 0FFFFFFFFh                                                ; +0xf3, 0x140139803\njz      short loc_14013986A                                            ; +0xf6, 0x140139806\nmovaps  xmm0, xmm3                                                     ; +0xf8, 0x140139808\ncmp     ecx, 0FFFFFFFEh                                                ; +0xfb, 0x14013980b\njnz     short loc_140139822                                            ; +0xfe, 0x14013980e\nmovss   xmm2, dword ptr [rbx+38h]                                      ; +0x100, 0x140139810\nmov     edx, [rbx+34h]                                                 ; +0x105, 0x140139815\ncall    GameToolbox__getEasedValue                                     ; +0x108, 0x140139818\nmovaps  xmm3, xmm0                                                     ; +0x10d, 0x14013981d\njmp     short loc_14013986A                                            ; +0x110, 0x140139820\nmulss   xmm0, xmm8                                                     ; +0x112, 0x140139822\ncvttss2si eax, xmm0                                                    ; +0x117, 0x140139827\nmovaps  xmm0, xmm3                                                     ; +0x11b, 0x14013982b\nmulss   xmm0, xmm7                                                     ; +0x11e, 0x14013982e\nsub     ecx, eax                                                       ; +0x122, 0x140139832\nmovsxd  rdx, ecx                                                       ; +0x124, 0x140139834\nmov     rcx, [rsi+3020h]                                               ; +0x127, 0x140139837\ncvttss2si eax, xmm0                                                    ; +0x12e, 0x14013983e\nmovss   xmm0, dword ptr [rcx+rdx*4+4]                                  ; +0x132, 0x140139842\nsubss   xmm0, dword ptr [rcx+rdx*4]                                    ; +0x138, 0x140139848\nmovd    xmm1, eax                                                      ; +0x13d, 0x14013984d\ncvtdq2ps xmm1, xmm1                                                    ; +0x141, 0x140139851\nmulss   xmm1, xmm9                                                     ; +0x144, 0x140139854\nsubss   xmm3, xmm1                                                     ; +0x149, 0x140139859\nmulss   xmm3, xmm0                                                     ; +0x14d, 0x14013985d\nmulss   xmm3, xmm7                                                     ; +0x151, 0x140139861\naddss   xmm3, dword ptr [rcx+rdx*4]                                    ; +0x155, 0x140139865\nmovss   xmm2, dword ptr [rbx+28h]                                      ; +0x15a, 0x14013986a\nmov     rcx, rdi                                                       ; +0x15f, 0x14013986f\nsubss   xmm2, dword ptr [rbx+24h]                                      ; +0x162, 0x140139872\nmov     edx, [rbx+20h]                                                 ; +0x167, 0x140139877\nmulss   xmm2, xmm3                                                     ; +0x16a, 0x14013987a\naddss   xmm2, dword ptr [rbx+24h]                                      ; +0x16e, 0x14013987e\ncall    EnterEffectInstance__setValue                                  ; +0x173, 0x140139883\nmov     rcx, [rbx+10h]                                                 ; +0x178, 0x140139888\ncmp     byte ptr [rcx+19h], 0                                          ; +0x17c, 0x14013988c\njz      short loc_1401398B8                                            ; +0x180, 0x140139890\nmov     rax, [rbx+8]                                                   ; +0x182, 0x140139892\ncmp     byte ptr [rax+19h], 0                                          ; +0x186, 0x140139896\njnz     short loc_1401398B3                                            ; +0x18a, 0x14013989a\nnop     dword ptr [rax+00h]                                            ; +0x18c, 0x14013989c\ncmp     rbx, [rax+10h]                                                 ; +0x190, 0x1401398a0\njnz     short loc_1401398B3                                            ; +0x194, 0x1401398a4\nmov     rbx, rax                                                       ; +0x196, 0x1401398a6\nmov     rax, [rax+8]                                                   ; +0x199, 0x1401398a9\ncmp     byte ptr [rax+19h], 0                                          ; +0x19d, 0x1401398ad\njz      short loc_1401398A0                                            ; +0x1a1, 0x1401398b1\nmov     rbx, rax                                                       ; +0x1a3, 0x1401398b3\njmp     short loc_1401398DF                                            ; +0x1a6, 0x1401398b6\nmov     rbx, rcx                                                       ; +0x1a8, 0x1401398b8\nmov     rcx, [rcx]                                                     ; +0x1ab, 0x1401398bb\ncmp     byte ptr [rcx+19h], 0                                          ; +0x1ae, 0x1401398be\njnz     short loc_1401398DF                                            ; +0x1b2, 0x1401398c2\nnop     dword ptr [rax+00h]                                            ; +0x1b4, 0x1401398c4\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x1b8, 0x1401398c8\nmov     rax, [rcx]                                                     ; +0x1c0, 0x1401398d0\nmov     rbx, rcx                                                       ; +0x1c3, 0x1401398d3\nmov     rcx, rax                                                       ; +0x1c6, 0x1401398d6\ncmp     byte ptr [rax+19h], 0                                          ; +0x1c9, 0x1401398d9\njz      short loc_1401398D0                                            ; +0x1cd, 0x1401398dd\ncmp     rbx, [rdi]                                                     ; +0x1cf, 0x1401398df\njnz     loc_140139770                                                  ; +0x1d2, 0x1401398e2\nmovaps  xmm9, [rsp+68h+var_48]                                         ; +0x1d8, 0x1401398e8\nmovaps  xmm8, [rsp+68h+var_38]                                         ; +0x1de, 0x1401398ee\nmovaps  xmm7, [rsp+68h+var_28]                                         ; +0x1e4, 0x1401398f4\nmov     eax, [rdi+90h]                                                 ; +0x1e9, 0x1401398f9\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x1ef, 0x1401398ff\nmov     rsi, [rsp+68h+arg_8]                                           ; +0x1f4, 0x140139904\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0x1f9, 0x140139909\nmov     [rdi+80h], eax                                                 ; +0x1fe, 0x14013990e\nmov     eax, [rdi+94h]                                                 ; +0x204, 0x140139914\nmov     [rdi+84h], eax                                                 ; +0x20a, 0x14013991a\nmov     eax, [rdi+98h]                                                 ; +0x210, 0x140139920\nmov     [rdi+88h], eax                                                 ; +0x216, 0x140139926\nadd     rsp, 60h                                                       ; +0x21c, 0x14013992c\npop     rdi                                                            ; +0x220, 0x140139930\nretn                                                                   ; +0x221, 0x140139931", "xrefs": ["GJBaseGameLayer::updateEnterEffects @ 0x14020e9b9", "GJBaseGameLayer::updateEnterEffects @ 0x14020e9f9", "GJBaseGameLayer::processAreaEffects @ 0x1402285ce", "<???> @ 0x140671600", "<???> @ 0x140671610", "<???> @ 0x1406ca0d4", "<???> @ 0x1406ca0e0"], "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"}