{"type": "func", "start": 4295925792, "end": 4295925943, "name": "GJValueTween::step", "pseudocode": "// \n// GJValueTween::step from 0x1000ea020 to 0x1000ea0b7 (151 bytes)\n// \n// 3 xrefs:\n// > GJShaderState::updateTweenActions @ 0x1003b3464\n// > GJShaderState::timesyncShaderAction @ 0x1003b36a5\n// > ShaderLayer::update @ 0x1003b5474\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:21:06 +0000\n// \n\nvoid __fastcall GJValueTween::step(__int64 a1, double EasedValue)\n{\n  float v2; // xmm1_4\n  double v3; // xmm2_8\n  int v4; // eax\n\n  if ( !*(_BYTE *)(a1 + 28) && !*(_BYTE *)(a1 + 29) )\n  {\n    *(float *)&EasedValue = *(float *)&EasedValue + *(float *)(a1 + 12);\n    *(_DWORD *)(a1 + 12) = LODWORD(EasedValue);\n    v2 = *(float *)(a1 + 8);\n    if ( *(float *)&EasedValue >= v2 )\n    {\n      *(_QWORD *)&v3 = 1065353216;\n      v4 = *(_DWORD *)(a1 + 20);\n      if ( v4 <= 0 )\n      {\nLABEL_8:\n        *(float *)(a1 + 16) = (float)((float)(*(float *)(a1 + 4) - *(float *)a1) * *(float *)&v3) + *(float *)a1;\n        *(_BYTE *)(a1 + 28) = *(float *)&EasedValue >= v2;\n        return;\n      }\n    }\n    else\n    {\n      HIDWORD(v3) = HIDWORD(EasedValue);\n      *(float *)&v3 = *(float *)&EasedValue / v2;\n      v4 = *(_DWORD *)(a1 + 20);\n      if ( v4 <= 0 )\n        goto LABEL_8;\n    }\n    EasedValue = GameToolbox::getEasedValue((unsigned int)v4, v3, *(float *)(a1 + 24));\n    LODWORD(v3) = LODWORD(EasedValue);\n    v2 = *(float *)(a1 + 8);\n    LODWORD(EasedValue) = *(_DWORD *)(a1 + 12);\n    goto LABEL_8;\n  }\n}", "assembly": "; \n; GJValueTween::step from 0x1000ea020 to 0x1000ea0b7 (151 bytes)\n; \n; 3 xrefs:\n; > GJShaderState::updateTweenActions @ 0x1003b3464\n; > GJShaderState::timesyncShaderAction @ 0x1003b36a5\n; > ShaderLayer::update @ 0x1003b5474\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:21:06 +0000\n; \ncmp     byte ptr [rdi+1Ch], 0                                          ; +0x0, 0x1000ea020\njnz     locret_1000EA0B6                                               ; +0x4, 0x1000ea024\ncmp     byte ptr [rdi+1Dh], 0                                          ; +0xa, 0x1000ea02a\njnz     locret_1000EA0B6                                               ; +0xe, 0x1000ea02e\naddss   xmm0, dword ptr [rdi+0Ch]                                      ; +0x14, 0x1000ea034\nmovss   dword ptr [rdi+0Ch], xmm0                                      ; +0x19, 0x1000ea039\nmovss   xmm1, dword ptr [rdi+8]                                        ; +0x1e, 0x1000ea03e\nucomiss xmm0, xmm1                                                     ; +0x23, 0x1000ea043\njnb     short loc_1000EA058                                            ; +0x26, 0x1000ea046\nmovaps  xmm2, xmm0                                                     ; +0x28, 0x1000ea048\ndivss   xmm2, xmm1                                                     ; +0x2b, 0x1000ea04b\nmov     eax, [rdi+14h]                                                 ; +0x2f, 0x1000ea04f\ntest    eax, eax                                                       ; +0x32, 0x1000ea052\njg      short loc_1000EA067                                            ; +0x34, 0x1000ea054\njmp     short loc_1000EA095                                            ; +0x36, 0x1000ea056\nmovss   xmm2, cs:alpha                                                 ; +0x38, 0x1000ea058\nmov     eax, [rdi+14h]                                                 ; +0x40, 0x1000ea060\ntest    eax, eax                                                       ; +0x43, 0x1000ea063\njle     short loc_1000EA095                                            ; +0x45, 0x1000ea065\npush    rbp                                                            ; +0x47, 0x1000ea067\nmov     rbp, rsp                                                       ; +0x48, 0x1000ea068\npush    rbx                                                            ; +0x4b, 0x1000ea06b\npush    rax                                                            ; +0x4c, 0x1000ea06c\nmovss   xmm1, dword ptr [rdi+18h]                                      ; +0x4d, 0x1000ea06d\nmovaps  xmm0, xmm2                                                     ; +0x52, 0x1000ea072\nmov     rbx, rdi                                                       ; +0x55, 0x1000ea075\nmov     edi, eax                                                       ; +0x58, 0x1000ea078\ncall    GameToolbox__getEasedValue                                     ; +0x5a, 0x1000ea07a\nmov     rdi, rbx                                                       ; +0x5f, 0x1000ea07f\nmovaps  xmm2, xmm0                                                     ; +0x62, 0x1000ea082\nmovss   xmm1, dword ptr [rbx+8]                                        ; +0x65, 0x1000ea085\nmovss   xmm0, dword ptr [rbx+0Ch]                                      ; +0x6a, 0x1000ea08a\nadd     rsp, 8                                                         ; +0x6f, 0x1000ea08f\npop     rbx                                                            ; +0x73, 0x1000ea093\npop     rbp                                                            ; +0x74, 0x1000ea094\nmovss   xmm3, dword ptr [rdi]                                          ; +0x75, 0x1000ea095\nmovss   xmm4, dword ptr [rdi+4]                                        ; +0x79, 0x1000ea099\nsubss   xmm4, xmm3                                                     ; +0x7e, 0x1000ea09e\nmulss   xmm4, xmm2                                                     ; +0x82, 0x1000ea0a2\naddss   xmm4, xmm3                                                     ; +0x86, 0x1000ea0a6\nucomiss xmm0, xmm1                                                     ; +0x8a, 0x1000ea0aa\nmovss   dword ptr [rdi+10h], xmm4                                      ; +0x8d, 0x1000ea0ad\nsetnb   byte ptr [rdi+1Ch]                                             ; +0x92, 0x1000ea0b2\nretn                                                                   ; +0x96, 0x1000ea0b6", "xrefs": ["GJShaderState::updateTweenActions @ 0x1003b3464", "GJShaderState::timesyncShaderAction @ 0x1003b36a5", "ShaderLayer::update @ 0x1003b5474"], "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"}