{"type": "func", "start": 5371010320, "end": 5371010547, "name": "GJBaseGameLayer::processQueuedButtons", "pseudocode": "// \n// GJBaseGameLayer::processQueuedButtons from 0x140231d10 to 0x140231df3 (227 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::processCommands @ 0x140239d51\n// > <???> @ 0x1406cdef0\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 GJBaseGameLayer::processQueuedButtons(GJBaseGameLayer *a1, float a2, bool a3)\n{\n  std::_Vector_val<std::_Simple_types<PlayerButtonCommand>>::pointer i; // r10\n\n  for ( i = a1->m_queuedButtons._Mypair._Myval2._Myfirst;\n        a1->m_queuedButtons._Mypair._Myval2._Mylast - i;\n        i = a1->m_queuedButtons._Mypair._Myval2._Myfirst )\n  {\n    if ( !a3 && a2 + a1->m_timestamp <= i->m_timestamp )\n      break;\n    GJBaseGameLayer::handleButton(a1, i->m_isPush, i->m_button, !i->m_isPlayer2);\n    memmove(\n      a1->m_queuedButtons._Mypair._Myval2._Myfirst,\n      &a1->m_queuedButtons._Mypair._Myval2._Myfirst[1],\n      (char *)a1->m_queuedButtons._Mypair._Myval2._Mylast - (char *)&a1->m_queuedButtons._Mypair._Myval2._Myfirst[1]);\n    --a1->m_queuedButtons._Mypair._Myval2._Mylast;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processQueuedButtons from 0x140231d10 to 0x140231df3 (227 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::processCommands @ 0x140239d51\n; > <???> @ 0x1406cdef0\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_0], rbx                                               ; +0x0, 0x140231d10\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140231d15\npush    rdi                                                            ; +0xa, 0x140231d1a\nsub     rsp, 30h                                                       ; +0xb, 0x140231d1b\nmov     r10, [rcx+3300h]                                               ; +0xf, 0x140231d1f\nmov     rsi, 2AAAAAAAAAAAAAABh                                         ; +0x16, 0x140231d26\nmov     rdx, [rcx+3308h]                                               ; +0x20, 0x140231d30\nmov     rax, rsi                                                       ; +0x27, 0x140231d37\nsub     rdx, r10                                                       ; +0x2a, 0x140231d3a\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x2d, 0x140231d3d\nimul    rdx                                                            ; +0x32, 0x140231d42\nmovaps  xmm6, xmm1                                                     ; +0x35, 0x140231d45\nmovzx   edi, r8b                                                       ; +0x38, 0x140231d48\nmov     rbx, rcx                                                       ; +0x3c, 0x140231d4c\nsar     rdx, 2                                                         ; +0x3f, 0x140231d4f\nmov     rax, rdx                                                       ; +0x43, 0x140231d53\nshr     rax, 3Fh                                                       ; +0x46, 0x140231d56\nadd     rdx, rax                                                       ; +0x4a, 0x140231d5a\njz      short loc_140231DDE                                            ; +0x4d, 0x140231d5d\nnop                                                                    ; +0x4f, 0x140231d5f\ntest    dil, dil                                                       ; +0x50, 0x140231d60\njnz     short loc_140231D7C                                            ; +0x53, 0x140231d63\nxorps   xmm0, xmm0                                                     ; +0x55, 0x140231d65\ncvtss2sd xmm0, xmm6                                                    ; +0x58, 0x140231d68\naddsd   xmm0, qword ptr [rbx+3790h]                                    ; +0x5c, 0x140231d6c\ncomisd  xmm0, qword ptr [r10+10h]                                      ; +0x64, 0x140231d74\njbe     short loc_140231DDE                                            ; +0x6a, 0x140231d7a\ncmp     byte ptr [r10+5], 0                                            ; +0x6c, 0x140231d7c\nmov     rcx, rbx                                                       ; +0x71, 0x140231d81\nmov     r8d, [r10]                                                     ; +0x74, 0x140231d84\nmovzx   edx, byte ptr [r10+4]                                          ; +0x77, 0x140231d87\nsetz    r9b                                                            ; +0x7c, 0x140231d8c\ncall    GJBaseGameLayer__handleButton                                  ; +0x80, 0x140231d90\nmov     rcx, [rbx+3300h]; void *                                       ; +0x85, 0x140231d95\nmov     r8, [rbx+3308h]                                                ; +0x8c, 0x140231d9c\nlea     rdx, [rcx+18h]; Src                                            ; +0x93, 0x140231da3\nsub     r8, rdx; Size                                                  ; +0x97, 0x140231da7\ncall    memmove                                                        ; +0x9a, 0x140231daa\nadd     qword ptr [rbx+3308h], 0FFFFFFFFFFFFFFE8h                      ; +0x9f, 0x140231daf\nmov     rax, rsi                                                       ; +0xa7, 0x140231db7\nmov     r10, [rbx+3300h]                                               ; +0xaa, 0x140231dba\nmov     rcx, [rbx+3308h]                                               ; +0xb1, 0x140231dc1\nsub     rcx, r10                                                       ; +0xb8, 0x140231dc8\nimul    rcx                                                            ; +0xbb, 0x140231dcb\nsar     rdx, 2                                                         ; +0xbe, 0x140231dce\nmov     rax, rdx                                                       ; +0xc2, 0x140231dd2\nshr     rax, 3Fh                                                       ; +0xc5, 0x140231dd5\nadd     rdx, rax                                                       ; +0xc9, 0x140231dd9\njnz     short loc_140231D60                                            ; +0xcc, 0x140231ddc\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xce, 0x140231dde\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xd3, 0x140231de3\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xd8, 0x140231de8\nadd     rsp, 30h                                                       ; +0xdd, 0x140231ded\npop     rdi                                                            ; +0xe1, 0x140231df1\nretn                                                                   ; +0xe2, 0x140231df2", "xrefs": ["GJBaseGameLayer::processCommands @ 0x140239d51", "<???> @ 0x1406cdef0"], "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"}