{"type": "func", "start": 4296907732, "end": 4296907856, "name": "GJValueTween::step", "pseudocode": "// \n// GJValueTween::step from 0x1001d9bd4 to 0x1001d9c50 (124 bytes)\n// \n// 3 xrefs:\n// > GJGameState::updateTweenActions @ 0x1001d9db0\n// > GJShaderState::updateTweenActions @ 0x10026d880\n// > GJShaderState::timesyncShaderAction @ 0x10026d96c\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_duration; // s1\n  float m_deltaTime; // s2\n  float EasedValue; // s0\n  int m_easingType; // w0\n\n  if ( !a1->m_finished && !a1->m_disabled )\n  {\n    m_duration = a1->m_duration;\n    m_deltaTime = a1->m_deltaTime + a2;\n    a1->m_deltaTime = m_deltaTime;\n    EasedValue = m_deltaTime / m_duration;\n    if ( m_deltaTime >= m_duration )\n      EasedValue = 1.0;\n    m_easingType = a1->m_easingType;\n    if ( m_easingType >= 1 )\n    {\n      EasedValue = GameToolbox::getEasedValue(EasedValue, m_easingType, a1->m_easingRate);\n      m_duration = a1->m_duration;\n      m_deltaTime = a1->m_deltaTime;\n    }\n    a1->m_currentValue = a1->m_fromValue + (float)((float)(a1->m_toValue - a1->m_fromValue) * EasedValue);\n    a1->m_finished = m_deltaTime >= m_duration;\n  }\n}", "assembly": "; \n; GJValueTween::step from 0x1001d9bd4 to 0x1001d9c50 (124 bytes)\n; \n; 3 xrefs:\n; > GJGameState::updateTweenActions @ 0x1001d9db0\n; > GJShaderState::updateTweenActions @ 0x10026d880\n; > GJShaderState::timesyncShaderAction @ 0x10026d96c\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\nLDRB            W8, [X0,#0x1C]                                         ; +0x0, 0x1001d9bd4\nTBNZ            W8, #0, locret_1001D9C4C                               ; +0x4, 0x1001d9bd8\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x8, 0x1001d9bdc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0xc, 0x1001d9be0\nADD             X29, SP, #0x10                                         ; +0x10, 0x1001d9be4\nMOV             X19, X0                                                ; +0x14, 0x1001d9be8\nLDRB            W8, [X0,#0x1D]                                         ; +0x18, 0x1001d9bec\nTBNZ            W8, #0, loc_1001D9C44                                  ; +0x1c, 0x1001d9bf0\nLDP             S1, S2, [X19,#8]                                       ; +0x20, 0x1001d9bf4\nFADD            S2, S2, S0                                             ; +0x24, 0x1001d9bf8\nSTR             S2, [X19,#0xC]                                         ; +0x28, 0x1001d9bfc\nFDIV            S0, S2, S1                                             ; +0x2c, 0x1001d9c00\nFCMP            S2, S1                                                 ; +0x30, 0x1001d9c04\nFMOV            S3, #1.0                                               ; +0x34, 0x1001d9c08\nFCSEL           S0, S0, S3, LT                                         ; +0x38, 0x1001d9c0c\nLDR             W0, [X19,#0x14]                                        ; +0x3c, 0x1001d9c10\nCMP             W0, #1                                                 ; +0x40, 0x1001d9c14\nB.LT            loc_1001D9C28                                          ; +0x44, 0x1001d9c18\nLDR             S1, [X19,#0x18]                                        ; +0x48, 0x1001d9c1c\nBL              GameToolbox__getEasedValue                             ; +0x4c, 0x1001d9c20\nLDP             S1, S2, [X19,#8]                                       ; +0x50, 0x1001d9c24\nLDP             S3, S4, [X19]                                          ; +0x54, 0x1001d9c28\nFSUB            S4, S4, S3                                             ; +0x58, 0x1001d9c2c\nFMADD           S0, S4, S0, S3                                         ; +0x5c, 0x1001d9c30\nSTR             S0, [X19,#0x10]                                        ; +0x60, 0x1001d9c34\nFCMP            S2, S1                                                 ; +0x64, 0x1001d9c38\nCSET            W8, GE                                                 ; +0x68, 0x1001d9c3c\nSTRB            W8, [X19,#0x1C]                                        ; +0x6c, 0x1001d9c40\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x70, 0x1001d9c44\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x74, 0x1001d9c48\nRET                                                                    ; +0x78, 0x1001d9c4c", "xrefs": ["GJGameState::updateTweenActions @ 0x1001d9db0", "GJShaderState::updateTweenActions @ 0x10026d880", "GJShaderState::timesyncShaderAction @ 0x10026d96c"], "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"}