{"type": "func", "start": 5372055216, "end": 5372055595, "name": "GJBaseGameLayer::getEasedAreaValue", "pseudocode": "// \n// GJBaseGameLayer::getEasedAreaValue from 0x140330eb0 to 0x14033102b (379 bytes)\n// \n// 5 xrefs:\n// > GJBaseGameLayer::processAreaTransformGroupAction @ 0x1403320bd\n// > GJBaseGameLayer::processAreaRotateGroupAction @ 0x140332b71\n// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x140333382\n// > GJBaseGameLayer::processAreaMoveGroupAction @ 0x1403333ed\n// > <???> @ 0x14091f5ec\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 11:30:32 +0000\n// \n\n// local variable allocation has failed, the output may be wrong!\n__m128 __fastcall GJBaseGameLayer::getEasedAreaValue(\n        __int64 a1,\n        __int64 a2,\n        __int64 a3,\n        double a4,\n        unsigned __int8 a5,\n        int a6)\n{\n  __int64 v6; // rdx\n  __int128 v7; // xmm4\n  int v9; // r9d\n  __int64 v10; // r11\n  unsigned __int8 v11; // cl\n  int v12; // ecx\n  __m128 result; // xmm0\n  int v14; // ecx\n  float v15; // xmm1_4\n  int v16; // ecx\n\n  v6 = *(_QWORD *)(a3 + 160);\n  v7 = *(_OWORD *)&a4;\n  if ( *(_BYTE *)(v6 + 1989) )\n  {\n    if ( *(float *)&a4 <= 0.0099999998 || *(float *)&a4 >= 0.99000001 )\n    {\n      v11 = a5;\n    }\n    else\n    {\n      v9 = *(_DWORD *)(a3 + 184);\n      v10 = *(_QWORD *)(a3 + 200);\n      if ( *(_DWORD *)(v10 + 4LL * a6) == v9 - 2 )\n      {\n        v11 = 0;\n        *(_DWORD *)(v10 + 4LL * a6) = v9;\n      }\n      else\n      {\n        v11 = a5;\n        if ( *(_DWORD *)(v10 + 4LL * a6) == v9 - 1 )\n          v11 = 1;\n        *(_DWORD *)(v10 + 4LL * a6) = v9 + v11;\n      }\n    }\n    if ( v11 )\n    {\n      v12 = *(_DWORD *)(v6 + 1944);\n      if ( v12 != -1 )\n      {\n        result = *(__m128 *)&a4;\n        if ( v12 != -2 )\n        {\nLABEL_13:\n          v14 = v12 - (int)(float)(result.m128_f32[0] * -100.0);\n          v15 = (float)(int)(float)(*(float *)&a4 * 100.0) * 0.0099999998;\nLABEL_21:\n          *(float *)&v7 = (float)((float)((float)(*(float *)&a4 - v15)\n                                        * (float)(*(float *)(*(_QWORD *)(a1 + 12544) + 4LL * v14 + 4)\n                                                - *(float *)(*(_QWORD *)(a1 + 12544) + 4LL * v14)))\n                                * 100.0)\n                        + *(float *)(*(_QWORD *)(a1 + 12544) + 4LL * v14);\n          return (__m128)v7;\n        }\nLABEL_19:\n        GameToolbox::getEasedValue(result.m128_f32[0], *(_DWORD *)(v6 + 1936), *(float *)(v6 + 1940));\n        return result;\n      }\n    }\n    else\n    {\n      v12 = *(_DWORD *)(v6 + 1956);\n      if ( v12 != -1 )\n      {\n        result = *(__m128 *)&a4;\n        if ( v12 == -2 )\n        {\n          GameToolbox::getEasedValue(*(float *)&a4, *(_DWORD *)(v6 + 1948), *(float *)(v6 + 1952));\n          return result;\n        }\n        goto LABEL_13;\n      }\n    }\n  }\n  else\n  {\n    v16 = *(_DWORD *)(v6 + 1944);\n    if ( v16 != -1 )\n    {\n      result = *(__m128 *)&a4;\n      if ( v16 != -2 )\n      {\n        v14 = v16 - (int)(float)(*(float *)&a4 * -100.0);\n        v15 = (float)(int)(float)(*(float *)&a4 * 100.0) * 0.0099999998;\n        goto LABEL_21;\n      }\n      goto LABEL_19;\n    }\n  }\n  return (__m128)v7;\n}", "assembly": "; \n; GJBaseGameLayer::getEasedAreaValue from 0x140330eb0 to 0x14033102b (379 bytes)\n; \n; 5 xrefs:\n; > GJBaseGameLayer::processAreaTransformGroupAction @ 0x1403320bd\n; > GJBaseGameLayer::processAreaRotateGroupAction @ 0x140332b71\n; > GJBaseGameLayer::processAreaMoveGroupAction @ 0x140333382\n; > GJBaseGameLayer::processAreaMoveGroupAction @ 0x1403333ed\n; > <???> @ 0x14091f5ec\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 11:30:32 +0000\n; \npush    rdi                                                            ; +0x0, 0x140330eb0\nmov     rdx, [r8+0A0h]                                                 ; +0x2, 0x140330eb2\nmovaps  xmm4, xmm3                                                     ; +0x9, 0x140330eb9\nmov     rdi, rcx                                                       ; +0xc, 0x140330ebc\ncmp     byte ptr [rdx+7C5h], 0                                         ; +0xf, 0x140330ebf\njz      loc_140330FA9                                                  ; +0x16, 0x140330ec6\nmovss   xmm5, cs:dword_140834D9C                                       ; +0x1c, 0x140330ecc\ncomiss  xmm4, xmm5                                                     ; +0x24, 0x140330ed4\njbe     short loc_140330F34                                            ; +0x27, 0x140330ed7\nmovss   xmm0, cs:dword_140835074                                       ; +0x29, 0x140330ed9\ncomiss  xmm0, xmm4                                                     ; +0x31, 0x140330ee1\njbe     short loc_140330F34                                            ; +0x34, 0x140330ee4\nmov     r9d, [r8+0B8h]                                                 ; +0x36, 0x140330ee6\nmovsxd  r10, [rsp+8+arg_28]                                            ; +0x3d, 0x140330eed\nmov     r11, [r8+0C8h]                                                 ; +0x42, 0x140330ef2\nlea     eax, [r9-2]                                                    ; +0x49, 0x140330ef9\ncmp     [r11+r10*4], eax                                               ; +0x4d, 0x140330efd\njnz     short loc_140330F11                                            ; +0x51, 0x140330f01\nxor     cl, cl                                                         ; +0x53, 0x140330f03\nmovzx   eax, cl                                                        ; +0x55, 0x140330f05\nadd     eax, r9d                                                       ; +0x58, 0x140330f08\nmov     [r11+r10*4], eax                                               ; +0x5b, 0x140330f0b\njmp     short loc_140330F39                                            ; +0x5f, 0x140330f0f\nmovzx   ecx, [rsp+8+arg_20]                                            ; +0x61, 0x140330f11\nlea     eax, [r9-1]                                                    ; +0x66, 0x140330f16\ncmp     [r11+r10*4], eax                                               ; +0x6a, 0x140330f1a\nmov     r8d, 1                                                         ; +0x6e, 0x140330f1e\ncmovz   ecx, r8d                                                       ; +0x74, 0x140330f24\nmovzx   eax, cl                                                        ; +0x78, 0x140330f28\nadd     eax, r9d                                                       ; +0x7b, 0x140330f2b\nmov     [r11+r10*4], eax                                               ; +0x7e, 0x140330f2e\njmp     short loc_140330F39                                            ; +0x82, 0x140330f32\nmovzx   ecx, [rsp+8+arg_20]                                            ; +0x84, 0x140330f34\ntest    cl, cl                                                         ; +0x89, 0x140330f39\njz      short loc_140330F7E                                            ; +0x8b, 0x140330f3b\nmov     ecx, [rdx+798h]                                                ; +0x8d, 0x140330f3d\ncmp     ecx, 0FFFFFFFFh                                                ; +0x93, 0x140330f43\njz      loc_140331026                                                  ; +0x96, 0x140330f46\nmovaps  xmm0, xmm4                                                     ; +0x9c, 0x140330f4c\ncmp     ecx, 0FFFFFFFEh                                                ; +0x9f, 0x140330f4f\njz      short loc_140330FBC                                            ; +0xa2, 0x140330f52\nmulss   xmm0, cs:dword_140835FA8                                       ; +0xa4, 0x140330f54\ncvttss2si eax, xmm0                                                    ; +0xac, 0x140330f5c\nmovaps  xmm0, xmm4                                                     ; +0xb0, 0x140330f60\nmulss   xmm0, cs:dword_1408357B0                                       ; +0xb3, 0x140330f63\nsub     ecx, eax                                                       ; +0xbb, 0x140330f6b\ncvttss2si eax, xmm0                                                    ; +0xbd, 0x140330f6d\nmovd    xmm1, eax                                                      ; +0xc1, 0x140330f71\ncvtdq2ps xmm1, xmm1                                                    ; +0xc5, 0x140330f75\nmulss   xmm1, xmm5                                                     ; +0xc8, 0x140330f78\njmp     short loc_140330FFC                                            ; +0xcc, 0x140330f7c\nmov     ecx, [rdx+7A4h]                                                ; +0xce, 0x140330f7e\ncmp     ecx, 0FFFFFFFFh                                                ; +0xd4, 0x140330f84\njz      loc_140331026                                                  ; +0xd7, 0x140330f87\nmovaps  xmm0, xmm4                                                     ; +0xdd, 0x140330f8d\ncmp     ecx, 0FFFFFFFEh                                                ; +0xe0, 0x140330f90\njnz     short loc_140330F54                                            ; +0xe3, 0x140330f93\nmovss   xmm2, dword ptr [rdx+7A0h]                                     ; +0xe5, 0x140330f95\nmov     edx, [rdx+79Ch]                                                ; +0xed, 0x140330f9d\npop     rdi                                                            ; +0xf3, 0x140330fa3\njmp     GameToolbox__getEasedValue                                     ; +0xf4, 0x140330fa4\nmov     ecx, [rdx+798h]                                                ; +0xf9, 0x140330fa9\ncmp     ecx, 0FFFFFFFFh                                                ; +0xff, 0x140330faf\njz      short loc_140331026                                            ; +0x102, 0x140330fb2\nmovaps  xmm0, xmm4                                                     ; +0x104, 0x140330fb4\ncmp     ecx, 0FFFFFFFEh                                                ; +0x107, 0x140330fb7\njnz     short loc_140330FD0                                            ; +0x10a, 0x140330fba\nmovss   xmm2, dword ptr [rdx+794h]                                     ; +0x10c, 0x140330fbc\nmov     edx, [rdx+790h]                                                ; +0x114, 0x140330fc4\npop     rdi                                                            ; +0x11a, 0x140330fca\njmp     GameToolbox__getEasedValue                                     ; +0x11b, 0x140330fcb\nmulss   xmm0, cs:dword_140835FA8                                       ; +0x120, 0x140330fd0\ncvttss2si eax, xmm0                                                    ; +0x128, 0x140330fd8\nmovaps  xmm0, xmm4                                                     ; +0x12c, 0x140330fdc\nmulss   xmm0, cs:dword_1408357B0                                       ; +0x12f, 0x140330fdf\nsub     ecx, eax                                                       ; +0x137, 0x140330fe7\ncvttss2si eax, xmm0                                                    ; +0x139, 0x140330fe9\nmovd    xmm1, eax                                                      ; +0x13d, 0x140330fed\ncvtdq2ps xmm1, xmm1                                                    ; +0x141, 0x140330ff1\nmulss   xmm1, cs:dword_140834D9C                                       ; +0x144, 0x140330ff4\nmovsxd  rdx, ecx                                                       ; +0x14c, 0x140330ffc\nsubss   xmm4, xmm1                                                     ; +0x14f, 0x140330fff\nmov     rcx, [rdi+3100h]                                               ; +0x153, 0x140331003\nmovss   xmm0, dword ptr [rcx+rdx*4+4]                                  ; +0x15a, 0x14033100a\nsubss   xmm0, dword ptr [rcx+rdx*4]                                    ; +0x160, 0x140331010\nmulss   xmm4, xmm0                                                     ; +0x165, 0x140331015\nmulss   xmm4, cs:dword_1408357B0                                       ; +0x169, 0x140331019\naddss   xmm4, dword ptr [rcx+rdx*4]                                    ; +0x171, 0x140331021\nmovaps  xmm0, xmm4                                                     ; +0x176, 0x140331026\npop     rdi                                                            ; +0x179, 0x140331029\nretn                                                                   ; +0x17a, 0x14033102a", "xrefs": ["GJBaseGameLayer::processAreaTransformGroupAction @ 0x1403320bd", "GJBaseGameLayer::processAreaRotateGroupAction @ 0x140332b71", "GJBaseGameLayer::processAreaMoveGroupAction @ 0x140333382", "GJBaseGameLayer::processAreaMoveGroupAction @ 0x1403333ed", "<???> @ 0x14091f5ec"], "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"}