{"type": "func", "start": 5372533328, "end": 5372533500, "name": "PlayLayer::scene", "pseudocode": "// \n// PlayLayer::scene from 0x1403a5a50 to 0x1403a5afc (172 bytes)\n// \n// 7 xrefs:\n// > EditLevelLayer::playStep3 @ 0x1400d814a\n// > GJGameLoadingLayer::loadLevel @ 0x14024906e\n// > LevelAreaInnerLayer::playStep1 @ 0x1402c8489\n// > LevelInfoLayer::playStep3 @ 0x1402fd1ee\n// > LevelPage::playStep3 @ 0x14031ddb0\n// > SecretLayer2::onSecretLevel @ 0x1403e475c\n// > <???> @ 0x1406d6b3c\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\ncocos2d::CCScene *PlayLayer::scene(GJGameLevel *a1, bool a2, bool a3)\n{\n  cocos2d::CCScene *v6; // rdi\n  __int64 v7; // rdx\n  __int64 v8; // rcx\n  PlayLayer *v9; // rax\n  cocos2d::CCObject *v10; // rbx\n  PlayLayer *v12; // [rsp+58h] [rbp+20h]\n\n  v6 = (cocos2d::CCScene *)cocos2d::CCScene::create(a1);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v8, v7) + 224) = v6;\n  v12 = (PlayLayer *)operator new(0x3A88u);\n  v9 = PlayLayer::PlayLayer(v12);\n  v10 = v9;\n  if ( v9 )\n  {\n    if ( PlayLayer::init(v9, a1, a2, a3) )\n    {\n      cocos2d::CCObject::autorelease(v10);\n    }\n    else\n    {\n      ((void (__fastcall *)(cocos2d::CCObject *, __int64))v10->~CCObject)(v10, 1);\n      v10 = nullptr;\n    }\n  }\n  v6->addChild_1(v6, (cocos2d::CCNode *)v10);\n  v6->m_eObjType = PlayLayerObjectType;\n  return v6;\n}", "assembly": "; \n; PlayLayer::scene from 0x1403a5a50 to 0x1403a5afc (172 bytes)\n; \n; 7 xrefs:\n; > EditLevelLayer::playStep3 @ 0x1400d814a\n; > GJGameLoadingLayer::loadLevel @ 0x14024906e\n; > LevelAreaInnerLayer::playStep1 @ 0x1402c8489\n; > LevelInfoLayer::playStep3 @ 0x1402fd1ee\n; > LevelPage::playStep3 @ 0x14031ddb0\n; > SecretLayer2::onSecretLevel @ 0x1403e475c\n; > <???> @ 0x1406d6b3c\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, 0x1403a5a50\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403a5a55\npush    rsi                                                            ; +0xa, 0x1403a5a5a\npush    rdi                                                            ; +0xb, 0x1403a5a5b\npush    r14                                                            ; +0xc, 0x1403a5a5c\nsub     rsp, 20h                                                       ; +0xe, 0x1403a5a5e\nmovzx   esi, r8b                                                       ; +0x12, 0x1403a5a62\nmovzx   ebp, dl                                                        ; +0x16, 0x1403a5a66\nmov     r14, rcx                                                       ; +0x19, 0x1403a5a69\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x1c, 0x1403a5a6c\nmov     rdi, rax                                                       ; +0x22, 0x1403a5a72\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x25, 0x1403a5a75\nmov     [rax+0E0h], rdi                                                ; +0x2b, 0x1403a5a7b\nmov     ecx, 3A88h; Size                                               ; +0x32, 0x1403a5a82\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x37, 0x1403a5a87\nmov     [rsp+38h+arg_18], rax                                          ; +0x3c, 0x1403a5a8c\nmov     rcx, rax                                                       ; +0x41, 0x1403a5a91\ncall    PlayLayer__PlayLayer                                           ; +0x44, 0x1403a5a94\nmov     rbx, rax                                                       ; +0x49, 0x1403a5a99\ntest    rax, rax                                                       ; +0x4c, 0x1403a5a9c\njz      short loc_1403A5AD0                                            ; +0x4f, 0x1403a5a9f\nmovzx   r9d, sil                                                       ; +0x51, 0x1403a5aa1\nmovzx   r8d, bpl                                                       ; +0x55, 0x1403a5aa5\nmov     rdx, r14                                                       ; +0x59, 0x1403a5aa9\nmov     rcx, rax                                                       ; +0x5c, 0x1403a5aac\ncall    PlayLayer__init                                                ; +0x5f, 0x1403a5aaf\nmov     rcx, rbx                                                       ; +0x64, 0x1403a5ab4\ntest    al, al                                                         ; +0x67, 0x1403a5ab7\njz      short loc_1403A5AC3                                            ; +0x69, 0x1403a5ab9\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x6b, 0x1403a5abb\njmp     short loc_1403A5AD0                                            ; +0x71, 0x1403a5ac1\nmov     rax, [rbx]                                                     ; +0x73, 0x1403a5ac3\nmov     edx, 1                                                         ; +0x76, 0x1403a5ac6\ncall    qword ptr [rax+8]                                              ; +0x7b, 0x1403a5acb\nxor     ebx, ebx                                                       ; +0x7e, 0x1403a5ace\nmov     rax, [rdi]                                                     ; +0x80, 0x1403a5ad0\nmov     rdx, rbx                                                       ; +0x83, 0x1403a5ad3\nmov     rcx, rdi                                                       ; +0x86, 0x1403a5ad6\ncall    qword ptr [rax+1C0h]                                           ; +0x89, 0x1403a5ad9\nmov     dword ptr [rdi+1Ch], 5                                         ; +0x8f, 0x1403a5adf\nmov     rax, rdi                                                       ; +0x96, 0x1403a5ae6\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x99, 0x1403a5ae9\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x9e, 0x1403a5aee\nadd     rsp, 20h                                                       ; +0xa3, 0x1403a5af3\npop     r14                                                            ; +0xa7, 0x1403a5af7\npop     rdi                                                            ; +0xa9, 0x1403a5af9\npop     rsi                                                            ; +0xaa, 0x1403a5afa\nretn                                                                   ; +0xab, 0x1403a5afb", "xrefs": ["EditLevelLayer::playStep3 @ 0x1400d814a", "GJGameLoadingLayer::loadLevel @ 0x14024906e", "LevelAreaInnerLayer::playStep1 @ 0x1402c8489", "LevelInfoLayer::playStep3 @ 0x1402fd1ee", "LevelPage::playStep3 @ 0x14031ddb0", "SecretLayer2::onSecretLevel @ 0x1403e475c", "<???> @ 0x1406d6b3c"], "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"}