{"type": "func", "start": 5370827872, "end": 5370828015, "name": "GJGameState::controlTweenAction", "pseudocode": "// \n// GJGameState::controlTweenAction from 0x140205460 to 0x1402054ef (143 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::controlTriggersWithControlID @ 0x14021e87f\n// > <???> @ 0x1406ccc78\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 GJGameState::controlTweenAction(GJGameState *a1, int a2, int a3, GJActionCommand a4)\n{\n  std::_List_val<std::_List_simple_types<std::pair<const int, GJValueTween>>>::_Nodeptr Myhead; // r10\n  __int64 v9; // rax\n  char v10; // [rsp+30h] [rbp+8h] BYREF\n\n  Myhead = a1->m_tweenActions._List._Mypair._Myval2._Myhead;\n  v9 = *(_QWORD *)Myhead;\n  if ( *(std::_List_val<std::_List_simple_types<std::pair<const int, GJValueTween>>>::_Nodeptr *)Myhead != Myhead )\n  {\n    do\n    {\n      if ( a3 == -1 )\n      {\n        if ( *(_DWORD *)(v9 + 52) == a2 )\n        {\nLABEL_6:\n          if ( a4 )\n          {\n            if ( a4 == Pause )\n            {\n              *(_BYTE *)(v9 + 49) = 1;\n            }\n            else if ( a4 == Resume )\n            {\n              *(_BYTE *)(v9 + 49) = 0;\n            }\n          }\n          else\n          {\n            v9 = sub_14024D170(&a1->m_tweenActions, &v10, v9);\n          }\n        }\n      }\n      else if ( *(_DWORD *)(v9 + 56) == a3 )\n      {\n        goto LABEL_6;\n      }\n      v9 = *(_QWORD *)v9;\n    }\n    while ( (std::_List_val<std::_List_simple_types<std::pair<const int, GJValueTween>>>::_Nodeptr)v9 != a1->m_tweenActions._List._Mypair._Myval2._Myhead );\n  }\n}", "assembly": "; \n; GJGameState::controlTweenAction from 0x140205460 to 0x1402054ef (143 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::controlTriggersWithControlID @ 0x14021e87f\n; > <???> @ 0x1406ccc78\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140205460\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140205465\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14020546a\npush    rdi                                                            ; +0xf, 0x14020546f\nsub     rsp, 20h                                                       ; +0x10, 0x140205470\nmov     r10, [rcx+288h]                                                ; +0x14, 0x140205474\nmov     ebx, r9d                                                       ; +0x1b, 0x14020547b\nmov     edi, r8d                                                       ; +0x1e, 0x14020547e\nmov     ebp, edx                                                       ; +0x21, 0x140205481\nmov     rsi, rcx                                                       ; +0x23, 0x140205483\nmov     rax, [r10]                                                     ; +0x26, 0x140205486\ncmp     rax, r10                                                       ; +0x29, 0x140205489\njz      short loc_1402054DA                                            ; +0x2c, 0x14020548c\nxchg    ax, ax                                                         ; +0x2e, 0x14020548e\ncmp     edi, 0FFFFFFFFh                                                ; +0x30, 0x140205490\njz      short loc_14020549C                                            ; +0x33, 0x140205493\ncmp     [rax+38h], edi                                                 ; +0x35, 0x140205495\njz      short loc_1402054A1                                            ; +0x38, 0x140205498\njmp     short loc_1402054CE                                            ; +0x3a, 0x14020549a\ncmp     [rax+34h], ebp                                                 ; +0x3c, 0x14020549c\njnz     short loc_1402054CE                                            ; +0x3f, 0x14020549f\ntest    ebx, ebx                                                       ; +0x41, 0x1402054a1\njnz     short loc_1402054BB                                            ; +0x43, 0x1402054a3\nlea     rcx, [rsi+280h]                                                ; +0x45, 0x1402054a5\nmov     r8, rax                                                        ; +0x4c, 0x1402054ac\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x4f, 0x1402054af\ncall    sub_14024D170                                                  ; +0x54, 0x1402054b4\njmp     short loc_1402054CE                                            ; +0x59, 0x1402054b9\ncmp     ebx, 1                                                         ; +0x5b, 0x1402054bb\njnz     short loc_1402054C5                                            ; +0x5e, 0x1402054be\nmov     [rax+31h], bl                                                  ; +0x60, 0x1402054c0\njmp     short loc_1402054CE                                            ; +0x63, 0x1402054c3\ncmp     ebx, 2                                                         ; +0x65, 0x1402054c5\njnz     short loc_1402054CE                                            ; +0x68, 0x1402054c8\nmov     byte ptr [rax+31h], 0                                          ; +0x6a, 0x1402054ca\nmov     rax, [rax]                                                     ; +0x6e, 0x1402054ce\ncmp     rax, [rsi+288h]                                                ; +0x71, 0x1402054d1\njnz     short loc_140205490                                            ; +0x78, 0x1402054d8\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x7a, 0x1402054da\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x7f, 0x1402054df\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x84, 0x1402054e4\nadd     rsp, 20h                                                       ; +0x89, 0x1402054e9\npop     rdi                                                            ; +0x8d, 0x1402054ed\nretn                                                                   ; +0x8e, 0x1402054ee", "xrefs": ["GJBaseGameLayer::controlTriggersWithControlID @ 0x14021e87f", "<???> @ 0x1406ccc78"], "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"}