{"type": "func", "start": 4296321664, "end": 4296321937, "name": "GJBaseGameLayer::processQueuedButtons", "pseudocode": "// \n// GJBaseGameLayer::processQueuedButtons from 0x10014aa80 to 0x10014ab91 (273 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::pauseGame @ 0x1000bf382\n// > GJBaseGameLayer::update @ 0x100151da9\n// > GJBaseGameLayer::processCommands @ 0x1001536ef\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 GJBaseGameLayer::processQueuedButtons(GJBaseGameLayer *a1, float a2, bool a3)\n{\n  std::__vector_base<PlayerButtonCommand>::pointer begin; // rax\n  PlayerButtonCommand *v4; // r14\n  std::__vector_base<PlayerButtonCommand>::pointer v5; // r14\n  char *v6; // r15\n  PlayerButtonCommand *v7; // r14\n  std::__vector_base<PlayerButtonCommand>::pointer v8; // r14\n  char *v9; // r15\n\n  begin = a1->m_queuedButtons.__begin_;\n  if ( a1->m_queuedButtons.__end_ != begin )\n  {\n    if ( a3 )\n    {\n      do\n      {\n        GJBaseGameLayer::handleButton(a1, begin->m_isPush, begin->m_button, !begin->m_isPlayer2);\n        v5 = a1->m_queuedButtons.__begin_;\n        begin = v5;\n        v6 = (char *)((char *)a1->m_queuedButtons.__end_ - (char *)(v5 + 1));\n        if ( v6 )\n        {\n          memmove(a1->m_queuedButtons.__begin_, &v5[1], (size_t)v6);\n          begin = a1->m_queuedButtons.__begin_;\n        }\n        v4 = (std::__vector_base<PlayerButtonCommand>::pointer)((char *)v5 + (_QWORD)v6);\n        a1->m_queuedButtons.__end_ = v4;\n      }\n      while ( v4 != begin );\n    }\n    else\n    {\n      do\n      {\n        if ( a1->m_timestamp + a2 <= begin->m_timestamp )\n          break;\n        GJBaseGameLayer::handleButton(a1, begin->m_isPush, begin->m_button, !begin->m_isPlayer2);\n        v8 = a1->m_queuedButtons.__begin_;\n        begin = v8;\n        v9 = (char *)((char *)a1->m_queuedButtons.__end_ - (char *)(v8 + 1));\n        if ( v9 )\n        {\n          memmove(a1->m_queuedButtons.__begin_, &v8[1], (size_t)v9);\n          begin = a1->m_queuedButtons.__begin_;\n        }\n        v7 = (std::__vector_base<PlayerButtonCommand>::pointer)((char *)v8 + (_QWORD)v9);\n        a1->m_queuedButtons.__end_ = v7;\n      }\n      while ( v7 != begin );\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processQueuedButtons from 0x10014aa80 to 0x10014ab91 (273 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::pauseGame @ 0x1000bf382\n; > GJBaseGameLayer::update @ 0x100151da9\n; > GJBaseGameLayer::processCommands @ 0x1001536ef\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     rax, [rdi+3160h]                                               ; +0x0, 0x10014aa80\ncmp     [rdi+3168h], rax                                               ; +0x7, 0x10014aa87\njz      locret_10014AB90                                               ; +0xe, 0x10014aa8e\npush    rbp                                                            ; +0x14, 0x10014aa94\nmov     rbp, rsp                                                       ; +0x15, 0x10014aa95\npush    r15                                                            ; +0x18, 0x10014aa98\npush    r14                                                            ; +0x1a, 0x10014aa9a\npush    rbx                                                            ; +0x1c, 0x10014aa9c\npush    rax                                                            ; +0x1d, 0x10014aa9d\nmov     rbx, rdi                                                       ; +0x1e, 0x10014aa9e\ntest    sil, sil                                                       ; +0x21, 0x10014aaa1\njnz     short loc_10014AAD3                                            ; +0x24, 0x10014aaa4\ncvtss2sd xmm0, xmm0                                                    ; +0x26, 0x10014aaa6\nmovsd   qword ptr [rbp-20h], xmm0                                      ; +0x2a, 0x10014aaaa\njmp     short loc_10014AB2F                                            ; +0x2f, 0x10014aaaf\nalign 20h                                                              ; +0x31, 0x10014aab1\nadd     r14, r15                                                       ; +0x40, 0x10014aac0\nmov     [rbx+3168h], r14                                               ; +0x43, 0x10014aac3\ncmp     r14, rax                                                       ; +0x4a, 0x10014aaca\njz      loc_10014AB86                                                  ; +0x4d, 0x10014aacd\nmovzx   esi, byte ptr [rax+4]                                          ; +0x53, 0x10014aad3\nmov     edx, [rax]                                                     ; +0x57, 0x10014aad7\nmovzx   ecx, byte ptr [rax+5]                                          ; +0x59, 0x10014aad9\nxor     ecx, 1                                                         ; +0x5d, 0x10014aadd\nmov     rdi, rbx                                                       ; +0x60, 0x10014aae0\ncall    GJBaseGameLayer__handleButton                                  ; +0x63, 0x10014aae3\nmov     r14, [rbx+3160h]                                               ; +0x68, 0x10014aae8\nmov     r15, [rbx+3168h]                                               ; +0x6f, 0x10014aaef\nlea     rsi, [r14+18h]; __src                                          ; +0x76, 0x10014aaf6\nmov     rax, r14                                                       ; +0x7a, 0x10014aafa\nsub     r15, rsi                                                       ; +0x7d, 0x10014aafd\njz      short loc_10014AAC0                                            ; +0x80, 0x10014ab00\nmov     rdi, r14; __dst                                                ; +0x82, 0x10014ab02\nmov     rdx, r15; __len                                                ; +0x85, 0x10014ab05\ncall    _memmove                                                       ; +0x88, 0x10014ab08\nmov     rax, [rbx+3160h]                                               ; +0x8d, 0x10014ab0d\njmp     short loc_10014AAC0                                            ; +0x94, 0x10014ab14\nalign 20h                                                              ; +0x96, 0x10014ab16\nadd     r14, r15                                                       ; +0xa0, 0x10014ab20\nmov     [rbx+3168h], r14                                               ; +0xa3, 0x10014ab23\ncmp     r14, rax                                                       ; +0xaa, 0x10014ab2a\njz      short loc_10014AB86                                            ; +0xad, 0x10014ab2d\nmovsd   xmm0, qword ptr [rbx+3560h]                                    ; +0xaf, 0x10014ab2f\naddsd   xmm0, qword ptr [rbp-20h]                                      ; +0xb7, 0x10014ab37\nucomisd xmm0, qword ptr [rax+10h]                                      ; +0xbc, 0x10014ab3c\njbe     short loc_10014AB86                                            ; +0xc1, 0x10014ab41\nmovzx   esi, byte ptr [rax+4]                                          ; +0xc3, 0x10014ab43\nmov     edx, [rax]                                                     ; +0xc7, 0x10014ab47\nmovzx   ecx, byte ptr [rax+5]                                          ; +0xc9, 0x10014ab49\nxor     ecx, 1                                                         ; +0xcd, 0x10014ab4d\nmov     rdi, rbx                                                       ; +0xd0, 0x10014ab50\ncall    GJBaseGameLayer__handleButton                                  ; +0xd3, 0x10014ab53\nmov     r14, [rbx+3160h]                                               ; +0xd8, 0x10014ab58\nmov     r15, [rbx+3168h]                                               ; +0xdf, 0x10014ab5f\nlea     rsi, [r14+18h]; __src                                          ; +0xe6, 0x10014ab66\nmov     rax, r14                                                       ; +0xea, 0x10014ab6a\nsub     r15, rsi                                                       ; +0xed, 0x10014ab6d\njz      short loc_10014AB20                                            ; +0xf0, 0x10014ab70\nmov     rdi, r14; __dst                                                ; +0xf2, 0x10014ab72\nmov     rdx, r15; __len                                                ; +0xf5, 0x10014ab75\ncall    _memmove                                                       ; +0xf8, 0x10014ab78\nmov     rax, [rbx+3160h]                                               ; +0xfd, 0x10014ab7d\njmp     short loc_10014AB20                                            ; +0x104, 0x10014ab84\nadd     rsp, 8                                                         ; +0x106, 0x10014ab86\npop     rbx                                                            ; +0x10a, 0x10014ab8a\npop     r14                                                            ; +0x10b, 0x10014ab8b\npop     r15                                                            ; +0x10d, 0x10014ab8d\npop     rbp                                                            ; +0x10f, 0x10014ab8f\nretn                                                                   ; +0x110, 0x10014ab90", "xrefs": ["PlayLayer::pauseGame @ 0x1000bf382", "GJBaseGameLayer::update @ 0x100151da9", "GJBaseGameLayer::processCommands @ 0x1001536ef"], "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"}