{"type": "func", "start": 5370249920, "end": 5370250387, "name": "EditLevelLayer::scene", "pseudocode": "// \n// EditLevelLayer::scene from 0x1401782c0 to 0x140178493 (467 bytes)\n// \n// 7 xrefs:\n// > EditLevelLayer::FLAlert_Clicked @ 0x14017c396\n// > GameLevelManager::gotoLevelPage @ 0x140221406\n// > GameManager::returnToLastScene @ 0x1402873f8\n// > LevelBrowserLayer::onNew @ 0x1403e80f1\n// > LevelInfoLayer::FLAlert_Clicked @ 0x14042627d\n// > UploadPopup::onReturnToLevel @ 0x140632a0b\n// > <???> @ 0x1409186a4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:33 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EditLevelLayer::scene(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  __int64 v5; // rsi\n  __int64 v6; // rcx\n  char *v7; // rdi\n\n  v5 = cocos2d::CCScene::create(a1, a2, a3, a4);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v6) + 232) = v5;\n  v7 = (char *)operator new(0x258u);\n  cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v7);\n  *(_QWORD *)v7 = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 40) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 41) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 42) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 43) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 44) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 51) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 52) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 53) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 54) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 55) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 56) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 57) = &EditLevelLayer::`vftable';\n  *((_QWORD *)v7 + 58) = 0;\n  *((_QWORD *)v7 + 59) = 0;\n  *((_QWORD *)v7 + 60) = 0;\n  *((_QWORD *)v7 + 61) = 0;\n  v7[496] = 0;\n  *((_DWORD *)v7 + 125) = 0;\n  *(_OWORD *)(v7 + 504) = 0;\n  *((_QWORD *)v7 + 65) = 0;\n  *((_QWORD *)v7 + 66) = 15;\n  v7[504] = 0;\n  *((_QWORD *)v7 + 67) = 0;\n  v7[544] = 0;\n  *((_QWORD *)v7 + 69) = 0;\n  *((_QWORD *)v7 + 70) = 0;\n  *(_OWORD *)(v7 + 568) = 0;\n  *((_QWORD *)v7 + 73) = 0;\n  *((_QWORD *)v7 + 74) = 15;\n  v7[568] = 0;\n  if ( (unsigned __int8)EditLevelLayer::init(v7, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v7);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n    v7 = nullptr;\n  }\n  (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v5 + 464LL))(v5, v7);\n  return v5;\n}", "assembly": "; \n; EditLevelLayer::scene from 0x1401782c0 to 0x140178493 (467 bytes)\n; \n; 7 xrefs:\n; > EditLevelLayer::FLAlert_Clicked @ 0x14017c396\n; > GameLevelManager::gotoLevelPage @ 0x140221406\n; > GameManager::returnToLastScene @ 0x1402873f8\n; > LevelBrowserLayer::onNew @ 0x1403e80f1\n; > LevelInfoLayer::FLAlert_Clicked @ 0x14042627d\n; > UploadPopup::onReturnToLevel @ 0x140632a0b\n; > <???> @ 0x1409186a4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1401782c0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1401782c5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1401782ca\npush    rdi                                                            ; +0xf, 0x1401782cf\nsub     rsp, 20h                                                       ; +0x10, 0x1401782d0\nmov     rbx, rcx                                                       ; +0x14, 0x1401782d4\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x17, 0x1401782d7\nmov     rsi, rax                                                       ; +0x1d, 0x1401782dd\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x20, 0x1401782e0\nmov     [rax+0E8h], rsi                                                ; +0x26, 0x1401782e6\nmov     ecx, 258h; Size                                                ; +0x2d, 0x1401782ed\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x32, 0x1401782f2\nmov     rdi, rax                                                       ; +0x37, 0x1401782f7\nmov     [rsp+28h+arg_8], rax                                           ; +0x3a, 0x1401782fa\nmov     rcx, rax                                                       ; +0x3f, 0x1401782ff\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x42, 0x140178302\nlea     rax, ??_7EditLevelLayer@@6B@; const EditLevelLayer::`vftable'  ; +0x48, 0x140178308\nmov     [rdi], rax                                                     ; +0x4f, 0x14017830f\nlea     rax, ??_7EditLevelLayer@@6B@_0; const EditLevelLayer::`vftable' ; +0x52, 0x140178312\nmov     [rdi+140h], rax                                                ; +0x59, 0x140178319\nlea     rax, ??_7EditLevelLayer@@6B@_1; const EditLevelLayer::`vftable' ; +0x60, 0x140178320\nmov     [rdi+148h], rax                                                ; +0x67, 0x140178327\nlea     rax, ??_7EditLevelLayer@@6B@_2; const EditLevelLayer::`vftable' ; +0x6e, 0x14017832e\nmov     [rdi+150h], rax                                                ; +0x75, 0x140178335\nlea     rax, ??_7EditLevelLayer@@6B@_3; const EditLevelLayer::`vftable' ; +0x7c, 0x14017833c\nmov     [rdi+158h], rax                                                ; +0x83, 0x140178343\nlea     rax, ??_7EditLevelLayer@@6B@_4; const EditLevelLayer::`vftable' ; +0x8a, 0x14017834a\nmov     [rdi+160h], rax                                                ; +0x91, 0x140178351\nlea     rax, ??_7EditLevelLayer@@6B@_5; const EditLevelLayer::`vftable' ; +0x98, 0x140178358\nmov     [rdi+198h], rax                                                ; +0x9f, 0x14017835f\nlea     rax, ??_7EditLevelLayer@@6B@_6; const EditLevelLayer::`vftable' ; +0xa6, 0x140178366\nmov     [rdi+1A0h], rax                                                ; +0xad, 0x14017836d\nlea     rax, ??_7EditLevelLayer@@6B@_7; const EditLevelLayer::`vftable' ; +0xb4, 0x140178374\nmov     [rdi+1A8h], rax                                                ; +0xbb, 0x14017837b\nlea     rax, ??_7EditLevelLayer@@6B@_8; const EditLevelLayer::`vftable' ; +0xc2, 0x140178382\nmov     [rdi+1B0h], rax                                                ; +0xc9, 0x140178389\nlea     rax, ??_7EditLevelLayer@@6B@_9; const EditLevelLayer::`vftable' ; +0xd0, 0x140178390\nmov     [rdi+1B8h], rax                                                ; +0xd7, 0x140178397\nlea     rax, ??_7EditLevelLayer@@6B@_10; const EditLevelLayer::`vftable' ; +0xde, 0x14017839e\nmov     [rdi+1C0h], rax                                                ; +0xe5, 0x1401783a5\nlea     rax, ??_7EditLevelLayer@@6B@_11; const EditLevelLayer::`vftable' ; +0xec, 0x1401783ac\nmov     [rdi+1C8h], rax                                                ; +0xf3, 0x1401783b3\nxor     ebp, ebp                                                       ; +0xfa, 0x1401783ba\nmov     [rdi+1D0h], rbp                                                ; +0xfc, 0x1401783bc\nmov     [rdi+1D8h], rbp                                                ; +0x103, 0x1401783c3\nmov     [rdi+1E0h], rbp                                                ; +0x10a, 0x1401783ca\nmov     [rdi+1E8h], rbp                                                ; +0x111, 0x1401783d1\nmov     [rdi+1F0h], bpl                                                ; +0x118, 0x1401783d8\nmov     [rdi+1F4h], ebp                                                ; +0x11f, 0x1401783df\nxorps   xmm0, xmm0                                                     ; +0x125, 0x1401783e5\nmovups  xmmword ptr [rdi+1F8h], xmm0                                   ; +0x128, 0x1401783e8\nmov     [rdi+208h], rbp                                                ; +0x12f, 0x1401783ef\nmov     qword ptr [rdi+210h], 0Fh                                      ; +0x136, 0x1401783f6\nmov     [rdi+1F8h], bpl                                                ; +0x141, 0x140178401\nmov     [rdi+218h], rbp                                                ; +0x148, 0x140178408\nmov     [rdi+220h], bpl                                                ; +0x14f, 0x14017840f\nmov     [rdi+228h], rbp                                                ; +0x156, 0x140178416\nmov     [rdi+230h], rbp                                                ; +0x15d, 0x14017841d\nmovups  xmmword ptr [rdi+238h], xmm0                                   ; +0x164, 0x140178424\nmov     [rdi+248h], rbp                                                ; +0x16b, 0x14017842b\nmov     qword ptr [rdi+250h], 0Fh                                      ; +0x172, 0x140178432\nmov     [rdi+238h], bpl                                                ; +0x17d, 0x14017843d\nmov     rdx, rbx                                                       ; +0x184, 0x140178444\nmov     rcx, rdi                                                       ; +0x187, 0x140178447\ncall    EditLevelLayer__init                                           ; +0x18a, 0x14017844a\nmov     rcx, rdi                                                       ; +0x18f, 0x14017844f\ntest    al, al                                                         ; +0x192, 0x140178452\njz      short loc_14017845E                                            ; +0x194, 0x140178454\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x196, 0x140178456\njmp     short loc_14017846C                                            ; +0x19c, 0x14017845c\nmov     rax, [rdi]                                                     ; +0x19e, 0x14017845e\nmov     edx, 1                                                         ; +0x1a1, 0x140178461\ncall    qword ptr [rax+8]                                              ; +0x1a6, 0x140178466\nmov     rdi, rbp                                                       ; +0x1a9, 0x140178469\nmov     rax, [rsi]                                                     ; +0x1ac, 0x14017846c\nmov     rdx, rdi                                                       ; +0x1af, 0x14017846f\nmov     rcx, rsi                                                       ; +0x1b2, 0x140178472\ncall    qword ptr [rax+1D0h]                                           ; +0x1b5, 0x140178475\nmov     rax, rsi                                                       ; +0x1bb, 0x14017847b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x1be, 0x14017847e\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x1c3, 0x140178483\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x1c8, 0x140178488\nadd     rsp, 20h                                                       ; +0x1cd, 0x14017848d\npop     rdi                                                            ; +0x1d1, 0x140178491\nretn                                                                   ; +0x1d2, 0x140178492", "xrefs": ["EditLevelLayer::FLAlert_Clicked @ 0x14017c396", "GameLevelManager::gotoLevelPage @ 0x140221406", "GameManager::returnToLastScene @ 0x1402873f8", "LevelBrowserLayer::onNew @ 0x1403e80f1", "LevelInfoLayer::FLAlert_Clicked @ 0x14042627d", "UploadPopup::onReturnToLevel @ 0x140632a0b", "<???> @ 0x1409186a4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}