{"type": "func", "start": 5370764784, "end": 5370765078, "name": "GauntletLayer::scene", "pseudocode": "// \n// GauntletLayer::scene from 0x1401f5df0 to 0x1401f5f16 (294 bytes)\n// \n// 4 xrefs:\n// > GauntletSelectLayer::onPlay @ 0x1401faf71\n// > LevelInfoLayer::onBack @ 0x1403007a2\n// > <???> @ 0x1406cc8b8\n// > <???> @ 0x1406cc8c4\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// local variable allocation has failed, the output may be wrong!\n// Hidden C++ exception states: #wind=1\ncocos2d::CCScene *GauntletLayer::scene(GauntletType a1)\n{\n  cocos2d::CCScene *v2; // rsi\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n  GauntletLayer *v5; // rdi\n\n  v2 = (cocos2d::CCScene *)cocos2d::CCScene::create(*(_QWORD *)&a1);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v4, v3) + 224) = v2;\n  v5 = (GauntletLayer *)operator new(0x1E0u);\n  cocos2d::CCLayer::CCLayer(v5);\n  v5->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GauntletLayer_vtbl *)&GauntletLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GauntletLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GauntletLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GauntletLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GauntletLayer::`vftable';\n  v5->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GauntletLayer::`vftable';\n  v5->LevelManagerDelegate::__vftable = (LevelManagerDelegate_vtbl *)&GauntletLayer::`vftable';\n  v5->m_levels = nullptr;\n  v5->m_loadingCircle = nullptr;\n  v5->m_backgroundSprite = nullptr;\n  v5->m_unkPtr = nullptr;\n  v5->m_activeItemButton = nullptr;\n  v5->m_activeObjects = nullptr;\n  v5->m_tryAgainText = nullptr;\n  if ( GauntletLayer::init(v5, a1) )\n  {\n    cocos2d::CCObject::autorelease(v5);\n  }\n  else\n  {\n    ((void (__fastcall *)(GauntletLayer *, __int64))v5->~GauntletLayer)(v5, 1);\n    v5 = nullptr;\n  }\n  v2->addChild_1(v2, v5);\n  return v2;\n}", "assembly": "; \n; GauntletLayer::scene from 0x1401f5df0 to 0x1401f5f16 (294 bytes)\n; \n; 4 xrefs:\n; > GauntletSelectLayer::onPlay @ 0x1401faf71\n; > LevelInfoLayer::onBack @ 0x1403007a2\n; > <???> @ 0x1406cc8b8\n; > <???> @ 0x1406cc8c4\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1401f5df0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1401f5df5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1401f5dfa\npush    rdi                                                            ; +0xf, 0x1401f5dff\nsub     rsp, 20h                                                       ; +0x10, 0x1401f5e00\nmov     ebx, ecx                                                       ; +0x14, 0x1401f5e04\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x16, 0x1401f5e06\nmov     rsi, rax                                                       ; +0x1c, 0x1401f5e0c\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x1f, 0x1401f5e0f\nmov     [rax+0E0h], rsi                                                ; +0x25, 0x1401f5e15\nmov     ecx, 1E0h; Size                                                ; +0x2c, 0x1401f5e1c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x1401f5e21\nmov     rdi, rax                                                       ; +0x36, 0x1401f5e26\nmov     [rsp+28h+arg_8], rax                                           ; +0x39, 0x1401f5e29\nmov     rcx, rax                                                       ; +0x3e, 0x1401f5e2e\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x41, 0x1401f5e31\nlea     rax, ??_7GauntletLayer@@6B@; const GauntletLayer::`vftable'    ; +0x47, 0x1401f5e37\nmov     [rdi], rax                                                     ; +0x4e, 0x1401f5e3e\nlea     rax, ??_7GauntletLayer@@6B@_0; const GauntletLayer::`vftable'  ; +0x51, 0x1401f5e41\nmov     [rdi+140h], rax                                                ; +0x58, 0x1401f5e48\nlea     rax, ??_7GauntletLayer@@6B@_1; const GauntletLayer::`vftable'  ; +0x5f, 0x1401f5e4f\nmov     [rdi+148h], rax                                                ; +0x66, 0x1401f5e56\nlea     rax, ??_7GauntletLayer@@6B@_2; const GauntletLayer::`vftable'  ; +0x6d, 0x1401f5e5d\nmov     [rdi+150h], rax                                                ; +0x74, 0x1401f5e64\nlea     rax, ??_7GauntletLayer@@6B@_3; const GauntletLayer::`vftable'  ; +0x7b, 0x1401f5e6b\nmov     [rdi+158h], rax                                                ; +0x82, 0x1401f5e72\nlea     rax, ??_7GauntletLayer@@6B@_4; const GauntletLayer::`vftable'  ; +0x89, 0x1401f5e79\nmov     [rdi+160h], rax                                                ; +0x90, 0x1401f5e80\nlea     rax, ??_7GauntletLayer@@6B@_5; const GauntletLayer::`vftable'  ; +0x97, 0x1401f5e87\nmov     [rdi+198h], rax                                                ; +0x9e, 0x1401f5e8e\nxor     ebp, ebp                                                       ; +0xa5, 0x1401f5e95\nmov     [rdi+1A0h], rbp                                                ; +0xa7, 0x1401f5e97\nmov     [rdi+1A8h], rbp                                                ; +0xae, 0x1401f5e9e\nmov     [rdi+1B8h], rbp                                                ; +0xb5, 0x1401f5ea5\nmov     [rdi+1C0h], rbp                                                ; +0xbc, 0x1401f5eac\nmov     [rdi+1C8h], rbp                                                ; +0xc3, 0x1401f5eb3\nmov     [rdi+1D0h], rbp                                                ; +0xca, 0x1401f5eba\nmov     [rdi+1D8h], rbp                                                ; +0xd1, 0x1401f5ec1\nmov     edx, ebx                                                       ; +0xd8, 0x1401f5ec8\nmov     rcx, rdi                                                       ; +0xda, 0x1401f5eca\ncall    GauntletLayer__init                                            ; +0xdd, 0x1401f5ecd\nmov     rcx, rdi                                                       ; +0xe2, 0x1401f5ed2\ntest    al, al                                                         ; +0xe5, 0x1401f5ed5\njz      short loc_1401F5EE1                                            ; +0xe7, 0x1401f5ed7\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe9, 0x1401f5ed9\njmp     short loc_1401F5EEF                                            ; +0xef, 0x1401f5edf\nmov     rax, [rdi]                                                     ; +0xf1, 0x1401f5ee1\nmov     edx, 1                                                         ; +0xf4, 0x1401f5ee4\ncall    qword ptr [rax+8]                                              ; +0xf9, 0x1401f5ee9\nmov     rdi, rbp                                                       ; +0xfc, 0x1401f5eec\nmov     rax, [rsi]                                                     ; +0xff, 0x1401f5eef\nmov     rdx, rdi                                                       ; +0x102, 0x1401f5ef2\nmov     rcx, rsi                                                       ; +0x105, 0x1401f5ef5\ncall    qword ptr [rax+1C0h]                                           ; +0x108, 0x1401f5ef8\nmov     rax, rsi                                                       ; +0x10e, 0x1401f5efe\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x111, 0x1401f5f01\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x116, 0x1401f5f06\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x11b, 0x1401f5f0b\nadd     rsp, 20h                                                       ; +0x120, 0x1401f5f10\npop     rdi                                                            ; +0x124, 0x1401f5f14\nretn                                                                   ; +0x125, 0x1401f5f15", "xrefs": ["GauntletSelectLayer::onPlay @ 0x1401faf71", "LevelInfoLayer::onBack @ 0x1403007a2", "<???> @ 0x1406cc8b8", "<???> @ 0x1406cc8c4"], "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"}