{"type": "func", "start": 4297410624, "end": 4297410800, "name": "ArtistCell::onYouTube", "pseudocode": "// \n// ArtistCell::onYouTube from 0x100254840 to 0x1002548f0 (176 bytes)\n// \n// 1 xrefs:\n// > ArtistCell::loadFromObject @ 0x100247459\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  double v2; // xmm0_8\n  cocos2d::CCApplication *v3; // rbx\n  SongInfoObject *m_songInfo; // rax\n  std::string *p_m_youtubeChannel; // rax\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n  __int128 v8; // [rsp+0h] [rbp-30h] BYREF\n  void *__p; // [rsp+10h] [rbp-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.sizex2 & 1) != 0 )\n    {\n      sub_100006B70(\n        &v8,\n        m_songInfo->m_youtubeChannel.m_data.m_long.longStorage,\n        m_songInfo->m_youtubeChannel.m_data.m_long.size,\n        v2);\n    }\n    else\n    {\n      p_m_youtubeChannel = &m_songInfo->m_youtubeChannel;\n      __p = p_m_youtubeChannel->m_data.m_long.longStorage;\n      v8 = *(_OWORD *)&p_m_youtubeChannel->m_data.m_short.sizex2;\n    }\n    v6 = (cocos2d::CCString *)sub_1007AB580(\"https://www.youtube.com/channel/%s\", v8);\n    CString = cocos2d::CCString::getCString(v6);\n    ((void (__fastcall *)(cocos2d::CCApplication *, const char *))v3->openURL)(v3, CString);\n    if ( (v8 & 1) != 0 )\n      operator delete(__p);\n  }\n}", "assembly": "; \n; ArtistCell::onYouTube from 0x100254840 to 0x1002548f0 (176 bytes)\n; \n; 1 xrefs:\n; > ArtistCell::loadFromObject @ 0x100247459\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, 0x100254840\nmov     rbp, rsp                                                       ; +0x1, 0x100254841\npush    r14                                                            ; +0x4, 0x100254844\npush    rbx                                                            ; +0x6, 0x100254846\nsub     rsp, 20h                                                       ; +0x7, 0x100254847\ncmp     qword ptr [rdi+228h], 0                                        ; +0xb, 0x10025484b\njz      loc_1002548E7                                                  ; +0x13, 0x100254853\nmov     r14, rdi                                                       ; +0x19, 0x100254859\ncall    cocos2d__CCApplication__sharedApplication                      ; +0x1c, 0x10025485c\nmov     rbx, rax                                                       ; +0x21, 0x100254861\nmov     rax, [r14+228h]                                                ; +0x24, 0x100254864\ntest    byte ptr [rax+188h], 1                                         ; +0x2b, 0x10025486b\njnz     short loc_100254895                                            ; +0x32, 0x100254872\nadd     rax, 188h                                                      ; +0x34, 0x100254874\nmov     rcx, [rax+10h]                                                 ; +0x3a, 0x10025487a\nmov     [rbp+__p], rcx                                                 ; +0x3e, 0x10025487e\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x42, 0x100254882\nmovaps  [rbp+var_30], xmm0                                             ; +0x45, 0x100254885\ntest    byte ptr [rbp+var_30], 1                                       ; +0x49, 0x100254889\njnz     short loc_1002548B2                                            ; +0x4d, 0x10025488d\nlea     rsi, [rbp+var_30+1]                                            ; +0x4f, 0x10025488f\njmp     short loc_1002548B6                                            ; +0x53, 0x100254893\nmov     rdx, [rax+190h]                                                ; +0x55, 0x100254895\nmov     rsi, [rax+198h]                                                ; +0x5c, 0x10025489c\nlea     rdi, [rbp+var_30]                                              ; +0x63, 0x1002548a3\ncall    sub_100006B70                                                  ; +0x67, 0x1002548a7\ntest    byte ptr [rbp+var_30], 1                                       ; +0x6c, 0x1002548ac\njz      short loc_10025488F                                            ; +0x70, 0x1002548b0\nmov     rsi, [rbp+__p]                                                 ; +0x72, 0x1002548b2\nlea     rdi, aHttpsWwwYoutub; \"https://www.youtube.com/channel/%s\"     ; +0x76, 0x1002548b6\nxor     eax, eax                                                       ; +0x7d, 0x1002548bd\ncall    sub_1007AB580                                                  ; +0x7f, 0x1002548bf\nmov     rdi, rax                                                       ; +0x84, 0x1002548c4\ncall    cocos2d__CCString__getCString                                  ; +0x87, 0x1002548c7\nmov     rcx, [rbx]                                                     ; +0x8c, 0x1002548cc\nmov     rdi, rbx                                                       ; +0x8f, 0x1002548cf\nmov     rsi, rax                                                       ; +0x92, 0x1002548d2\ncall    qword ptr [rcx+60h]                                            ; +0x95, 0x1002548d5\ntest    byte ptr [rbp+var_30], 1                                       ; +0x98, 0x1002548d8\njz      short loc_1002548E7                                            ; +0x9c, 0x1002548dc\nmov     rdi, [rbp+__p]; __p                                            ; +0x9e, 0x1002548de\ncall    __ZdlPv; operator delete(void *)                               ; +0xa2, 0x1002548e2\nadd     rsp, 20h                                                       ; +0xa7, 0x1002548e7\npop     rbx                                                            ; +0xab, 0x1002548eb\npop     r14                                                            ; +0xac, 0x1002548ec\npop     rbp                                                            ; +0xae, 0x1002548ee\nretn                                                                   ; +0xaf, 0x1002548ef", "xrefs": ["ArtistCell::loadFromObject @ 0x100247459"], "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"}