{"type": "func", "start": 5369985616, "end": 5369985862, "name": "CreatorLayer::onGauntlets", "pseudocode": "// \n// CreatorLayer::onGauntlets from 0x140137a50 to 0x140137b46 (246 bytes)\n// \n// 2 xrefs:\n// > CreatorLayer::init @ 0x140135d0a\n// > <???> @ 0x140917174\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:27:05 +0000\n// \n\n// Hidden C++ exception states: #wind=4\n__int64 __fastcall CreatorLayer::onGauntlets(__int64 a1)\n{\n  __int64 v2; // rdx\n  __int64 v3; // rcx\n  struct cocos2d::CCScene *v4; // rax\n  struct cocos2d::CCScene *v5; // rbx\n  __int64 v6; // rcx\n  cocos2d::CCDirector *v7; // rax\n  __int64 result; // rax\n  void *v9; // [rsp+30h] [rbp+8h]\n  void *v10; // [rsp+30h] [rbp+8h]\n\n  v2 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v9 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v9);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v2 = *(_QWORD *)&qword_14090BFB0;\n  }\n  if ( *(_DWORD *)(v2 + 1000) > *(_DWORD *)(v2 + 1024) )\n    *(_BYTE *)(v2 + 1576) = 1;\n  *(_DWORD *)(v2 + 1024) = *(_DWORD *)(v2 + 1000);\n  v3 = *(_QWORD *)(a1 + 472);\n  if ( v3 )\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 568LL))(v3);\n  v4 = (struct cocos2d::CCScene *)GauntletSelectLayer::scene();\n  v5 = cocos2d::CCTransitionFade::create(0.5, v4);\n  v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);\n  cocos2d::CCDirector::pushScene(v7, v5);\n  result = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v10 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    result = qword_14090BFD0;\n  }\n  *(_DWORD *)(result + 740) = 1;\n  return result;\n}", "assembly": "; \n; CreatorLayer::onGauntlets from 0x140137a50 to 0x140137b46 (246 bytes)\n; \n; 2 xrefs:\n; > CreatorLayer::init @ 0x140135d0a\n; > <???> @ 0x140917174\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:27:05 +0000\n; \npush    rbx                                                            ; +0x0, 0x140137a50\nsub     rsp, 20h                                                       ; +0x2, 0x140137a52\nmov     rbx, rcx                                                       ; +0x6, 0x140137a56\nmov     rdx, cs:qword_14090BFB0                                        ; +0x9, 0x140137a59\ntest    rdx, rdx                                                       ; +0x10, 0x140137a60\njnz     short loc_140137A97                                            ; +0x13, 0x140137a63\nmov     ecx, 690h; Size                                                ; +0x15, 0x140137a65\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x140137a6a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x140137a6f\nmov     rcx, rax                                                       ; +0x24, 0x140137a74\ncall    GameLevelManager__GameLevelManager                             ; +0x27, 0x140137a77\nnop                                                                    ; +0x2c, 0x140137a7c\nmov     cs:qword_14090BFB0, rax                                        ; +0x2d, 0x140137a7d\nmov     rcx, [rax]                                                     ; +0x34, 0x140137a84\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x140137a87\nmov     rcx, rax                                                       ; +0x3b, 0x140137a8b\ncall    rdx                                                            ; +0x3e, 0x140137a8e\nmov     rdx, cs:qword_14090BFB0                                        ; +0x40, 0x140137a90\nmov     eax, [rdx+400h]                                                ; +0x47, 0x140137a97\ncmp     [rdx+3E8h], eax                                                ; +0x4d, 0x140137a9d\njle     short loc_140137AAC                                            ; +0x53, 0x140137aa3\nmov     byte ptr [rdx+628h], 1                                         ; +0x55, 0x140137aa5\nmov     eax, [rdx+3E8h]                                                ; +0x5c, 0x140137aac\nmov     [rdx+400h], eax                                                ; +0x62, 0x140137ab2\nmov     rcx, [rbx+1D8h]                                                ; +0x68, 0x140137ab8\ntest    rcx, rcx                                                       ; +0x6f, 0x140137abf\njz      short loc_140137ACD                                            ; +0x72, 0x140137ac2\nmov     rax, [rcx]                                                     ; +0x74, 0x140137ac4\ncall    qword ptr [rax+238h]                                           ; +0x77, 0x140137ac7\ncall    GauntletSelectLayer__scene                                     ; +0x7d, 0x140137acd\nmov     rdx, rax                                                       ; +0x82, 0x140137ad2\nmovss   xmm0, cs:dword_140834F20                                       ; +0x85, 0x140137ad5\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x8d, 0x140137add\nmov     rbx, rax                                                       ; +0x93, 0x140137ae3\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x96, 0x140137ae6\nmov     rcx, rax                                                       ; +0x9c, 0x140137aec\nmov     rdx, rbx                                                       ; +0x9f, 0x140137aef\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0xa2, 0x140137af2\nmov     rax, cs:qword_14090BFD0                                        ; +0xa8, 0x140137af8\ntest    rax, rax                                                       ; +0xaf, 0x140137aff\njnz     short loc_140137B36                                            ; +0xb2, 0x140137b02\nmov     ecx, 6E8h; Size                                                ; +0xb4, 0x140137b04\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb9, 0x140137b09\nmov     [rsp+28h+arg_0], rax                                           ; +0xbe, 0x140137b0e\nmov     rcx, rax                                                       ; +0xc3, 0x140137b13\ncall    GameManager__GameManager                                       ; +0xc6, 0x140137b16\nnop                                                                    ; +0xcb, 0x140137b1b\nmov     cs:qword_14090BFD0, rax                                        ; +0xcc, 0x140137b1c\nmov     rcx, [rax]                                                     ; +0xd3, 0x140137b23\nmov     rdx, [rcx+48h]                                                 ; +0xd6, 0x140137b26\nmov     rcx, rax                                                       ; +0xda, 0x140137b2a\ncall    rdx                                                            ; +0xdd, 0x140137b2d\nmov     rax, cs:qword_14090BFD0                                        ; +0xdf, 0x140137b2f\nmov     dword ptr [rax+2E4h], 1                                        ; +0xe6, 0x140137b36\nadd     rsp, 20h                                                       ; +0xf0, 0x140137b40\npop     rbx                                                            ; +0xf4, 0x140137b44\nretn                                                                   ; +0xf5, 0x140137b45", "xrefs": ["CreatorLayer::init @ 0x140135d0a", "<???> @ 0x140917174"], "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"}