{"type": "func", "start": 5371276944, "end": 5371277387, "name": "GJGarageLayer::scene", "pseudocode": "// \n// GJGarageLayer::scene from 0x140272e90 to 0x14027304b (443 bytes)\n// \n// 6 xrefs:\n// > GJShopLayer::onBack @ 0x1402acdd6\n// > GJShopLayer::dialogClosed @ 0x1402ae7c5\n// > LevelInfoLayer::onGarage @ 0x1402f9def\n// > MenuLayer::onGarage @ 0x140335e16\n// > <???> @ 0x1406d0ed8\n// > <???> @ 0x1406d0ee4\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=2\ncocos2d::CCScene *GJGarageLayer::scene()\n{\n  __int64 v0; // rcx\n  cocos2d::CCScene *v1; // rsi\n  __int64 v2; // rdx\n  __int64 v3; // rcx\n  GJGarageLayer *v4; // rdi\n  _QWORD *v5; // rax\n  bool (*init)(GJGarageLayer *); // rdx\n  bool v7; // al\n\n  v1 = (cocos2d::CCScene *)cocos2d::CCScene::create(v0);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v3, v2) + 224) = v1;\n  v4 = (GJGarageLayer *)operator new(0x260u);\n  cocos2d::CCLayer::CCLayer(v4);\n  v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJGarageLayer_vtbl *)&GJGarageLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&GJGarageLayer::`vftable';\n  v4->GameRateDelegate::__vftable = (GameRateDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->ListButtonBarDelegate::__vftable = (ListButtonBarDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->DialogDelegate::__vftable = (DialogDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->CharacterColorDelegate::__vftable = (CharacterColorDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->RewardedVideoDelegate::__vftable = (RewardedVideoDelegate_vtbl *)&GJGarageLayer::`vftable';\n  v4->m_playerObject = nullptr;\n  v4->m_unknown = nullptr;\n  v4->m_supporter = nullptr;\n  v4->m_hasClosed = 0;\n  v4->m_iconPages._Mypair._Myval2._Myval2._Myhead = nullptr;\n  v4->m_iconPages._Mypair._Myval2._Myval2._Mysize = 0;\n  v5 = operator new(0x28u);\n  *v5 = v5;\n  v5[1] = v5;\n  v5[2] = v5;\n  *((_WORD *)v5 + 12) = 257;\n  v4->m_iconPages._Mypair._Myval2._Myval2._Myhead = (std::_Tree_val<std::_Tree_simple_types<std::pair<const IconType, int>>>::_Nodeptr)v5;\n  v4->m_cursor2 = nullptr;\n  v4->m_currentIcon = nullptr;\n  v4->m_iconSelection = nullptr;\n  *(_QWORD *)&v4->m_iconID = 0;\n  v4->m_videoPlaying = 0;\n  init = (bool (*)(GJGarageLayer *))v4->init;\n  if ( init == GJGarageLayer::init )\n    v7 = GJGarageLayer::init(v4);\n  else\n    v7 = init(v4);\n  if ( v7 )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJGarageLayer *, __int64))v4->~GJGarageLayer)(v4, 1);\n    v4 = nullptr;\n  }\n  v1->addChild_1(v1, v4);\n  return v1;\n}", "assembly": "; \n; GJGarageLayer::scene from 0x140272e90 to 0x14027304b (443 bytes)\n; \n; 6 xrefs:\n; > GJShopLayer::onBack @ 0x1402acdd6\n; > GJShopLayer::dialogClosed @ 0x1402ae7c5\n; > LevelInfoLayer::onGarage @ 0x1402f9def\n; > MenuLayer::onGarage @ 0x140335e16\n; > <???> @ 0x1406d0ed8\n; > <???> @ 0x1406d0ee4\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_10], rbx                                              ; +0x0, 0x140272e90\npush    rbp                                                            ; +0x5, 0x140272e95\npush    rsi                                                            ; +0x6, 0x140272e96\npush    rdi                                                            ; +0x7, 0x140272e97\nsub     rsp, 20h                                                       ; +0x8, 0x140272e98\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0xc, 0x140272e9c\nmov     rsi, rax                                                       ; +0x12, 0x140272ea2\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x15, 0x140272ea5\nmov     [rax+0E0h], rsi                                                ; +0x1b, 0x140272eab\nmov     ecx, 260h; Size                                                ; +0x22, 0x140272eb2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x140272eb7\nmov     rdi, rax                                                       ; +0x2c, 0x140272ebc\nmov     [rsp+38h+arg_0], rax                                           ; +0x2f, 0x140272ebf\nmov     rcx, rax                                                       ; +0x34, 0x140272ec4\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x37, 0x140272ec7\nnop                                                                    ; +0x3d, 0x140272ecd\nlea     rax, ??_7GJGarageLayer@@6B@; const GJGarageLayer::`vftable'    ; +0x3e, 0x140272ece\nmov     [rdi], rax                                                     ; +0x45, 0x140272ed5\nlea     rax, ??_7GJGarageLayer@@6B@_0; const GJGarageLayer::`vftable'  ; +0x48, 0x140272ed8\nmov     [rdi+140h], rax                                                ; +0x4f, 0x140272edf\nlea     rax, ??_7GJGarageLayer@@6B@_1; const GJGarageLayer::`vftable'  ; +0x56, 0x140272ee6\nmov     [rdi+148h], rax                                                ; +0x5d, 0x140272eed\nlea     rax, ??_7GJGarageLayer@@6B@_2; const GJGarageLayer::`vftable'  ; +0x64, 0x140272ef4\nmov     [rdi+150h], rax                                                ; +0x6b, 0x140272efb\nlea     rax, ??_7GJGarageLayer@@6B@_3; const GJGarageLayer::`vftable'  ; +0x72, 0x140272f02\nmov     [rdi+158h], rax                                                ; +0x79, 0x140272f09\nlea     rax, ??_7GJGarageLayer@@6B@_4; const GJGarageLayer::`vftable'  ; +0x80, 0x140272f10\nmov     [rdi+160h], rax                                                ; +0x87, 0x140272f17\nlea     rax, ??_7GJGarageLayer@@6B@_5; const GJGarageLayer::`vftable'  ; +0x8e, 0x140272f1e\nmov     [rdi+198h], rax                                                ; +0x95, 0x140272f25\nlea     rax, ??_7GJGarageLayer@@6B@_6; const GJGarageLayer::`vftable'  ; +0x9c, 0x140272f2c\nmov     [rdi+1A0h], rax                                                ; +0xa3, 0x140272f33\nlea     rax, ??_7GJGarageLayer@@6B@_7; const GJGarageLayer::`vftable'  ; +0xaa, 0x140272f3a\nmov     [rdi+1A8h], rax                                                ; +0xb1, 0x140272f41\nlea     rax, ??_7GJGarageLayer@@6B@_8; const GJGarageLayer::`vftable'  ; +0xb8, 0x140272f48\nmov     [rdi+1B0h], rax                                                ; +0xbf, 0x140272f4f\nlea     rax, ??_7GJGarageLayer@@6B@_9; const GJGarageLayer::`vftable'  ; +0xc6, 0x140272f56\nmov     [rdi+1B8h], rax                                                ; +0xcd, 0x140272f5d\nlea     rax, ??_7GJGarageLayer@@6B@_10; const GJGarageLayer::`vftable' ; +0xd4, 0x140272f64\nmov     [rdi+1C0h], rax                                                ; +0xdb, 0x140272f6b\nlea     rax, ??_7GJGarageLayer@@6B@_11; const GJGarageLayer::`vftable' ; +0xe2, 0x140272f72\nmov     [rdi+1C8h], rax                                                ; +0xe9, 0x140272f79\nxor     ebp, ebp                                                       ; +0xf0, 0x140272f80\nmov     [rdi+1D8h], rbp                                                ; +0xf2, 0x140272f82\nmov     [rdi+1F0h], rbp                                                ; +0xf9, 0x140272f89\nmov     [rdi+1F8h], rbp                                                ; +0x100, 0x140272f90\nmov     [rdi+200h], bpl                                                ; +0x107, 0x140272f97\nlea     rbx, [rdi+208h]                                                ; +0x10e, 0x140272f9e\nmov     [rsp+38h+arg_8], rbx                                           ; +0x115, 0x140272fa5\nmov     [rbx], rbp                                                     ; +0x11a, 0x140272faa\nmov     [rbx+8], rbp                                                   ; +0x11d, 0x140272fad\nlea     ecx, [rbp+28h]; Size                                           ; +0x121, 0x140272fb1\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x124, 0x140272fb4\nmov     [rax], rax                                                     ; +0x129, 0x140272fb9\nmov     [rax+8], rax                                                   ; +0x12c, 0x140272fbc\nmov     [rax+10h], rax                                                 ; +0x130, 0x140272fc0\nmov     word ptr [rax+18h], 101h                                       ; +0x134, 0x140272fc4\nmov     [rbx], rax                                                     ; +0x13a, 0x140272fca\nmov     [rdi+220h], rbp                                                ; +0x13d, 0x140272fcd\nmov     [rdi+228h], rbp                                                ; +0x144, 0x140272fd4\nmov     [rdi+230h], rbp                                                ; +0x14b, 0x140272fdb\nmov     [rdi+250h], rbp                                                ; +0x152, 0x140272fe2\nmov     [rdi+258h], bpl                                                ; +0x159, 0x140272fe9\nmov     rax, [rdi]                                                     ; +0x160, 0x140272ff0\nmov     rdx, [rax+48h]                                                 ; +0x163, 0x140272ff3\nlea     rax, GJGarageLayer__init                                       ; +0x167, 0x140272ff7\nmov     rcx, rdi                                                       ; +0x16e, 0x140272ffe\ncmp     rdx, rax                                                       ; +0x171, 0x140273001\njnz     short loc_14027300D                                            ; +0x174, 0x140273004\ncall    GJGarageLayer__init                                            ; +0x176, 0x140273006\njmp     short loc_14027300F                                            ; +0x17b, 0x14027300b\ncall    rdx                                                            ; +0x17d, 0x14027300d\nmov     rcx, rdi                                                       ; +0x17f, 0x14027300f\ntest    al, al                                                         ; +0x182, 0x140273012\njz      short loc_14027301E                                            ; +0x184, 0x140273014\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x186, 0x140273016\njmp     short loc_14027302C                                            ; +0x18c, 0x14027301c\nmov     rax, [rdi]                                                     ; +0x18e, 0x14027301e\nmov     edx, 1                                                         ; +0x191, 0x140273021\ncall    qword ptr [rax+8]                                              ; +0x196, 0x140273026\nmov     rdi, rbp                                                       ; +0x199, 0x140273029\nmov     rax, [rsi]                                                     ; +0x19c, 0x14027302c\nmov     rdx, rdi                                                       ; +0x19f, 0x14027302f\nmov     rcx, rsi                                                       ; +0x1a2, 0x140273032\ncall    qword ptr [rax+1C0h]                                           ; +0x1a5, 0x140273035\nmov     rax, rsi                                                       ; +0x1ab, 0x14027303b\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x1ae, 0x14027303e\nadd     rsp, 20h                                                       ; +0x1b3, 0x140273043\npop     rdi                                                            ; +0x1b7, 0x140273047\npop     rsi                                                            ; +0x1b8, 0x140273048\npop     rbp                                                            ; +0x1b9, 0x140273049\nretn                                                                   ; +0x1ba, 0x14027304a", "xrefs": ["GJShopLayer::onBack @ 0x1402acdd6", "GJShopLayer::dialogClosed @ 0x1402ae7c5", "LevelInfoLayer::onGarage @ 0x1402f9def", "MenuLayer::onGarage @ 0x140335e16", "<???> @ 0x1406d0ed8", "<???> @ 0x1406d0ee4"], "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"}