{"type": "func", "start": 5371833168, "end": 5371833478, "name": "GauntletLayer::scene", "pseudocode": "// \n// GauntletLayer::scene from 0x1402fab50 to 0x1402fac86 (310 bytes)\n// \n// 3 xrefs:\n// > GauntletSelectLayer::onPlay @ 0x1402ffe9c\n// > LevelInfoLayer::onBack @ 0x140426545\n// > <???> @ 0x14091e350\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:05 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GauntletLayer::scene(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  unsigned int v4; // ebx\n  __int64 v5; // rsi\n  __int64 v6; // rcx\n  _QWORD *v7; // rdi\n\n  v4 = a1;\n  v5 = cocos2d::CCScene::create(a1, a2, a3, a4);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v6) + 232) = v5;\n  v7 = operator new(0x1E0u);\n  memset(v7, 0, 0x1E0u);\n  cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v7);\n  *v7 = &GauntletLayer::`vftable';\n  v7[40] = &GauntletLayer::`vftable';\n  v7[41] = &GauntletLayer::`vftable';\n  v7[42] = &GauntletLayer::`vftable';\n  v7[43] = &GauntletLayer::`vftable';\n  v7[44] = &GauntletLayer::`vftable';\n  v7[51] = &GauntletLayer::`vftable';\n  v7[52] = 0;\n  v7[53] = 0;\n  v7[55] = 0;\n  v7[56] = 0;\n  v7[57] = 0;\n  v7[58] = 0;\n  v7[59] = 0;\n  if ( (unsigned __int8)GauntletLayer::init(v7, v4) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v7 + 8LL))(v7, 1);\n    v7 = nullptr;\n  }\n  (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v5 + 464LL))(v5, v7);\n  return v5;\n}", "assembly": "; \n; GauntletLayer::scene from 0x1402fab50 to 0x1402fac86 (310 bytes)\n; \n; 3 xrefs:\n; > GauntletSelectLayer::onPlay @ 0x1402ffe9c\n; > LevelInfoLayer::onBack @ 0x140426545\n; > <???> @ 0x14091e350\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:05 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1402fab50\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1402fab55\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1402fab5a\npush    rdi                                                            ; +0xf, 0x1402fab5f\nsub     rsp, 20h                                                       ; +0x10, 0x1402fab60\nmov     ebx, ecx                                                       ; +0x14, 0x1402fab64\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x16, 0x1402fab66\nmov     rsi, rax                                                       ; +0x1c, 0x1402fab6c\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x1f, 0x1402fab6f\nmov     [rax+0E8h], rsi                                                ; +0x25, 0x1402fab75\nmov     ecx, 1E0h; Size                                                ; +0x2c, 0x1402fab7c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x1402fab81\nmov     rdi, rax                                                       ; +0x36, 0x1402fab86\nmov     [rsp+28h+arg_8], rax                                           ; +0x39, 0x1402fab89\nxor     edx, edx; Val                                                  ; +0x3e, 0x1402fab8e\nmov     r8d, 1E0h; Size                                                ; +0x40, 0x1402fab90\nmov     rcx, rax; void *                                               ; +0x46, 0x1402fab96\ncall    memset                                                         ; +0x49, 0x1402fab99\nmov     rcx, rdi                                                       ; +0x4e, 0x1402fab9e\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x51, 0x1402faba1\nlea     rax, ??_7GauntletLayer@@6B@; const GauntletLayer::`vftable'    ; +0x57, 0x1402faba7\nmov     [rdi], rax                                                     ; +0x5e, 0x1402fabae\nlea     rax, ??_7GauntletLayer@@6B@_0; const GauntletLayer::`vftable'  ; +0x61, 0x1402fabb1\nmov     [rdi+140h], rax                                                ; +0x68, 0x1402fabb8\nlea     rax, ??_7GauntletLayer@@6B@_1; const GauntletLayer::`vftable'  ; +0x6f, 0x1402fabbf\nmov     [rdi+148h], rax                                                ; +0x76, 0x1402fabc6\nlea     rax, ??_7GauntletLayer@@6B@_2; const GauntletLayer::`vftable'  ; +0x7d, 0x1402fabcd\nmov     [rdi+150h], rax                                                ; +0x84, 0x1402fabd4\nlea     rax, ??_7GauntletLayer@@6B@_3; const GauntletLayer::`vftable'  ; +0x8b, 0x1402fabdb\nmov     [rdi+158h], rax                                                ; +0x92, 0x1402fabe2\nlea     rax, ??_7GauntletLayer@@6B@_4; const GauntletLayer::`vftable'  ; +0x99, 0x1402fabe9\nmov     [rdi+160h], rax                                                ; +0xa0, 0x1402fabf0\nlea     rax, ??_7GauntletLayer@@6B@_5; const GauntletLayer::`vftable'  ; +0xa7, 0x1402fabf7\nmov     [rdi+198h], rax                                                ; +0xae, 0x1402fabfe\nxor     ebp, ebp                                                       ; +0xb5, 0x1402fac05\nmov     [rdi+1A0h], rbp                                                ; +0xb7, 0x1402fac07\nmov     [rdi+1A8h], rbp                                                ; +0xbe, 0x1402fac0e\nmov     [rdi+1B8h], rbp                                                ; +0xc5, 0x1402fac15\nmov     [rdi+1C0h], rbp                                                ; +0xcc, 0x1402fac1c\nmov     [rdi+1C8h], rbp                                                ; +0xd3, 0x1402fac23\nmov     [rdi+1D0h], rbp                                                ; +0xda, 0x1402fac2a\nmov     [rdi+1D8h], rbp                                                ; +0xe1, 0x1402fac31\nmov     edx, ebx                                                       ; +0xe8, 0x1402fac38\nmov     rcx, rdi                                                       ; +0xea, 0x1402fac3a\ncall    GauntletLayer__init                                            ; +0xed, 0x1402fac3d\nmov     rcx, rdi                                                       ; +0xf2, 0x1402fac42\ntest    al, al                                                         ; +0xf5, 0x1402fac45\njz      short loc_1402FAC51                                            ; +0xf7, 0x1402fac47\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xf9, 0x1402fac49\njmp     short loc_1402FAC5F                                            ; +0xff, 0x1402fac4f\nmov     rax, [rdi]                                                     ; +0x101, 0x1402fac51\nmov     edx, 1                                                         ; +0x104, 0x1402fac54\ncall    qword ptr [rax+8]                                              ; +0x109, 0x1402fac59\nmov     rdi, rbp                                                       ; +0x10c, 0x1402fac5c\nmov     rax, [rsi]                                                     ; +0x10f, 0x1402fac5f\nmov     rdx, rdi                                                       ; +0x112, 0x1402fac62\nmov     rcx, rsi                                                       ; +0x115, 0x1402fac65\ncall    qword ptr [rax+1D0h]                                           ; +0x118, 0x1402fac68\nmov     rax, rsi                                                       ; +0x11e, 0x1402fac6e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x121, 0x1402fac71\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x126, 0x1402fac76\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x12b, 0x1402fac7b\nadd     rsp, 20h                                                       ; +0x130, 0x1402fac80\npop     rdi                                                            ; +0x134, 0x1402fac84\nretn                                                                   ; +0x135, 0x1402fac85", "xrefs": ["GauntletSelectLayer::onPlay @ 0x1402ffe9c", "LevelInfoLayer::onBack @ 0x140426545", "<???> @ 0x14091e350"], "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"}