{"type": "func", "start": 4296231408, "end": 4296231637, "name": "GJBaseGameLayer::updateReplay", "pseudocode": "// \n// GJBaseGameLayer::updateReplay from 0x1001349f0 to 0x100134ad5 (229 bytes)\n// \n// 0 xrefs:\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:50 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::updateReplay(__int64 a1, double a2)\n{\n  __int64 result; // rax\n  __int64 v3; // r14\n  size_t v4; // r15\n  size_t v5; // r15\n\n  if ( *(_BYTE *)(a1 + 12448) != 1 )\n    return result;\n  v3 = *(_QWORD *)(a1 + 12920);\n  v4 = *(_QWORD *)(a1 + 12928);\n  if ( v4 == v3 )\n    return result;\n  while ( 1 )\n  {\n    if ( !*(_BYTE *)(a1 + 12238) )\n    {\n      result = *(unsigned int *)(a1 + 956);\n      if ( *(_DWORD *)(v3 + 8) != (_DWORD)result )\n        return result;\n      goto LABEL_10;\n    }\n    result = *(unsigned int *)(a1 + 956);\n    if ( *(_DWORD *)v3 == 99 )\n      break;\n    if ( *(_DWORD *)(v3 + 8) != (_DWORD)result )\n      return result;\nLABEL_10:\n    if ( (*(_DWORD *)v3 & 0xFFFFFFFE) != 0x62 )\n    {\n      GJBaseGameLayer::handleButton(a1, *(unsigned __int8 *)(v3 + 4), *(_DWORD *)v3, *(_BYTE *)(v3 + 5) ^ 1, a2);\n      v3 = *(_QWORD *)(a1 + 12920);\n      v4 = *(_QWORD *)(a1 + 12928);\n    }\n    result = v3;\n    v5 = v4 - (v3 + 16);\n    if ( v5 )\n    {\n      memmove((void *)v3, (const void *)(v3 + 16), v5);\n      result = *(_QWORD *)(a1 + 12920);\n    }\n    v4 = v3 + v5;\n    *(_QWORD *)(a1 + 12928) = v4;\n    v3 = result;\n    if ( v4 == result )\n      return result;\n  }\n  if ( (int)result > *(_DWORD *)(v3 + 8) )\n    *(_BYTE *)(a1 + 12650) = 1;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::updateReplay from 0x1001349f0 to 0x100134ad5 (229 bytes)\n; \n; 0 xrefs:\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:50 +0000\n; \ncmp     byte ptr [rdi+30A0h], 1                                        ; +0x0, 0x1001349f0\njnz     short locret_100134A23                                         ; +0x7, 0x1001349f7\npush    rbp                                                            ; +0x9, 0x1001349f9\nmov     rbp, rsp                                                       ; +0xa, 0x1001349fa\npush    r15                                                            ; +0xd, 0x1001349fd\npush    r14                                                            ; +0xf, 0x1001349ff\npush    rbx                                                            ; +0x11, 0x100134a01\npush    rax                                                            ; +0x12, 0x100134a02\nmov     rbx, rdi                                                       ; +0x13, 0x100134a03\nmov     r14, [rdi+3278h]                                               ; +0x16, 0x100134a06\nmov     r15, [rdi+3280h]                                               ; +0x1d, 0x100134a0d\ncmp     r15, r14                                                       ; +0x24, 0x100134a14\njnz     short loc_100134A42                                            ; +0x27, 0x100134a17\nadd     rsp, 8                                                         ; +0x29, 0x100134a19\npop     rbx                                                            ; +0x2d, 0x100134a1d\npop     r14                                                            ; +0x2e, 0x100134a1e\npop     r15                                                            ; +0x30, 0x100134a20\npop     rbp                                                            ; +0x32, 0x100134a22\nretn                                                                   ; +0x33, 0x100134a23\nalign 10h                                                              ; +0x34, 0x100134a24\nadd     r15, r14                                                       ; +0x40, 0x100134a30\nmov     [rbx+3280h], r15                                               ; +0x43, 0x100134a33\nmov     r14, rax                                                       ; +0x4a, 0x100134a3a\ncmp     r15, rax                                                       ; +0x4d, 0x100134a3d\njz      short loc_100134A19                                            ; +0x50, 0x100134a40\ncmp     byte ptr [rbx+2FCEh], 0                                        ; +0x52, 0x100134a42\njz      short loc_100134A60                                            ; +0x59, 0x100134a49\ncmp     dword ptr [r14], 63h ; 'c'                                     ; +0x5b, 0x100134a4b\nmov     eax, [rbx+3BCh]                                                ; +0x5f, 0x100134a4f\njz      short loc_100134ABF                                            ; +0x65, 0x100134a55\ncmp     [r14+8], eax                                                   ; +0x67, 0x100134a57\njz      short loc_100134A6C                                            ; +0x6b, 0x100134a5b\njmp     short loc_100134A19                                            ; +0x6d, 0x100134a5d\nalign 20h                                                              ; +0x6f, 0x100134a5f\nmov     eax, [rbx+3BCh]                                                ; +0x70, 0x100134a60\ncmp     [r14+8], eax                                                   ; +0x76, 0x100134a66\njnz     short loc_100134A19                                            ; +0x7a, 0x100134a6a\nmov     edx, [r14]                                                     ; +0x7c, 0x100134a6c\nmov     eax, edx                                                       ; +0x7f, 0x100134a6f\nand     eax, 0FFFFFFFEh                                                ; +0x81, 0x100134a71\ncmp     eax, 62h ; 'b'                                                 ; +0x84, 0x100134a74\njz      short loc_100134A9C                                            ; +0x87, 0x100134a77\nmovzx   esi, byte ptr [r14+4]                                          ; +0x89, 0x100134a79\nmovzx   ecx, byte ptr [r14+5]                                          ; +0x8e, 0x100134a7e\nxor     ecx, 1                                                         ; +0x93, 0x100134a83\nmov     rdi, rbx                                                       ; +0x96, 0x100134a86\ncall    GJBaseGameLayer__handleButton                                  ; +0x99, 0x100134a89\nmov     r14, [rbx+3278h]                                               ; +0x9e, 0x100134a8e\nmov     r15, [rbx+3280h]                                               ; +0xa5, 0x100134a95\nlea     rsi, [r14+10h]; __src                                          ; +0xac, 0x100134a9c\nmov     rax, r14                                                       ; +0xb0, 0x100134aa0\nsub     r15, rsi                                                       ; +0xb3, 0x100134aa3\njz      short loc_100134A30                                            ; +0xb6, 0x100134aa6\nmov     rdi, r14; __dst                                                ; +0xb8, 0x100134aa8\nmov     rdx, r15; __len                                                ; +0xbb, 0x100134aab\ncall    _memmove                                                       ; +0xbe, 0x100134aae\nmov     rax, [rbx+3278h]                                               ; +0xc3, 0x100134ab3\njmp     loc_100134A30                                                  ; +0xca, 0x100134aba\ncmp     eax, [r14+8]                                                   ; +0xcf, 0x100134abf\njle     loc_100134A19                                                  ; +0xd3, 0x100134ac3\nmov     byte ptr [rbx+316Ah], 1                                        ; +0xd9, 0x100134ac9\njmp     loc_100134A19                                                  ; +0xe0, 0x100134ad0", "xrefs": [], "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"}