{"type": "func", "start": 5371829728, "end": 5371829858, "name": "LevelInfoLayer::onGarage", "pseudocode": "// \n// LevelInfoLayer::onGarage from 0x1402f9de0 to 0x1402f9e62 (130 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x1402f8fea\n// > <???> @ 0x1406d413c\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=1\nvoid LevelInfoLayer::onGarage(LevelInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  struct cocos2d::CCScene *v2; // rax\n  struct cocos2d::CCTransitionMoveInT *v3; // rbx\n  __int64 v4; // rcx\n  cocos2d::CCDirector *v5; // rax\n  __int64 v6; // rax\n  void *v7; // [rsp+30h] [rbp+8h]\n\n  if ( !a1->m_isBusy )\n  {\n    v2 = GJGarageLayer::scene();\n    v3 = cocos2d::CCTransitionMoveInT::create(0.5, v2);\n    v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);\n    cocos2d::CCDirector::pushScene(v5, v3);\n    v6 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v7 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v6 = qword_1406C2ED8;\n    }\n    *(_BYTE *)(v6 + 1048) = 1;\n  }\n}", "assembly": "; \n; LevelInfoLayer::onGarage from 0x1402f9de0 to 0x1402f9e62 (130 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x1402f8fea\n; > <???> @ 0x1406d413c\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\npush    rbx                                                            ; +0x0, 0x1402f9de0\nsub     rsp, 20h                                                       ; +0x2, 0x1402f9de2\ncmp     byte ptr [rcx+1E0h], 0                                         ; +0x6, 0x1402f9de6\njnz     short loc_1402F9E5C                                            ; +0xd, 0x1402f9ded\ncall    GJGarageLayer__scene                                           ; +0xf, 0x1402f9def\nmov     rdx, rax                                                       ; +0x14, 0x1402f9df4\nmovss   xmm0, cs:dword_140622B08                                       ; +0x17, 0x1402f9df7\ncall    cs:?create@CCTransitionMoveInT@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionMoveInT::create(float,cocos2d::CCScene *) ; +0x1f, 0x1402f9dff\nmov     rbx, rax                                                       ; +0x25, 0x1402f9e05\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x28, 0x1402f9e08\nmov     rcx, rax                                                       ; +0x2e, 0x1402f9e0e\nmov     rdx, rbx                                                       ; +0x31, 0x1402f9e11\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x34, 0x1402f9e14\nmov     rax, cs:qword_1406C2ED8                                        ; +0x3a, 0x1402f9e1a\ntest    rax, rax                                                       ; +0x41, 0x1402f9e21\njnz     short loc_1402F9E55                                            ; +0x44, 0x1402f9e24\nmov     ecx, 668h; Size                                                ; +0x46, 0x1402f9e26\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4b, 0x1402f9e2b\nmov     [rsp+28h+arg_0], rax                                           ; +0x50, 0x1402f9e30\nmov     rcx, rax                                                       ; +0x55, 0x1402f9e35\ncall    sub_14017AB00                                                  ; +0x58, 0x1402f9e38\nnop                                                                    ; +0x5d, 0x1402f9e3d\nmov     cs:qword_1406C2ED8, rax                                        ; +0x5e, 0x1402f9e3e\nmov     rdx, [rax]                                                     ; +0x65, 0x1402f9e45\nmov     rcx, rax                                                       ; +0x68, 0x1402f9e48\ncall    qword ptr [rdx+48h]                                            ; +0x6b, 0x1402f9e4b\nmov     rax, cs:qword_1406C2ED8                                        ; +0x6e, 0x1402f9e4e\nmov     byte ptr [rax+418h], 1                                         ; +0x75, 0x1402f9e55\nadd     rsp, 20h                                                       ; +0x7c, 0x1402f9e5c\npop     rbx                                                            ; +0x80, 0x1402f9e60\nretn                                                                   ; +0x81, 0x1402f9e61", "xrefs": ["LevelInfoLayer::init @ 0x1402f8fea", "<???> @ 0x1406d413c"], "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"}