{"type": "func", "start": 5369528880, "end": 5369529456, "name": "CustomSongWidget::create", "pseudocode": "// \n// CustomSongWidget::create from 0x1400c8230 to 0x1400c8470 (576 bytes)\n// \n// 6 xrefs:\n// > CustomSongCell::loadFromObject @ 0x1400b46f6\n// > CustomMusicCell::loadFromObject @ 0x1400b4f07\n// > CustomSongLayer::init @ 0x1400c37ee\n// > SongSelectNode::init @ 0x1400c7620\n// > LevelInfoLayer::init @ 0x1402f9319\n// > <???> @ 0x1406c8280\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=5\nCustomSongWidget *CustomSongWidget::create(\n        SongInfoObject *a1,\n        CustomSongDelegate *a2,\n        bool a3,\n        bool a4,\n        bool a5,\n        bool a6,\n        bool a7,\n        bool a8,\n        int a9)\n{\n  CustomSongWidget *v13; // r15\n  _QWORD *v14; // rax\n  _QWORD *v15; // rax\n  _QWORD *v16; // rax\n\n  v13 = (CustomSongWidget *)operator new(0x260u);\n  cocos2d::CCNode::CCNode(v13);\n  v13->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSongWidget_vtbl *)&CustomSongWidget::`vftable';\n  v13->MusicDownloadDelegate::__vftable = (MusicDownloadDelegate_vtbl *)&CustomSongWidget::`vftable';\n  v13->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&CustomSongWidget::`vftable';\n  v13->m_songInfoObject = nullptr;\n  v13->m_songLabel = nullptr;\n  v13->m_artistLabel = nullptr;\n  v13->m_songIDLabel = nullptr;\n  v13->m_downloadBtn = nullptr;\n  v13->m_selectSongBtn = nullptr;\n  v13->m_playbackBtn = nullptr;\n  v13->m_deleteBtn = nullptr;\n  v13->m_sliderGroove = nullptr;\n  v13->m_sliderBar = nullptr;\n  v13->m_ncsLogo = nullptr;\n  v13->m_bgSpr = nullptr;\n  v13->m_songDelegate = nullptr;\n  *(_DWORD *)&v13->m_showSelectSongBtn = 0;\n  *(_WORD *)&v13->m_isRobtopSong = 0;\n  *(_QWORD *)&v13->m_customSongID = 0;\n  v13->m_isInCell = 0;\n  v13->m_playbackDelegate = nullptr;\n  *(_WORD *)&v13->m_hasLibrarySongs = 0;\n  v13->m_unkBool2 = 0;\n  v13->m_songs._Mypair._Myval2._Myval2._Myhead = nullptr;\n  v13->m_songs._Mypair._Myval2._Myval2._Mysize = 0;\n  v14 = operator new(0x28u);\n  *v14 = v14;\n  v14[1] = v14;\n  v14[2] = v14;\n  *((_WORD *)v14 + 12) = 257;\n  v13->m_songs._Mypair._Myval2._Myval2._Myhead = (std::_Tree_val<std::_Tree_simple_types<std::pair<const int, bool>>>::_Nodeptr)v14;\n  v13->m_sfx._Mypair._Myval2._Myval2._Myhead = nullptr;\n  v13->m_sfx._Mypair._Myval2._Myval2._Mysize = 0;\n  v15 = operator new(0x28u);\n  *v15 = v15;\n  v15[1] = v15;\n  v15[2] = v15;\n  *((_WORD *)v15 + 12) = 257;\n  v13->m_sfx._Mypair._Myval2._Myval2._Myhead = (std::_Tree_val<std::_Tree_simple_types<std::pair<const int, bool>>>::_Nodeptr)v15;\n  v13->m_undownloadedAssets._Mypair._Myval2._Myfirst = nullptr;\n  v13->m_undownloadedAssets._Mypair._Myval2._Mylast = nullptr;\n  v13->m_undownloadedAssets._Mypair._Myval2._Myend = nullptr;\n  v13->m_totalBytes = 0;\n  v13->m_nextSongIDs._Mypair._Myval2._Myval2._Myhead = nullptr;\n  v13->m_nextSongIDs._Mypair._Myval2._Myval2._Mysize = 0;\n  v16 = operator new(0x20u);\n  *v16 = v16;\n  v16[1] = v16;\n  v16[2] = v16;\n  *((_WORD *)v16 + 12) = 257;\n  v13->m_nextSongIDs._Mypair._Myval2._Myval2._Myhead = (std::_Tree_val<std::_Tree_simple_types<int>>::_Nodeptr)v16;\n  if ( CustomSongWidget::init(v13, a1, a2, a3, a4, a5, a6, a7, a8, a9) )\n  {\n    cocos2d::CCObject::autorelease(v13);\n    return v13;\n  }\n  else\n  {\n    ((void (__fastcall *)(CustomSongWidget *, __int64))v13->~CustomSongWidget)(v13, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; CustomSongWidget::create from 0x1400c8230 to 0x1400c8470 (576 bytes)\n; \n; 6 xrefs:\n; > CustomSongCell::loadFromObject @ 0x1400b46f6\n; > CustomMusicCell::loadFromObject @ 0x1400b4f07\n; > CustomSongLayer::init @ 0x1400c37ee\n; > SongSelectNode::init @ 0x1400c7620\n; > LevelInfoLayer::init @ 0x1402f9319\n; > <???> @ 0x1406c8280\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, 0x1400c8230\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1400c8235\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1400c823a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1400c823f\npush    r12                                                            ; +0x14, 0x1400c8244\npush    r14                                                            ; +0x16, 0x1400c8246\npush    r15                                                            ; +0x18, 0x1400c8248\nsub     rsp, 60h                                                       ; +0x1a, 0x1400c824a\nmovzx   edi, r9b                                                       ; +0x1e, 0x1400c824e\nmovzx   esi, r8b                                                       ; +0x22, 0x1400c8252\nmov     rbp, rdx                                                       ; +0x26, 0x1400c8256\nmov     r14, rcx                                                       ; +0x29, 0x1400c8259\nmov     ecx, 260h; Size                                                ; +0x2c, 0x1400c825c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x1400c8261\nmov     r15, rax                                                       ; +0x36, 0x1400c8266\nmov     [rsp+78h+var_28], rax                                          ; +0x39, 0x1400c8269\nmov     rcx, rax                                                       ; +0x3e, 0x1400c826e\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x41, 0x1400c8271\nnop                                                                    ; +0x47, 0x1400c8277\nlea     rax, ??_7CustomSongWidget@@6B@; const CustomSongWidget::`vftable' ; +0x48, 0x1400c8278\nmov     [r15], rax                                                     ; +0x4f, 0x1400c827f\nlea     rax, ??_7CustomSongWidget@@6B@_0; const CustomSongWidget::`vftable' ; +0x52, 0x1400c8282\nmov     [r15+140h], rax                                                ; +0x59, 0x1400c8289\nlea     rax, ??_7CustomSongWidget@@6B@_1; const CustomSongWidget::`vftable' ; +0x60, 0x1400c8290\nmov     [r15+148h], rax                                                ; +0x67, 0x1400c8297\nxor     r12d, r12d                                                     ; +0x6e, 0x1400c829e\nmov     [r15+150h], r12                                                ; +0x71, 0x1400c82a1\nmov     [r15+160h], r12                                                ; +0x78, 0x1400c82a8\nmov     [r15+168h], r12                                                ; +0x7f, 0x1400c82af\nmov     [r15+170h], r12                                                ; +0x86, 0x1400c82b6\nmov     [r15+180h], r12                                                ; +0x8d, 0x1400c82bd\nmov     [r15+190h], r12                                                ; +0x94, 0x1400c82c4\nmov     [r15+1A0h], r12                                                ; +0x9b, 0x1400c82cb\nmov     [r15+1B0h], r12                                                ; +0xa2, 0x1400c82d2\nmov     [r15+1C0h], r12                                                ; +0xa9, 0x1400c82d9\nmov     [r15+1C8h], r12                                                ; +0xb0, 0x1400c82e0\nmov     [r15+1D0h], r12                                                ; +0xb7, 0x1400c82e7\nmov     [r15+1D8h], r12                                                ; +0xbe, 0x1400c82ee\nmov     [r15+1E0h], r12                                                ; +0xc5, 0x1400c82f5\nmov     [r15+1E8h], r12d                                               ; +0xcc, 0x1400c82fc\nmov     [r15+1ECh], r12w                                               ; +0xd3, 0x1400c8303\nmov     [r15+1F0h], r12                                                ; +0xdb, 0x1400c830b\nmov     [r15+1F8h], r12b                                               ; +0xe2, 0x1400c8312\nmov     [r15+200h], r12                                                ; +0xe9, 0x1400c8319\nmov     [r15+208h], r12w                                               ; +0xf0, 0x1400c8320\nmov     [r15+20Ah], r12b                                               ; +0xf8, 0x1400c8328\nlea     rbx, [r15+210h]                                                ; +0xff, 0x1400c832f\nmov     [rsp+78h+var_20], rbx                                          ; +0x106, 0x1400c8336\nmov     [rbx], r12                                                     ; +0x10b, 0x1400c833b\nmov     [rbx+8], r12                                                   ; +0x10e, 0x1400c833e\nlea     ecx, [r12+28h]; Size                                           ; +0x112, 0x1400c8342\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x117, 0x1400c8347\nmov     [rax], rax                                                     ; +0x11c, 0x1400c834c\nmov     [rax+8], rax                                                   ; +0x11f, 0x1400c834f\nmov     [rax+10h], rax                                                 ; +0x123, 0x1400c8353\nmov     word ptr [rax+18h], 101h                                       ; +0x127, 0x1400c8357\nmov     [rbx], rax                                                     ; +0x12d, 0x1400c835d\nlea     rbx, [r15+220h]                                                ; +0x130, 0x1400c8360\nmov     [rsp+78h+var_20], rbx                                          ; +0x137, 0x1400c8367\nmov     [rbx], r12                                                     ; +0x13c, 0x1400c836c\nmov     [rbx+8], r12                                                   ; +0x13f, 0x1400c836f\nlea     ecx, [r12+28h]; Size                                           ; +0x143, 0x1400c8373\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x148, 0x1400c8378\nmov     [rax], rax                                                     ; +0x14d, 0x1400c837d\nmov     [rax+8], rax                                                   ; +0x150, 0x1400c8380\nmov     [rax+10h], rax                                                 ; +0x154, 0x1400c8384\nmov     word ptr [rax+18h], 101h                                       ; +0x158, 0x1400c8388\nmov     [rbx], rax                                                     ; +0x15e, 0x1400c838e\nmov     [r15+230h], r12                                                ; +0x161, 0x1400c8391\nmov     [r15+238h], r12                                                ; +0x168, 0x1400c8398\nmov     [r15+240h], r12                                                ; +0x16f, 0x1400c839f\nmov     [r15+248h], r12d                                               ; +0x176, 0x1400c83a6\nlea     rbx, [r15+250h]                                                ; +0x17d, 0x1400c83ad\nmov     [rsp+78h+var_20], rbx                                          ; +0x184, 0x1400c83b4\nmov     [rbx], r12                                                     ; +0x189, 0x1400c83b9\nmov     [rbx+8], r12                                                   ; +0x18c, 0x1400c83bc\nlea     ecx, [r12+20h]; Size                                           ; +0x190, 0x1400c83c0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x195, 0x1400c83c5\nmov     [rax], rax                                                     ; +0x19a, 0x1400c83ca\nmov     [rax+8], rax                                                   ; +0x19d, 0x1400c83cd\nmov     [rax+10h], rax                                                 ; +0x1a1, 0x1400c83d1\nmov     word ptr [rax+18h], 101h                                       ; +0x1a5, 0x1400c83d5\nmov     [rbx], rax                                                     ; +0x1ab, 0x1400c83db\nmov     eax, [rsp+78h+arg_40]                                          ; +0x1ae, 0x1400c83de\nmov     [rsp+78h+var_30], eax                                          ; +0x1b5, 0x1400c83e5\nmovzx   eax, [rsp+78h+arg_38]                                          ; +0x1b9, 0x1400c83e9\nmov     [rsp+78h+var_38], al                                           ; +0x1c1, 0x1400c83f1\nmovzx   eax, [rsp+78h+arg_30]                                          ; +0x1c5, 0x1400c83f5\nmov     [rsp+78h+var_40], al                                           ; +0x1cd, 0x1400c83fd\nmovzx   eax, [rsp+78h+arg_28]                                          ; +0x1d1, 0x1400c8401\nmov     [rsp+78h+var_48], al                                           ; +0x1d9, 0x1400c8409\nmovzx   ecx, [rsp+78h+arg_20]                                          ; +0x1dd, 0x1400c840d\nmov     [rsp+78h+var_50], cl                                           ; +0x1e5, 0x1400c8415\nmov     [rsp+78h+var_58], dil                                          ; +0x1e9, 0x1400c8419\nmovzx   r9d, sil                                                       ; +0x1ee, 0x1400c841e\nmov     r8, rbp                                                        ; +0x1f2, 0x1400c8422\nmov     rdx, r14                                                       ; +0x1f5, 0x1400c8425\nmov     rcx, r15                                                       ; +0x1f8, 0x1400c8428\ncall    CustomSongWidget__init                                         ; +0x1fb, 0x1400c842b\nmov     rcx, r15                                                       ; +0x200, 0x1400c8430\ntest    al, al                                                         ; +0x203, 0x1400c8433\njz      short loc_1400C8442                                            ; +0x205, 0x1400c8435\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x207, 0x1400c8437\nmov     rax, r15                                                       ; +0x20d, 0x1400c843d\njmp     short loc_1400C8451                                            ; +0x210, 0x1400c8440\nmov     r8, [r15]                                                      ; +0x212, 0x1400c8442\nmov     edx, 1                                                         ; +0x215, 0x1400c8445\ncall    qword ptr [r8+8]                                               ; +0x21a, 0x1400c844a\nmov     rax, r12                                                       ; +0x21e, 0x1400c844e\nlea     r11, [rsp+78h+var_18]                                          ; +0x221, 0x1400c8451\nmov     rbx, [r11+20h]                                                 ; +0x226, 0x1400c8456\nmov     rbp, [r11+28h]                                                 ; +0x22a, 0x1400c845a\nmov     rsi, [r11+30h]                                                 ; +0x22e, 0x1400c845e\nmov     rdi, [r11+38h]                                                 ; +0x232, 0x1400c8462\nmov     rsp, r11                                                       ; +0x236, 0x1400c8466\npop     r15                                                            ; +0x239, 0x1400c8469\npop     r14                                                            ; +0x23b, 0x1400c846b\npop     r12                                                            ; +0x23d, 0x1400c846d\nretn                                                                   ; +0x23f, 0x1400c846f", "xrefs": ["CustomSongCell::loadFromObject @ 0x1400b46f6", "CustomMusicCell::loadFromObject @ 0x1400b4f07", "CustomSongLayer::init @ 0x1400c37ee", "SongSelectNode::init @ 0x1400c7620", "LevelInfoLayer::init @ 0x1402f9319", "<???> @ 0x1406c8280"], "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"}