{"type": "func", "start": 5369527072, "end": 5369527200, "name": "SongSelectNode::onOpenCustomSong", "pseudocode": "// \n// SongSelectNode::onOpenCustomSong from 0x1400c7b20 to 0x1400c7ba0 (128 bytes)\n// \n// 3 xrefs:\n// > SongSelectNode::init @ 0x1400c74aa\n// > SongSelectNode::init @ 0x1400c7530\n// > <???> @ 0x1406c822c\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\nvoid SongSelectNode::onOpenCustomSong(SongSelectNode *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // rcx\n  MusicDownloadManager *v4; // rcx\n  FLAlertLayerProtocol *v5; // rdx\n  void *v6; // [rsp+40h] [rbp+18h]\n\n  v3 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v6 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = (GameManager *)qword_1406C2ED8;\n  }\n  if ( GameManager::getGameVariable(v3, \"0016\") )\n  {\n    SongSelectNode::showCustomSongSelect(a1);\n  }\n  else\n  {\n    MusicDownloadManager::sharedState();\n    v5 = &a1->FLAlertLayerProtocol;\n    if ( !a1 )\n      v5 = nullptr;\n    MusicDownloadManager::showTOS(v4, v5);\n  }\n}", "assembly": "; \n; SongSelectNode::onOpenCustomSong from 0x1400c7b20 to 0x1400c7ba0 (128 bytes)\n; \n; 3 xrefs:\n; > SongSelectNode::init @ 0x1400c74aa\n; > SongSelectNode::init @ 0x1400c7530\n; > <???> @ 0x1406c822c\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\npush    rbx                                                            ; +0x0, 0x1400c7b20\nsub     rsp, 20h                                                       ; +0x2, 0x1400c7b22\nmov     rbx, rcx                                                       ; +0x6, 0x1400c7b26\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9, 0x1400c7b29\ntest    rcx, rcx                                                       ; +0x10, 0x1400c7b30\njnz     short loc_1400C7B64                                            ; +0x13, 0x1400c7b33\nmov     ecx, 668h; Size                                                ; +0x15, 0x1400c7b35\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1400c7b3a\nmov     [rsp+28h+arg_10], rax                                          ; +0x1f, 0x1400c7b3f\nmov     rcx, rax                                                       ; +0x24, 0x1400c7b44\ncall    sub_14017AB00                                                  ; +0x27, 0x1400c7b47\nnop                                                                    ; +0x2c, 0x1400c7b4c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x1400c7b4d\nmov     rdx, [rax]                                                     ; +0x34, 0x1400c7b54\nmov     rcx, rax                                                       ; +0x37, 0x1400c7b57\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x1400c7b5a\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3d, 0x1400c7b5d\nlea     rdx, a0016; \"0016\"                                             ; +0x44, 0x1400c7b64\ncall    GameManager__getGameVariable                                   ; +0x4b, 0x1400c7b6b\ntest    al, al                                                         ; +0x50, 0x1400c7b70\njnz     short loc_1400C7B93                                            ; +0x52, 0x1400c7b72\ncall    MusicDownloadManager__sharedState                              ; +0x54, 0x1400c7b74\nlea     rdx, [rbx+140h]                                                ; +0x59, 0x1400c7b79\nxor     eax, eax                                                       ; +0x60, 0x1400c7b80\ntest    rbx, rbx                                                       ; +0x62, 0x1400c7b82\ncmovz   rdx, rax                                                       ; +0x65, 0x1400c7b85\nadd     rsp, 20h                                                       ; +0x69, 0x1400c7b89\npop     rbx                                                            ; +0x6d, 0x1400c7b8d\njmp     MusicDownloadManager__showTOS                                  ; +0x6e, 0x1400c7b8e\nmov     rcx, rbx                                                       ; +0x73, 0x1400c7b93\nadd     rsp, 20h                                                       ; +0x76, 0x1400c7b96\npop     rbx                                                            ; +0x7a, 0x1400c7b9a\njmp     $+5                                                            ; +0x7b, 0x1400c7b9b", "xrefs": ["SongSelectNode::init @ 0x1400c74aa", "SongSelectNode::init @ 0x1400c7530", "<???> @ 0x1406c822c"], "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"}