{"type": "func", "start": 4296233280, "end": 4296233379, "name": "GJBaseGameLayer::setupReplay", "pseudocode": "// \n// GJBaseGameLayer::setupReplay from 0x100135140 to 0x1001351a3 (99 bytes)\n// \n// 1 xrefs:\n// > sub_1002B10F0 @ 0x1002b1141\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\nvoid __fastcall GJBaseGameLayer::setupReplay(__int64 a1, __int128 *a2)\n{\n  __int128 v2; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( *(_BYTE *)(a1 + 12448) == 1 )\n  {\n    if ( (*(_BYTE *)a2 & 1) != 0 )\n    {\n      sub_10001AD30(&v2, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));\n    }\n    else\n    {\n      __p = *((void **)a2 + 2);\n      v2 = *a2;\n    }\n    GJBaseGameLayer::parseRecording(a1, &v2, 0);\n    if ( (v2 & 1) != 0 )\n      operator delete(__p);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::setupReplay from 0x100135140 to 0x1001351a3 (99 bytes)\n; \n; 1 xrefs:\n; > sub_1002B10F0 @ 0x1002b1141\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; \npush    rbp                                                            ; +0x0, 0x100135140\nmov     rbp, rsp                                                       ; +0x1, 0x100135141\npush    rbx                                                            ; +0x4, 0x100135144\nsub     rsp, 18h                                                       ; +0x5, 0x100135145\ncmp     byte ptr [rdi+30A0h], 1                                        ; +0x9, 0x100135149\njnz     short loc_10013519C                                            ; +0x10, 0x100135150\ntest    byte ptr [rsi], 1                                              ; +0x12, 0x100135152\njnz     short loc_100135168                                            ; +0x15, 0x100135155\nmov     rax, [rsi+10h]                                                 ; +0x17, 0x100135157\nmov     [rbp+__p], rax                                                 ; +0x1b, 0x10013515b\nmovups  xmm0, xmmword ptr [rsi]                                        ; +0x1f, 0x10013515f\nmovaps  [rbp+var_20], xmm0                                             ; +0x22, 0x100135162\njmp     short loc_100135182                                            ; +0x26, 0x100135166\nmov     rdx, [rsi+8]                                                   ; +0x28, 0x100135168\nmov     rsi, [rsi+10h]                                                 ; +0x2c, 0x10013516c\nlea     rax, [rbp+var_20]                                              ; +0x30, 0x100135170\nmov     rbx, rdi                                                       ; +0x34, 0x100135174\nmov     rdi, rax                                                       ; +0x37, 0x100135177\ncall    sub_10001AD30                                                  ; +0x3a, 0x10013517a\nmov     rdi, rbx                                                       ; +0x3f, 0x10013517f\nlea     rsi, [rbp+var_20]                                              ; +0x42, 0x100135182\nxor     edx, edx                                                       ; +0x46, 0x100135186\ncall    GJBaseGameLayer__parseRecording                                ; +0x48, 0x100135188\ntest    byte ptr [rbp+var_20], 1                                       ; +0x4d, 0x10013518d\njz      short loc_10013519C                                            ; +0x51, 0x100135191\nmov     rdi, [rbp+__p]; __p                                            ; +0x53, 0x100135193\ncall    __ZdlPv; operator delete(void *)                               ; +0x57, 0x100135197\nadd     rsp, 18h                                                       ; +0x5c, 0x10013519c\npop     rbx                                                            ; +0x60, 0x1001351a0\npop     rbp                                                            ; +0x61, 0x1001351a1\nretn                                                                   ; +0x62, 0x1001351a2", "xrefs": ["sub_1002B10F0 @ 0x1002b1141"], "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"}