{"type": "func", "start": 5370827536, "end": 5370827665, "name": "GJValueTween::step", "pseudocode": "// \n// GJValueTween::step from 0x140205310 to 0x140205391 (129 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::update @ 0x1402389b8\n// > GJShaderState::timesyncShaderAction @ 0x140481c65\n// > ShaderLayer::update @ 0x140482ad7\n// > <???> @ 0x1406ccc60\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 GJValueTween::step(GJValueTween *a1, float a2)\n{\n  float v3; // xmm6_4\n  bool v4; // cf\n  float EasedValue; // xmm3_4\n  int m_easingType; // edx\n  float v7; // xmm1_4\n\n  if ( !a1->m_finished && !a1->m_disabled )\n  {\n    v3 = a2 + a1->m_deltaTime;\n    v4 = v3 < a1->m_duration;\n    a1->m_deltaTime = v3;\n    if ( v4 )\n      EasedValue = v3 / a1->m_duration;\n    else\n      EasedValue = 1.0;\n    m_easingType = a1->m_easingType;\n    if ( m_easingType > 0 )\n      EasedValue = GameToolbox::getEasedValue(EasedValue, m_easingType, a1->m_easingRate);\n    v7 = (float)(a1->m_toValue - a1->m_fromValue) * EasedValue;\n    a1->m_finished = v3 >= a1->m_duration;\n    a1->m_currentValue = v7 + a1->m_fromValue;\n  }\n}", "assembly": "; \n; GJValueTween::step from 0x140205310 to 0x140205391 (129 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::update @ 0x1402389b8\n; > GJShaderState::timesyncShaderAction @ 0x140481c65\n; > ShaderLayer::update @ 0x140482ad7\n; > <???> @ 0x1406ccc60\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    rbx                                                            ; +0x0, 0x140205310\nsub     rsp, 30h                                                       ; +0x2, 0x140205312\ncmp     byte ptr [rcx+1Ch], 0                                          ; +0x6, 0x140205316\nmov     rbx, rcx                                                       ; +0xa, 0x14020531a\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xd, 0x14020531d\nmovaps  xmm6, xmm1                                                     ; +0x12, 0x140205322\njnz     short loc_140205386                                            ; +0x15, 0x140205325\ncmp     byte ptr [rcx+1Dh], 0                                          ; +0x17, 0x140205327\njnz     short loc_140205386                                            ; +0x1b, 0x14020532b\naddss   xmm6, dword ptr [rcx+0Ch]                                      ; +0x1d, 0x14020532d\ncomiss  xmm6, dword ptr [rcx+8]                                        ; +0x22, 0x140205332\nmovss   dword ptr [rcx+0Ch], xmm6                                      ; +0x26, 0x140205336\njb      short loc_140205347                                            ; +0x2b, 0x14020533b\nmovss   xmm3, cs:flt_140622C24                                         ; +0x2d, 0x14020533d\njmp     short loc_14020534F                                            ; +0x35, 0x140205345\nmovaps  xmm3, xmm6                                                     ; +0x37, 0x140205347\ndivss   xmm3, dword ptr [rcx+8]                                        ; +0x3a, 0x14020534a\nmov     edx, [rcx+14h]                                                 ; +0x3f, 0x14020534f\ntest    edx, edx                                                       ; +0x42, 0x140205352\njle     short loc_140205366                                            ; +0x44, 0x140205354\nmovss   xmm2, dword ptr [rcx+18h]                                      ; +0x46, 0x140205356\nmovaps  xmm0, xmm3                                                     ; +0x4b, 0x14020535b\ncall    GameToolbox__getEasedValue                                     ; +0x4e, 0x14020535e\nmovaps  xmm3, xmm0                                                     ; +0x53, 0x140205363\nmovss   xmm1, dword ptr [rbx+4]                                        ; +0x56, 0x140205366\nsubss   xmm1, dword ptr [rbx]                                          ; +0x5b, 0x14020536b\ncomiss  xmm6, dword ptr [rbx+8]                                        ; +0x5f, 0x14020536f\nmulss   xmm1, xmm3                                                     ; +0x63, 0x140205373\nsetnb   al                                                             ; +0x67, 0x140205377\nmov     [rbx+1Ch], al                                                  ; +0x6a, 0x14020537a\naddss   xmm1, dword ptr [rbx]                                          ; +0x6d, 0x14020537d\nmovss   dword ptr [rbx+10h], xmm1                                      ; +0x71, 0x140205381\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x76, 0x140205386\nadd     rsp, 30h                                                       ; +0x7b, 0x14020538b\npop     rbx                                                            ; +0x7f, 0x14020538f\nretn                                                                   ; +0x80, 0x140205390", "xrefs": ["GJBaseGameLayer::update @ 0x1402389b8", "GJShaderState::timesyncShaderAction @ 0x140481c65", "ShaderLayer::update @ 0x140482ad7", "<???> @ 0x1406ccc60"], "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"}