{"type": "func", "start": 4295926544, "end": 4295927171, "name": "GJGameState::updateTweenActions", "pseudocode": "// \n// GJGameState::updateTweenActions from 0x1000ea310 to 0x1000ea583 (627 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::loadUpToPosition @ 0x10012c82f\n// > GJBaseGameLayer::update @ 0x100130712\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 GJGameState::updateTweenActions(__int64 a1, __m128 a2)\n{\n  __int64 v2; // rdx\n  __int64 *v4; // r14\n  __int64 v5; // r13\n  char v6; // al\n  __m128 v7; // xmm1\n  float v8; // xmm2_4\n  __int64 v9; // rdi\n  __int64 v10; // r13\n  __m128 v11; // kr00_16\n  void *v12; // rdi\n  void *__p; // [rsp+8h] [rbp-48h] BYREF\n  float v14; // [rsp+24h] [rbp-2Ch]\n\n  v14 = a2.f32[0];\n  v2 = *(_QWORD *)(a1 + 608);\n  if ( v2 )\n  {\n    v4 = (__int64 *)(a1 + 592);\n    while ( 2 )\n    {\n      v6 = *(_BYTE *)(v2 + 48);\n      if ( !*(_WORD *)(v2 + 48) )\n      {\n        v7 = (__m128)*(unsigned int *)(v2 + 32);\n        v7.f32[0] = v7.f32[0] + v14;\n        *(_DWORD *)(v2 + 32) = v7.i32[0];\n        v8 = *(float *)(v2 + 28);\n        a2 = (__m128)0x3F800000u;\n        if ( v7.f32[0] < v8 )\n        {\n          a2 = v7;\n          a2.f32[0] = v7.f32[0] / v8;\n        }\n        v9 = *(unsigned int *)(v2 + 40);\n        if ( (int)v9 > 0 )\n        {\n          v10 = v2;\n          *(double *)a2.i64 = GameToolbox::getEasedValue(v9, *(double *)a2.i64, *(float *)(v2 + 44));\n          v2 = v10;\n          v8 = *(float *)(v10 + 28);\n          v7.i32[0] = *(_DWORD *)(v10 + 32);\n        }\n        *(float *)(v2 + 36) = (float)((float)(*(float *)(v2 + 24) - *(float *)(v2 + 20)) * a2.f32[0])\n                            + *(float *)(v2 + 20);\n        v6 = v7.f32[0] >= v8;\n        *(_BYTE *)(v2 + 48) = v7.f32[0] >= v8;\n      }\n      v11 = a2;\n      a2 = (__m128)*(unsigned int *)(v2 + 36);\n      switch ( *(_DWORD *)(v2 + 16) )\n      {\n        case 1:\n          *(_DWORD *)(a1 + 568) = a2.i32[0];\n          if ( !v6 )\n            goto LABEL_3;\n          goto LABEL_46;\n        case 2:\n          *(_DWORD *)(a1 + 572) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 7:\n          *(_DWORD *)(a1 + 580) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 9:\n          *(_DWORD *)(a1 + 336) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0xA:\n          *(_DWORD *)(a1 + 56) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0xB:\n          *(_DWORD *)(a1 + 60) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0xC:\n          *(_DWORD *)(a1 + 72) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0xD:\n          *(_DWORD *)(a1 + 76) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0xE:\n          *(_DWORD *)a1 = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0xF:\n          *(_DWORD *)(a1 + 8) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0x10:\n          *(_DWORD *)(a1 + 12) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0x11:\n          *(_DWORD *)(a1 + 380) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0x12:\n          *(_DWORD *)(a1 + 216) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0x13:\n          *(_DWORD *)(a1 + 220) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0x14:\n          *(_DWORD *)(a1 + 276) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0x15:\n          *(_DWORD *)(a1 + 104) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0x16:\n          *(_DWORD *)(a1 + 108) = a2.i32[0];\n          if ( v6 )\n            goto LABEL_46;\n          goto LABEL_3;\n        case 0x19:\n          *(_DWORD *)(a1 + 588) = a2.i32[0];\n          goto LABEL_45;\n        default:\n          a2 = v11;\nLABEL_45:\n          if ( v6 )\n          {\nLABEL_46:\n            v5 = *(_QWORD *)v2;\n            sub_10001AE30((__int64)&__p, v4, (__int64 *)v2);\n            v12 = __p;\n            __p = nullptr;\n            if ( v12 )\n              operator delete(v12);\n          }\n          else\n          {\nLABEL_3:\n            v5 = *(_QWORD *)v2;\n          }\n          v2 = v5;\n          if ( v5 )\n            continue;\n          return;\n      }\n    }\n  }\n}", "assembly": "; \n; GJGameState::updateTweenActions from 0x1000ea310 to 0x1000ea583 (627 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::loadUpToPosition @ 0x10012c82f\n; > GJBaseGameLayer::update @ 0x100130712\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; \npush    rbp                                                            ; +0x0, 0x1000ea310\nmov     rbp, rsp                                                       ; +0x1, 0x1000ea311\npush    r15                                                            ; +0x4, 0x1000ea314\npush    r14                                                            ; +0x6, 0x1000ea316\npush    r13                                                            ; +0x8, 0x1000ea318\npush    r12                                                            ; +0xa, 0x1000ea31a\npush    rbx                                                            ; +0xc, 0x1000ea31c\nsub     rsp, 28h                                                       ; +0xd, 0x1000ea31d\nmovss   [rbp+var_2C], xmm0                                             ; +0x11, 0x1000ea321\nmov     rdx, [rdi+260h]                                                ; +0x16, 0x1000ea326\ntest    rdx, rdx                                                       ; +0x1d, 0x1000ea32d\njz      loc_1000EA574                                                  ; +0x20, 0x1000ea330\nmov     rbx, rdi                                                       ; +0x26, 0x1000ea336\nlea     r14, [rdi+250h]                                                ; +0x29, 0x1000ea339\nlea     r15, [rbp+__p]                                                 ; +0x30, 0x1000ea340\nlea     r12, jpt_1000EA3F7                                             ; +0x34, 0x1000ea344\njmp     short loc_1000EA35F                                            ; +0x3b, 0x1000ea34b\nalign 10h                                                              ; +0x3d, 0x1000ea34d\nmov     r13, [rdx]                                                     ; +0x40, 0x1000ea350\nmov     rdx, r13                                                       ; +0x43, 0x1000ea353\ntest    r13, r13                                                       ; +0x46, 0x1000ea356\njz      loc_1000EA574                                                  ; +0x49, 0x1000ea359\nmovzx   eax, byte ptr [rdx+30h]                                        ; +0x4f, 0x1000ea35f\ntest    al, al                                                         ; +0x53, 0x1000ea363\njnz     short loc_1000EA3DD                                            ; +0x55, 0x1000ea365\ncmp     byte ptr [rdx+31h], 0                                          ; +0x57, 0x1000ea367\njnz     short loc_1000EA3DD                                            ; +0x5b, 0x1000ea36b\nmovss   xmm1, dword ptr [rdx+20h]                                      ; +0x5d, 0x1000ea36d\naddss   xmm1, [rbp+var_2C]                                             ; +0x62, 0x1000ea372\nmovss   dword ptr [rdx+20h], xmm1                                      ; +0x67, 0x1000ea377\nmovss   xmm2, dword ptr [rdx+1Ch]                                      ; +0x6c, 0x1000ea37c\nucomiss xmm1, xmm2                                                     ; +0x71, 0x1000ea381\nmovss   xmm0, cs:alpha                                                 ; +0x74, 0x1000ea384\njnb     short loc_1000EA395                                            ; +0x7c, 0x1000ea38c\nmovaps  xmm0, xmm1                                                     ; +0x7e, 0x1000ea38e\ndivss   xmm0, xmm2                                                     ; +0x81, 0x1000ea391\nmov     edi, [rdx+28h]                                                 ; +0x85, 0x1000ea395\ntest    edi, edi                                                       ; +0x88, 0x1000ea398\njle     short loc_1000EA3B8                                            ; +0x8a, 0x1000ea39a\nmovss   xmm1, dword ptr [rdx+2Ch]                                      ; +0x8c, 0x1000ea39c\nmov     r13, rdx                                                       ; +0x91, 0x1000ea3a1\ncall    GameToolbox__getEasedValue                                     ; +0x94, 0x1000ea3a4\nmov     rdx, r13                                                       ; +0x99, 0x1000ea3a9\nmovss   xmm2, dword ptr [r13+1Ch]                                      ; +0x9c, 0x1000ea3ac\nmovss   xmm1, dword ptr [r13+20h]                                      ; +0xa2, 0x1000ea3b2\nmovss   xmm3, dword ptr [rdx+14h]                                      ; +0xa8, 0x1000ea3b8\nmovss   xmm4, dword ptr [rdx+18h]                                      ; +0xad, 0x1000ea3bd\nsubss   xmm4, xmm3                                                     ; +0xb2, 0x1000ea3c2\nmulss   xmm4, xmm0                                                     ; +0xb6, 0x1000ea3c6\naddss   xmm4, xmm3                                                     ; +0xba, 0x1000ea3ca\nmovss   dword ptr [rdx+24h], xmm4                                      ; +0xbe, 0x1000ea3ce\nucomiss xmm1, xmm2                                                     ; +0xc3, 0x1000ea3d3\nsetnb   al                                                             ; +0xc6, 0x1000ea3d6\nsetnb   byte ptr [rdx+30h]                                             ; +0xc9, 0x1000ea3d9\nmov     ecx, [rdx+10h]                                                 ; +0xcd, 0x1000ea3dd\ndec     ecx; switch 25 cases                                           ; +0xd0, 0x1000ea3e0\ncmp     ecx, 18h                                                       ; +0xd2, 0x1000ea3e2\nja      def_1000EA3F7; jumptable 00000001000EA3F7 default case, cases 3-6,8,23,24 ; +0xd5, 0x1000ea3e5\nmovss   xmm0, dword ptr [rdx+24h]                                      ; +0xdb, 0x1000ea3eb\nmovsxd  rcx, (jpt_1000EA3F7 - 1000EA584h)[r12+rcx*4]                   ; +0xe0, 0x1000ea3f0\nadd     rcx, r12                                                       ; +0xe4, 0x1000ea3f4\njmp     rcx; switch jump                                               ; +0xe7, 0x1000ea3f7\nmovss   dword ptr [rbx+238h], xmm0; jumptable 00000001000EA3F7 case 1  ; +0xe9, 0x1000ea3f9\ntest    al, al                                                         ; +0xf1, 0x1000ea401\njz      loc_1000EA350                                                  ; +0xf3, 0x1000ea403\njmp     loc_1000EA538                                                  ; +0xf9, 0x1000ea409\nmovss   dword ptr [rbx+0DCh], xmm0; jumptable 00000001000EA3F7 case 19 ; +0xfe, 0x1000ea40e\ntest    al, al                                                         ; +0x106, 0x1000ea416\njz      loc_1000EA350                                                  ; +0x108, 0x1000ea418\njmp     loc_1000EA538                                                  ; +0x10e, 0x1000ea41e\nmovss   dword ptr [rbx+0Ch], xmm0; jumptable 00000001000EA3F7 case 16  ; +0x113, 0x1000ea423\ntest    al, al                                                         ; +0x118, 0x1000ea428\njz      loc_1000EA350                                                  ; +0x11a, 0x1000ea42a\njmp     loc_1000EA538                                                  ; +0x120, 0x1000ea430\nmovss   dword ptr [rbx+38h], xmm0; jumptable 00000001000EA3F7 case 10  ; +0x125, 0x1000ea435\ntest    al, al                                                         ; +0x12a, 0x1000ea43a\njz      loc_1000EA350                                                  ; +0x12c, 0x1000ea43c\njmp     loc_1000EA538                                                  ; +0x132, 0x1000ea442\nmovss   dword ptr [rbx+0D8h], xmm0; jumptable 00000001000EA3F7 case 18 ; +0x137, 0x1000ea447\ntest    al, al                                                         ; +0x13f, 0x1000ea44f\njz      loc_1000EA350                                                  ; +0x141, 0x1000ea451\njmp     loc_1000EA538                                                  ; +0x147, 0x1000ea457\nmovss   dword ptr [rbx+23Ch], xmm0; jumptable 00000001000EA3F7 case 2  ; +0x14c, 0x1000ea45c\ntest    al, al                                                         ; +0x154, 0x1000ea464\njz      loc_1000EA350                                                  ; +0x156, 0x1000ea466\njmp     loc_1000EA538                                                  ; +0x15c, 0x1000ea46c\nmovss   dword ptr [rbx+3Ch], xmm0; jumptable 00000001000EA3F7 case 11  ; +0x161, 0x1000ea471\ntest    al, al                                                         ; +0x166, 0x1000ea476\njz      loc_1000EA350                                                  ; +0x168, 0x1000ea478\njmp     loc_1000EA538                                                  ; +0x16e, 0x1000ea47e\nmovss   dword ptr [rbx+17Ch], xmm0; jumptable 00000001000EA3F7 case 17 ; +0x173, 0x1000ea483\ntest    al, al                                                         ; +0x17b, 0x1000ea48b\njz      loc_1000EA350                                                  ; +0x17d, 0x1000ea48d\njmp     loc_1000EA538                                                  ; +0x183, 0x1000ea493\nmovss   dword ptr [rbx+150h], xmm0; jumptable 00000001000EA3F7 case 9  ; +0x188, 0x1000ea498\ntest    al, al                                                         ; +0x190, 0x1000ea4a0\njz      loc_1000EA350                                                  ; +0x192, 0x1000ea4a2\njmp     loc_1000EA538                                                  ; +0x198, 0x1000ea4a8\nmovss   dword ptr [rbx+244h], xmm0; jumptable 00000001000EA3F7 case 7  ; +0x19d, 0x1000ea4ad\ntest    al, al                                                         ; +0x1a5, 0x1000ea4b5\njz      loc_1000EA350                                                  ; +0x1a7, 0x1000ea4b7\njmp     short loc_1000EA538                                            ; +0x1ad, 0x1000ea4bd\nmovss   dword ptr [rbx+48h], xmm0; jumptable 00000001000EA3F7 case 12  ; +0x1af, 0x1000ea4bf\ntest    al, al                                                         ; +0x1b4, 0x1000ea4c4\njz      loc_1000EA350                                                  ; +0x1b6, 0x1000ea4c6\njmp     short loc_1000EA538                                            ; +0x1bc, 0x1000ea4cc\nmovss   dword ptr [rbx+4Ch], xmm0; jumptable 00000001000EA3F7 case 13  ; +0x1be, 0x1000ea4ce\ntest    al, al                                                         ; +0x1c3, 0x1000ea4d3\njz      loc_1000EA350                                                  ; +0x1c5, 0x1000ea4d5\njmp     short loc_1000EA538                                            ; +0x1cb, 0x1000ea4db\nmovss   dword ptr [rbx+114h], xmm0; jumptable 00000001000EA3F7 case 20 ; +0x1cd, 0x1000ea4dd\ntest    al, al                                                         ; +0x1d5, 0x1000ea4e5\njz      loc_1000EA350                                                  ; +0x1d7, 0x1000ea4e7\njmp     short loc_1000EA538                                            ; +0x1dd, 0x1000ea4ed\nmovss   dword ptr [rbx+68h], xmm0; jumptable 00000001000EA3F7 case 21  ; +0x1df, 0x1000ea4ef\ntest    al, al                                                         ; +0x1e4, 0x1000ea4f4\njz      loc_1000EA350                                                  ; +0x1e6, 0x1000ea4f6\njmp     short loc_1000EA538                                            ; +0x1ec, 0x1000ea4fc\nmovss   dword ptr [rbx+8], xmm0; jumptable 00000001000EA3F7 case 15    ; +0x1ee, 0x1000ea4fe\ntest    al, al                                                         ; +0x1f3, 0x1000ea503\njz      loc_1000EA350                                                  ; +0x1f5, 0x1000ea505\njmp     short loc_1000EA538                                            ; +0x1fb, 0x1000ea50b\nmovss   dword ptr [rbx], xmm0; jumptable 00000001000EA3F7 case 14      ; +0x1fd, 0x1000ea50d\ntest    al, al                                                         ; +0x201, 0x1000ea511\njz      loc_1000EA350                                                  ; +0x203, 0x1000ea513\njmp     short loc_1000EA538                                            ; +0x209, 0x1000ea519\nmovss   dword ptr [rbx+24Ch], xmm0; jumptable 00000001000EA3F7 case 25 ; +0x20b, 0x1000ea51b\nnop     word ptr [rax+rax+00000000h]                                   ; +0x213, 0x1000ea523\ntest    al, al; jumptable 00000001000EA3F7 default case, cases 3-6,8,23,24 ; +0x220, 0x1000ea530\njz      loc_1000EA350                                                  ; +0x222, 0x1000ea532\nmov     r13, [rdx]                                                     ; +0x228, 0x1000ea538\nmov     rdi, r15                                                       ; +0x22b, 0x1000ea53b\nmov     rsi, r14                                                       ; +0x22e, 0x1000ea53e\ncall    sub_10001AE30                                                  ; +0x231, 0x1000ea541\nmov     rdi, [rbp+__p]; __p                                            ; +0x236, 0x1000ea546\nmov     [rbp+__p], 0                                                   ; +0x23a, 0x1000ea54a\ntest    rdi, rdi                                                       ; +0x242, 0x1000ea552\njz      loc_1000EA353                                                  ; +0x245, 0x1000ea555\ncall    __ZdlPv; operator delete(void *)                               ; +0x24b, 0x1000ea55b\njmp     loc_1000EA353                                                  ; +0x250, 0x1000ea560\nmovss   dword ptr [rbx+6Ch], xmm0; jumptable 00000001000EA3F7 case 22  ; +0x255, 0x1000ea565\ntest    al, al                                                         ; +0x25a, 0x1000ea56a\njz      loc_1000EA350                                                  ; +0x25c, 0x1000ea56c\njmp     short loc_1000EA538                                            ; +0x262, 0x1000ea572\nadd     rsp, 28h                                                       ; +0x264, 0x1000ea574\npop     rbx                                                            ; +0x268, 0x1000ea578\npop     r12                                                            ; +0x269, 0x1000ea579\npop     r13                                                            ; +0x26b, 0x1000ea57b\npop     r14                                                            ; +0x26d, 0x1000ea57d\npop     r15                                                            ; +0x26f, 0x1000ea57f\npop     rbp                                                            ; +0x271, 0x1000ea581\nretn                                                                   ; +0x272, 0x1000ea582", "xrefs": ["GJBaseGameLayer::loadUpToPosition @ 0x10012c82f", "GJBaseGameLayer::update @ 0x100130712"], "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"}