{"type": "func", "start": 5369523248, "end": 5369523360, "name": "NCSInfoLayer::onLibrary", "pseudocode": "// \n// NCSInfoLayer::onLibrary from 0x1400c6c30 to 0x1400c6ca0 (112 bytes)\n// \n// 2 xrefs:\n// > NCSInfoLayer::init @ 0x1400c6831\n// > <???> @ 0x1406c81d8\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 NCSInfoLayer::onLibrary(NCSInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  CustomSongLayer *m_songLayer; // rcx\n  CustomSongDelegate *m_songDelegate; // rcx\n  int v5; // eax\n  MusicBrowser *v6; // rax\n  CustomSongLayer *v7; // rcx\n  MusicBrowserDelegate *v8; // rdx\n\n  m_songLayer = a1->m_songLayer;\n  if ( m_songLayer && (m_songDelegate = m_songLayer->m_songDelegate) != nullptr )\n    v5 = ((__int64 (__fastcall *)(CustomSongDelegate *, cocos2d::CCObject *))m_songDelegate->getActiveSongID)(\n           m_songDelegate,\n           a2);\n  else\n    v5 = 0;\n  v6 = MusicBrowser::create(v5, (GJSongType)1);\n  v7 = a1->m_songLayer;\n  v8 = &v7->MusicBrowserDelegate;\n  if ( !v7 )\n    v8 = nullptr;\n  v6->m_delegate = v8;\n  v6->show(v6);\n}", "assembly": "; \n; NCSInfoLayer::onLibrary from 0x1400c6c30 to 0x1400c6ca0 (112 bytes)\n; \n; 2 xrefs:\n; > NCSInfoLayer::init @ 0x1400c6831\n; > <???> @ 0x1406c81d8\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, 0x1400c6c30\npush    rdi                                                            ; +0x5, 0x1400c6c35\nsub     rsp, 20h                                                       ; +0x6, 0x1400c6c36\nmov     rbx, rcx                                                       ; +0xa, 0x1400c6c3a\nxor     edi, edi                                                       ; +0xd, 0x1400c6c3d\nmov     rcx, [rcx+280h]                                                ; +0xf, 0x1400c6c3f\ntest    rcx, rcx                                                       ; +0x16, 0x1400c6c46\njz      short loc_1400C6C5F                                            ; +0x19, 0x1400c6c49\nmov     rcx, [rcx+290h]                                                ; +0x1b, 0x1400c6c4b\ntest    rcx, rcx                                                       ; +0x22, 0x1400c6c52\njz      short loc_1400C6C5F                                            ; +0x25, 0x1400c6c55\nmov     rax, [rcx]                                                     ; +0x27, 0x1400c6c57\ncall    qword ptr [rax+8]                                              ; +0x2a, 0x1400c6c5a\njmp     short loc_1400C6C61                                            ; +0x2d, 0x1400c6c5d\nmov     eax, edi                                                       ; +0x2f, 0x1400c6c5f\nmov     edx, 1                                                         ; +0x31, 0x1400c6c61\nmov     ecx, eax                                                       ; +0x36, 0x1400c6c66\ncall    MusicBrowser__create                                           ; +0x38, 0x1400c6c68\nmov     rcx, [rbx+280h]                                                ; +0x3d, 0x1400c6c6d\ntest    rcx, rcx                                                       ; +0x44, 0x1400c6c74\nlea     rdx, [rcx+288h]                                                ; +0x47, 0x1400c6c77\nmov     rcx, rax                                                       ; +0x4e, 0x1400c6c7e\ncmovz   rdx, rdi                                                       ; +0x51, 0x1400c6c81\nmov     [rax+310h], rdx                                                ; +0x55, 0x1400c6c85\nmov     rdx, [rax]                                                     ; +0x5c, 0x1400c6c8c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5f, 0x1400c6c8f\nadd     rsp, 20h                                                       ; +0x64, 0x1400c6c94\npop     rdi                                                            ; +0x68, 0x1400c6c98\njmp     qword ptr [rdx+410h]                                           ; +0x69, 0x1400c6c99", "xrefs": ["NCSInfoLayer::init @ 0x1400c6831", "<???> @ 0x1406c81d8"], "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"}