{"type": "func", "start": 5371900784, "end": 5371900927, "name": "GJGameState::controlTweenAction", "pseudocode": "// \n// GJGameState::controlTweenAction from 0x14030b370 to 0x14030b3ff (143 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x140326192\n// > <???> @ 0x14091e734\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:11 +0000\n// \n\n__int64 __fastcall GJGameState::controlTweenAction(__int64 a1, int a2, int a3, int a4)\n{\n  __int64 *v4; // r10\n  __int64 result; // rax\n  char v10; // [rsp+30h] [rbp+8h] BYREF\n\n  v4 = *(__int64 **)(a1 + 648);\n  result = *v4;\n  if ( (__int64 *)*v4 != v4 )\n  {\n    do\n    {\n      if ( a3 == -1 )\n      {\n        if ( *(_DWORD *)(result + 52) == a2 )\n        {\nLABEL_6:\n          if ( a4 )\n          {\n            if ( a4 == 1 )\n            {\n              *(_BYTE *)(result + 49) = 1;\n            }\n            else if ( a4 == 2 )\n            {\n              *(_BYTE *)(result + 49) = 0;\n            }\n          }\n          else\n          {\n            result = sub_1403535F0(a1 + 640, &v10, result);\n          }\n        }\n      }\n      else if ( *(_DWORD *)(result + 56) == a3 )\n      {\n        goto LABEL_6;\n      }\n      result = *(_QWORD *)result;\n    }\n    while ( result != *(_QWORD *)(a1 + 648) );\n  }\n  return result;\n}", "assembly": "; \n; GJGameState::controlTweenAction from 0x14030b370 to 0x14030b3ff (143 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x140326192\n; > <???> @ 0x14091e734\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:11 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14030b370\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14030b375\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14030b37a\npush    rdi                                                            ; +0xf, 0x14030b37f\nsub     rsp, 20h                                                       ; +0x10, 0x14030b380\nmov     r10, [rcx+288h]                                                ; +0x14, 0x14030b384\nmov     ebx, r9d                                                       ; +0x1b, 0x14030b38b\nmov     edi, r8d                                                       ; +0x1e, 0x14030b38e\nmov     ebp, edx                                                       ; +0x21, 0x14030b391\nmov     rsi, rcx                                                       ; +0x23, 0x14030b393\nmov     rax, [r10]                                                     ; +0x26, 0x14030b396\ncmp     rax, r10                                                       ; +0x29, 0x14030b399\njz      short loc_14030B3EA                                            ; +0x2c, 0x14030b39c\nxchg    ax, ax                                                         ; +0x2e, 0x14030b39e\ncmp     edi, 0FFFFFFFFh                                                ; +0x30, 0x14030b3a0\njz      short loc_14030B3AC                                            ; +0x33, 0x14030b3a3\ncmp     [rax+38h], edi                                                 ; +0x35, 0x14030b3a5\njz      short loc_14030B3B1                                            ; +0x38, 0x14030b3a8\njmp     short loc_14030B3DE                                            ; +0x3a, 0x14030b3aa\ncmp     [rax+34h], ebp                                                 ; +0x3c, 0x14030b3ac\njnz     short loc_14030B3DE                                            ; +0x3f, 0x14030b3af\ntest    ebx, ebx                                                       ; +0x41, 0x14030b3b1\njnz     short loc_14030B3CB                                            ; +0x43, 0x14030b3b3\nlea     rcx, [rsi+280h]                                                ; +0x45, 0x14030b3b5\nmov     r8, rax                                                        ; +0x4c, 0x14030b3bc\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x4f, 0x14030b3bf\ncall    sub_1403535F0                                                  ; +0x54, 0x14030b3c4\njmp     short loc_14030B3DE                                            ; +0x59, 0x14030b3c9\ncmp     ebx, 1                                                         ; +0x5b, 0x14030b3cb\njnz     short loc_14030B3D5                                            ; +0x5e, 0x14030b3ce\nmov     [rax+31h], bl                                                  ; +0x60, 0x14030b3d0\njmp     short loc_14030B3DE                                            ; +0x63, 0x14030b3d3\ncmp     ebx, 2                                                         ; +0x65, 0x14030b3d5\njnz     short loc_14030B3DE                                            ; +0x68, 0x14030b3d8\nmov     byte ptr [rax+31h], 0                                          ; +0x6a, 0x14030b3da\nmov     rax, [rax]                                                     ; +0x6e, 0x14030b3de\ncmp     rax, [rsi+288h]                                                ; +0x71, 0x14030b3e1\njnz     short loc_14030B3A0                                            ; +0x78, 0x14030b3e8\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x7a, 0x14030b3ea\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x7f, 0x14030b3ef\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x84, 0x14030b3f4\nadd     rsp, 20h                                                       ; +0x89, 0x14030b3f9\npop     rdi                                                            ; +0x8d, 0x14030b3fd\nretn                                                                   ; +0x8e, 0x14030b3fe", "xrefs": ["GJBaseGameLayer::controlTriggersWithControlID @ 0x140326192", "<???> @ 0x14091e734"], "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"}