{"type": "func", "start": 5369511616, "end": 5369511709, "name": "CustomSongLayer::onMusicBrowser", "pseudocode": "// \n// CustomSongLayer::onMusicBrowser from 0x1400c3ec0 to 0x1400c3f1d (93 bytes)\n// \n// 2 xrefs:\n// > CustomSongLayer::init @ 0x1400c308a\n// > <???> @ 0x1406c8064\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 CustomSongLayer::onMusicBrowser(CustomSongLayer *a1, cocos2d::CCObject *a2)\n{\n  CustomSongDelegate *m_songDelegate; // rcx\n  int v4; // eax\n  MusicBrowser *v5; // rax\n  MusicBrowserDelegate *v6; // rcx\n  MusicBrowser_vtbl *v7; // rdx\n\n  m_songDelegate = a1->m_songDelegate;\n  if ( m_songDelegate )\n    v4 = ((__int64 (__fastcall *)(CustomSongDelegate *, cocos2d::CCObject *))m_songDelegate->getActiveSongID)(\n           m_songDelegate,\n           a2);\n  else\n    v4 = 0;\n  v5 = MusicBrowser::create(v4, Music);\n  v6 = &a1->MusicBrowserDelegate;\n  if ( !a1 )\n    v6 = nullptr;\n  v7 = v5->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v5->m_delegate = v6;\n  v7->show(v5);\n}", "assembly": "; \n; CustomSongLayer::onMusicBrowser from 0x1400c3ec0 to 0x1400c3f1d (93 bytes)\n; \n; 2 xrefs:\n; > CustomSongLayer::init @ 0x1400c308a\n; > <???> @ 0x1406c8064\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, 0x1400c3ec0\npush    rdi                                                            ; +0x5, 0x1400c3ec5\nsub     rsp, 20h                                                       ; +0x6, 0x1400c3ec6\nmov     rbx, rcx                                                       ; +0xa, 0x1400c3eca\nxor     edi, edi                                                       ; +0xd, 0x1400c3ecd\nmov     rcx, [rcx+290h]                                                ; +0xf, 0x1400c3ecf\ntest    rcx, rcx                                                       ; +0x16, 0x1400c3ed6\njz      short loc_1400C3EE3                                            ; +0x19, 0x1400c3ed9\nmov     rax, [rcx]                                                     ; +0x1b, 0x1400c3edb\ncall    qword ptr [rax+8]                                              ; +0x1e, 0x1400c3ede\njmp     short loc_1400C3EE5                                            ; +0x21, 0x1400c3ee1\nmov     eax, edi                                                       ; +0x23, 0x1400c3ee3\nmov     edx, 0FFFFFFFFh                                                ; +0x25, 0x1400c3ee5\nmov     ecx, eax                                                       ; +0x2a, 0x1400c3eea\ncall    MusicBrowser__create                                           ; +0x2c, 0x1400c3eec\ntest    rbx, rbx                                                       ; +0x31, 0x1400c3ef1\nlea     rcx, [rbx+288h]                                                ; +0x34, 0x1400c3ef4\ncmovz   rcx, rdi                                                       ; +0x3b, 0x1400c3efb\nmov     rdx, [rax]                                                     ; +0x3f, 0x1400c3eff\nmov     [rax+310h], rcx                                                ; +0x42, 0x1400c3f02\nmov     rcx, rax                                                       ; +0x49, 0x1400c3f09\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4c, 0x1400c3f0c\nadd     rsp, 20h                                                       ; +0x51, 0x1400c3f11\npop     rdi                                                            ; +0x55, 0x1400c3f15\njmp     qword ptr [rdx+410h]                                           ; +0x56, 0x1400c3f16", "xrefs": ["CustomSongLayer::init @ 0x1400c308a", "<???> @ 0x1406c8064"], "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"}