{"type": "func", "start": 4297042688, "end": 4297042876, "name": "GJBaseGameLayer::processQueuedButtons", "pseudocode": "// \n// GJBaseGameLayer::processQueuedButtons from 0x1001fab00 to 0x1001fabbc (188 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::pauseGame @ 0x10012289c\n// > GJBaseGameLayer::processCommands @ 0x1001ff5c4\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; // x8\n  double v6; // d8\n  std::__vector_base<PlayerButtonCommand>::pointer v7; // x21\n  std::__vector_base<PlayerButtonCommand>::pointer end; // x8\n  signed __int64 v9; // x22\n\n  begin = a1->m_queuedButtons.__begin_;\n  if ( a1->m_queuedButtons.__end_ != begin )\n  {\n    v6 = a2;\n    do\n    {\n      if ( !a3 && begin->m_timestamp >= a1->m_timestamp + v6 )\n        break;\n      GJBaseGameLayer::handleButton(a1, begin->m_isPush, begin->m_button, !begin->m_isPlayer2);\n      v7 = a1->m_queuedButtons.__begin_;\n      end = a1->m_queuedButtons.__end_;\n      v9 = (char *)end - (char *)&v7[1];\n      if ( end != &v7[1] )\n        memmove(a1->m_queuedButtons.__begin_, &v7[1], (char *)end - (char *)&v7[1]);\n      begin = a1->m_queuedButtons.__begin_;\n      a1->m_queuedButtons.__end_ = (std::__vector_base<PlayerButtonCommand>::pointer)((char *)v7 + v9);\n    }\n    while ( (std::__vector_base<PlayerButtonCommand>::pointer)((char *)v7 + v9) != begin );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::processQueuedButtons from 0x1001fab00 to 0x1001fabbc (188 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::pauseGame @ 0x10012289c\n; > GJBaseGameLayer::processCommands @ 0x1001ff5c4\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\nLDR             X9, [X0,#0x3190]                                       ; +0x0, 0x1001fab00\nLDR             X8, [X0,#0x3188]                                       ; +0x4, 0x1001fab04\nCMP             X9, X8                                                 ; +0x8, 0x1001fab08\nB.EQ            locret_1001FABB8                                       ; +0xc, 0x1001fab0c\nSTP             D9, D8, [SP,#var_50]!                                  ; +0x10, 0x1001fab10\nSTP             X24, X23, [SP,#0x50+var_40]                            ; +0x14, 0x1001fab14\nSTP             X22, X21, [SP,#0x50+var_30]                            ; +0x18, 0x1001fab18\nSTP             X20, X19, [SP,#0x50+var_20]                            ; +0x1c, 0x1001fab1c\nSTP             X29, X30, [SP,#0x50+var_10]                            ; +0x20, 0x1001fab20\nADD             X29, SP, #0x50+var_10                                  ; +0x24, 0x1001fab24\nMOV             X19, X1                                                ; +0x28, 0x1001fab28\nMOV             X20, X0                                                ; +0x2c, 0x1001fab2c\nFCVT            D8, S0                                                 ; +0x30, 0x1001fab30\nMOV             W23, #1                                                ; +0x34, 0x1001fab34\nTBNZ            W19, #0, loc_1001FAB50                                 ; +0x38, 0x1001fab38\nLDR             D0, [X8,#0x10]                                         ; +0x3c, 0x1001fab3c\nLDR             D1, [X20,#0x3590]                                      ; +0x40, 0x1001fab40\nFADD            D1, D1, D8                                             ; +0x44, 0x1001fab44\nFCMP            D0, D1                                                 ; +0x48, 0x1001fab48\nB.PL            loc_1001FABA4                                          ; +0x4c, 0x1001fab4c\nLDRB            W1, [X8,#4]                                            ; +0x50, 0x1001fab50\nLDR             W2, [X8]                                               ; +0x54, 0x1001fab54\nLDRB            W8, [X8,#5]                                            ; +0x58, 0x1001fab58\nBIC             W3, W23, W8                                            ; +0x5c, 0x1001fab5c\nMOV             X0, X20                                                ; +0x60, 0x1001fab60\nBL              GJBaseGameLayer__handleButton                          ; +0x64, 0x1001fab64\nLDR             X21, [X20,#0x3188]                                     ; +0x68, 0x1001fab68\nADD             X1, X21, #0x18; __src                                  ; +0x6c, 0x1001fab6c\nLDR             X8, [X20,#0x3190]                                      ; +0x70, 0x1001fab70\nSUBS            X22, X8, X1                                            ; +0x74, 0x1001fab74\nB.EQ            loc_1001FAB90                                          ; +0x78, 0x1001fab78\nMOV             X0, X21; __dst                                         ; +0x7c, 0x1001fab7c\nMOV             X2, X22; __len                                         ; +0x80, 0x1001fab80\nBL              _memmove                                               ; +0x84, 0x1001fab84\nLDR             X8, [X20,#0x3188]                                      ; +0x88, 0x1001fab88\nB               loc_1001FAB94                                          ; +0x8c, 0x1001fab8c\nMOV             X8, X21                                                ; +0x90, 0x1001fab90\nADD             X9, X21, X22                                           ; +0x94, 0x1001fab94\nSTR             X9, [X20,#0x3190]                                      ; +0x98, 0x1001fab98\nCMP             X9, X8                                                 ; +0x9c, 0x1001fab9c\nB.NE            loc_1001FAB38                                          ; +0xa0, 0x1001faba0\nLDP             X29, X30, [SP,#0x50+var_10]                            ; +0xa4, 0x1001faba4\nLDP             X20, X19, [SP,#0x50+var_20]                            ; +0xa8, 0x1001faba8\nLDP             X22, X21, [SP,#0x50+var_30]                            ; +0xac, 0x1001fabac\nLDP             X24, X23, [SP,#0x50+var_40]                            ; +0xb0, 0x1001fabb0\nLDP             D9, D8, [SP+0x50+var_50],#0x50                         ; +0xb4, 0x1001fabb4\nRET                                                                    ; +0xb8, 0x1001fabb8", "xrefs": ["PlayLayer::pauseGame @ 0x10012289c", "GJBaseGameLayer::processCommands @ 0x1001ff5c4"], "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"}