{"type": "func", "start": 4296083616, "end": 4296083792, "name": "ArtistCell::onYouTube", "pseudocode": "// \n// ArtistCell::onYouTube from 0x1001108a0 to 0x100110950 (176 bytes)\n// \n// 1 xrefs:\n// > ArtistCell::loadFromObject @ 0x1001058f8\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 ArtistCell::onYouTube(ArtistCell *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCApplication *v3; // x19\n  SongInfoObject *m_songInfo; // x8\n  std::string *p_m_youtubeChannel; // x8\n  void **v6; // x8\n  cocos2d::CCString *v7; // x0\n  const char *CString; // x0\n  void *__p[2]; // [xsp+10h] [xbp-30h] BYREF\n  char *longStorage; // [xsp+20h] [xbp-20h]\n\n  if ( a1->m_songInfo )\n  {\n    v3 = cocos2d::CCApplication::sharedApplication();\n    m_songInfo = a1->m_songInfo;\n    if ( m_songInfo->m_youtubeChannel.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    {\n      sub_1000097D0(\n        __p,\n        (void *)m_songInfo->m_youtubeChannel.m_data.m_long.capacitym1,\n        m_songInfo->m_youtubeChannel.m_data.m_long.size);\n    }\n    else\n    {\n      p_m_youtubeChannel = &m_songInfo->m_youtubeChannel;\n      *(_OWORD *)__p = *(_OWORD *)&p_m_youtubeChannel->m_data.m_short.sizex2;\n      longStorage = p_m_youtubeChannel->m_data.m_long.longStorage;\n    }\n    v6 = __p;\n    if ( SHIBYTE(longStorage) < 0 )\n      v6 = (void **)__p[0];\n    v7 = (cocos2d::CCString *)sub_100268F4C(\"https://www.youtube.com/channel/%s\", (const char *)v6);\n    CString = cocos2d::CCString::getCString(v7);\n    ((void (__fastcall *)(cocos2d::CCApplication *, const char *))v3->openURL)(v3, CString);\n    if ( SHIBYTE(longStorage) < 0 )\n      operator delete(__p[0]);\n  }\n}", "assembly": "; \n; ArtistCell::onYouTube from 0x1001108a0 to 0x100110950 (176 bytes)\n; \n; 1 xrefs:\n; > ArtistCell::loadFromObject @ 0x1001058f8\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\nSUB             SP, SP, #0x50                                          ; +0x0, 0x1001108a0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x1001108a4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x1001108a8\nADD             X29, SP, #0x40                                         ; +0xc, 0x1001108ac\nLDR             X8, [X0,#0x228]                                        ; +0x10, 0x1001108b0\nCBZ             X8, loc_100110940                                      ; +0x14, 0x1001108b4\nMOV             X20, X0                                                ; +0x18, 0x1001108b8\nBL              cocos2d__CCApplication__sharedApplication              ; +0x1c, 0x1001108bc\nMOV             X19, X0                                                ; +0x20, 0x1001108c0\nLDR             X8, [X20,#0x228]                                       ; +0x24, 0x1001108c4\nLDRSB           W9, [X8,#0x19F]                                        ; +0x28, 0x1001108c8\nTBNZ            W9, #0x1F, loc_1001108E8                               ; +0x2c, 0x1001108cc\nADD             X8, X8, #0x188                                         ; +0x30, 0x1001108d0\nLDR             Q0, [X8]                                               ; +0x34, 0x1001108d4\nSTR             Q0, [SP,#0x40+__p]                                     ; +0x38, 0x1001108d8\nLDR             X8, [X8,#0x10]                                         ; +0x3c, 0x1001108dc\nSTR             X8, [SP,#0x40+var_20]                                  ; +0x40, 0x1001108e0\nB               loc_1001108F4                                          ; +0x44, 0x1001108e4\nLDP             X1, X2, [X8,#0x188]; __src                             ; +0x48, 0x1001108e8\nADD             X0, SP, #0x40+__p; __dst                               ; +0x4c, 0x1001108ec\nBL              sub_1000097D0                                          ; +0x50, 0x1001108f0\nLDRSB           W8, [SP,#0x40+var_20+7]                                ; +0x54, 0x1001108f4\nLDR             X9, [SP,#0x40+__p]                                     ; +0x58, 0x1001108f8\nCMP             W8, #0                                                 ; +0x5c, 0x1001108fc\nADD             X8, SP, #0x40+__p                                      ; +0x60, 0x100110900\nCSEL            X8, X9, X8, LT                                         ; +0x64, 0x100110904\nSTR             X8, [SP,#0x40+var_40]                                  ; +0x68, 0x100110908\nADRL            X0, aHttpsWwwYoutub_0; \"https://www.youtube.com/channel/%s\" ; +0x6c, 0x10011090c\nBL              sub_100268F4C                                          ; +0x74, 0x100110914\nBL              cocos2d__CCString__getCString                          ; +0x78, 0x100110918\nMOV             X1, X0                                                 ; +0x7c, 0x10011091c\nLDR             X8, [X19]                                              ; +0x80, 0x100110920\nLDR             X8, [X8,#0x60]                                         ; +0x84, 0x100110924\nMOV             X0, X19                                                ; +0x88, 0x100110928\nBLR             X8                                                     ; +0x8c, 0x10011092c\nLDRSB           W8, [SP,#0x40+var_20+7]                                ; +0x90, 0x100110930\nTBZ             W8, #0x1F, loc_100110940                               ; +0x94, 0x100110934\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x98, 0x100110938\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x10011093c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa0, 0x100110940\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa4, 0x100110944\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xa8, 0x100110948\nRET                                                                    ; +0xac, 0x10011094c", "xrefs": ["ArtistCell::loadFromObject @ 0x1001058f8"], "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"}