{"type": "func", "start": 5371841424, "end": 5371841535, "name": "GauntletLayer::onLevel", "pseudocode": "// \n// GauntletLayer::onLevel from 0x1402fcb90 to 0x1402fcbff (111 bytes)\n// \n// 2 xrefs:\n// > GauntletLayer::setupGauntlet @ 0x1402fbf5d\n// > <???> @ 0x14091e38c\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 11:30:06 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar __fastcall GauntletLayer::onLevel(__int64 a1, __int64 a2)\n{\n  cocos2d::CCArray *v2; // rbx\n  unsigned int v3; // eax\n  struct cocos2d::CCObject *v4; // rbx\n  __int64 v5; // r8\n  __int64 v6; // r9\n  _QWORD *v7; // rcx\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  v2 = *(cocos2d::CCArray **)(a1 + 416);\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  v4 = cocos2d::CCArray::objectAtIndex(v2, v3);\n  v7 = *(_QWORD **)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v9 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v9);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v7 = *(_QWORD **)&qword_14090BFB0;\n  }\n  return GameLevelManager::gotoLevelPage(v7, (__int64)v4, v5, v6);\n}", "assembly": "; \n; GauntletLayer::onLevel from 0x1402fcb90 to 0x1402fcbff (111 bytes)\n; \n; 2 xrefs:\n; > GauntletLayer::setupGauntlet @ 0x1402fbf5d\n; > <???> @ 0x14091e38c\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 11:30:06 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402fcb90\nsub     rsp, 20h                                                       ; +0x2, 0x1402fcb92\nmov     rbx, [rcx+1A0h]                                                ; +0x6, 0x1402fcb96\nmov     rax, [rdx]                                                     ; +0xd, 0x1402fcb9d\nmov     rcx, rdx                                                       ; +0x10, 0x1402fcba0\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x1402fcba3\nmov     edx, eax                                                       ; +0x16, 0x1402fcba6\nmov     rcx, rbx                                                       ; +0x18, 0x1402fcba8\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1b, 0x1402fcbab\nmov     rbx, rax                                                       ; +0x21, 0x1402fcbb1\nmov     rcx, cs:qword_14090BFB0                                        ; +0x24, 0x1402fcbb4\ntest    rcx, rcx                                                       ; +0x2b, 0x1402fcbbb\njnz     short loc_1402FCBF2                                            ; +0x2e, 0x1402fcbbe\nmov     ecx, 690h; Size                                                ; +0x30, 0x1402fcbc0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x1402fcbc5\nmov     [rsp+28h+arg_0], rax                                           ; +0x3a, 0x1402fcbca\nmov     rcx, rax                                                       ; +0x3f, 0x1402fcbcf\ncall    GameLevelManager__GameLevelManager                             ; +0x42, 0x1402fcbd2\nnop                                                                    ; +0x47, 0x1402fcbd7\nmov     cs:qword_14090BFB0, rax                                        ; +0x48, 0x1402fcbd8\nmov     rcx, [rax]                                                     ; +0x4f, 0x1402fcbdf\nmov     rdx, [rcx+48h]                                                 ; +0x52, 0x1402fcbe2\nmov     rcx, rax                                                       ; +0x56, 0x1402fcbe6\ncall    rdx                                                            ; +0x59, 0x1402fcbe9\nmov     rcx, cs:qword_14090BFB0                                        ; +0x5b, 0x1402fcbeb\nmov     rdx, rbx                                                       ; +0x62, 0x1402fcbf2\nadd     rsp, 20h                                                       ; +0x65, 0x1402fcbf5\npop     rbx                                                            ; +0x69, 0x1402fcbf9\njmp     GameLevelManager__gotoLevelPage                                ; +0x6a, 0x1402fcbfa", "xrefs": ["GauntletLayer::setupGauntlet @ 0x1402fbf5d", "<???> @ 0x14091e38c"], "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"}