{"type": "func", "start": 4296293008, "end": 4296293268, "name": "GJBaseGameLayer::getEasedAreaValue", "pseudocode": "// \n// GJBaseGameLayer::getEasedAreaValue from 0x100143a90 to 0x100143b94 (260 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::processAreaTransformGroupAction @ 0x100141bb0\n// > GJBaseGameLayer::processAreaRotateGroupAction @ 0x100141e34\n// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x100142222\n// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x100142322\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::getEasedAreaValue(\n        GJBaseGameLayer *a1,\n        GameObject *a2,\n        EnterEffectInstance *a3,\n        float a4,\n        bool a5,\n        int a6)\n{\n  EnterEffectObject *m_gameObject; // rax\n  __int64 v7; // rsi\n  std::__vector_base<int>::pointer begin; // r8\n  int m_easeIndex; // edx\n  int m_easingOutBuffer; // ecx\n  __m128 v11; // xmm1\n\n  m_gameObject = a3->m_gameObject;\n  if ( !m_gameObject->m_easeOutEnabled )\n    goto LABEL_6;\n  if ( a4 > 0.0099999998 && a4 < 0.99000001 )\n  {\n    v7 = a6;\n    begin = a3->m_easeIndices.__begin_;\n    m_easeIndex = a3->m_easeIndex;\n    *(_DWORD *)&a5 = begin[v7] != m_easeIndex - 2 && (a5 || begin[v7] == m_easeIndex - 1);\n    begin[v7] = a5 + m_easeIndex;\n  }\n  if ( !a5 )\n  {\n    m_easingOutBuffer = m_gameObject->m_easingOutBuffer;\n    if ( m_easingOutBuffer != -1 )\n    {\n      if ( m_easingOutBuffer == -2 )\n        return GameToolbox::getEasedValue(a4, m_gameObject->m_easingOutType, m_gameObject->m_easingOutRate);\n      goto LABEL_13;\n    }\n  }\n  else\n  {\nLABEL_6:\n    m_easingOutBuffer = m_gameObject->m_easingInBuffer;\n    if ( m_easingOutBuffer != -1 )\n    {\n      if ( m_easingOutBuffer == -2 )\n        return GameToolbox::getEasedValue(a4, m_gameObject->m_easingInType, m_gameObject->m_easingInRate);\nLABEL_13:\n      v11 = *(__m128 *)&a4;\n      v11.f32[0] = a4 * 100.0;\n      return (float)((float)((float)((float)(_mm_cvtepi32_ps(_mm_cvttps_epi32(v11)).f32[0] * -0.0099999998) + a4)\n                           * (float)(a1->m_enterEasingValues.__begin_[(int)(float)(a4 * 100.0) + 1 + m_easingOutBuffer]\n                                   - a1->m_enterEasingValues.__begin_[(int)(float)(a4 * 100.0) + m_easingOutBuffer]))\n                   * 100.0)\n           + a1->m_enterEasingValues.__begin_[(int)(float)(a4 * 100.0) + m_easingOutBuffer];\n    }\n  }\n  return a4;\n}", "assembly": "; \n; GJBaseGameLayer::getEasedAreaValue from 0x100143a90 to 0x100143b94 (260 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::processAreaTransformGroupAction @ 0x100141bb0\n; > GJBaseGameLayer::processAreaRotateGroupAction @ 0x100141e34\n; > GJBaseGameLayer::processAreaMoveGroupAction @ 0x100142222\n; > GJBaseGameLayer::processAreaMoveGroupAction @ 0x100142322\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, 0x100143a90\nmov     rbp, rsp                                                       ; +0x1, 0x100143a91\nmov     rax, [rdx+0A8h]                                                ; +0x4, 0x100143a94\ncmp     byte ptr [rax+7B1h], 1                                         ; +0xb, 0x100143a9b\njnz     short loc_100143AF8                                            ; +0x12, 0x100143aa2\nucomiss xmm0, cs:dword_100815D1C                                       ; +0x14, 0x100143aa4\njbe     short loc_100143AF4                                            ; +0x1b, 0x100143aab\nmovss   xmm1, cs:dword_1008168B0                                       ; +0x1d, 0x100143aad\nucomiss xmm1, xmm0                                                     ; +0x25, 0x100143ab5\njbe     short loc_100143AF4                                            ; +0x28, 0x100143ab8\nmovsxd  rsi, r8d                                                       ; +0x2a, 0x100143aba\nmov     r8, [rdx+0D0h]                                                 ; +0x2d, 0x100143abd\nmov     r9d, [r8+rsi*4]                                                ; +0x34, 0x100143ac4\nmov     edx, [rdx+0C0h]                                                ; +0x38, 0x100143ac8\nlea     r10d, [rdx-2]                                                  ; +0x3e, 0x100143ace\ncmp     r9d, r10d                                                      ; +0x42, 0x100143ad2\nsetnz   r10b                                                           ; +0x45, 0x100143ad5\nlea     r11d, [rdx-1]                                                  ; +0x49, 0x100143ad9\ncmp     r9d, r11d                                                      ; +0x4d, 0x100143add\nsetz    r9b                                                            ; +0x50, 0x100143ae0\nor      r9b, cl                                                        ; +0x54, 0x100143ae4\nand     r9b, r10b                                                      ; +0x57, 0x100143ae7\nmovzx   ecx, r9b                                                       ; +0x5a, 0x100143aea\nadd     edx, ecx                                                       ; +0x5e, 0x100143aee\nmov     [r8+rsi*4], edx                                                ; +0x60, 0x100143af0\ntest    cl, cl                                                         ; +0x64, 0x100143af4\njz      short loc_100143B1C                                            ; +0x66, 0x100143af6\nmov     ecx, [rax+784h]                                                ; +0x68, 0x100143af8\ncmp     ecx, 0FFFFFFFFh                                                ; +0x6e, 0x100143afe\njz      short loc_100143B40                                            ; +0x71, 0x100143b01\ncmp     ecx, 0FFFFFFFEh                                                ; +0x73, 0x100143b03\njnz     short loc_100143B42                                            ; +0x76, 0x100143b06\nmovss   xmm1, dword ptr [rax+780h]                                     ; +0x78, 0x100143b08\nmov     edi, [rax+77Ch]                                                ; +0x80, 0x100143b10\npop     rbp                                                            ; +0x86, 0x100143b16\njmp     GameToolbox__getEasedValue                                     ; +0x87, 0x100143b17\nmov     ecx, [rax+790h]                                                ; +0x8c, 0x100143b1c\ncmp     ecx, 0FFFFFFFFh                                                ; +0x92, 0x100143b22\njz      short loc_100143B40                                            ; +0x95, 0x100143b25\ncmp     ecx, 0FFFFFFFEh                                                ; +0x97, 0x100143b27\njnz     short loc_100143B42                                            ; +0x9a, 0x100143b2a\nmovss   xmm1, dword ptr [rax+78Ch]                                     ; +0x9c, 0x100143b2c\nmov     edi, [rax+788h]                                                ; +0xa4, 0x100143b34\npop     rbp                                                            ; +0xaa, 0x100143b3a\njmp     GameToolbox__getEasedValue                                     ; +0xab, 0x100143b3b\npop     rbp                                                            ; +0xb0, 0x100143b40\nretn                                                                   ; +0xb1, 0x100143b41\nmovss   xmm2, cs:dword_100815014                                       ; +0xb2, 0x100143b42\nmovaps  xmm1, xmm0                                                     ; +0xba, 0x100143b4a\nmulss   xmm1, xmm2                                                     ; +0xbd, 0x100143b4d\ncvttss2si eax, xmm1                                                    ; +0xc1, 0x100143b51\nadd     ecx, eax                                                       ; +0xc5, 0x100143b55\nmovsxd  rax, ecx                                                       ; +0xc7, 0x100143b57\nmov     rcx, [rdi+2ED0h]                                               ; +0xca, 0x100143b5a\nmovss   xmm3, dword ptr [rcx+rax*4]                                    ; +0xd1, 0x100143b61\nmovss   xmm4, dword ptr [rcx+rax*4+4]                                  ; +0xd6, 0x100143b66\nsubss   xmm4, xmm3                                                     ; +0xdc, 0x100143b6c\ncvttps2dq xmm1, xmm1                                                   ; +0xe0, 0x100143b70\ncvtdq2ps xmm1, xmm1                                                    ; +0xe4, 0x100143b74\nmulss   xmm1, cs:dword_100816884                                       ; +0xe7, 0x100143b77\naddss   xmm1, xmm0                                                     ; +0xef, 0x100143b7f\nmulss   xmm1, xmm4                                                     ; +0xf3, 0x100143b83\nmulss   xmm1, xmm2                                                     ; +0xf7, 0x100143b87\naddss   xmm1, xmm3                                                     ; +0xfb, 0x100143b8b\nmovaps  xmm0, xmm1                                                     ; +0xff, 0x100143b8f\npop     rbp                                                            ; +0x102, 0x100143b92\nretn                                                                   ; +0x103, 0x100143b93", "xrefs": ["GJBaseGameLayer::processAreaTransformGroupAction @ 0x100141bb0", "GJBaseGameLayer::processAreaRotateGroupAction @ 0x100141e34", "GJBaseGameLayer::processAreaMoveGroupAction @ 0x100142222", "GJBaseGameLayer::processAreaMoveGroupAction @ 0x100142322"], "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"}