{"type": "func", "start": 4297682240, "end": 4297682428, "name": "GJBaseGameLayer::processQueuedButtons", "pseudocode": "// \n// GJBaseGameLayer::processQueuedButtons from 0x100296d40 to 0x100296dfc (188 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::pauseGame @ 0x10014c490\n// > GJBaseGameLayer::processCommands @ 0x10029b710\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:02:06 +0000\n// \n\ndouble *__fastcall GJBaseGameLayer::processQueuedButtons(double *result, char a2, float a3)\n{\n  unsigned int *v3; // x8\n  double *v5; // x20\n  double v6; // d8\n  __int64 v7; // x21\n  __int64 v8; // x8\n  __int64 v9; // x22\n\n  v3 = *((unsigned int **)result + 1603);\n  if ( *((unsigned int **)result + 1604) != v3 )\n  {\n    v5 = result;\n    v6 = a3;\n    do\n    {\n      if ( (a2 & 1) == 0 && *((double *)v3 + 2) >= v5[1742] + v6 )\n        break;\n      result = (double *)GJBaseGameLayer::handleButton(\n                           v5,\n                           *((unsigned __int8 *)v3 + 4),\n                           *v3,\n                           (*((_BYTE *)v3 + 5) & 1) == 0);\n      v7 = *((_QWORD *)v5 + 1603);\n      v8 = *((_QWORD *)v5 + 1604);\n      v9 = v8 - (v7 + 24);\n      if ( v8 != v7 + 24 )\n        result = (double *)memmove(*((void **)v5 + 1603), (const void *)(v7 + 24), v8 - (v7 + 24));\n      v3 = *((unsigned int **)v5 + 1603);\n      *((_QWORD *)v5 + 1604) = v7 + v9;\n    }\n    while ( (unsigned int *)(v7 + v9) != v3 );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::processQueuedButtons from 0x100296d40 to 0x100296dfc (188 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::pauseGame @ 0x10014c490\n; > GJBaseGameLayer::processCommands @ 0x10029b710\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:02:06 +0000\n; \nLDR             X9, [X0,#0x3220]                                       ; +0x0, 0x100296d40\nLDR             X8, [X0,#0x3218]                                       ; +0x4, 0x100296d44\nCMP             X9, X8                                                 ; +0x8, 0x100296d48\nB.EQ            locret_100296DF8                                       ; +0xc, 0x100296d4c\nSTP             D9, D8, [SP,#var_50]!                                  ; +0x10, 0x100296d50\nSTP             X24, X23, [SP,#0x50+var_40]                            ; +0x14, 0x100296d54\nSTP             X22, X21, [SP,#0x50+var_30]                            ; +0x18, 0x100296d58\nSTP             X20, X19, [SP,#0x50+var_20]                            ; +0x1c, 0x100296d5c\nSTP             X29, X30, [SP,#0x50+var_10]                            ; +0x20, 0x100296d60\nADD             X29, SP, #0x50+var_10                                  ; +0x24, 0x100296d64\nMOV             X19, X1                                                ; +0x28, 0x100296d68\nMOV             X20, X0                                                ; +0x2c, 0x100296d6c\nFCVT            D8, S0                                                 ; +0x30, 0x100296d70\nMOV             W23, #1                                                ; +0x34, 0x100296d74\nTBNZ            W19, #0, loc_100296D90                                 ; +0x38, 0x100296d78\nLDR             D0, [X8,#0x10]                                         ; +0x3c, 0x100296d7c\nLDR             D1, [X20,#0x3670]                                      ; +0x40, 0x100296d80\nFADD            D1, D1, D8                                             ; +0x44, 0x100296d84\nFCMP            D0, D1                                                 ; +0x48, 0x100296d88\nB.PL            loc_100296DE4                                          ; +0x4c, 0x100296d8c\nLDRB            W1, [X8,#4]                                            ; +0x50, 0x100296d90\nLDR             W2, [X8]                                               ; +0x54, 0x100296d94\nLDRB            W8, [X8,#5]                                            ; +0x58, 0x100296d98\nBIC             W3, W23, W8                                            ; +0x5c, 0x100296d9c\nMOV             X0, X20                                                ; +0x60, 0x100296da0\nBL              GJBaseGameLayer__handleButton                          ; +0x64, 0x100296da4\nLDR             X21, [X20,#0x3218]                                     ; +0x68, 0x100296da8\nADD             X1, X21, #0x18; __src                                  ; +0x6c, 0x100296dac\nLDR             X8, [X20,#0x3220]                                      ; +0x70, 0x100296db0\nSUBS            X22, X8, X1                                            ; +0x74, 0x100296db4\nB.EQ            loc_100296DD0                                          ; +0x78, 0x100296db8\nMOV             X0, X21; __dst                                         ; +0x7c, 0x100296dbc\nMOV             X2, X22; __len                                         ; +0x80, 0x100296dc0\nBL              _memmove                                               ; +0x84, 0x100296dc4\nLDR             X8, [X20,#0x3218]                                      ; +0x88, 0x100296dc8\nB               loc_100296DD4                                          ; +0x8c, 0x100296dcc\nMOV             X8, X21                                                ; +0x90, 0x100296dd0\nADD             X9, X21, X22                                           ; +0x94, 0x100296dd4\nSTR             X9, [X20,#0x3220]                                      ; +0x98, 0x100296dd8\nCMP             X9, X8                                                 ; +0x9c, 0x100296ddc\nB.NE            loc_100296D78                                          ; +0xa0, 0x100296de0\nLDP             X29, X30, [SP,#0x50+var_10]                            ; +0xa4, 0x100296de4\nLDP             X20, X19, [SP,#0x50+var_20]                            ; +0xa8, 0x100296de8\nLDP             X22, X21, [SP,#0x50+var_30]                            ; +0xac, 0x100296dec\nLDP             X24, X23, [SP,#0x50+var_40]                            ; +0xb0, 0x100296df0\nLDP             D9, D8, [SP+0x50+var_50],#0x50                         ; +0xb4, 0x100296df4\nRET                                                                    ; +0xb8, 0x100296df8", "xrefs": ["PlayLayer::pauseGame @ 0x10014c490", "GJBaseGameLayer::processCommands @ 0x10029b710"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}