{"type": "func", "start": 5370776288, "end": 5370776618, "name": "GauntletSelectLayer::scene", "pseudocode": "// \n// GauntletSelectLayer::scene from 0x1401f8ae0 to 0x1401f8c2a (330 bytes)\n// \n// 4 xrefs:\n// > CreatorLayer::onGauntlets @ 0x14009dc06\n// > GauntletLayer::onBack @ 0x1401f8421\n// > GauntletLayer::keyBackClicked @ 0x1401f8478\n// > <???> @ 0x1406cc96c\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 *GauntletSelectLayer::scene(int a1)\n{\n  cocos2d::CCScene *v1; // rdi\n  __int64 v2; // rdx\n  __int64 v3; // rcx\n  GauntletSelectLayer *v4; // rbx\n\n  v1 = (cocos2d::CCScene *)cocos2d::CCScene::create(*(_QWORD *)&a1);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v3, v2) + 224) = v1;\n  v4 = (GauntletSelectLayer *)operator new(0x208u);\n  cocos2d::CCLayer::CCLayer(v4);\n  v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GauntletSelectLayer_vtbl *)&GauntletSelectLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GauntletSelectLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GauntletSelectLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GauntletSelectLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GauntletSelectLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GauntletSelectLayer::`vftable';\n  v4->BoomScrollLayerDelegate::__vftable = (BoomScrollLayerDelegate_vtbl *)&GauntletSelectLayer::`vftable';\n  v4->LevelManagerDelegate::__vftable = (LevelManagerDelegate_vtbl *)&GauntletSelectLayer::`vftable';\n  v4->RewardedVideoDelegate::__vftable = (RewardedVideoDelegate_vtbl *)&GauntletSelectLayer::`vftable';\n  v4->m_backgroundSprite = nullptr;\n  v4->m_scrollLayer = nullptr;\n  v4->m_refreshButton = nullptr;\n  *(_WORD *)&v4->m_exiting = 0;\n  v4->m_tryAgainText = nullptr;\n  v4->m_loadingCircle = nullptr;\n  v4->m_gauntlets = nullptr;\n  v4->m_playBlocked = 0;\n  v4->m_gauntletID = 0;\n  *(_WORD *)&v4->m_videoPlaying = 0;\n  if ( GauntletSelectLayer::init(v4, 0) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(GauntletSelectLayer *, __int64))v4->~GauntletSelectLayer)(v4, 1);\n    v4 = nullptr;\n  }\n  v1->addChild_1(v1, v4);\n  return v1;\n}", "assembly": "; \n; GauntletSelectLayer::scene from 0x1401f8ae0 to 0x1401f8c2a (330 bytes)\n; \n; 4 xrefs:\n; > CreatorLayer::onGauntlets @ 0x14009dc06\n; > GauntletLayer::onBack @ 0x1401f8421\n; > GauntletLayer::keyBackClicked @ 0x1401f8478\n; > <???> @ 0x1406cc96c\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, 0x1401f8ae0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1401f8ae5\npush    rdi                                                            ; +0xa, 0x1401f8aea\nsub     rsp, 20h                                                       ; +0xb, 0x1401f8aeb\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0xf, 0x1401f8aef\nmov     rdi, rax                                                       ; +0x15, 0x1401f8af5\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x18, 0x1401f8af8\nmov     [rax+0E0h], rdi                                                ; +0x1e, 0x1401f8afe\nmov     ecx, 208h; Size                                                ; +0x25, 0x1401f8b05\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x1401f8b0a\nmov     rbx, rax                                                       ; +0x2f, 0x1401f8b0f\nmov     [rsp+28h+arg_8], rax                                           ; +0x32, 0x1401f8b12\nmov     rcx, rax                                                       ; +0x37, 0x1401f8b17\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x3a, 0x1401f8b1a\nlea     rax, ??_7GauntletSelectLayer@@6B@; const GauntletSelectLayer::`vftable' ; +0x40, 0x1401f8b20\nmov     [rbx], rax                                                     ; +0x47, 0x1401f8b27\nlea     rax, ??_7GauntletSelectLayer@@6B@_0; const GauntletSelectLayer::`vftable' ; +0x4a, 0x1401f8b2a\nmov     [rbx+140h], rax                                                ; +0x51, 0x1401f8b31\nlea     rax, ??_7GauntletSelectLayer@@6B@_1; const GauntletSelectLayer::`vftable' ; +0x58, 0x1401f8b38\nmov     [rbx+148h], rax                                                ; +0x5f, 0x1401f8b3f\nlea     rax, ??_7GauntletSelectLayer@@6B@_2; const GauntletSelectLayer::`vftable' ; +0x66, 0x1401f8b46\nmov     [rbx+150h], rax                                                ; +0x6d, 0x1401f8b4d\nlea     rax, ??_7GauntletSelectLayer@@6B@_3; const GauntletSelectLayer::`vftable' ; +0x74, 0x1401f8b54\nmov     [rbx+158h], rax                                                ; +0x7b, 0x1401f8b5b\nlea     rax, ??_7GauntletSelectLayer@@6B@_4; const GauntletSelectLayer::`vftable' ; +0x82, 0x1401f8b62\nmov     [rbx+160h], rax                                                ; +0x89, 0x1401f8b69\nlea     rax, ??_7GauntletSelectLayer@@6B@_5; const GauntletSelectLayer::`vftable' ; +0x90, 0x1401f8b70\nmov     [rbx+198h], rax                                                ; +0x97, 0x1401f8b77\nlea     rax, ??_7GauntletSelectLayer@@6B@_6; const GauntletSelectLayer::`vftable' ; +0x9e, 0x1401f8b7e\nmov     [rbx+1A0h], rax                                                ; +0xa5, 0x1401f8b85\nlea     rax, ??_7GauntletSelectLayer@@6B@_7; const GauntletSelectLayer::`vftable' ; +0xac, 0x1401f8b8c\nmov     [rbx+1A8h], rax                                                ; +0xb3, 0x1401f8b93\nxor     esi, esi                                                       ; +0xba, 0x1401f8b9a\nmov     [rbx+1B0h], rsi                                                ; +0xbc, 0x1401f8b9c\nmov     [rbx+1B8h], rsi                                                ; +0xc3, 0x1401f8ba3\nmov     [rbx+1D0h], rsi                                                ; +0xca, 0x1401f8baa\nmov     [rbx+1D8h], si                                                 ; +0xd1, 0x1401f8bb1\nmov     [rbx+1E0h], rsi                                                ; +0xd8, 0x1401f8bb8\nmov     [rbx+1E8h], rsi                                                ; +0xdf, 0x1401f8bbf\nmov     [rbx+1F0h], rsi                                                ; +0xe6, 0x1401f8bc6\nmov     [rbx+1F8h], sil                                                ; +0xed, 0x1401f8bcd\nmov     [rbx+1FCh], esi                                                ; +0xf4, 0x1401f8bd4\nmov     [rbx+200h], si                                                 ; +0xfa, 0x1401f8bda\nxor     edx, edx                                                       ; +0x101, 0x1401f8be1\nmov     rcx, rbx                                                       ; +0x103, 0x1401f8be3\ncall    GauntletSelectLayer__init                                      ; +0x106, 0x1401f8be6\nmov     rcx, rbx                                                       ; +0x10b, 0x1401f8beb\ntest    al, al                                                         ; +0x10e, 0x1401f8bee\njz      short loc_1401F8BFA                                            ; +0x110, 0x1401f8bf0\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x112, 0x1401f8bf2\njmp     short loc_1401F8C08                                            ; +0x118, 0x1401f8bf8\nmov     rax, [rbx]                                                     ; +0x11a, 0x1401f8bfa\nmov     edx, 1                                                         ; +0x11d, 0x1401f8bfd\ncall    qword ptr [rax+8]                                              ; +0x122, 0x1401f8c02\nmov     rbx, rsi                                                       ; +0x125, 0x1401f8c05\nmov     rax, [rdi]                                                     ; +0x128, 0x1401f8c08\nmov     rdx, rbx                                                       ; +0x12b, 0x1401f8c0b\nmov     rcx, rdi                                                       ; +0x12e, 0x1401f8c0e\ncall    qword ptr [rax+1C0h]                                           ; +0x131, 0x1401f8c11\nmov     rax, rdi                                                       ; +0x137, 0x1401f8c17\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x13a, 0x1401f8c1a\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x13f, 0x1401f8c1f\nadd     rsp, 20h                                                       ; +0x144, 0x1401f8c24\npop     rdi                                                            ; +0x148, 0x1401f8c28\nretn                                                                   ; +0x149, 0x1401f8c29", "xrefs": ["CreatorLayer::onGauntlets @ 0x14009dc06", "GauntletLayer::onBack @ 0x1401f8421", "GauntletLayer::keyBackClicked @ 0x1401f8478", "<???> @ 0x1406cc96c"], "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"}