{"type": "func", "start": 5370772880, "end": 5370772988, "name": "GauntletLayer::onLevel", "pseudocode": "// \n// GauntletLayer::onLevel from 0x1401f7d90 to 0x1401f7dfc (108 bytes)\n// \n// 3 xrefs:\n// > GauntletLayer::setupGauntlet @ 0x1401f719b\n// > <???> @ 0x1406cc8f4\n// > <???> @ 0x1406cc900\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid GauntletLayer::onLevel(GauntletLayer *a1, cocos2d::CCObject *a2)\n{\n  unsigned int v3; // eax\n  GJGameLevel *v4; // rbx\n  GameLevelManager *v5; // rcx\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  v3 = a2->getTag(a2);\n  v4 = (GJGameLevel *)cocos2d::CCArray::objectAtIndex(a1->m_levels, v3);\n  v5 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v6 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v5 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  GameLevelManager::gotoLevelPage(v5, v4);\n}", "assembly": "; \n; GauntletLayer::onLevel from 0x1401f7d90 to 0x1401f7dfc (108 bytes)\n; \n; 3 xrefs:\n; > GauntletLayer::setupGauntlet @ 0x1401f719b\n; > <???> @ 0x1406cc8f4\n; > <???> @ 0x1406cc900\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1401f7d90\nsub     rsp, 20h                                                       ; +0x2, 0x1401f7d92\nmov     rbx, rcx                                                       ; +0x6, 0x1401f7d96\nmov     rax, [rdx]                                                     ; +0x9, 0x1401f7d99\nmov     rcx, rdx                                                       ; +0xc, 0x1401f7d9c\ncall    qword ptr [rax+38h]                                            ; +0xf, 0x1401f7d9f\nmov     edx, eax                                                       ; +0x12, 0x1401f7da2\nmov     rcx, [rbx+1A0h]                                                ; +0x14, 0x1401f7da4\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x1b, 0x1401f7dab\nmov     rbx, rax                                                       ; +0x21, 0x1401f7db1\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x24, 0x1401f7db4\ntest    rcx, rcx                                                       ; +0x2b, 0x1401f7dbb\njnz     short loc_1401F7DEF                                            ; +0x2e, 0x1401f7dbe\nmov     ecx, 3D0h; Size                                                ; +0x30, 0x1401f7dc0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x1401f7dc5\nmov     [rsp+28h+arg_0], rax                                           ; +0x3a, 0x1401f7dca\nmov     rcx, rax                                                       ; +0x3f, 0x1401f7dcf\ncall    sub_140141280                                                  ; +0x42, 0x1401f7dd2\nnop                                                                    ; +0x47, 0x1401f7dd7\nmov     cs:qword_1406C2EC0, rax                                        ; +0x48, 0x1401f7dd8\nmov     rdx, [rax]                                                     ; +0x4f, 0x1401f7ddf\nmov     rcx, rax                                                       ; +0x52, 0x1401f7de2\ncall    qword ptr [rdx+48h]                                            ; +0x55, 0x1401f7de5\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x58, 0x1401f7de8\nmov     rdx, rbx                                                       ; +0x5f, 0x1401f7def\nadd     rsp, 20h                                                       ; +0x62, 0x1401f7df2\npop     rbx                                                            ; +0x66, 0x1401f7df6\njmp     GameLevelManager__gotoLevelPage                                ; +0x67, 0x1401f7df7", "xrefs": ["GauntletLayer::setupGauntlet @ 0x1401f719b", "<???> @ 0x1406cc8f4", "<???> @ 0x1406cc900"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}