{"type": "func", "start": 4296073120, "end": 4296073271, "name": "GJValueTween::step", "pseudocode": "// \n// GJValueTween::step from 0x10010dfa0 to 0x10010e037 (151 bytes)\n// \n// 3 xrefs:\n// > GJShaderState::updateTweenActions @ 0x1003c9f84\n// > GJShaderState::timesyncShaderAction @ 0x1003ca1c5\n// > ShaderLayer::update @ 0x1003cbfa4\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 GJValueTween::step(GJValueTween *a1, float a2)\n{\n  float m_deltaTime; // xmm0_4\n  float m_duration; // xmm1_4\n  float EasedValue; // xmm2_4\n  int m_easingType; // eax\n\n  if ( !a1->m_finished && !a1->m_disabled )\n  {\n    m_deltaTime = a2 + a1->m_deltaTime;\n    a1->m_deltaTime = m_deltaTime;\n    m_duration = a1->m_duration;\n    if ( m_deltaTime >= m_duration )\n    {\n      EasedValue = 1.0;\n      m_easingType = a1->m_easingType;\n      if ( m_easingType <= 0 )\n      {\nLABEL_8:\n        a1->m_currentValue = (float)((float)(a1->m_toValue - a1->m_fromValue) * EasedValue) + a1->m_fromValue;\n        a1->m_finished = m_deltaTime >= m_duration;\n        return;\n      }\n    }\n    else\n    {\n      EasedValue = m_deltaTime / m_duration;\n      m_easingType = a1->m_easingType;\n      if ( m_easingType <= 0 )\n        goto LABEL_8;\n    }\n    EasedValue = GameToolbox::getEasedValue(EasedValue, m_easingType, a1->m_easingRate);\n    m_duration = a1->m_duration;\n    m_deltaTime = a1->m_deltaTime;\n    goto LABEL_8;\n  }\n}", "assembly": "; \n; GJValueTween::step from 0x10010dfa0 to 0x10010e037 (151 bytes)\n; \n; 3 xrefs:\n; > GJShaderState::updateTweenActions @ 0x1003c9f84\n; > GJShaderState::timesyncShaderAction @ 0x1003ca1c5\n; > ShaderLayer::update @ 0x1003cbfa4\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\ncmp     byte ptr [rdi+1Ch], 0                                          ; +0x0, 0x10010dfa0\njnz     locret_10010E036                                               ; +0x4, 0x10010dfa4\ncmp     byte ptr [rdi+1Dh], 0                                          ; +0xa, 0x10010dfaa\njnz     locret_10010E036                                               ; +0xe, 0x10010dfae\naddss   xmm0, dword ptr [rdi+0Ch]                                      ; +0x14, 0x10010dfb4\nmovss   dword ptr [rdi+0Ch], xmm0                                      ; +0x19, 0x10010dfb9\nmovss   xmm1, dword ptr [rdi+8]                                        ; +0x1e, 0x10010dfbe\nucomiss xmm0, xmm1                                                     ; +0x23, 0x10010dfc3\njnb     short loc_10010DFD8                                            ; +0x26, 0x10010dfc6\nmovaps  xmm2, xmm0                                                     ; +0x28, 0x10010dfc8\ndivss   xmm2, xmm1                                                     ; +0x2b, 0x10010dfcb\nmov     eax, [rdi+14h]                                                 ; +0x2f, 0x10010dfcf\ntest    eax, eax                                                       ; +0x32, 0x10010dfd2\njg      short loc_10010DFE7                                            ; +0x34, 0x10010dfd4\njmp     short loc_10010E015                                            ; +0x36, 0x10010dfd6\nmovss   xmm2, cs:alpha                                                 ; +0x38, 0x10010dfd8\nmov     eax, [rdi+14h]                                                 ; +0x40, 0x10010dfe0\ntest    eax, eax                                                       ; +0x43, 0x10010dfe3\njle     short loc_10010E015                                            ; +0x45, 0x10010dfe5\npush    rbp                                                            ; +0x47, 0x10010dfe7\nmov     rbp, rsp                                                       ; +0x48, 0x10010dfe8\npush    rbx                                                            ; +0x4b, 0x10010dfeb\npush    rax                                                            ; +0x4c, 0x10010dfec\nmovss   xmm1, dword ptr [rdi+18h]                                      ; +0x4d, 0x10010dfed\nmovaps  xmm0, xmm2                                                     ; +0x52, 0x10010dff2\nmov     rbx, rdi                                                       ; +0x55, 0x10010dff5\nmov     edi, eax                                                       ; +0x58, 0x10010dff8\ncall    GameToolbox__getEasedValue                                     ; +0x5a, 0x10010dffa\nmov     rdi, rbx                                                       ; +0x5f, 0x10010dfff\nmovaps  xmm2, xmm0                                                     ; +0x62, 0x10010e002\nmovss   xmm1, dword ptr [rbx+8]                                        ; +0x65, 0x10010e005\nmovss   xmm0, dword ptr [rbx+0Ch]                                      ; +0x6a, 0x10010e00a\nadd     rsp, 8                                                         ; +0x6f, 0x10010e00f\npop     rbx                                                            ; +0x73, 0x10010e013\npop     rbp                                                            ; +0x74, 0x10010e014\nmovss   xmm3, dword ptr [rdi]                                          ; +0x75, 0x10010e015\nmovss   xmm4, dword ptr [rdi+4]                                        ; +0x79, 0x10010e019\nsubss   xmm4, xmm3                                                     ; +0x7e, 0x10010e01e\nmulss   xmm4, xmm2                                                     ; +0x82, 0x10010e022\naddss   xmm4, xmm3                                                     ; +0x86, 0x10010e026\nucomiss xmm0, xmm1                                                     ; +0x8a, 0x10010e02a\nmovss   dword ptr [rdi+10h], xmm4                                      ; +0x8d, 0x10010e02d\nsetnb   byte ptr [rdi+1Ch]                                             ; +0x92, 0x10010e032\nretn                                                                   ; +0x96, 0x10010e036", "xrefs": ["GJShaderState::updateTweenActions @ 0x1003c9f84", "GJShaderState::timesyncShaderAction @ 0x1003ca1c5", "ShaderLayer::update @ 0x1003cbfa4"], "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"}