{"type": "func", "start": 5369527200, "end": 5369527552, "name": "SongSelectNode::showCustomSongSelect", "pseudocode": "// \n// SongSelectNode::showCustomSongSelect from 0x1400c7ba0 to 0x1400c7d00 (352 bytes)\n// \n// 4 xrefs:\n// > SongSelectNode::onOpenCustomSong @ 0x1400c7b9b\n// > SongSelectNode::FLAlert_Clicked @ 0x1400c7d74\n// > <???> @ 0x1406c822c\n// > <???> @ 0x1406c8238\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\nvoid SongSelectNode::showCustomSongSelect(SongSelectNode *a1)\n{\n  CustomSongDelegate *v2; // rbx\n  CustomSongLayer *v3; // rdi\n  CustomSongLayerDelegate *v4; // rax\n  void (*show)(CustomSongLayer *); // rdx\n\n  v2 = &a1->CustomSongDelegate;\n  if ( !a1 )\n    v2 = nullptr;\n  v3 = (CustomSongLayer *)operator new(0x2B0u);\n  FLAlertLayer::FLAlertLayer(v3);\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CustomSongLayer_vtbl *)&CustomSongLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&CustomSongLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&CustomSongLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&CustomSongLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&CustomSongLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&CustomSongLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&CustomSongLayer::`vftable';\n  v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&CustomSongLayer::`vftable';\n  v3->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&CustomSongLayer::`vftable';\n  v3->GJDropDownLayerDelegate::__vftable = (GJDropDownLayerDelegate_vtbl *)&CustomSongLayer::`vftable';\n  v3->MusicBrowserDelegate::__vftable = (MusicBrowserDelegate_vtbl *)&CustomSongLayer::`vftable';\n  v3->m_songDelegate = nullptr;\n  v3->m_songIDInput = nullptr;\n  v3->m_delegate = nullptr;\n  if ( CustomSongLayer::init(v3, v2) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    ((void (__fastcall *)(CustomSongLayer *, __int64))v3->~CustomSongLayer)(v3, 1);\n    v3 = nullptr;\n  }\n  v4 = &a1->CustomSongLayerDelegate;\n  if ( !a1 )\n    v4 = nullptr;\n  v3->m_delegate = v4;\n  show = (void (*)(CustomSongLayer *))v3->show;\n  if ( show == CustomSongLayer::show )\n    CustomSongLayer::show(v3);\n  else\n    show(v3);\n}", "assembly": "; \n; SongSelectNode::showCustomSongSelect from 0x1400c7ba0 to 0x1400c7d00 (352 bytes)\n; \n; 4 xrefs:\n; > SongSelectNode::onOpenCustomSong @ 0x1400c7b9b\n; > SongSelectNode::FLAlert_Clicked @ 0x1400c7d74\n; > <???> @ 0x1406c822c\n; > <???> @ 0x1406c8238\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_8], rbx                                               ; +0x0, 0x1400c7ba0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1400c7ba5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1400c7baa\npush    rdi                                                            ; +0xf, 0x1400c7baf\nsub     rsp, 20h                                                       ; +0x10, 0x1400c7bb0\nmov     rsi, rcx                                                       ; +0x14, 0x1400c7bb4\nlea     rbx, [rcx+150h]                                                ; +0x17, 0x1400c7bb7\nxor     ebp, ebp                                                       ; +0x1e, 0x1400c7bbe\ntest    rcx, rcx                                                       ; +0x20, 0x1400c7bc0\ncmovz   rbx, rbp                                                       ; +0x23, 0x1400c7bc3\nmov     ecx, 2B0h; Size                                                ; +0x27, 0x1400c7bc7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2c, 0x1400c7bcc\nmov     rdi, rax                                                       ; +0x31, 0x1400c7bd1\nmov     [rsp+28h+arg_0], rax                                           ; +0x34, 0x1400c7bd4\nmov     rcx, rax                                                       ; +0x39, 0x1400c7bd9\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x3c, 0x1400c7bdc\nlea     rax, ??_7CustomSongLayer@@6B@; const CustomSongLayer::`vftable' ; +0x41, 0x1400c7be1\nmov     [rdi], rax                                                     ; +0x48, 0x1400c7be8\nlea     rax, ??_7CustomSongLayer@@6B@_0; const CustomSongLayer::`vftable' ; +0x4b, 0x1400c7beb\nmov     [rdi+140h], rax                                                ; +0x52, 0x1400c7bf2\nlea     rax, ??_7CustomSongLayer@@6B@_1; const CustomSongLayer::`vftable' ; +0x59, 0x1400c7bf9\nmov     [rdi+148h], rax                                                ; +0x60, 0x1400c7c00\nlea     rax, ??_7CustomSongLayer@@6B@_2; const CustomSongLayer::`vftable' ; +0x67, 0x1400c7c07\nmov     [rdi+150h], rax                                                ; +0x6e, 0x1400c7c0e\nlea     rax, ??_7CustomSongLayer@@6B@_3; const CustomSongLayer::`vftable' ; +0x75, 0x1400c7c15\nmov     [rdi+158h], rax                                                ; +0x7c, 0x1400c7c1c\nlea     rax, ??_7CustomSongLayer@@6B@_4; const CustomSongLayer::`vftable' ; +0x83, 0x1400c7c23\nmov     [rdi+160h], rax                                                ; +0x8a, 0x1400c7c2a\nlea     rax, ??_7CustomSongLayer@@6B@_5; const CustomSongLayer::`vftable' ; +0x91, 0x1400c7c31\nmov     [rdi+198h], rax                                                ; +0x98, 0x1400c7c38\nlea     rax, ??_7CustomSongLayer@@6B@_6; const CustomSongLayer::`vftable' ; +0x9f, 0x1400c7c3f\nmov     [rdi+1B0h], rax                                                ; +0xa6, 0x1400c7c46\nlea     rax, ??_7CustomSongLayer@@6B@_7; const CustomSongLayer::`vftable' ; +0xad, 0x1400c7c4d\nmov     [rdi+278h], rax                                                ; +0xb4, 0x1400c7c54\nlea     rax, ??_7CustomSongLayer@@6B@_8; const CustomSongLayer::`vftable' ; +0xbb, 0x1400c7c5b\nmov     [rdi+280h], rax                                                ; +0xc2, 0x1400c7c62\nlea     rax, ??_7CustomSongLayer@@6B@_9; const CustomSongLayer::`vftable' ; +0xc9, 0x1400c7c69\nmov     [rdi+288h], rax                                                ; +0xd0, 0x1400c7c70\nmov     [rdi+290h], rbp                                                ; +0xd7, 0x1400c7c77\nmov     [rdi+298h], rbp                                                ; +0xde, 0x1400c7c7e\nmov     [rdi+2A8h], rbp                                                ; +0xe5, 0x1400c7c85\nmov     rdx, rbx                                                       ; +0xec, 0x1400c7c8c\nmov     rcx, rdi                                                       ; +0xef, 0x1400c7c8f\ncall    CustomSongLayer__init                                          ; +0xf2, 0x1400c7c92\nmov     rcx, rdi                                                       ; +0xf7, 0x1400c7c97\ntest    al, al                                                         ; +0xfa, 0x1400c7c9a\njz      short loc_1400C7CA6                                            ; +0xfc, 0x1400c7c9c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xfe, 0x1400c7c9e\njmp     short loc_1400C7CB4                                            ; +0x104, 0x1400c7ca4\nmov     rax, [rdi]                                                     ; +0x106, 0x1400c7ca6\nmov     edx, 1                                                         ; +0x109, 0x1400c7ca9\ncall    qword ptr [rax+8]                                              ; +0x10e, 0x1400c7cae\nmov     rdi, rbp                                                       ; +0x111, 0x1400c7cb1\nlea     rax, [rsi+148h]                                                ; +0x114, 0x1400c7cb4\ntest    rsi, rsi                                                       ; +0x11b, 0x1400c7cbb\ncmovz   rax, rbp                                                       ; +0x11e, 0x1400c7cbe\nmov     [rdi+2A8h], rax                                                ; +0x122, 0x1400c7cc2\nmov     rax, [rdi]                                                     ; +0x129, 0x1400c7cc9\nmov     rdx, [rax+410h]                                                ; +0x12c, 0x1400c7ccc\nlea     rax, CustomSongLayer__show                                     ; +0x133, 0x1400c7cd3\nmov     rcx, rdi                                                       ; +0x13a, 0x1400c7cda\ncmp     rdx, rax                                                       ; +0x13d, 0x1400c7cdd\njnz     short loc_1400C7CE9                                            ; +0x140, 0x1400c7ce0\ncall    CustomSongLayer__show                                          ; +0x142, 0x1400c7ce2\njmp     short loc_1400C7CEB                                            ; +0x147, 0x1400c7ce7\ncall    rdx                                                            ; +0x149, 0x1400c7ce9\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x14b, 0x1400c7ceb\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x150, 0x1400c7cf0\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x155, 0x1400c7cf5\nadd     rsp, 20h                                                       ; +0x15a, 0x1400c7cfa\npop     rdi                                                            ; +0x15e, 0x1400c7cfe\nretn                                                                   ; +0x15f, 0x1400c7cff", "xrefs": ["SongSelectNode::onOpenCustomSong @ 0x1400c7b9b", "SongSelectNode::FLAlert_Clicked @ 0x1400c7d74", "<???> @ 0x1406c822c", "<???> @ 0x1406c8238"], "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"}