{"type": "func", "start": 4298824704, "end": 4298824828, "name": "GJWorldNode::onLevel", "pseudocode": "// \n// GJWorldNode::onLevel from 0x1003adc00 to 0x1003adc7c (124 bytes)\n// \n// 1 xrefs:\n// > GJWorldNode::init @ 0x1003ad5bd\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:29:24 +0000\n// \n\n__int64 __fastcall GJWorldNode::onLevel(__int64 a1, __int64 a2, double a3)\n{\n  __int64 result; // rax\n  __int64 v4; // r15\n  unsigned int v5; // eax\n  __int64 MainLevel; // rax\n  __int64 v7; // rax\n\n  result = *(_QWORD *)(a1 + 344);\n  if ( !*(_BYTE *)(result + 449) && !*(_BYTE *)(result + 464) )\n  {\n    v4 = GameLevelManager::sharedState(a3);\n    v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n    MainLevel = GameLevelManager::getMainLevel(v4, v5, 1);\n    *(_QWORD *)(a1 + 336) = MainLevel;\n    v7 = sub_1003ADEF0(MainLevel, a1);\n    return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);\n  }\n  return result;\n}", "assembly": "; \n; GJWorldNode::onLevel from 0x1003adc00 to 0x1003adc7c (124 bytes)\n; \n; 1 xrefs:\n; > GJWorldNode::init @ 0x1003ad5bd\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:29:24 +0000\n; \npush    rbp                                                            ; +0x0, 0x1003adc00\nmov     rbp, rsp                                                       ; +0x1, 0x1003adc01\npush    r15                                                            ; +0x4, 0x1003adc04\npush    r14                                                            ; +0x6, 0x1003adc06\npush    rbx                                                            ; +0x8, 0x1003adc08\npush    rax                                                            ; +0x9, 0x1003adc09\nmov     rax, [rdi+158h]                                                ; +0xa, 0x1003adc0a\ncmp     byte ptr [rax+1C1h], 0                                         ; +0x11, 0x1003adc11\njnz     short loc_1003ADC23                                            ; +0x18, 0x1003adc18\ncmp     byte ptr [rax+1D0h], 0                                         ; +0x1a, 0x1003adc1a\njz      short loc_1003ADC2E                                            ; +0x21, 0x1003adc21\nadd     rsp, 8                                                         ; +0x23, 0x1003adc23\npop     rbx                                                            ; +0x27, 0x1003adc27\npop     r14                                                            ; +0x28, 0x1003adc28\npop     r15                                                            ; +0x2a, 0x1003adc2a\npop     rbp                                                            ; +0x2c, 0x1003adc2c\nretn                                                                   ; +0x2d, 0x1003adc2d\nmov     rbx, rdi                                                       ; +0x2e, 0x1003adc2e\nmov     r14, rsi                                                       ; +0x31, 0x1003adc31\ncall    GameLevelManager__sharedState                                  ; +0x34, 0x1003adc34\nmov     r15, rax                                                       ; +0x39, 0x1003adc39\nmov     rax, [r14]                                                     ; +0x3c, 0x1003adc3c\nmov     rdi, r14                                                       ; +0x3f, 0x1003adc3f\ncall    qword ptr [rax+40h]                                            ; +0x42, 0x1003adc42\nmov     rdi, r15                                                       ; +0x45, 0x1003adc45\nmov     esi, eax                                                       ; +0x48, 0x1003adc48\nmov     edx, 1                                                         ; +0x4a, 0x1003adc4a\ncall    GameLevelManager__getMainLevel                                 ; +0x4f, 0x1003adc4f\nmov     [rbx+150h], rax                                                ; +0x54, 0x1003adc54\nmov     rdi, rax                                                       ; +0x5b, 0x1003adc5b\nmov     rsi, rbx                                                       ; +0x5e, 0x1003adc5e\ncall    sub_1003ADEF0                                                  ; +0x61, 0x1003adc61\nmov     rcx, [rax]                                                     ; +0x66, 0x1003adc66\nmov     rdi, rax                                                       ; +0x69, 0x1003adc69\nadd     rsp, 8                                                         ; +0x6c, 0x1003adc6c\npop     rbx                                                            ; +0x70, 0x1003adc70\npop     r14                                                            ; +0x71, 0x1003adc71\npop     r15                                                            ; +0x73, 0x1003adc73\npop     rbp                                                            ; +0x75, 0x1003adc75\njmp     qword ptr [rcx+520h]                                           ; +0x76, 0x1003adc76", "xrefs": ["GJWorldNode::init @ 0x1003ad5bd"], "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"}