{"type": "func", "start": 5370970720, "end": 5370971099, "name": "GJBaseGameLayer::getEasedAreaValue", "pseudocode": "// \n// GJBaseGameLayer::getEasedAreaValue from 0x140228260 to 0x1402283db (379 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::processAreaTransformGroupAction @ 0x14022947d\n// > GJBaseGameLayer::processAreaRotateGroupAction @ 0x140229f31\n// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x14022a732\n// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x14022a79d\n// > <???> @ 0x1406cd968\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\nfloat 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; // rdx\n  float v7; // xmm4_4\n  int m_easeIndex; // r9d\n  std::_Vector_val<std::_Simple_types<int>>::pointer Myfirst; // r11\n  bool v11; // cl\n  int m_easingInBuffer; // ecx\n  float v13; // xmm0_4\n  int v14; // ecx\n  float v15; // xmm1_4\n  int v17; // ecx\n\n  m_gameObject = a3->m_gameObject;\n  v7 = a4;\n  if ( m_gameObject->m_easeOutEnabled )\n  {\n    if ( a4 <= 0.0099999998 || a4 >= 0.99000001 )\n    {\n      v11 = a5;\n    }\n    else\n    {\n      m_easeIndex = a3->m_easeIndex;\n      Myfirst = a3->m_easeIndices._Mypair._Myval2._Myfirst;\n      if ( Myfirst[a6] == m_easeIndex - 2 )\n      {\n        v11 = 0;\n        Myfirst[a6] = m_easeIndex;\n      }\n      else\n      {\n        v11 = a5;\n        if ( Myfirst[a6] == m_easeIndex - 1 )\n          v11 = 1;\n        Myfirst[a6] = m_easeIndex + v11;\n      }\n    }\n    if ( v11 )\n    {\n      m_easingInBuffer = m_gameObject->m_easingInBuffer;\n      if ( m_easingInBuffer != -1 )\n      {\n        v13 = a4;\n        if ( m_easingInBuffer != -2 )\n        {\nLABEL_13:\n          v14 = m_easingInBuffer - (int)(float)(v13 * -100.0);\n          v15 = (float)(int)(float)(a4 * 100.0) * 0.0099999998;\n          return (float)((float)((float)(a4 - v15)\n                               * (float)(a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14 + 1]\n                                       - a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14]))\n                       * 100.0)\n               + a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14];\n        }\n        return GameToolbox::getEasedValue(v13, m_gameObject->m_easingInType, m_gameObject->m_easingInRate);\n      }\n    }\n    else\n    {\n      m_easingInBuffer = m_gameObject->m_easingOutBuffer;\n      if ( m_easingInBuffer != -1 )\n      {\n        v13 = a4;\n        if ( m_easingInBuffer == -2 )\n          return GameToolbox::getEasedValue(a4, m_gameObject->m_easingOutType, m_gameObject->m_easingOutRate);\n        goto LABEL_13;\n      }\n    }\n  }\n  else\n  {\n    v17 = m_gameObject->m_easingInBuffer;\n    if ( v17 != -1 )\n    {\n      v13 = a4;\n      if ( v17 != -2 )\n      {\n        v14 = v17 - (int)(float)(a4 * -100.0);\n        v15 = (float)(int)(float)(a4 * 100.0) * 0.0099999998;\n        return (float)((float)((float)(a4 - v15)\n                             * (float)(a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14 + 1]\n                                     - a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14]))\n                     * 100.0)\n             + a1->m_enterEasingValues._Mypair._Myval2._Myfirst[v14];\n      }\n      return GameToolbox::getEasedValue(v13, m_gameObject->m_easingInType, m_gameObject->m_easingInRate);\n    }\n  }\n  return v7;\n}", "assembly": "; \n; GJBaseGameLayer::getEasedAreaValue from 0x140228260 to 0x1402283db (379 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::processAreaTransformGroupAction @ 0x14022947d\n; > GJBaseGameLayer::processAreaRotateGroupAction @ 0x140229f31\n; > GJBaseGameLayer::processAreaMoveGroupAction @ 0x14022a732\n; > GJBaseGameLayer::processAreaMoveGroupAction @ 0x14022a79d\n; > <???> @ 0x1406cd968\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    rdi                                                            ; +0x0, 0x140228260\nmov     rdx, [r8+0A0h]                                                 ; +0x2, 0x140228262\nmovaps  xmm4, xmm3                                                     ; +0x9, 0x140228269\nmov     rdi, rcx                                                       ; +0xc, 0x14022826c\ncmp     byte ptr [rdx+7C5h], 0                                         ; +0xf, 0x14022826f\njz      loc_140228359                                                  ; +0x16, 0x140228276\nmovss   xmm5, cs:dword_1406229AC                                       ; +0x1c, 0x14022827c\ncomiss  xmm4, xmm5                                                     ; +0x24, 0x140228284\njbe     short loc_1402282E4                                            ; +0x27, 0x140228287\nmovss   xmm0, cs:dword_140622C18                                       ; +0x29, 0x140228289\ncomiss  xmm0, xmm4                                                     ; +0x31, 0x140228291\njbe     short loc_1402282E4                                            ; +0x34, 0x140228294\nmov     r9d, [r8+0B8h]                                                 ; +0x36, 0x140228296\nmovsxd  r10, [rsp+8+arg_28]                                            ; +0x3d, 0x14022829d\nmov     r11, [r8+0C8h]                                                 ; +0x42, 0x1402282a2\nlea     eax, [r9-2]                                                    ; +0x49, 0x1402282a9\ncmp     [r11+r10*4], eax                                               ; +0x4d, 0x1402282ad\njnz     short loc_1402282C1                                            ; +0x51, 0x1402282b1\nxor     cl, cl                                                         ; +0x53, 0x1402282b3\nmovzx   eax, cl                                                        ; +0x55, 0x1402282b5\nadd     eax, r9d                                                       ; +0x58, 0x1402282b8\nmov     [r11+r10*4], eax                                               ; +0x5b, 0x1402282bb\njmp     short loc_1402282E9                                            ; +0x5f, 0x1402282bf\nmovzx   ecx, [rsp+8+arg_20]                                            ; +0x61, 0x1402282c1\nlea     eax, [r9-1]                                                    ; +0x66, 0x1402282c6\ncmp     [r11+r10*4], eax                                               ; +0x6a, 0x1402282ca\nmov     r8d, 1                                                         ; +0x6e, 0x1402282ce\ncmovz   ecx, r8d                                                       ; +0x74, 0x1402282d4\nmovzx   eax, cl                                                        ; +0x78, 0x1402282d8\nadd     eax, r9d                                                       ; +0x7b, 0x1402282db\nmov     [r11+r10*4], eax                                               ; +0x7e, 0x1402282de\njmp     short loc_1402282E9                                            ; +0x82, 0x1402282e2\nmovzx   ecx, [rsp+8+arg_20]                                            ; +0x84, 0x1402282e4\ntest    cl, cl                                                         ; +0x89, 0x1402282e9\njz      short loc_14022832E                                            ; +0x8b, 0x1402282eb\nmov     ecx, [rdx+798h]                                                ; +0x8d, 0x1402282ed\ncmp     ecx, 0FFFFFFFFh                                                ; +0x93, 0x1402282f3\njz      loc_1402283D6                                                  ; +0x96, 0x1402282f6\nmovaps  xmm0, xmm4                                                     ; +0x9c, 0x1402282fc\ncmp     ecx, 0FFFFFFFEh                                                ; +0x9f, 0x1402282ff\njz      short loc_14022836C                                            ; +0xa2, 0x140228302\nmulss   xmm0, cs:dword_1406239E8                                       ; +0xa4, 0x140228304\ncvttss2si eax, xmm0                                                    ; +0xac, 0x14022830c\nmovaps  xmm0, xmm4                                                     ; +0xb0, 0x140228310\nmulss   xmm0, cs:dword_1406232BC                                       ; +0xb3, 0x140228313\nsub     ecx, eax                                                       ; +0xbb, 0x14022831b\ncvttss2si eax, xmm0                                                    ; +0xbd, 0x14022831d\nmovd    xmm1, eax                                                      ; +0xc1, 0x140228321\ncvtdq2ps xmm1, xmm1                                                    ; +0xc5, 0x140228325\nmulss   xmm1, xmm5                                                     ; +0xc8, 0x140228328\njmp     short loc_1402283AC                                            ; +0xcc, 0x14022832c\nmov     ecx, [rdx+7A4h]                                                ; +0xce, 0x14022832e\ncmp     ecx, 0FFFFFFFFh                                                ; +0xd4, 0x140228334\njz      loc_1402283D6                                                  ; +0xd7, 0x140228337\nmovaps  xmm0, xmm4                                                     ; +0xdd, 0x14022833d\ncmp     ecx, 0FFFFFFFEh                                                ; +0xe0, 0x140228340\njnz     short loc_140228304                                            ; +0xe3, 0x140228343\nmovss   xmm2, dword ptr [rdx+7A0h]                                     ; +0xe5, 0x140228345\nmov     edx, [rdx+79Ch]                                                ; +0xed, 0x14022834d\npop     rdi                                                            ; +0xf3, 0x140228353\njmp     GameToolbox__getEasedValue                                     ; +0xf4, 0x140228354\nmov     ecx, [rdx+798h]                                                ; +0xf9, 0x140228359\ncmp     ecx, 0FFFFFFFFh                                                ; +0xff, 0x14022835f\njz      short loc_1402283D6                                            ; +0x102, 0x140228362\nmovaps  xmm0, xmm4                                                     ; +0x104, 0x140228364\ncmp     ecx, 0FFFFFFFEh                                                ; +0x107, 0x140228367\njnz     short loc_140228380                                            ; +0x10a, 0x14022836a\nmovss   xmm2, dword ptr [rdx+794h]                                     ; +0x10c, 0x14022836c\nmov     edx, [rdx+790h]                                                ; +0x114, 0x140228374\npop     rdi                                                            ; +0x11a, 0x14022837a\njmp     GameToolbox__getEasedValue                                     ; +0x11b, 0x14022837b\nmulss   xmm0, cs:dword_1406239E8                                       ; +0x120, 0x140228380\ncvttss2si eax, xmm0                                                    ; +0x128, 0x140228388\nmovaps  xmm0, xmm4                                                     ; +0x12c, 0x14022838c\nmulss   xmm0, cs:dword_1406232BC                                       ; +0x12f, 0x14022838f\nsub     ecx, eax                                                       ; +0x137, 0x140228397\ncvttss2si eax, xmm0                                                    ; +0x139, 0x140228399\nmovd    xmm1, eax                                                      ; +0x13d, 0x14022839d\ncvtdq2ps xmm1, xmm1                                                    ; +0x141, 0x1402283a1\nmulss   xmm1, cs:dword_1406229AC                                       ; +0x144, 0x1402283a4\nmovsxd  rdx, ecx                                                       ; +0x14c, 0x1402283ac\nsubss   xmm4, xmm1                                                     ; +0x14f, 0x1402283af\nmov     rcx, [rdi+3020h]                                               ; +0x153, 0x1402283b3\nmovss   xmm0, dword ptr [rcx+rdx*4+4]                                  ; +0x15a, 0x1402283ba\nsubss   xmm0, dword ptr [rcx+rdx*4]                                    ; +0x160, 0x1402283c0\nmulss   xmm4, xmm0                                                     ; +0x165, 0x1402283c5\nmulss   xmm4, cs:dword_1406232BC                                       ; +0x169, 0x1402283c9\naddss   xmm4, dword ptr [rcx+rdx*4]                                    ; +0x171, 0x1402283d1\nmovaps  xmm0, xmm4                                                     ; +0x176, 0x1402283d6\npop     rdi                                                            ; +0x179, 0x1402283d9\nretn                                                                   ; +0x17a, 0x1402283da", "xrefs": ["GJBaseGameLayer::processAreaTransformGroupAction @ 0x14022947d", "GJBaseGameLayer::processAreaRotateGroupAction @ 0x140229f31", "GJBaseGameLayer::processAreaMoveGroupAction @ 0x14022a732", "GJBaseGameLayer::processAreaMoveGroupAction @ 0x14022a79d", "<???> @ 0x1406cd968"], "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"}