{"type": "func", "start": 5370187872, "end": 5370188497, "name": "CustomSongWidget::create", "pseudocode": "// \n// CustomSongWidget::create from 0x140169060 to 0x1401692d1 (625 bytes)\n// \n// 7 xrefs:\n// > AudioAssetsPopup::init @ 0x1400be19a\n// > CustomSongCell::loadFromObject @ 0x1401503de\n// > CustomMusicCell::loadFromObject @ 0x140150e91\n// > CustomSongLayer::init @ 0x14016487a\n// > SongSelectNode::init @ 0x140168638\n// > LevelInfoLayer::init @ 0x14041e157\n// > <???> @ 0x140918068\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:28 +0000\n// \n\n// Hidden C++ exception states: #wind=5\ncocos2d::CCNode *__fastcall CustomSongWidget::create(\n        int a1,\n        int a2,\n        unsigned __int8 a3,\n        char a4,\n        char a5,\n        char a6,\n        char a7,\n        char a8,\n        int a9,\n        char a10,\n        char a11)\n{\n  cocos2d::CCNode *v15; // r15\n  _QWORD *v16; // rax\n  _QWORD *v17; // rax\n  _QWORD *v18; // rax\n\n  v15 = (cocos2d::CCNode *)operator new(0x278u);\n  cocos2d::CCNode::CCNode(v15);\n  *(_QWORD *)v15 = &CustomSongWidget::`vftable';\n  *((_QWORD *)v15 + 40) = &CustomSongWidget::`vftable';\n  *((_QWORD *)v15 + 41) = &CustomSongWidget::`vftable';\n  *((_QWORD *)v15 + 42) = 0;\n  *((_QWORD *)v15 + 44) = 0;\n  *((_QWORD *)v15 + 45) = 0;\n  *((_QWORD *)v15 + 46) = 0;\n  *((_QWORD *)v15 + 48) = 0;\n  *((_QWORD *)v15 + 50) = 0;\n  *((_QWORD *)v15 + 52) = 0;\n  *((_QWORD *)v15 + 54) = 0;\n  *((_QWORD *)v15 + 56) = 0;\n  *((_QWORD *)v15 + 57) = 0;\n  *((_QWORD *)v15 + 58) = 0;\n  *((_QWORD *)v15 + 59) = 0;\n  *((_QWORD *)v15 + 60) = 0;\n  *((_QWORD *)v15 + 61) = 0;\n  *((_DWORD *)v15 + 124) = 0;\n  *((_WORD *)v15 + 250) = 0;\n  *((_BYTE *)v15 + 502) = 0;\n  *((_QWORD *)v15 + 63) = 0;\n  *((_BYTE *)v15 + 512) = 0;\n  *((_QWORD *)v15 + 65) = 0;\n  *((_WORD *)v15 + 264) = 0;\n  *((_QWORD *)v15 + 67) = 0;\n  *((_WORD *)v15 + 272) = 0;\n  *((_QWORD *)v15 + 69) = 0;\n  *((_QWORD *)v15 + 70) = 0;\n  v16 = operator new(0x28u);\n  *v16 = v16;\n  v16[1] = v16;\n  v16[2] = v16;\n  *((_WORD *)v16 + 12) = 257;\n  *((_QWORD *)v15 + 69) = v16;\n  *((_QWORD *)v15 + 71) = 0;\n  *((_QWORD *)v15 + 72) = 0;\n  v17 = operator new(0x28u);\n  *v17 = v17;\n  v17[1] = v17;\n  v17[2] = v17;\n  *((_WORD *)v17 + 12) = 257;\n  *((_QWORD *)v15 + 71) = v17;\n  *((_QWORD *)v15 + 73) = 0;\n  *((_QWORD *)v15 + 74) = 0;\n  *((_QWORD *)v15 + 75) = 0;\n  *((_QWORD *)v15 + 76) = 0;\n  *((_QWORD *)v15 + 77) = 0;\n  *((_QWORD *)v15 + 78) = 0;\n  v18 = operator new(0x20u);\n  *v18 = v18;\n  v18[1] = v18;\n  v18[2] = v18;\n  *((_WORD *)v18 + 12) = 257;\n  *((_QWORD *)v15 + 77) = v18;\n  if ( (unsigned __int8)CustomSongWidget::init((_DWORD)v15, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) )\n  {\n    cocos2d::CCObject::autorelease(v15);\n    return v15;\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v15 + 8LL))(v15, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; CustomSongWidget::create from 0x140169060 to 0x1401692d1 (625 bytes)\n; \n; 7 xrefs:\n; > AudioAssetsPopup::init @ 0x1400be19a\n; > CustomSongCell::loadFromObject @ 0x1401503de\n; > CustomMusicCell::loadFromObject @ 0x140150e91\n; > CustomSongLayer::init @ 0x14016487a\n; > SongSelectNode::init @ 0x140168638\n; > LevelInfoLayer::init @ 0x14041e157\n; > <???> @ 0x140918068\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:28 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140169060\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140169065\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14016906a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x14016906f\npush    r12                                                            ; +0x14, 0x140169074\npush    r14                                                            ; +0x16, 0x140169076\npush    r15                                                            ; +0x18, 0x140169078\nsub     rsp, 70h                                                       ; +0x1a, 0x14016907a\nmovzx   edi, r9b                                                       ; +0x1e, 0x14016907e\nmovzx   esi, r8b                                                       ; +0x22, 0x140169082\nmov     rbp, rdx                                                       ; +0x26, 0x140169086\nmov     r14, rcx                                                       ; +0x29, 0x140169089\nmov     ecx, 278h; Size                                                ; +0x2c, 0x14016908c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x140169091\nmov     r15, rax                                                       ; +0x36, 0x140169096\nmov     [rsp+88h+var_28], rax                                          ; +0x39, 0x140169099\nmov     rcx, rax                                                       ; +0x3e, 0x14016909e\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x41, 0x1401690a1\nnop                                                                    ; +0x47, 0x1401690a7\nlea     rax, ??_7CustomSongWidget@@6B@; const CustomSongWidget::`vftable' ; +0x48, 0x1401690a8\nmov     [r15], rax                                                     ; +0x4f, 0x1401690af\nlea     rax, ??_7CustomSongWidget@@6B@_0; const CustomSongWidget::`vftable' ; +0x52, 0x1401690b2\nmov     [r15+140h], rax                                                ; +0x59, 0x1401690b9\nlea     rax, ??_7CustomSongWidget@@6B@_1; const CustomSongWidget::`vftable' ; +0x60, 0x1401690c0\nmov     [r15+148h], rax                                                ; +0x67, 0x1401690c7\nxor     r12d, r12d                                                     ; +0x6e, 0x1401690ce\nmov     [r15+150h], r12                                                ; +0x71, 0x1401690d1\nmov     [r15+160h], r12                                                ; +0x78, 0x1401690d8\nmov     [r15+168h], r12                                                ; +0x7f, 0x1401690df\nmov     [r15+170h], r12                                                ; +0x86, 0x1401690e6\nmov     [r15+180h], r12                                                ; +0x8d, 0x1401690ed\nmov     [r15+190h], r12                                                ; +0x94, 0x1401690f4\nmov     [r15+1A0h], r12                                                ; +0x9b, 0x1401690fb\nmov     [r15+1B0h], r12                                                ; +0xa2, 0x140169102\nmov     [r15+1C0h], r12                                                ; +0xa9, 0x140169109\nmov     [r15+1C8h], r12                                                ; +0xb0, 0x140169110\nmov     [r15+1D0h], r12                                                ; +0xb7, 0x140169117\nmov     [r15+1D8h], r12                                                ; +0xbe, 0x14016911e\nmov     [r15+1E0h], r12                                                ; +0xc5, 0x140169125\nmov     [r15+1E8h], r12                                                ; +0xcc, 0x14016912c\nmov     [r15+1F0h], r12d                                               ; +0xd3, 0x140169133\nmov     [r15+1F4h], r12w                                               ; +0xda, 0x14016913a\nmov     [r15+1F6h], r12b                                               ; +0xe2, 0x140169142\nmov     [r15+1F8h], r12                                                ; +0xe9, 0x140169149\nmov     [r15+200h], r12b                                               ; +0xf0, 0x140169150\nmov     [r15+208h], r12                                                ; +0xf7, 0x140169157\nmov     [r15+210h], r12w                                               ; +0xfe, 0x14016915e\nmov     [r15+218h], r12                                                ; +0x106, 0x140169166\nmov     [r15+220h], r12w                                               ; +0x10d, 0x14016916d\nmov     [r15+228h], r12                                                ; +0x115, 0x140169175\nmov     [r15+230h], r12                                                ; +0x11c, 0x14016917c\nmov     ecx, 28h ; '('; Size                                           ; +0x123, 0x140169183\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x128, 0x140169188\nmov     [rax], rax                                                     ; +0x12d, 0x14016918d\nmov     [rax+8], rax                                                   ; +0x130, 0x140169190\nmov     [rax+10h], rax                                                 ; +0x134, 0x140169194\nmov     word ptr [rax+18h], 101h                                       ; +0x138, 0x140169198\nmov     [r15+228h], rax                                                ; +0x13e, 0x14016919e\nmov     [r15+238h], r12                                                ; +0x145, 0x1401691a5\nmov     [r15+240h], r12                                                ; +0x14c, 0x1401691ac\nmov     ecx, 28h ; '('; Size                                           ; +0x153, 0x1401691b3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x158, 0x1401691b8\nmov     [rax], rax                                                     ; +0x15d, 0x1401691bd\nmov     [rax+8], rax                                                   ; +0x160, 0x1401691c0\nmov     [rax+10h], rax                                                 ; +0x164, 0x1401691c4\nmov     word ptr [rax+18h], 101h                                       ; +0x168, 0x1401691c8\nmov     [r15+238h], rax                                                ; +0x16e, 0x1401691ce\nmov     [r15+248h], r12                                                ; +0x175, 0x1401691d5\nmov     [r15+250h], r12                                                ; +0x17c, 0x1401691dc\nmov     [r15+258h], r12                                                ; +0x183, 0x1401691e3\nmov     [r15+260h], r12                                                ; +0x18a, 0x1401691ea\nmov     [r15+268h], r12                                                ; +0x191, 0x1401691f1\nmov     [r15+270h], r12                                                ; +0x198, 0x1401691f8\nmov     ecx, 20h ; ' '; Size                                           ; +0x19f, 0x1401691ff\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a4, 0x140169204\nmov     [rax], rax                                                     ; +0x1a9, 0x140169209\nmov     [rax+8], rax                                                   ; +0x1ac, 0x14016920c\nmov     [rax+10h], rax                                                 ; +0x1b0, 0x140169210\nmov     word ptr [rax+18h], 101h                                       ; +0x1b4, 0x140169214\nmov     [r15+268h], rax                                                ; +0x1ba, 0x14016921a\nmovzx   eax, [rsp+88h+arg_50]                                          ; +0x1c1, 0x140169221\nmov     [rsp+88h+var_30], al                                           ; +0x1c9, 0x140169229\nmovzx   eax, [rsp+88h+arg_48]                                          ; +0x1cd, 0x14016922d\nmov     [rsp+88h+var_38], al                                           ; +0x1d5, 0x140169235\nmov     eax, [rsp+88h+arg_40]                                          ; +0x1d9, 0x140169239\nmov     [rsp+88h+var_40], eax                                          ; +0x1e0, 0x140169240\nmovzx   eax, [rsp+88h+arg_38]                                          ; +0x1e4, 0x140169244\nmov     [rsp+88h+var_48], al                                           ; +0x1ec, 0x14016924c\nmovzx   eax, [rsp+88h+arg_30]                                          ; +0x1f0, 0x140169250\nmov     [rsp+88h+var_50], al                                           ; +0x1f8, 0x140169258\nmovzx   eax, [rsp+88h+arg_28]                                          ; +0x1fc, 0x14016925c\nmov     [rsp+88h+var_58], al                                           ; +0x204, 0x140169264\nmovzx   ecx, [rsp+88h+arg_20]                                          ; +0x208, 0x140169268\nmov     [rsp+88h+var_60], cl                                           ; +0x210, 0x140169270\nmov     [rsp+88h+var_68], dil                                          ; +0x214, 0x140169274\nmovzx   r9d, sil                                                       ; +0x219, 0x140169279\nmov     r8, rbp                                                        ; +0x21d, 0x14016927d\nmov     rdx, r14                                                       ; +0x220, 0x140169280\nmov     rcx, r15                                                       ; +0x223, 0x140169283\ncall    CustomSongWidget__init                                         ; +0x226, 0x140169286\ntest    al, al                                                         ; +0x22b, 0x14016928b\njz      short loc_14016929D                                            ; +0x22d, 0x14016928d\nmov     rcx, r15                                                       ; +0x22f, 0x14016928f\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x232, 0x140169292\nmov     rax, r15                                                       ; +0x238, 0x140169298\njmp     short loc_1401692B2                                            ; +0x23b, 0x14016929b\nmov     rcx, [r15]                                                     ; +0x23d, 0x14016929d\nmov     r8, [rcx+8]                                                    ; +0x240, 0x1401692a0\nmov     edx, 1                                                         ; +0x244, 0x1401692a4\nmov     rcx, r15                                                       ; +0x249, 0x1401692a9\ncall    r8                                                             ; +0x24c, 0x1401692ac\nmov     rax, r12                                                       ; +0x24f, 0x1401692af\nlea     r11, [rsp+88h+var_18]                                          ; +0x252, 0x1401692b2\nmov     rbx, [r11+20h]                                                 ; +0x257, 0x1401692b7\nmov     rbp, [r11+28h]                                                 ; +0x25b, 0x1401692bb\nmov     rsi, [r11+30h]                                                 ; +0x25f, 0x1401692bf\nmov     rdi, [r11+38h]                                                 ; +0x263, 0x1401692c3\nmov     rsp, r11                                                       ; +0x267, 0x1401692c7\npop     r15                                                            ; +0x26a, 0x1401692ca\npop     r14                                                            ; +0x26c, 0x1401692cc\npop     r12                                                            ; +0x26e, 0x1401692ce\nretn                                                                   ; +0x270, 0x1401692d0", "xrefs": ["AudioAssetsPopup::init @ 0x1400be19a", "CustomSongCell::loadFromObject @ 0x1401503de", "CustomMusicCell::loadFromObject @ 0x140150e91", "CustomSongLayer::init @ 0x14016487a", "SongSelectNode::init @ 0x140168638", "LevelInfoLayer::init @ 0x14041e157", "<???> @ 0x140918068"], "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"}