{"type": "func", "start": 4296017120, "end": 4296017458, "name": "GJBaseGameLayer::resetPlayer", "pseudocode": "// \n// GJBaseGameLayer::resetPlayer from 0x1001004e0 to 0x100100632 (338 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::setupHasCompleted @ 0x10007b5ac\n// > LevelEditorLayer::onPlaytest @ 0x1000c5f70\n// > GJBaseGameLayer::resetLevelVariables @ 0x100138e67\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:21:20 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::resetPlayer(_QWORD *a1)\n{\n  __int64 v2; // rdi\n  __int64 v3; // rax\n  __int64 v4; // r14\n  __int64 v5; // r14\n  char v6; // cl\n  __int64 result; // rax\n  __int64 Object; // rax\n  _BYTE v9[8]; // [rsp+0h] [rbp-30h] BYREF\n  _DWORD v10[10]; // [rsp+8h] [rbp-28h] BYREF\n\n  sub_100278250(v10, 0.0, 105.0);\n  v2 = a1[1554];\n  if ( v2 )\n  {\n    v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2);\n    sub_100278300(v10, v3);\n  }\n  else if ( *(int *)(a1[409] + 444LL) > 0 )\n  {\n    Object = GJBaseGameLayer::tryGetObject(a1);\n    if ( Object )\n    {\n      (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)Object + 1360LL))(v9, Object);\n      sub_100278300(v10, v9);\n      if ( !*(_BYTE *)(a1[409] + 341LL) )\n        v10[0] = 0;\n    }\n  }\n  v4 = a1[407];\n  sub_1002782D0(v9, v10);\n  (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v4 + 1368LL))(v4, v9);\n  (*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[407] + 1288LL))(a1[407]);\n  v5 = a1[408];\n  sub_1002782D0(v9, v10);\n  (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 1368LL))(v5, v9);\n  (*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[408] + 1288LL))(a1[408]);\n  v6 = *(_BYTE *)(a1[409] + 461LL) ^ 1;\n  *(_BYTE *)(a1[407] + 2528LL) = v6;\n  result = a1[408];\n  *(_BYTE *)(result + 2528) = v6;\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::resetPlayer from 0x1001004e0 to 0x100100632 (338 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::setupHasCompleted @ 0x10007b5ac\n; > LevelEditorLayer::onPlaytest @ 0x1000c5f70\n; > GJBaseGameLayer::resetLevelVariables @ 0x100138e67\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:21:20 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001004e0\nmov     rbp, rsp                                                       ; +0x1, 0x1001004e1\npush    r15                                                            ; +0x4, 0x1001004e4\npush    r14                                                            ; +0x6, 0x1001004e6\npush    r12                                                            ; +0x8, 0x1001004e8\npush    rbx                                                            ; +0xa, 0x1001004ea\nsub     rsp, 10h                                                       ; +0xb, 0x1001004eb\nmov     rbx, rdi                                                       ; +0xf, 0x1001004ef\nlea     rdi, [rbp+var_28]                                              ; +0x12, 0x1001004f2\nmovss   xmm1, cs:dword_100A03594                                       ; +0x16, 0x1001004f6\nxorps   xmm0, xmm0                                                     ; +0x1e, 0x1001004fe\ncall    sub_100278250                                                  ; +0x21, 0x100100501\nmov     rdi, [rbx+3090h]                                               ; +0x26, 0x100100506\ntest    rdi, rdi                                                       ; +0x2d, 0x10010050d\njz      loc_1001005CD                                                  ; +0x30, 0x100100510\nmov     rax, [rdi]                                                     ; +0x36, 0x100100516\ncall    qword ptr [rax+0C0h]                                           ; +0x39, 0x100100519\nlea     rdi, [rbp+var_28]                                              ; +0x3f, 0x10010051f\nmov     rsi, rax                                                       ; +0x43, 0x100100523\ncall    sub_100278300                                                  ; +0x46, 0x100100526\nmov     r14, [rbx+0CB8h]                                               ; +0x4b, 0x10010052b\nlea     r15, [rbp+var_30]                                              ; +0x52, 0x100100532\nlea     r12, [rbp+var_28]                                              ; +0x56, 0x100100536\nmov     rdi, r15                                                       ; +0x5a, 0x10010053a\nmov     rsi, r12                                                       ; +0x5d, 0x10010053d\ncall    sub_1002782D0                                                  ; +0x60, 0x100100540\nmov     rax, [r14]                                                     ; +0x65, 0x100100545\nmov     rdi, r14                                                       ; +0x68, 0x100100548\nmov     rsi, r15                                                       ; +0x6b, 0x10010054b\ncall    qword ptr [rax+558h]                                           ; +0x6e, 0x10010054e\nmov     rdi, [rbx+0CB8h]                                               ; +0x74, 0x100100554\nmov     rax, [rdi]                                                     ; +0x7b, 0x10010055b\ncall    qword ptr [rax+508h]                                           ; +0x7e, 0x10010055e\nmov     r14, [rbx+0CC0h]                                               ; +0x84, 0x100100564\nmov     rdi, r15                                                       ; +0x8b, 0x10010056b\nmov     rsi, r12                                                       ; +0x8e, 0x10010056e\ncall    sub_1002782D0                                                  ; +0x91, 0x100100571\nmov     rax, [r14]                                                     ; +0x96, 0x100100576\nmov     rdi, r14                                                       ; +0x99, 0x100100579\nmov     rsi, r15                                                       ; +0x9c, 0x10010057c\ncall    qword ptr [rax+558h]                                           ; +0x9f, 0x10010057f\nmov     rdi, [rbx+0CC0h]                                               ; +0xa5, 0x100100585\nmov     rax, [rdi]                                                     ; +0xac, 0x10010058c\ncall    qword ptr [rax+508h]                                           ; +0xaf, 0x10010058f\nmov     rax, [rbx+0CB8h]                                               ; +0xb5, 0x100100595\nmov     rcx, [rbx+0CC8h]                                               ; +0xbc, 0x10010059c\nmovzx   ecx, byte ptr [rcx+1CDh]                                       ; +0xc3, 0x1001005a3\nxor     cl, 1                                                          ; +0xca, 0x1001005aa\nmov     [rax+9E0h], cl                                                 ; +0xcd, 0x1001005ad\nmov     rax, [rbx+0CC0h]                                               ; +0xd3, 0x1001005b3\nmov     [rax+9E0h], cl                                                 ; +0xda, 0x1001005ba\nadd     rsp, 10h                                                       ; +0xe0, 0x1001005c0\npop     rbx                                                            ; +0xe4, 0x1001005c4\npop     r12                                                            ; +0xe5, 0x1001005c5\npop     r14                                                            ; +0xe7, 0x1001005c7\npop     r15                                                            ; +0xe9, 0x1001005c9\npop     rbp                                                            ; +0xeb, 0x1001005cb\nretn                                                                   ; +0xec, 0x1001005cc\nmov     rax, [rbx+0CC8h]                                               ; +0xed, 0x1001005cd\nmov     esi, [rax+1BCh]                                                ; +0xf4, 0x1001005d4\ntest    esi, esi                                                       ; +0xfa, 0x1001005da\njle     loc_10010052B                                                  ; +0xfc, 0x1001005dc\nmov     rdi, rbx                                                       ; +0x102, 0x1001005e2\ncall    GJBaseGameLayer__tryGetObject                                  ; +0x105, 0x1001005e5\ntest    rax, rax                                                       ; +0x10a, 0x1001005ea\njz      loc_10010052B                                                  ; +0x10d, 0x1001005ed\nmov     rcx, [rax]                                                     ; +0x113, 0x1001005f3\nlea     r14, [rbp+var_30]                                              ; +0x116, 0x1001005f6\nmov     rdi, r14                                                       ; +0x11a, 0x1001005fa\nmov     rsi, rax                                                       ; +0x11d, 0x1001005fd\ncall    qword ptr [rcx+550h]                                           ; +0x120, 0x100100600\nlea     rdi, [rbp+var_28]                                              ; +0x126, 0x100100606\nmov     rsi, r14                                                       ; +0x12a, 0x10010060a\ncall    sub_100278300                                                  ; +0x12d, 0x10010060d\nmov     rax, [rbx+0CC8h]                                               ; +0x132, 0x100100612\ncmp     byte ptr [rax+155h], 0                                         ; +0x139, 0x100100619\njnz     loc_10010052B                                                  ; +0x140, 0x100100620\nmov     [rbp+var_28], 0                                                ; +0x146, 0x100100626\njmp     loc_10010052B                                                  ; +0x14d, 0x10010062d", "xrefs": ["PlayLayer::setupHasCompleted @ 0x10007b5ac", "LevelEditorLayer::onPlaytest @ 0x1000c5f70", "GJBaseGameLayer::resetLevelVariables @ 0x100138e67"], "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"}