{"type": "func", "start": 4297152928, "end": 4297153003, "name": "CustomSongLayer::onMusicBrowser", "pseudocode": "// \n// CustomSongLayer::onMusicBrowser from 0x1002159a0 to 0x1002159eb (75 bytes)\n// \n// 1 xrefs:\n// > CustomSongLayer::init @ 0x1002150ae\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 __fastcall CustomSongLayer::onMusicBrowser(CustomSongLayer *a1, cocos2d::CCObject *a2)\n{\n  CustomSongDelegate *m_songDelegate; // rdi\n  int v4; // edi\n  MusicBrowser *v5; // rax\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  v5->m_delegate = &a1->MusicBrowserDelegate;\n  ((void (__fastcall *)(MusicBrowser *))v5->show)(v5);\n}", "assembly": "; \n; CustomSongLayer::onMusicBrowser from 0x1002159a0 to 0x1002159eb (75 bytes)\n; \n; 1 xrefs:\n; > CustomSongLayer::init @ 0x1002150ae\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    rbp                                                            ; +0x0, 0x1002159a0\nmov     rbp, rsp                                                       ; +0x1, 0x1002159a1\npush    rbx                                                            ; +0x4, 0x1002159a4\npush    rax                                                            ; +0x5, 0x1002159a5\nmov     rbx, rdi                                                       ; +0x6, 0x1002159a6\nmov     rdi, [rdi+290h]                                                ; +0x9, 0x1002159a9\ntest    rdi, rdi                                                       ; +0x10, 0x1002159b0\njz      short loc_1002159BF                                            ; +0x13, 0x1002159b3\nmov     rax, [rdi]                                                     ; +0x15, 0x1002159b5\ncall    qword ptr [rax+8]                                              ; +0x18, 0x1002159b8\nmov     edi, eax                                                       ; +0x1b, 0x1002159bb\njmp     short loc_1002159C1                                            ; +0x1d, 0x1002159bd\nxor     edi, edi                                                       ; +0x1f, 0x1002159bf\nmov     esi, 0FFFFFFFFh                                                ; +0x21, 0x1002159c1\ncall    MusicBrowser__create                                           ; +0x26, 0x1002159c6\nadd     rbx, 288h                                                      ; +0x2b, 0x1002159cb\nmov     [rax+310h], rbx                                                ; +0x32, 0x1002159d2\nmov     rcx, [rax]                                                     ; +0x39, 0x1002159d9\nmov     rdi, rax                                                       ; +0x3c, 0x1002159dc\nadd     rsp, 8                                                         ; +0x3f, 0x1002159df\npop     rbx                                                            ; +0x43, 0x1002159e3\npop     rbp                                                            ; +0x44, 0x1002159e4\njmp     qword ptr [rcx+508h]                                           ; +0x45, 0x1002159e5", "xrefs": ["CustomSongLayer::init @ 0x1002150ae"], "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"}