{"type": "func", "start": 4296073872, "end": 4296074499, "name": "GJGameState::updateTweenActions", "pseudocode": "// \n// GJGameState::updateTweenActions from 0x10010e290 to 0x10010e503 (627 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::update @ 0x100152904\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!\nvoid __fastcall GJGameState::updateTweenActions(GJGameState *a1, float EasedValue)\n{\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *>::__next_pointer next; // rdx\n  __int64 *p_m_tweenActions; // r14\n  __int64 v5; // r13\n  char v6; // al\n  __int128 next_low; // xmm1\n  float v8; // xmm2_4\n  __int128 v9; // xmm0\n  int v10; // edi\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *>::__next_pointer v11; // r13\n  __int128 v12; // kr00_16\n  void *v13; // rdi\n  void *__p; // [rsp+8h] [rbp-48h] BYREF\n  float v15; // [rsp+24h] [rbp-2Ch]\n\n  v15 = EasedValue;\n  next = a1->m_tweenActions.__table_.__p1_.__value_.__next_;\n  if ( next )\n  {\n    p_m_tweenActions = (__int64 *)&a1->m_tweenActions;\n    while ( 2 )\n    {\n      v6 = (char)next[6].__next_;\n      if ( !v6 && !BYTE1(next[6].__next_) )\n      {\n        next_low = LODWORD(next[4].__next_);\n        *(float *)&next_low = *(float *)&next_low + v15;\n        LODWORD(next[4].__next_) = next_low;\n        v8 = *((float *)&next[3].__next_ + 1);\n        *(_OWORD *)&EasedValue = 0x3F800000u;\n        if ( *(float *)&next_low < v8 )\n        {\n          v9 = next_low;\n          EasedValue = *(float *)&next_low / v8;\n        }\n        v10 = (int)next[5].__next_;\n        if ( v10 > 0 )\n        {\n          v11 = next;\n          EasedValue = GameToolbox::getEasedValue(EasedValue, v10, *((float *)&next[5].__next_ + 1));\n          next = v11;\n          v8 = *((float *)&v11[3].__next_ + 1);\n          LODWORD(next_low) = v11[4].__next_;\n        }\n        *((float *)&next[4].__next_ + 1) = (float)((float)(*(float *)&next[3].__next_ - *((float *)&next[2].__next_ + 1))\n                                                 * EasedValue)\n                                         + *((float *)&next[2].__next_ + 1);\n        v6 = *(float *)&next_low >= v8;\n        LOBYTE(next[6].__next_) = *(float *)&next_low >= v8;\n      }\n      v12 = *(_OWORD *)&EasedValue;\n      *(_OWORD *)&EasedValue = HIDWORD(next[4].__next_);\n      switch ( LODWORD(next[2].__next_) )\n      {\n        case 1:\n          a1->m_cameraPosition.x = EasedValue;\n          if ( !v6 )\n            goto LABEL_3;\n          goto LABEL_47;\n        case 2:\n          a1->m_cameraPosition.y = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 7:\n          a1->m_levelFlipping = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 9:\n          a1->m_portalY = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0xA:\n          a1->m_unkPoint6.x = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0xB:\n          a1->m_unkPoint6.y = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0xC:\n          a1->m_unkPoint8.x = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0xD:\n          a1->m_unkPoint8.y = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0xE:\n          a1->m_cameraZoom = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0xF:\n          a1->m_cameraOffset.x = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0x10:\n          a1->m_cameraOffset.y = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0x11:\n          a1->m_cameraAngle = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0x12:\n          a1->m_unkPoint26.x = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0x13:\n          a1->m_unkPoint26.y = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0x14:\n          a1->m_middleGroundOffsetY = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0x15:\n          a1->m_unkPoint12.x = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0x16:\n          a1->m_unkPoint12.y = EasedValue;\n          if ( v6 )\n            goto LABEL_47;\n          goto LABEL_3;\n        case 0x19:\n          a1->m_unkFloat9 = EasedValue;\n          goto LABEL_46;\n        default:\n          *(_OWORD *)&EasedValue = v12;\nLABEL_46:\n          if ( v6 )\n          {\nLABEL_47:\n            v5 = (__int64)next->__next_;\n            sub_100056B40((__int64)&__p, p_m_tweenActions, (__int64 *)next);\n            v13 = __p;\n            __p = nullptr;\n            if ( v13 )\n              operator delete(v13);\n          }\n          else\n          {\nLABEL_3:\n            v5 = (__int64)next->__next_;\n          }\n          next = (std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *>::__next_pointer)v5;\n          if ( v5 )\n            continue;\n          return;\n      }\n    }\n  }\n}", "assembly": "; \n; GJGameState::updateTweenActions from 0x10010e290 to 0x10010e503 (627 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::update @ 0x100152904\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, 0x10010e290\nmov     rbp, rsp                                                       ; +0x1, 0x10010e291\npush    r15                                                            ; +0x4, 0x10010e294\npush    r14                                                            ; +0x6, 0x10010e296\npush    r13                                                            ; +0x8, 0x10010e298\npush    r12                                                            ; +0xa, 0x10010e29a\npush    rbx                                                            ; +0xc, 0x10010e29c\nsub     rsp, 28h                                                       ; +0xd, 0x10010e29d\nmovss   [rbp+var_2C], xmm0                                             ; +0x11, 0x10010e2a1\nmov     rdx, [rdi+260h]                                                ; +0x16, 0x10010e2a6\ntest    rdx, rdx                                                       ; +0x1d, 0x10010e2ad\njz      loc_10010E4F4                                                  ; +0x20, 0x10010e2b0\nmov     rbx, rdi                                                       ; +0x26, 0x10010e2b6\nlea     r14, [rdi+250h]                                                ; +0x29, 0x10010e2b9\nlea     r15, [rbp+__p]                                                 ; +0x30, 0x10010e2c0\nlea     r12, jpt_10010E377                                             ; +0x34, 0x10010e2c4\njmp     short loc_10010E2DF                                            ; +0x3b, 0x10010e2cb\nalign 10h                                                              ; +0x3d, 0x10010e2cd\nmov     r13, [rdx]                                                     ; +0x40, 0x10010e2d0\nmov     rdx, r13                                                       ; +0x43, 0x10010e2d3\ntest    r13, r13                                                       ; +0x46, 0x10010e2d6\njz      loc_10010E4F4                                                  ; +0x49, 0x10010e2d9\nmovzx   eax, byte ptr [rdx+30h]                                        ; +0x4f, 0x10010e2df\ntest    al, al                                                         ; +0x53, 0x10010e2e3\njnz     short loc_10010E35D                                            ; +0x55, 0x10010e2e5\ncmp     byte ptr [rdx+31h], 0                                          ; +0x57, 0x10010e2e7\njnz     short loc_10010E35D                                            ; +0x5b, 0x10010e2eb\nmovss   xmm1, dword ptr [rdx+20h]                                      ; +0x5d, 0x10010e2ed\naddss   xmm1, [rbp+var_2C]                                             ; +0x62, 0x10010e2f2\nmovss   dword ptr [rdx+20h], xmm1                                      ; +0x67, 0x10010e2f7\nmovss   xmm2, dword ptr [rdx+1Ch]                                      ; +0x6c, 0x10010e2fc\nucomiss xmm1, xmm2                                                     ; +0x71, 0x10010e301\nmovss   xmm0, cs:alpha                                                 ; +0x74, 0x10010e304\njnb     short loc_10010E315                                            ; +0x7c, 0x10010e30c\nmovaps  xmm0, xmm1                                                     ; +0x7e, 0x10010e30e\ndivss   xmm0, xmm2                                                     ; +0x81, 0x10010e311\nmov     edi, [rdx+28h]                                                 ; +0x85, 0x10010e315\ntest    edi, edi                                                       ; +0x88, 0x10010e318\njle     short loc_10010E338                                            ; +0x8a, 0x10010e31a\nmovss   xmm1, dword ptr [rdx+2Ch]                                      ; +0x8c, 0x10010e31c\nmov     r13, rdx                                                       ; +0x91, 0x10010e321\ncall    GameToolbox__getEasedValue                                     ; +0x94, 0x10010e324\nmov     rdx, r13                                                       ; +0x99, 0x10010e329\nmovss   xmm2, dword ptr [r13+1Ch]                                      ; +0x9c, 0x10010e32c\nmovss   xmm1, dword ptr [r13+20h]                                      ; +0xa2, 0x10010e332\nmovss   xmm3, dword ptr [rdx+14h]                                      ; +0xa8, 0x10010e338\nmovss   xmm4, dword ptr [rdx+18h]                                      ; +0xad, 0x10010e33d\nsubss   xmm4, xmm3                                                     ; +0xb2, 0x10010e342\nmulss   xmm4, xmm0                                                     ; +0xb6, 0x10010e346\naddss   xmm4, xmm3                                                     ; +0xba, 0x10010e34a\nmovss   dword ptr [rdx+24h], xmm4                                      ; +0xbe, 0x10010e34e\nucomiss xmm1, xmm2                                                     ; +0xc3, 0x10010e353\nsetnb   al                                                             ; +0xc6, 0x10010e356\nsetnb   byte ptr [rdx+30h]                                             ; +0xc9, 0x10010e359\nmov     ecx, [rdx+10h]                                                 ; +0xcd, 0x10010e35d\ndec     ecx; switch 25 cases                                           ; +0xd0, 0x10010e360\ncmp     ecx, 18h                                                       ; +0xd2, 0x10010e362\nja      def_10010E377; jumptable 000000010010E377 default case, cases 3-6,8,23,24 ; +0xd5, 0x10010e365\nmovss   xmm0, dword ptr [rdx+24h]                                      ; +0xdb, 0x10010e36b\nmovsxd  rcx, (jpt_10010E377 - 10010E504h)[r12+rcx*4]                   ; +0xe0, 0x10010e370\nadd     rcx, r12                                                       ; +0xe4, 0x10010e374\njmp     rcx; switch jump                                               ; +0xe7, 0x10010e377\nmovss   dword ptr [rbx+238h], xmm0; jumptable 000000010010E377 case 1  ; +0xe9, 0x10010e379\ntest    al, al                                                         ; +0xf1, 0x10010e381\njz      loc_10010E2D0                                                  ; +0xf3, 0x10010e383\njmp     loc_10010E4B8                                                  ; +0xf9, 0x10010e389\nmovss   dword ptr [rbx+0DCh], xmm0; jumptable 000000010010E377 case 19 ; +0xfe, 0x10010e38e\ntest    al, al                                                         ; +0x106, 0x10010e396\njz      loc_10010E2D0                                                  ; +0x108, 0x10010e398\njmp     loc_10010E4B8                                                  ; +0x10e, 0x10010e39e\nmovss   dword ptr [rbx+0Ch], xmm0; jumptable 000000010010E377 case 16  ; +0x113, 0x10010e3a3\ntest    al, al                                                         ; +0x118, 0x10010e3a8\njz      loc_10010E2D0                                                  ; +0x11a, 0x10010e3aa\njmp     loc_10010E4B8                                                  ; +0x120, 0x10010e3b0\nmovss   dword ptr [rbx+38h], xmm0; jumptable 000000010010E377 case 10  ; +0x125, 0x10010e3b5\ntest    al, al                                                         ; +0x12a, 0x10010e3ba\njz      loc_10010E2D0                                                  ; +0x12c, 0x10010e3bc\njmp     loc_10010E4B8                                                  ; +0x132, 0x10010e3c2\nmovss   dword ptr [rbx+0D8h], xmm0; jumptable 000000010010E377 case 18 ; +0x137, 0x10010e3c7\ntest    al, al                                                         ; +0x13f, 0x10010e3cf\njz      loc_10010E2D0                                                  ; +0x141, 0x10010e3d1\njmp     loc_10010E4B8                                                  ; +0x147, 0x10010e3d7\nmovss   dword ptr [rbx+23Ch], xmm0; jumptable 000000010010E377 case 2  ; +0x14c, 0x10010e3dc\ntest    al, al                                                         ; +0x154, 0x10010e3e4\njz      loc_10010E2D0                                                  ; +0x156, 0x10010e3e6\njmp     loc_10010E4B8                                                  ; +0x15c, 0x10010e3ec\nmovss   dword ptr [rbx+3Ch], xmm0; jumptable 000000010010E377 case 11  ; +0x161, 0x10010e3f1\ntest    al, al                                                         ; +0x166, 0x10010e3f6\njz      loc_10010E2D0                                                  ; +0x168, 0x10010e3f8\njmp     loc_10010E4B8                                                  ; +0x16e, 0x10010e3fe\nmovss   dword ptr [rbx+17Ch], xmm0; jumptable 000000010010E377 case 17 ; +0x173, 0x10010e403\ntest    al, al                                                         ; +0x17b, 0x10010e40b\njz      loc_10010E2D0                                                  ; +0x17d, 0x10010e40d\njmp     loc_10010E4B8                                                  ; +0x183, 0x10010e413\nmovss   dword ptr [rbx+150h], xmm0; jumptable 000000010010E377 case 9  ; +0x188, 0x10010e418\ntest    al, al                                                         ; +0x190, 0x10010e420\njz      loc_10010E2D0                                                  ; +0x192, 0x10010e422\njmp     loc_10010E4B8                                                  ; +0x198, 0x10010e428\nmovss   dword ptr [rbx+244h], xmm0; jumptable 000000010010E377 case 7  ; +0x19d, 0x10010e42d\ntest    al, al                                                         ; +0x1a5, 0x10010e435\njz      loc_10010E2D0                                                  ; +0x1a7, 0x10010e437\njmp     short loc_10010E4B8                                            ; +0x1ad, 0x10010e43d\nmovss   dword ptr [rbx+48h], xmm0; jumptable 000000010010E377 case 12  ; +0x1af, 0x10010e43f\ntest    al, al                                                         ; +0x1b4, 0x10010e444\njz      loc_10010E2D0                                                  ; +0x1b6, 0x10010e446\njmp     short loc_10010E4B8                                            ; +0x1bc, 0x10010e44c\nmovss   dword ptr [rbx+4Ch], xmm0; jumptable 000000010010E377 case 13  ; +0x1be, 0x10010e44e\ntest    al, al                                                         ; +0x1c3, 0x10010e453\njz      loc_10010E2D0                                                  ; +0x1c5, 0x10010e455\njmp     short loc_10010E4B8                                            ; +0x1cb, 0x10010e45b\nmovss   dword ptr [rbx+114h], xmm0; jumptable 000000010010E377 case 20 ; +0x1cd, 0x10010e45d\ntest    al, al                                                         ; +0x1d5, 0x10010e465\njz      loc_10010E2D0                                                  ; +0x1d7, 0x10010e467\njmp     short loc_10010E4B8                                            ; +0x1dd, 0x10010e46d\nmovss   dword ptr [rbx+68h], xmm0; jumptable 000000010010E377 case 21  ; +0x1df, 0x10010e46f\ntest    al, al                                                         ; +0x1e4, 0x10010e474\njz      loc_10010E2D0                                                  ; +0x1e6, 0x10010e476\njmp     short loc_10010E4B8                                            ; +0x1ec, 0x10010e47c\nmovss   dword ptr [rbx+8], xmm0; jumptable 000000010010E377 case 15    ; +0x1ee, 0x10010e47e\ntest    al, al                                                         ; +0x1f3, 0x10010e483\njz      loc_10010E2D0                                                  ; +0x1f5, 0x10010e485\njmp     short loc_10010E4B8                                            ; +0x1fb, 0x10010e48b\nmovss   dword ptr [rbx], xmm0; jumptable 000000010010E377 case 14      ; +0x1fd, 0x10010e48d\ntest    al, al                                                         ; +0x201, 0x10010e491\njz      loc_10010E2D0                                                  ; +0x203, 0x10010e493\njmp     short loc_10010E4B8                                            ; +0x209, 0x10010e499\nmovss   dword ptr [rbx+24Ch], xmm0; jumptable 000000010010E377 case 25 ; +0x20b, 0x10010e49b\nnop     word ptr [rax+rax+00000000h]                                   ; +0x213, 0x10010e4a3\ntest    al, al; jumptable 000000010010E377 default case, cases 3-6,8,23,24 ; +0x220, 0x10010e4b0\njz      loc_10010E2D0                                                  ; +0x222, 0x10010e4b2\nmov     r13, [rdx]                                                     ; +0x228, 0x10010e4b8\nmov     rdi, r15                                                       ; +0x22b, 0x10010e4bb\nmov     rsi, r14                                                       ; +0x22e, 0x10010e4be\ncall    sub_100056B40                                                  ; +0x231, 0x10010e4c1\nmov     rdi, [rbp+__p]; __p                                            ; +0x236, 0x10010e4c6\nmov     [rbp+__p], 0                                                   ; +0x23a, 0x10010e4ca\ntest    rdi, rdi                                                       ; +0x242, 0x10010e4d2\njz      loc_10010E2D3                                                  ; +0x245, 0x10010e4d5\ncall    __ZdlPv; operator delete(void *)                               ; +0x24b, 0x10010e4db\njmp     loc_10010E2D3                                                  ; +0x250, 0x10010e4e0\nmovss   dword ptr [rbx+6Ch], xmm0; jumptable 000000010010E377 case 22  ; +0x255, 0x10010e4e5\ntest    al, al                                                         ; +0x25a, 0x10010e4ea\njz      loc_10010E2D0                                                  ; +0x25c, 0x10010e4ec\njmp     short loc_10010E4B8                                            ; +0x262, 0x10010e4f2\nadd     rsp, 28h                                                       ; +0x264, 0x10010e4f4\npop     rbx                                                            ; +0x268, 0x10010e4f8\npop     r12                                                            ; +0x269, 0x10010e4f9\npop     r13                                                            ; +0x26b, 0x10010e4fb\npop     r14                                                            ; +0x26d, 0x10010e4fd\npop     r15                                                            ; +0x26f, 0x10010e4ff\npop     rbp                                                            ; +0x271, 0x10010e501\nretn                                                                   ; +0x272, 0x10010e502", "xrefs": ["GJBaseGameLayer::update @ 0x100152904"], "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"}