{"type": "func", "start": 4296183200, "end": 4296183473, "name": "GJBaseGameLayer::processQueuedButtons", "pseudocode": "// \n// GJBaseGameLayer::processQueuedButtons from 0x100128da0 to 0x100128eb1 (273 bytes)\n// \n// 2 xrefs:\n// > PlayLayer::pauseGame @ 0x10008da2c\n// > GJBaseGameLayer::processCommands @ 0x1001313ea\n// \n// This function is hookable on this platform (idp: pc, 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 12:24:43 +0000\n// \n\ndouble __fastcall GJBaseGameLayer::processQueuedButtons(__int64 a1, char a2, double result)\n{\n  unsigned int *v3; // rax\n  unsigned int *v4; // r14\n  unsigned int *v5; // r14\n  size_t v6; // r15\n  unsigned int *v7; // r14\n  unsigned int *v8; // r14\n  size_t v9; // r15\n  double v10; // [rsp-28h] [rbp-28h]\n\n  v3 = *(unsigned int **)(a1 + 12824);\n  if ( *(unsigned int **)(a1 + 12832) != v3 )\n  {\n    if ( a2 )\n    {\n      do\n      {\n        GJBaseGameLayer::handleButton(a1, *((unsigned __int8 *)v3 + 4), *v3, *((unsigned __int8 *)v3 + 5) ^ 1u);\n        v5 = *(unsigned int **)(a1 + 12824);\n        v3 = v5;\n        v6 = *(_QWORD *)(a1 + 12832) - (_QWORD)(v5 + 6);\n        if ( v6 )\n        {\n          memmove(*(void **)(a1 + 12824), v5 + 6, v6);\n          v3 = *(unsigned int **)(a1 + 12824);\n        }\n        v4 = (unsigned int *)((char *)v5 + v6);\n        *(_QWORD *)(a1 + 12832) = v4;\n      }\n      while ( v4 != v3 );\n    }\n    else\n    {\n      v10 = *(float *)&result;\n      do\n      {\n        result = *(double *)(a1 + 13936) + v10;\n        if ( result <= *((double *)v3 + 2) )\n          break;\n        GJBaseGameLayer::handleButton(a1, *((unsigned __int8 *)v3 + 4), *v3, *((unsigned __int8 *)v3 + 5) ^ 1u);\n        v8 = *(unsigned int **)(a1 + 12824);\n        v3 = v8;\n        v9 = *(_QWORD *)(a1 + 12832) - (_QWORD)(v8 + 6);\n        if ( v9 )\n        {\n          memmove(*(void **)(a1 + 12824), v8 + 6, v9);\n          v3 = *(unsigned int **)(a1 + 12824);\n        }\n        v7 = (unsigned int *)((char *)v8 + v9);\n        *(_QWORD *)(a1 + 12832) = v7;\n      }\n      while ( v7 != v3 );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::processQueuedButtons from 0x100128da0 to 0x100128eb1 (273 bytes)\n; \n; 2 xrefs:\n; > PlayLayer::pauseGame @ 0x10008da2c\n; > GJBaseGameLayer::processCommands @ 0x1001313ea\n; \n; This function is hookable on this platform (idp: pc, 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 12:24:43 +0000\n; \nmov     rax, [rdi+3218h]                                               ; +0x0, 0x100128da0\ncmp     [rdi+3220h], rax                                               ; +0x7, 0x100128da7\njz      locret_100128EB0                                               ; +0xe, 0x100128dae\npush    rbp                                                            ; +0x14, 0x100128db4\nmov     rbp, rsp                                                       ; +0x15, 0x100128db5\npush    r15                                                            ; +0x18, 0x100128db8\npush    r14                                                            ; +0x1a, 0x100128dba\npush    rbx                                                            ; +0x1c, 0x100128dbc\npush    rax                                                            ; +0x1d, 0x100128dbd\nmov     rbx, rdi                                                       ; +0x1e, 0x100128dbe\ntest    sil, sil                                                       ; +0x21, 0x100128dc1\njnz     short loc_100128DF3                                            ; +0x24, 0x100128dc4\ncvtss2sd xmm0, xmm0                                                    ; +0x26, 0x100128dc6\nmovsd   qword ptr [rbp-20h], xmm0                                      ; +0x2a, 0x100128dca\njmp     short loc_100128E4F                                            ; +0x2f, 0x100128dcf\nalign 20h                                                              ; +0x31, 0x100128dd1\nadd     r14, r15                                                       ; +0x40, 0x100128de0\nmov     [rbx+3220h], r14                                               ; +0x43, 0x100128de3\ncmp     r14, rax                                                       ; +0x4a, 0x100128dea\njz      loc_100128EA6                                                  ; +0x4d, 0x100128ded\nmovzx   esi, byte ptr [rax+4]                                          ; +0x53, 0x100128df3\nmov     edx, [rax]                                                     ; +0x57, 0x100128df7\nmovzx   ecx, byte ptr [rax+5]                                          ; +0x59, 0x100128df9\nxor     ecx, 1                                                         ; +0x5d, 0x100128dfd\nmov     rdi, rbx                                                       ; +0x60, 0x100128e00\ncall    GJBaseGameLayer__handleButton                                  ; +0x63, 0x100128e03\nmov     r14, [rbx+3218h]                                               ; +0x68, 0x100128e08\nmov     r15, [rbx+3220h]                                               ; +0x6f, 0x100128e0f\nlea     rsi, [r14+18h]; __src                                          ; +0x76, 0x100128e16\nmov     rax, r14                                                       ; +0x7a, 0x100128e1a\nsub     r15, rsi                                                       ; +0x7d, 0x100128e1d\njz      short loc_100128DE0                                            ; +0x80, 0x100128e20\nmov     rdi, r14; __dst                                                ; +0x82, 0x100128e22\nmov     rdx, r15; __len                                                ; +0x85, 0x100128e25\ncall    _memmove                                                       ; +0x88, 0x100128e28\nmov     rax, [rbx+3218h]                                               ; +0x8d, 0x100128e2d\njmp     short loc_100128DE0                                            ; +0x94, 0x100128e34\nalign 20h                                                              ; +0x96, 0x100128e36\nadd     r14, r15                                                       ; +0xa0, 0x100128e40\nmov     [rbx+3220h], r14                                               ; +0xa3, 0x100128e43\ncmp     r14, rax                                                       ; +0xaa, 0x100128e4a\njz      short loc_100128EA6                                            ; +0xad, 0x100128e4d\nmovsd   xmm0, qword ptr [rbx+3670h]                                    ; +0xaf, 0x100128e4f\naddsd   xmm0, qword ptr [rbp-20h]                                      ; +0xb7, 0x100128e57\nucomisd xmm0, qword ptr [rax+10h]                                      ; +0xbc, 0x100128e5c\njbe     short loc_100128EA6                                            ; +0xc1, 0x100128e61\nmovzx   esi, byte ptr [rax+4]                                          ; +0xc3, 0x100128e63\nmov     edx, [rax]                                                     ; +0xc7, 0x100128e67\nmovzx   ecx, byte ptr [rax+5]                                          ; +0xc9, 0x100128e69\nxor     ecx, 1                                                         ; +0xcd, 0x100128e6d\nmov     rdi, rbx                                                       ; +0xd0, 0x100128e70\ncall    GJBaseGameLayer__handleButton                                  ; +0xd3, 0x100128e73\nmov     r14, [rbx+3218h]                                               ; +0xd8, 0x100128e78\nmov     r15, [rbx+3220h]                                               ; +0xdf, 0x100128e7f\nlea     rsi, [r14+18h]; __src                                          ; +0xe6, 0x100128e86\nmov     rax, r14                                                       ; +0xea, 0x100128e8a\nsub     r15, rsi                                                       ; +0xed, 0x100128e8d\njz      short loc_100128E40                                            ; +0xf0, 0x100128e90\nmov     rdi, r14; __dst                                                ; +0xf2, 0x100128e92\nmov     rdx, r15; __len                                                ; +0xf5, 0x100128e95\ncall    _memmove                                                       ; +0xf8, 0x100128e98\nmov     rax, [rbx+3218h]                                               ; +0xfd, 0x100128e9d\njmp     short loc_100128E40                                            ; +0x104, 0x100128ea4\nadd     rsp, 8                                                         ; +0x106, 0x100128ea6\npop     rbx                                                            ; +0x10a, 0x100128eaa\npop     r14                                                            ; +0x10b, 0x100128eab\npop     r15                                                            ; +0x10d, 0x100128ead\npop     rbp                                                            ; +0x10f, 0x100128eaf\nretn                                                                   ; +0x110, 0x100128eb0", "xrefs": ["PlayLayer::pauseGame @ 0x10008da2c", "GJBaseGameLayer::processCommands @ 0x1001313ea"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}