{"type": "func", "start": 5371868176, "end": 5371868726, "name": "LevelListLayer::scene", "pseudocode": "// \n// LevelListLayer::scene from 0x140303410 to 0x140303636 (550 bytes)\n// \n// 6 xrefs:\n// > LevelListCell::onClick @ 0x1400c013a\n// > LevelListCell::onClick @ 0x1400c01b0\n// > LevelBrowserLayer::onNew @ 0x1402cde78\n// > LevelListLayer::cloneList @ 0x14030840f\n// > UploadListPopup::onReturnToList @ 0x14030bc3b\n// > <???> @ 0x1406d4454\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=4\ncocos2d::CCScene *LevelListLayer::scene(GJLevelList *a1)\n{\n  cocos2d::CCScene *v2; // rsi\n  __int64 v3; // rdx\n  __int64 v4; // rcx\n  char *v5; // rdi\n\n  v2 = (cocos2d::CCScene *)cocos2d::CCScene::create(a1);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v4, v3) + 224) = v2;\n  v5 = (char *)operator new(0x3D8u);\n  LevelBrowserLayer::LevelBrowserLayer((LevelBrowserLayer *)v5);\n  *(_QWORD *)v5 = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 40) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 41) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 42) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 43) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 44) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 51) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 54) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 68) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 69) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 70) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 71) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 72) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 73) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 100) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 101) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 102) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 103) = &LevelListLayer::`vftable';\n  *((_QWORD *)v5 + 104) = 0;\n  *(_OWORD *)(v5 + 840) = 0;\n  *((_QWORD *)v5 + 107) = 0;\n  *((_QWORD *)v5 + 108) = 15;\n  v5[840] = 0;\n  *((_QWORD *)v5 + 109) = 0;\n  *((_OWORD *)v5 + 55) = 0;\n  *((_QWORD *)v5 + 112) = 0;\n  *((_QWORD *)v5 + 113) = 15;\n  v5[880] = 0;\n  *((_QWORD *)v5 + 114) = 0;\n  v5[920] = 0;\n  *((_QWORD *)v5 + 116) = 0;\n  *((_DWORD *)v5 + 234) = 0;\n  *((_QWORD *)v5 + 118) = 0;\n  *((_QWORD *)v5 + 119) = 0;\n  *((_QWORD *)v5 + 120) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v5 + 121);\n  v5[976] = 0;\n  if ( LevelListLayer::init((LevelListLayer *)v5, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\n    v5 = nullptr;\n  }\n  v2->addChild_1(v2, (cocos2d::CCNode *)v5);\n  return v2;\n}", "assembly": "; \n; LevelListLayer::scene from 0x140303410 to 0x140303636 (550 bytes)\n; \n; 6 xrefs:\n; > LevelListCell::onClick @ 0x1400c013a\n; > LevelListCell::onClick @ 0x1400c01b0\n; > LevelBrowserLayer::onNew @ 0x1402cde78\n; > LevelListLayer::cloneList @ 0x14030840f\n; > UploadListPopup::onReturnToList @ 0x14030bc3b\n; > <???> @ 0x1406d4454\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, 0x140303410\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140303415\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14030341a\npush    rdi                                                            ; +0xf, 0x14030341f\nsub     rsp, 20h                                                       ; +0x10, 0x140303420\nmov     rbx, rcx                                                       ; +0x14, 0x140303424\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x17, 0x140303427\nmov     rsi, rax                                                       ; +0x1d, 0x14030342d\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x20, 0x140303430\nmov     [rax+0E0h], rsi                                                ; +0x26, 0x140303436\nmov     ecx, 3D8h; Size                                                ; +0x2d, 0x14030343d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x32, 0x140303442\nmov     rdi, rax                                                       ; +0x37, 0x140303447\nmov     [rsp+28h+arg_8], rax                                           ; +0x3a, 0x14030344a\nmov     rcx, rax                                                       ; +0x3f, 0x14030344f\ncall    LevelBrowserLayer__LevelBrowserLayer                           ; +0x42, 0x140303452\nnop                                                                    ; +0x47, 0x140303457\nlea     rax, ??_7LevelListLayer@@6B@; const LevelListLayer::`vftable'  ; +0x48, 0x140303458\nmov     [rdi], rax                                                     ; +0x4f, 0x14030345f\nlea     rax, ??_7LevelListLayer@@6B@_0; const LevelListLayer::`vftable' ; +0x52, 0x140303462\nmov     [rdi+140h], rax                                                ; +0x59, 0x140303469\nlea     rax, ??_7LevelListLayer@@6B@_1; const LevelListLayer::`vftable' ; +0x60, 0x140303470\nmov     [rdi+148h], rax                                                ; +0x67, 0x140303477\nlea     rax, ??_7LevelListLayer@@6B@_2; const LevelListLayer::`vftable' ; +0x6e, 0x14030347e\nmov     [rdi+150h], rax                                                ; +0x75, 0x140303485\nlea     rax, ??_7LevelListLayer@@6B@_3; const LevelListLayer::`vftable' ; +0x7c, 0x14030348c\nmov     [rdi+158h], rax                                                ; +0x83, 0x140303493\nlea     rax, ??_7LevelListLayer@@6B@_4; const LevelListLayer::`vftable' ; +0x8a, 0x14030349a\nmov     [rdi+160h], rax                                                ; +0x91, 0x1403034a1\nlea     rax, ??_7LevelListLayer@@6B@_5; const LevelListLayer::`vftable' ; +0x98, 0x1403034a8\nmov     [rdi+198h], rax                                                ; +0x9f, 0x1403034af\nlea     rax, ??_7LevelListLayer@@6B@_6; const LevelListLayer::`vftable' ; +0xa6, 0x1403034b6\nmov     [rdi+1B0h], rax                                                ; +0xad, 0x1403034bd\nlea     rax, ??_7LevelListLayer@@6B@_7; const LevelListLayer::`vftable' ; +0xb4, 0x1403034c4\nmov     [rdi+220h], rax                                                ; +0xbb, 0x1403034cb\nlea     rax, ??_7LevelListLayer@@6B@_8; const LevelListLayer::`vftable' ; +0xc2, 0x1403034d2\nmov     [rdi+228h], rax                                                ; +0xc9, 0x1403034d9\nlea     rax, ??_7LevelListLayer@@6B@_9; const LevelListLayer::`vftable' ; +0xd0, 0x1403034e0\nmov     [rdi+230h], rax                                                ; +0xd7, 0x1403034e7\nlea     rax, ??_7LevelListLayer@@6B@_10; const LevelListLayer::`vftable' ; +0xde, 0x1403034ee\nmov     [rdi+238h], rax                                                ; +0xe5, 0x1403034f5\nlea     rax, ??_7LevelListLayer@@6B@_11; const LevelListLayer::`vftable' ; +0xec, 0x1403034fc\nmov     [rdi+240h], rax                                                ; +0xf3, 0x140303503\nlea     rax, ??_7LevelListLayer@@6B@_12; const LevelListLayer::`vftable' ; +0xfa, 0x14030350a\nmov     [rdi+248h], rax                                                ; +0x101, 0x140303511\nlea     rax, ??_7LevelListLayer@@6B@_13; const LevelListLayer::`vftable' ; +0x108, 0x140303518\nmov     [rdi+320h], rax                                                ; +0x10f, 0x14030351f\nlea     rax, ??_7LevelListLayer@@6B@_14; const LevelListLayer::`vftable' ; +0x116, 0x140303526\nmov     [rdi+328h], rax                                                ; +0x11d, 0x14030352d\nlea     rax, ??_7LevelListLayer@@6B@_15; const LevelListLayer::`vftable' ; +0x124, 0x140303534\nmov     [rdi+330h], rax                                                ; +0x12b, 0x14030353b\nlea     rax, ??_7LevelListLayer@@6B@_16; const LevelListLayer::`vftable' ; +0x132, 0x140303542\nmov     [rdi+338h], rax                                                ; +0x139, 0x140303549\nxor     ebp, ebp                                                       ; +0x140, 0x140303550\nmov     [rdi+340h], rbp                                                ; +0x142, 0x140303552\nxorps   xmm0, xmm0                                                     ; +0x149, 0x140303559\nmovups  xmmword ptr [rdi+348h], xmm0                                   ; +0x14c, 0x14030355c\nmov     [rdi+358h], rbp                                                ; +0x153, 0x140303563\nmov     qword ptr [rdi+360h], 0Fh                                      ; +0x15a, 0x14030356a\nmov     [rdi+348h], bpl                                                ; +0x165, 0x140303575\nmov     [rdi+368h], rbp                                                ; +0x16c, 0x14030357c\nmovups  xmmword ptr [rdi+370h], xmm0                                   ; +0x173, 0x140303583\nmov     [rdi+380h], rbp                                                ; +0x17a, 0x14030358a\nmov     qword ptr [rdi+388h], 0Fh                                      ; +0x181, 0x140303591\nmov     [rdi+370h], bpl                                                ; +0x18c, 0x14030359c\nmov     [rdi+390h], rbp                                                ; +0x193, 0x1403035a3\nmov     [rdi+398h], bpl                                                ; +0x19a, 0x1403035aa\nmov     [rdi+3A0h], rbp                                                ; +0x1a1, 0x1403035b1\nmov     [rdi+3A8h], ebp                                                ; +0x1a8, 0x1403035b8\nmov     [rdi+3B0h], rbp                                                ; +0x1ae, 0x1403035be\nmov     [rdi+3B8h], rbp                                                ; +0x1b5, 0x1403035c5\nmov     [rdi+3C0h], rbp                                                ; +0x1bc, 0x1403035cc\nlea     rcx, [rdi+3C8h]                                                ; +0x1c3, 0x1403035d3\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x1ca, 0x1403035da\nmov     [rdi+3D0h], bpl                                                ; +0x1d0, 0x1403035e0\nmov     rdx, rbx                                                       ; +0x1d7, 0x1403035e7\nmov     rcx, rdi                                                       ; +0x1da, 0x1403035ea\ncall    LevelListLayer__init                                           ; +0x1dd, 0x1403035ed\nmov     rcx, rdi                                                       ; +0x1e2, 0x1403035f2\ntest    al, al                                                         ; +0x1e5, 0x1403035f5\njz      short loc_140303601                                            ; +0x1e7, 0x1403035f7\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1e9, 0x1403035f9\njmp     short loc_14030360F                                            ; +0x1ef, 0x1403035ff\nmov     rax, [rdi]                                                     ; +0x1f1, 0x140303601\nmov     edx, 1                                                         ; +0x1f4, 0x140303604\ncall    qword ptr [rax+8]                                              ; +0x1f9, 0x140303609\nmov     rdi, rbp                                                       ; +0x1fc, 0x14030360c\nmov     rax, [rsi]                                                     ; +0x1ff, 0x14030360f\nmov     rdx, rdi                                                       ; +0x202, 0x140303612\nmov     rcx, rsi                                                       ; +0x205, 0x140303615\ncall    qword ptr [rax+1C0h]                                           ; +0x208, 0x140303618\nmov     rax, rsi                                                       ; +0x20e, 0x14030361e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x211, 0x140303621\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x216, 0x140303626\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x21b, 0x14030362b\nadd     rsp, 20h                                                       ; +0x220, 0x140303630\npop     rdi                                                            ; +0x224, 0x140303634\nretn                                                                   ; +0x225, 0x140303635", "xrefs": ["LevelListCell::onClick @ 0x1400c013a", "LevelListCell::onClick @ 0x1400c01b0", "LevelBrowserLayer::onNew @ 0x1402cde78", "LevelListLayer::cloneList @ 0x14030840f", "UploadListPopup::onReturnToList @ 0x14030bc3b", "<???> @ 0x1406d4454"], "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"}