{"type": "func", "start": 4296073504, "end": 4296073867, "name": "GJGameState::controlTweenAction", "pseudocode": "// \n// GJGameState::controlTweenAction from 0x10010e120 to 0x10010e28b (363 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x100136fce\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\nvoid __fastcall GJGameState::controlTweenAction(GJGameState *a1, int a2, int a3, GJActionCommand a4)\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; // rbx\n  __int64 v7; // r12\n  void *v8; // rdi\n  __int64 v9; // r12\n  void *v10; // rdi\n  void *__p[7]; // [rsp+8h] [rbp-38h] BYREF\n\n  next = a1->m_tweenActions.__table_.__p1_.__value_.__next_;\n  if ( next )\n  {\n    p_m_tweenActions = (__int64 *)&a1->m_tweenActions;\n    if ( a3 == -1 )\n    {\n      if ( a4 )\n      {\n        if ( a4 == Pause )\n        {\n          do\n          {\n            if ( HIDWORD(next[6].__next_) == a2 )\n              BYTE1(next[6].__next_) = 1;\n            next = next->__next_;\n          }\n          while ( next );\n        }\n        else if ( a4 == Resume )\n        {\n          do\n          {\n            if ( HIDWORD(next[6].__next_) == a2 )\n              BYTE1(next[6].__next_) = 0;\n            next = next->__next_;\n          }\n          while ( next );\n        }\n      }\n      else\n      {\n        do\n        {\n          if ( HIDWORD(next[6].__next_) == a2 )\n          {\n            v9 = (__int64)next->__next_;\n            sub_100056B40((__int64)__p, p_m_tweenActions, (__int64 *)next);\n            v10 = __p[0];\n            __p[0] = nullptr;\n            if ( v10 )\n              operator delete(v10);\n          }\n          else\n          {\n            v9 = (__int64)next->__next_;\n          }\n          next = (std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *>::__next_pointer)v9;\n        }\n        while ( v9 );\n      }\n    }\n    else if ( a4 )\n    {\n      if ( a4 == Pause )\n      {\n        do\n        {\n          if ( LODWORD(next[7].__next_) == a3 )\n            BYTE1(next[6].__next_) = 1;\n          next = next->__next_;\n        }\n        while ( next );\n      }\n      else if ( a4 == Resume )\n      {\n        do\n        {\n          if ( LODWORD(next[7].__next_) == a3 )\n            BYTE1(next[6].__next_) = 0;\n          next = next->__next_;\n        }\n        while ( next );\n      }\n    }\n    else\n    {\n      do\n      {\n        if ( LODWORD(next[7].__next_) == a3 )\n        {\n          v7 = (__int64)next->__next_;\n          sub_100056B40((__int64)__p, p_m_tweenActions, (__int64 *)next);\n          v8 = __p[0];\n          __p[0] = nullptr;\n          if ( v8 )\n            operator delete(v8);\n        }\n        else\n        {\n          v7 = (__int64)next->__next_;\n        }\n        next = (std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, GJValueTween>, void *> *>::__next_pointer)v7;\n      }\n      while ( v7 );\n    }\n  }\n}", "assembly": "; \n; GJGameState::controlTweenAction from 0x10010e120 to 0x10010e28b (363 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x100136fce\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, 0x10010e120\nmov     rbp, rsp                                                       ; +0x1, 0x10010e121\npush    r15                                                            ; +0x4, 0x10010e124\npush    r14                                                            ; +0x6, 0x10010e126\npush    r12                                                            ; +0x8, 0x10010e128\npush    rbx                                                            ; +0xa, 0x10010e12a\nsub     rsp, 20h                                                       ; +0xb, 0x10010e12b\nmov     r14d, edx                                                      ; +0xf, 0x10010e12f\nmov     rdx, [rdi+260h]                                                ; +0x12, 0x10010e132\ntest    rdx, rdx                                                       ; +0x19, 0x10010e139\njz      short loc_10010E1B9                                            ; +0x1c, 0x10010e13c\nmov     rbx, rdi                                                       ; +0x1e, 0x10010e13e\nadd     rbx, 250h                                                      ; +0x21, 0x10010e141\ncmp     r14d, 0FFFFFFFFh                                               ; +0x28, 0x10010e148\njz      short loc_10010E1A4                                            ; +0x2c, 0x10010e14c\ntest    ecx, ecx                                                       ; +0x2e, 0x10010e14e\njz      loc_10010E204                                                  ; +0x30, 0x10010e150\ncmp     ecx, 1                                                         ; +0x36, 0x10010e156\njz      short loc_10010E178                                            ; +0x39, 0x10010e159\ncmp     ecx, 2                                                         ; +0x3b, 0x10010e15b\njz      short loc_10010E198                                            ; +0x3e, 0x10010e15e\njmp     short loc_10010E1B9                                            ; +0x40, 0x10010e160\nalign 10h                                                              ; +0x42, 0x10010e162\nmov     rdx, [rdx]                                                     ; +0x50, 0x10010e170\ntest    rdx, rdx                                                       ; +0x53, 0x10010e173\njz      short loc_10010E1B9                                            ; +0x56, 0x10010e176\ncmp     [rdx+38h], r14d                                                ; +0x58, 0x10010e178\njnz     short loc_10010E170                                            ; +0x5c, 0x10010e17c\nmov     byte ptr [rdx+31h], 1                                          ; +0x5e, 0x10010e17e\njmp     short loc_10010E170                                            ; +0x62, 0x10010e182\nalign 10h                                                              ; +0x64, 0x10010e184\nmov     rdx, [rdx]                                                     ; +0x70, 0x10010e190\ntest    rdx, rdx                                                       ; +0x73, 0x10010e193\njz      short loc_10010E1B9                                            ; +0x76, 0x10010e196\ncmp     [rdx+38h], r14d                                                ; +0x78, 0x10010e198\njnz     short loc_10010E190                                            ; +0x7c, 0x10010e19c\nmov     byte ptr [rdx+31h], 0                                          ; +0x7e, 0x10010e19e\njmp     short loc_10010E190                                            ; +0x82, 0x10010e1a2\nmov     r15d, esi                                                      ; +0x84, 0x10010e1a4\ntest    ecx, ecx                                                       ; +0x87, 0x10010e1a7\njz      loc_10010E247                                                  ; +0x89, 0x10010e1a9\ncmp     ecx, 1                                                         ; +0x8f, 0x10010e1af\njz      short loc_10010E1D8                                            ; +0x92, 0x10010e1b2\ncmp     ecx, 2                                                         ; +0x94, 0x10010e1b4\njz      short loc_10010E1F8                                            ; +0x97, 0x10010e1b7\nadd     rsp, 20h                                                       ; +0x99, 0x10010e1b9\npop     rbx                                                            ; +0x9d, 0x10010e1bd\npop     r12                                                            ; +0x9e, 0x10010e1be\npop     r14                                                            ; +0xa0, 0x10010e1c0\npop     r15                                                            ; +0xa2, 0x10010e1c2\npop     rbp                                                            ; +0xa4, 0x10010e1c4\nretn                                                                   ; +0xa5, 0x10010e1c5\nalign 10h                                                              ; +0xa6, 0x10010e1c6\nmov     rdx, [rdx]                                                     ; +0xb0, 0x10010e1d0\ntest    rdx, rdx                                                       ; +0xb3, 0x10010e1d3\njz      short loc_10010E1B9                                            ; +0xb6, 0x10010e1d6\ncmp     [rdx+34h], r15d                                                ; +0xb8, 0x10010e1d8\njnz     short loc_10010E1D0                                            ; +0xbc, 0x10010e1dc\nmov     byte ptr [rdx+31h], 1                                          ; +0xbe, 0x10010e1de\njmp     short loc_10010E1D0                                            ; +0xc2, 0x10010e1e2\nalign 10h                                                              ; +0xc4, 0x10010e1e4\nmov     rdx, [rdx]                                                     ; +0xd0, 0x10010e1f0\ntest    rdx, rdx                                                       ; +0xd3, 0x10010e1f3\njz      short loc_10010E1B9                                            ; +0xd6, 0x10010e1f6\ncmp     [rdx+34h], r15d                                                ; +0xd8, 0x10010e1f8\njnz     short loc_10010E1F0                                            ; +0xdc, 0x10010e1fc\nmov     byte ptr [rdx+31h], 0                                          ; +0xde, 0x10010e1fe\njmp     short loc_10010E1F0                                            ; +0xe2, 0x10010e202\nlea     r15, [rbp+__p]                                                 ; +0xe4, 0x10010e204\njmp     short loc_10010E21B                                            ; +0xe8, 0x10010e208\nalign 10h                                                              ; +0xea, 0x10010e20a\nmov     r12, [rdx]                                                     ; +0xf0, 0x10010e210\nmov     rdx, r12                                                       ; +0xf3, 0x10010e213\ntest    r12, r12                                                       ; +0xf6, 0x10010e216\njz      short loc_10010E1B9                                            ; +0xf9, 0x10010e219\ncmp     [rdx+38h], r14d                                                ; +0xfb, 0x10010e21b\njnz     short loc_10010E210                                            ; +0xff, 0x10010e21f\nmov     r12, [rdx]                                                     ; +0x101, 0x10010e221\nmov     rdi, r15                                                       ; +0x104, 0x10010e224\nmov     rsi, rbx                                                       ; +0x107, 0x10010e227\ncall    sub_100056B40                                                  ; +0x10a, 0x10010e22a\nmov     rdi, [rbp+__p]; __p                                            ; +0x10f, 0x10010e22f\nmov     [rbp+__p], 0                                                   ; +0x113, 0x10010e233\ntest    rdi, rdi                                                       ; +0x11b, 0x10010e23b\njz      short loc_10010E213                                            ; +0x11e, 0x10010e23e\ncall    __ZdlPv; operator delete(void *)                               ; +0x120, 0x10010e240\njmp     short loc_10010E213                                            ; +0x125, 0x10010e245\nlea     r14, [rbp+__p]                                                 ; +0x127, 0x10010e247\njmp     short loc_10010E25F                                            ; +0x12b, 0x10010e24b\nalign 10h                                                              ; +0x12d, 0x10010e24d\nmov     r12, [rdx]                                                     ; +0x130, 0x10010e250\nmov     rdx, r12                                                       ; +0x133, 0x10010e253\ntest    r12, r12                                                       ; +0x136, 0x10010e256\njz      loc_10010E1B9                                                  ; +0x139, 0x10010e259\ncmp     [rdx+34h], r15d                                                ; +0x13f, 0x10010e25f\njnz     short loc_10010E250                                            ; +0x143, 0x10010e263\nmov     r12, [rdx]                                                     ; +0x145, 0x10010e265\nmov     rdi, r14                                                       ; +0x148, 0x10010e268\nmov     rsi, rbx                                                       ; +0x14b, 0x10010e26b\ncall    sub_100056B40                                                  ; +0x14e, 0x10010e26e\nmov     rdi, [rbp+__p]; __p                                            ; +0x153, 0x10010e273\nmov     [rbp+__p], 0                                                   ; +0x157, 0x10010e277\ntest    rdi, rdi                                                       ; +0x15f, 0x10010e27f\njz      short loc_10010E253                                            ; +0x162, 0x10010e282\ncall    __ZdlPv; operator delete(void *)                               ; +0x164, 0x10010e284\njmp     short loc_10010E253                                            ; +0x169, 0x10010e289", "xrefs": ["GJBaseGameLayer::controlTriggersWithControlID @ 0x100136fce"], "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"}