{"type": "func", "start": 4296144160, "end": 4296144263, "name": "GJBaseGameLayer::getEnterEasingValue", "pseudocode": "// \n// GJBaseGameLayer::getEnterEasingValue from 0x10011f520 to 0x10011f587 (103 bytes)\n// \n// 6 xrefs:\n// > PlayLayer::applyCustomEnterEffect @ 0x1000b840a\n// > PlayLayer::applyCustomEnterEffect @ 0x1000b8577\n// > PlayLayer::applyCustomEnterEffect @ 0x1000b8642\n// > PlayLayer::applyCustomEnterEffect @ 0x1000b874c\n// > PlayLayer::applyCustomEnterEffect @ 0x1000b87b6\n// > EnterEffectInstance::updateTransitions @ 0x1005d3ee9\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\n// local variable allocation has failed, the output may be wrong!\nfloat __fastcall GJBaseGameLayer::getEnterEasingValue(GJBaseGameLayer *a1, float a2, int a3, float a4, int a5)\n{\n  __m128 v5; // xmm1\n\n  if ( a5 != -1 )\n  {\n    if ( a5 == -2 )\n    {\n      return GameToolbox::getEasedValue(a2, a3, a4);\n    }\n    else\n    {\n      v5 = *(__m128 *)&a2;\n      v5.f32[0] = a2 * 100.0;\n      return (float)((float)((float)((float)(_mm_cvtepi32_ps(_mm_cvttps_epi32(v5)).f32[0] * -0.0099999998) + a2)\n                           * (float)(a1->m_enterEasingValues.__begin_[a5 + 1 + (int)(float)(a2 * 100.0)]\n                                   - a1->m_enterEasingValues.__begin_[a5 + (int)(float)(a2 * 100.0)]))\n                   * 100.0)\n           + a1->m_enterEasingValues.__begin_[a5 + (int)(float)(a2 * 100.0)];\n    }\n  }\n  return a2;\n}", "assembly": "; \n; GJBaseGameLayer::getEnterEasingValue from 0x10011f520 to 0x10011f587 (103 bytes)\n; \n; 6 xrefs:\n; > PlayLayer::applyCustomEnterEffect @ 0x1000b840a\n; > PlayLayer::applyCustomEnterEffect @ 0x1000b8577\n; > PlayLayer::applyCustomEnterEffect @ 0x1000b8642\n; > PlayLayer::applyCustomEnterEffect @ 0x1000b874c\n; > PlayLayer::applyCustomEnterEffect @ 0x1000b87b6\n; > EnterEffectInstance::updateTransitions @ 0x1005d3ee9\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    rbp                                                            ; +0x0, 0x10011f520\nmov     rbp, rsp                                                       ; +0x1, 0x10011f521\ncmp     edx, 0FFFFFFFFh                                                ; +0x4, 0x10011f524\njz      short loc_10011F585                                            ; +0x7, 0x10011f527\ncmp     edx, 0FFFFFFFEh                                                ; +0x9, 0x10011f529\njnz     short loc_10011F536                                            ; +0xc, 0x10011f52c\nmov     edi, esi                                                       ; +0xe, 0x10011f52e\npop     rbp                                                            ; +0x10, 0x10011f530\njmp     GameToolbox__getEasedValue                                     ; +0x11, 0x10011f531\nmovss   xmm2, cs:dword_100815014                                       ; +0x16, 0x10011f536\nmovaps  xmm1, xmm0                                                     ; +0x1e, 0x10011f53e\nmulss   xmm1, xmm2                                                     ; +0x21, 0x10011f541\ncvttss2si eax, xmm1                                                    ; +0x25, 0x10011f545\nadd     eax, edx                                                       ; +0x29, 0x10011f549\ncdqe                                                                   ; +0x2b, 0x10011f54b\nmov     rcx, [rdi+2ED0h]                                               ; +0x2d, 0x10011f54d\nmovss   xmm3, dword ptr [rcx+rax*4]                                    ; +0x34, 0x10011f554\nmovss   xmm4, dword ptr [rcx+rax*4+4]                                  ; +0x39, 0x10011f559\nsubss   xmm4, xmm3                                                     ; +0x3f, 0x10011f55f\ncvttps2dq xmm1, xmm1                                                   ; +0x43, 0x10011f563\ncvtdq2ps xmm1, xmm1                                                    ; +0x47, 0x10011f567\nmulss   xmm1, cs:dword_100816884                                       ; +0x4a, 0x10011f56a\naddss   xmm1, xmm0                                                     ; +0x52, 0x10011f572\nmulss   xmm1, xmm4                                                     ; +0x56, 0x10011f576\nmulss   xmm1, xmm2                                                     ; +0x5a, 0x10011f57a\naddss   xmm1, xmm3                                                     ; +0x5e, 0x10011f57e\nmovaps  xmm0, xmm1                                                     ; +0x62, 0x10011f582\npop     rbp                                                            ; +0x65, 0x10011f585\nretn                                                                   ; +0x66, 0x10011f586", "xrefs": ["PlayLayer::applyCustomEnterEffect @ 0x1000b840a", "PlayLayer::applyCustomEnterEffect @ 0x1000b8577", "PlayLayer::applyCustomEnterEffect @ 0x1000b8642", "PlayLayer::applyCustomEnterEffect @ 0x1000b874c", "PlayLayer::applyCustomEnterEffect @ 0x1000b87b6", "EnterEffectInstance::updateTransitions @ 0x1005d3ee9"], "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"}