{"type": "func", "start": 5369523360, "end": 5369523664, "name": "SongSelectNode::create", "pseudocode": "// \n// SongSelectNode::create from 0x1400c6ca0 to 0x1400c6dd0 (304 bytes)\n// \n// 4 xrefs:\n// > LevelSettingsLayer::init @ 0x1403201d7\n// > SetupSongTriggerPopup::init @ 0x14045cd44\n// > <???> @ 0x1406c81d8\n// > <???> @ 0x1406c81e4\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=1\nSongSelectNode *SongSelectNode::create(\n        int a1,\n        bool a2,\n        LevelSettingsObject *a3,\n        SongSelectType a4,\n        cocos2d::CCPoint a5,\n        cocos2d::CCNode *a6,\n        cocos2d::CCMenu *a7,\n        bool a8)\n{\n  SongSelectNode *v12; // r14\n  cocos2d::CCPoint v13; // rax\n  SongSelectNode *v15; // [rsp+50h] [rbp-18h] BYREF\n\n  v12 = (SongSelectNode *)operator new(0x1B0u);\n  v15 = v12;\n  cocos2d::CCNode::CCNode(v12);\n  v12->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SongSelectNode_vtbl *)&SongSelectNode::`vftable';\n  v12->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&SongSelectNode::`vftable';\n  v12->CustomSongLayerDelegate::__vftable = (CustomSongLayerDelegate_vtbl *)&SongSelectNode::`vftable';\n  v12->CustomSongDelegate::__vftable = (CustomSongDelegate_vtbl *)&SongSelectNode::`vftable';\n  v12->m_selectedSongID = 0;\n  *(_WORD *)&v12->m_isCustomSong = 0;\n  v12->m_selectSongObjects = nullptr;\n  v12->m_settingsObject = nullptr;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, *(const struct cocos2d::CCPoint **)&a5);\n  if ( SongSelectNode::init(v12, a1, a2, a3, a4, v13, a6, a7, a8) )\n  {\n    cocos2d::CCObject::autorelease(v12);\n    return v12;\n  }\n  else\n  {\n    ((void (__fastcall *)(SongSelectNode *, __int64))v12->~SongSelectNode)(v12, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; SongSelectNode::create from 0x1400c6ca0 to 0x1400c6dd0 (304 bytes)\n; \n; 4 xrefs:\n; > LevelSettingsLayer::init @ 0x1403201d7\n; > SetupSongTriggerPopup::init @ 0x14045cd44\n; > <???> @ 0x1406c81d8\n; > <???> @ 0x1406c81e4\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, 0x1400c6ca0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1400c6ca5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1400c6caa\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1400c6caf\npush    r14                                                            ; +0x14, 0x1400c6cb4\nsub     rsp, 60h                                                       ; +0x16, 0x1400c6cb6\nmov     ebx, r9d                                                       ; +0x1a, 0x1400c6cba\nmov     rdi, r8                                                        ; +0x1d, 0x1400c6cbd\nmovzx   esi, dl                                                        ; +0x20, 0x1400c6cc0\nmov     ebp, ecx                                                       ; +0x23, 0x1400c6cc3\nmov     ecx, 1B0h; Size                                                ; +0x25, 0x1400c6cc5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x1400c6cca\nmov     r14, rax                                                       ; +0x2f, 0x1400c6ccf\nmov     [rsp+68h+var_18], rax                                          ; +0x32, 0x1400c6cd2\nmov     rcx, rax                                                       ; +0x37, 0x1400c6cd7\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x3a, 0x1400c6cda\nlea     rax, ??_7SongSelectNode@@6B@; const SongSelectNode::`vftable'  ; +0x40, 0x1400c6ce0\nmov     [r14], rax                                                     ; +0x47, 0x1400c6ce7\nlea     rax, ??_7SongSelectNode@@6B@_0; const SongSelectNode::`vftable' ; +0x4a, 0x1400c6cea\nmov     [r14+140h], rax                                                ; +0x51, 0x1400c6cf1\nlea     rax, ??_7SongSelectNode@@6B@_1; const SongSelectNode::`vftable' ; +0x58, 0x1400c6cf8\nmov     [r14+148h], rax                                                ; +0x5f, 0x1400c6cff\nlea     rax, ??_7SongSelectNode@@6B@_2; const SongSelectNode::`vftable' ; +0x66, 0x1400c6d06\nmov     [r14+150h], rax                                                ; +0x6d, 0x1400c6d0d\nmov     dword ptr [r14+158h], 0                                        ; +0x74, 0x1400c6d14\nmov     word ptr [r14+15Ch], 0                                         ; +0x7f, 0x1400c6d1f\nmov     qword ptr [r14+168h], 0                                        ; +0x89, 0x1400c6d29\nmov     qword ptr [r14+1A8h], 0                                        ; +0x94, 0x1400c6d34\nmov     rdx, qword ptr [rsp+68h+arg_20.x]                              ; +0x9f, 0x1400c6d3f\nlea     rcx, [rsp+68h+var_18]                                          ; +0xa7, 0x1400c6d47\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xac, 0x1400c6d4c\nmov     rdx, rax                                                       ; +0xb2, 0x1400c6d52\nmovzx   eax, [rsp+68h+arg_38]                                          ; +0xb5, 0x1400c6d55\nmov     [rsp+68h+var_28], al                                           ; +0xbd, 0x1400c6d5d\nmov     rax, [rsp+68h+arg_30]                                          ; +0xc1, 0x1400c6d61\nmov     [rsp+68h+var_30], rax                                          ; +0xc9, 0x1400c6d69\nmov     rcx, [rsp+68h+arg_28]                                          ; +0xce, 0x1400c6d6e\nmov     [rsp+68h+var_38], rcx                                          ; +0xd6, 0x1400c6d76\nmov     [rsp+68h+var_40], rdx                                          ; +0xdb, 0x1400c6d7b\nmov     [rsp+68h+var_48], ebx                                          ; +0xe0, 0x1400c6d80\nmov     r9, rdi                                                        ; +0xe4, 0x1400c6d84\nmovzx   r8d, sil                                                       ; +0xe7, 0x1400c6d87\nmov     edx, ebp                                                       ; +0xeb, 0x1400c6d8b\nmov     rcx, r14                                                       ; +0xed, 0x1400c6d8d\ncall    SongSelectNode__init                                           ; +0xf0, 0x1400c6d90\nmov     rcx, r14                                                       ; +0xf5, 0x1400c6d95\ntest    al, al                                                         ; +0xf8, 0x1400c6d98\njz      short loc_1400C6DA7                                            ; +0xfa, 0x1400c6d9a\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xfc, 0x1400c6d9c\nmov     rax, r14                                                       ; +0x102, 0x1400c6da2\njmp     short loc_1400C6DB5                                            ; +0x105, 0x1400c6da5\nmov     r8, [r14]                                                      ; +0x107, 0x1400c6da7\nmov     edx, 1                                                         ; +0x10a, 0x1400c6daa\ncall    qword ptr [r8+8]                                               ; +0x10f, 0x1400c6daf\nxor     eax, eax                                                       ; +0x113, 0x1400c6db3\nlea     r11, [rsp+68h+var_8]                                           ; +0x115, 0x1400c6db5\nmov     rbx, [r11+10h]                                                 ; +0x11a, 0x1400c6dba\nmov     rbp, [r11+18h]                                                 ; +0x11e, 0x1400c6dbe\nmov     rsi, [r11+20h]                                                 ; +0x122, 0x1400c6dc2\nmov     rdi, [r11+28h]                                                 ; +0x126, 0x1400c6dc6\nmov     rsp, r11                                                       ; +0x12a, 0x1400c6dca\npop     r14                                                            ; +0x12d, 0x1400c6dcd\nretn                                                                   ; +0x12f, 0x1400c6dcf", "xrefs": ["LevelSettingsLayer::init @ 0x1403201d7", "SetupSongTriggerPopup::init @ 0x14045cd44", "<???> @ 0x1406c81d8", "<???> @ 0x1406c81e4"], "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"}