{"type": "func", "start": 4796080, "end": 4796176, "name": "GJBaseGameLayer::processQueuedButtons", "pseudocode": "// \n// GJBaseGameLayer::processQueuedButtons from 0x492eb0 to 0x492f10 (96 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::pauseGame @ 0x314500\n// > GJBaseGameLayer::processCommands @ 0x492fc8\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<PlayerButtonCommand> *p_m_queuedButtons; // r4\n  _BOOL4 v5; // r6\n  char *m_start; // r2\n\n  p_m_queuedButtons = &a1->m_queuedButtons;\n  v5 = a3;\n  while ( 1 )\n  {\n    m_start = (char *)p_m_queuedButtons->m_start;\n    if ( !(-1431655765 * (((char *)p_m_queuedButtons->m_finish - (char *)p_m_queuedButtons->m_start) >> 3))\n      || !v5 && *((double *)m_start + 2) >= a2 + a1->m_timestamp )\n    {\n      break;\n    }\n    GJBaseGameLayer::handleButton(a1, m_start[4], *(_DWORD *)m_start, m_start[5] != 1);\n    std::vector<PlayerButtonCommand>::erase((int)p_m_queuedButtons, (char *)p_m_queuedButtons->m_start);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processQueuedButtons from 0x492eb0 to 0x492f10 (96 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::pauseGame @ 0x314500\n; > GJBaseGameLayer::processCommands @ 0x492fc8\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            {R3-R7,LR}                                             ; +0x0, 0x492eb0\nADD.W           R4, R0, #0x2B80                                        ; +0x2, 0x492eb2\nLDR             R7, =0xAAAAAAAB                                        ; +0x6, 0x492eb6\nMOV             R5, R0                                                 ; +0x8, 0x492eb8\nVPUSH           {D8}                                                   ; +0xa, 0x492eba\nMOV             R6, R2                                                 ; +0xe, 0x492ebe\nVMOV            S16, R1                                                ; +0x10, 0x492ec0\nLDM.W           R4, {R2,R3}                                            ; +0x14, 0x492ec4\nSUBS            R3, R3, R2                                             ; +0x18, 0x492ec8\nASRS            R3, R3, #3                                             ; +0x1a, 0x492eca\nMULS            R3, R7                                                 ; +0x1c, 0x492ecc\nBEQ             loc_492F0A                                             ; +0x1e, 0x492ece\nCBNZ            R6, loc_492EF0                                         ; +0x20, 0x492ed0\nVCVT.F64.F32    D7, S16                                                ; +0x22, 0x492ed2\nADD.W           R3, R5, #0x2DC0                                        ; +0x26, 0x492ed6\nVLDR            D6, [R3,#0x20]                                         ; +0x2a, 0x492eda\nVADD.F64        D7, D7, D6                                             ; +0x2e, 0x492ede\nVLDR            D6, [R2,#0x10]                                         ; +0x32, 0x492ee2\nVCMPE.F64       D6, D7                                                 ; +0x36, 0x492ee6\nVMRS            APSR_nzcv, FPSCR                                       ; +0x3a, 0x492eea\nBPL             loc_492F0A                                             ; +0x3e, 0x492eee\nLDRB            R3, [R2,#5]                                            ; +0x40, 0x492ef0\nMOV             R0, R5; this                                           ; +0x42, 0x492ef2\nLDRB            R1, [R2,#4]; bool                                      ; +0x44, 0x492ef4\nEOR.W           R3, R3, #1; bool                                       ; +0x46, 0x492ef6\nLDR             R2, [R2]; int                                          ; +0x4a, 0x492efa\nBL              _ZN15GJBaseGameLayer12handleButtonEbib; GJBaseGameLayer::handleButton(bool,int,bool) ; +0x4c, 0x492efc\nMOV             R0, R4; int                                            ; +0x50, 0x492f00\nLDR             R1, [R4]; void *                                       ; +0x52, 0x492f02\nBL              _ZNSt6vectorI19PlayerButtonCommandSaIS0_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKS0_S2_EE; std::vector<PlayerButtonCommand>::erase(__gnu_cxx::__normal_iterator<PlayerButtonCommand const*,std::vector<PlayerButtonCommand>>) ; +0x54, 0x492f04\nB               loc_492EC4                                             ; +0x58, 0x492f08\nVPOP            {D8}                                                   ; +0x5a, 0x492f0a\nPOP             {R3-R7,PC}                                             ; +0x5e, 0x492f0e", "xrefs": ["PlayLayer::pauseGame @ 0x314500", "GJBaseGameLayer::processCommands @ 0x492fc8"], "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"}