{"type": "func", "start": 5371818256, "end": 5371818808, "name": "LevelInfoLayer::create", "pseudocode": "// \n// LevelInfoLayer::create from 0x1402f7110 to 0x1402f7338 (552 bytes)\n// \n// 3 xrefs:\n// > GameManager::returnToLastScene @ 0x14018a0e0\n// > LevelInfoLayer::scene @ 0x1402f70e8\n// > <???> @ 0x1406d40c4\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\nLevelInfoLayer *LevelInfoLayer::create(GJGameLevel *a1, bool a2)\n{\n  LevelInfoLayer *v4; // rsi\n\n  v4 = (LevelInfoLayer *)operator new(0x2D8u);\n  cocos2d::CCLayer::CCLayer(v4);\n  v4->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelInfoLayer_vtbl *)&LevelInfoLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->LevelDownloadDelegate::__vftable = (LevelDownloadDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->LevelUpdateDelegate::__vftable = (LevelUpdateDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->RateLevelDelegate::__vftable = (RateLevelDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->LikeItemDelegate::__vftable = (LikeItemDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&LevelInfoLayer::`vftable';\n  v4->LevelDeleteDelegate::__vftable = (LevelDeleteDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->NumberInputDelegate::__vftable = (NumberInputDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->SetIDPopupDelegate::__vftable = (SetIDPopupDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->TableViewCellDelegate::__vftable = (TableViewCellDelegate_vtbl *)&LevelInfoLayer::`vftable';\n  v4->m_isBusy = 0;\n  v4->m_playBtnMenu = nullptr;\n  v4->m_level = nullptr;\n  v4->m_coins = nullptr;\n  v4->m_likeBtn = nullptr;\n  v4->m_starRateBtn = nullptr;\n  v4->m_demonRateBtn = nullptr;\n  v4->m_unk2 = nullptr;\n  v4->m_lengthLabel = nullptr;\n  v4->m_exactLengthLabel = nullptr;\n  v4->m_downloadsLabel = nullptr;\n  v4->m_likesLabel = nullptr;\n  v4->m_folderLabel = nullptr;\n  v4->m_cloneBtn = nullptr;\n  v4->m_unk3 = nullptr;\n  v4->m_likesIcon = nullptr;\n  v4->m_orbsIcon = nullptr;\n  v4->m_levelType = 0;\n  *(_WORD *)&v4->m_noUpdateAlert = 0;\n  v4->m_circle = nullptr;\n  v4->m_difficultySprite = nullptr;\n  v4->m_starsIcon = nullptr;\n  v4->m_starsLabel = nullptr;\n  v4->m_icons = nullptr;\n  v4->m_iconOffset = 0.0;\n  cocos2d::CCPoint::CCPoint(&v4->m_basePosition);\n  v4->m_challenge = 0;\n  v4->m_playScene = nullptr;\n  v4->m_playSprite = nullptr;\n  v4->m_progressTimer = nullptr;\n  v4->m_songWidget = nullptr;\n  if ( LevelInfoLayer::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n    return v4;\n  }\n  else\n  {\n    ((void (__fastcall *)(LevelInfoLayer *, __int64))v4->~LevelInfoLayer)(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; LevelInfoLayer::create from 0x1402f7110 to 0x1402f7338 (552 bytes)\n; \n; 3 xrefs:\n; > GameManager::returnToLastScene @ 0x14018a0e0\n; > LevelInfoLayer::scene @ 0x1402f70e8\n; > <???> @ 0x1406d40c4\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, 0x1402f7110\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1402f7115\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1402f711a\npush    rdi                                                            ; +0xf, 0x1402f711f\nsub     rsp, 20h                                                       ; +0x10, 0x1402f7120\nmovzx   ebx, dl                                                        ; +0x14, 0x1402f7124\nmov     rdi, rcx                                                       ; +0x17, 0x1402f7127\nmov     ecx, 2D8h; Size                                                ; +0x1a, 0x1402f712a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1f, 0x1402f712f\nmov     rsi, rax                                                       ; +0x24, 0x1402f7134\nmov     [rsp+28h+arg_10], rax                                          ; +0x27, 0x1402f7137\nmov     rcx, rax                                                       ; +0x2c, 0x1402f713c\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x2f, 0x1402f713f\nnop                                                                    ; +0x35, 0x1402f7145\nlea     rax, ??_7LevelInfoLayer@@6B@; const LevelInfoLayer::`vftable'  ; +0x36, 0x1402f7146\nmov     [rsi], rax                                                     ; +0x3d, 0x1402f714d\nlea     rax, ??_7LevelInfoLayer@@6B@_0; const LevelInfoLayer::`vftable' ; +0x40, 0x1402f7150\nmov     [rsi+140h], rax                                                ; +0x47, 0x1402f7157\nlea     rax, ??_7LevelInfoLayer@@6B@_1; const LevelInfoLayer::`vftable' ; +0x4e, 0x1402f715e\nmov     [rsi+148h], rax                                                ; +0x55, 0x1402f7165\nlea     rax, ??_7LevelInfoLayer@@6B@_2; const LevelInfoLayer::`vftable' ; +0x5c, 0x1402f716c\nmov     [rsi+150h], rax                                                ; +0x63, 0x1402f7173\nlea     rax, ??_7LevelInfoLayer@@6B@_3; const LevelInfoLayer::`vftable' ; +0x6a, 0x1402f717a\nmov     [rsi+158h], rax                                                ; +0x71, 0x1402f7181\nlea     rax, ??_7LevelInfoLayer@@6B@_4; const LevelInfoLayer::`vftable' ; +0x78, 0x1402f7188\nmov     [rsi+160h], rax                                                ; +0x7f, 0x1402f718f\nlea     rax, ??_7LevelInfoLayer@@6B@_5; const LevelInfoLayer::`vftable' ; +0x86, 0x1402f7196\nmov     [rsi+198h], rax                                                ; +0x8d, 0x1402f719d\nlea     rax, ??_7LevelInfoLayer@@6B@_6; const LevelInfoLayer::`vftable' ; +0x94, 0x1402f71a4\nmov     [rsi+1A0h], rax                                                ; +0x9b, 0x1402f71ab\nlea     rax, ??_7LevelInfoLayer@@6B@_7; const LevelInfoLayer::`vftable' ; +0xa2, 0x1402f71b2\nmov     [rsi+1A8h], rax                                                ; +0xa9, 0x1402f71b9\nlea     rax, ??_7LevelInfoLayer@@6B@_8; const LevelInfoLayer::`vftable' ; +0xb0, 0x1402f71c0\nmov     [rsi+1B0h], rax                                                ; +0xb7, 0x1402f71c7\nlea     rax, ??_7LevelInfoLayer@@6B@_9; const LevelInfoLayer::`vftable' ; +0xbe, 0x1402f71ce\nmov     [rsi+1B8h], rax                                                ; +0xc5, 0x1402f71d5\nlea     rax, ??_7LevelInfoLayer@@6B@_10; const LevelInfoLayer::`vftable' ; +0xcc, 0x1402f71dc\nmov     [rsi+1C0h], rax                                                ; +0xd3, 0x1402f71e3\nlea     rax, ??_7LevelInfoLayer@@6B@_11; const LevelInfoLayer::`vftable' ; +0xda, 0x1402f71ea\nmov     [rsi+1C8h], rax                                                ; +0xe1, 0x1402f71f1\nlea     rax, ??_7LevelInfoLayer@@6B@_12; const LevelInfoLayer::`vftable' ; +0xe8, 0x1402f71f8\nmov     [rsi+1D0h], rax                                                ; +0xef, 0x1402f71ff\nlea     rax, ??_7LevelInfoLayer@@6B@_13; const LevelInfoLayer::`vftable' ; +0xf6, 0x1402f7206\nmov     [rsi+1D8h], rax                                                ; +0xfd, 0x1402f720d\nmov     byte ptr [rsi+1E0h], 0                                         ; +0x104, 0x1402f7214\nxor     ebp, ebp                                                       ; +0x10b, 0x1402f721b\nmov     [rsi+1E8h], rbp                                                ; +0x10d, 0x1402f721d\nmov     [rsi+1F0h], rbp                                                ; +0x114, 0x1402f7224\nmov     [rsi+1F8h], rbp                                                ; +0x11b, 0x1402f722b\nmov     [rsi+200h], rbp                                                ; +0x122, 0x1402f7232\nmov     [rsi+208h], rbp                                                ; +0x129, 0x1402f7239\nmov     [rsi+210h], rbp                                                ; +0x130, 0x1402f7240\nmov     [rsi+218h], rbp                                                ; +0x137, 0x1402f7247\nmov     [rsi+220h], rbp                                                ; +0x13e, 0x1402f724e\nmov     [rsi+228h], rbp                                                ; +0x145, 0x1402f7255\nmov     [rsi+230h], rbp                                                ; +0x14c, 0x1402f725c\nmov     [rsi+238h], rbp                                                ; +0x153, 0x1402f7263\nmov     [rsi+248h], rbp                                                ; +0x15a, 0x1402f726a\nmov     [rsi+250h], rbp                                                ; +0x161, 0x1402f7271\nmov     [rsi+258h], rbp                                                ; +0x168, 0x1402f7278\nmov     [rsi+260h], rbp                                                ; +0x16f, 0x1402f727f\nmov     [rsi+268h], rbp                                                ; +0x176, 0x1402f7286\nmov     [rsi+270h], ebp                                                ; +0x17d, 0x1402f728d\nmov     [rsi+274h], bp                                                 ; +0x183, 0x1402f7293\nmov     [rsi+278h], rbp                                                ; +0x18a, 0x1402f729a\nmov     [rsi+280h], rbp                                                ; +0x191, 0x1402f72a1\nmov     [rsi+288h], rbp                                                ; +0x198, 0x1402f72a8\nmov     [rsi+290h], rbp                                                ; +0x19f, 0x1402f72af\nmov     [rsi+298h], rbp                                                ; +0x1a6, 0x1402f72b6\nmov     [rsi+2A0h], ebp                                                ; +0x1ad, 0x1402f72bd\nlea     rcx, [rsi+2A4h]                                                ; +0x1b3, 0x1402f72c3\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x1ba, 0x1402f72ca\nmov     [rsi+2B0h], bpl                                                ; +0x1c0, 0x1402f72d0\nmov     [rsi+2B8h], rbp                                                ; +0x1c7, 0x1402f72d7\nmov     [rsi+2C0h], rbp                                                ; +0x1ce, 0x1402f72de\nmov     [rsi+2C8h], rbp                                                ; +0x1d5, 0x1402f72e5\nmov     [rsi+2D0h], rbp                                                ; +0x1dc, 0x1402f72ec\nmovzx   r8d, bl                                                        ; +0x1e3, 0x1402f72f3\nmov     rdx, rdi                                                       ; +0x1e7, 0x1402f72f7\nmov     rcx, rsi                                                       ; +0x1ea, 0x1402f72fa\ncall    LevelInfoLayer__init                                           ; +0x1ed, 0x1402f72fd\nmov     rcx, rsi                                                       ; +0x1f2, 0x1402f7302\ntest    al, al                                                         ; +0x1f5, 0x1402f7305\njz      short loc_1402F7314                                            ; +0x1f7, 0x1402f7307\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1f9, 0x1402f7309\nmov     rax, rsi                                                       ; +0x1ff, 0x1402f730f\njmp     short loc_1402F7323                                            ; +0x202, 0x1402f7312\nmov     r8, [rsi]                                                      ; +0x204, 0x1402f7314\nmov     edx, 1                                                         ; +0x207, 0x1402f7317\ncall    qword ptr [r8+8]                                               ; +0x20c, 0x1402f731c\nmov     rax, rbp                                                       ; +0x210, 0x1402f7320\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x213, 0x1402f7323\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x218, 0x1402f7328\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x21d, 0x1402f732d\nadd     rsp, 20h                                                       ; +0x222, 0x1402f7332\npop     rdi                                                            ; +0x226, 0x1402f7336\nretn                                                                   ; +0x227, 0x1402f7337", "xrefs": ["GameManager::returnToLastScene @ 0x14018a0e0", "LevelInfoLayer::scene @ 0x1402f70e8", "<???> @ 0x1406d40c4"], "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"}