{"type": "func", "start": 6339864, "end": 6340148, "name": "ArtistCell::onYouTube", "pseudocode": "// \n// ArtistCell::onYouTube from 0x60bd18 to 0x60be34 (284 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x377b8\n// > ArtistCell::loadFromObject @ 0x6165ec\n// > <???> @ 0x1229b48\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 ArtistCell::onYouTube(ArtistCell *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCApplication *v3; // x21\n  std::string *p_m_youtubeChannel; // x1\n  void (__fastcall *openURL)(cocos2d::CCApplication *__hidden, const unsigned __int8 *); // x20\n  double v6; // d0\n  cocos2d::CCString *v7; // x0\n  const char *CString; // x0\n  char *v9; // x0\n  unsigned int *v10; // x2\n  int v11; // w1\n  char *v12; // [xsp+40h] [xbp+40h] BYREF\n\n  if ( a1->m_songInfo )\n  {\n    v3 = cocos2d::CCApplication::sharedApplication();\n    p_m_youtubeChannel = &a1->m_songInfo->m_youtubeChannel;\n    openURL = v3->openURL;\n    *(_QWORD *)&v6 = sub_D18D28(&v12, p_m_youtubeChannel).n128_u64[0];\n    v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                                (cocos2d::CCString *)\"https://www.youtube.com/channel/%s\",\n                                v12,\n                                v6);\n    CString = cocos2d::CCString::getCString(v7);\n    openURL(v3, (const unsigned __int8 *)CString);\n    v9 = v12 - 24;\n    if ( v12 - 24 != (char *)&qword_124B6B0 )\n    {\n      if ( &pthread_create )\n      {\n        v10 = (unsigned int *)(v12 - 8);\n        do\n          v11 = __ldaxr(v10);\n        while ( __stlxr(v11 - 1, v10) );\n      }\n      else\n      {\n        v11 = *((_DWORD *)v12 - 2);\n        *((_DWORD *)v12 - 2) = v11 - 1;\n      }\n      if ( v11 <= 0 )\n        operator delete(v9);\n    }\n  }\n}", "assembly": "; \n; ArtistCell::onYouTube from 0x60bd18 to 0x60be34 (284 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x377b8\n; > ArtistCell::loadFromObject @ 0x6165ec\n; > <???> @ 0x1229b48\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x60bd18\nMOV             X29, SP                                                ; +0x4, 0x60bd1c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x60bd20\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x60bd24\nMOV             X20, X0                                                ; +0x10, 0x60bd28\nLDR             X0, [X0,#0x218]; this                                  ; +0x14, 0x60bd2c\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x18, 0x60bd30\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x60bd34\nLDR             X1, [X1]                                               ; +0x20, 0x60bd38\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x24, 0x60bd3c\nCBZ             X0, loc_60BD9C                                         ; +0x28, 0x60bd40\nBL              _ZN7cocos2d13CCApplication17sharedApplicationEv; cocos2d::CCApplication::sharedApplication(void) ; +0x2c, 0x60bd44\nMOV             X21, X0                                                ; +0x30, 0x60bd48\nLDR             X1, [X20,#0x218]                                       ; +0x34, 0x60bd4c\nADD             X0, X29, #0x50+var_10                                  ; +0x38, 0x60bd50\nLDR             X2, [X21]                                              ; +0x3c, 0x60bd54\nADD             X1, X1, #0x158                                         ; +0x40, 0x60bd58\nLDR             X20, [X2,#0x60]                                        ; +0x44, 0x60bd5c\nBL              sub_D18D28                                             ; +0x48, 0x60bd60\nADRP            X0, #aHttpsWwwYoutub_1@PAGE; \"https://www.youtube.com/channel/%s\" ; +0x4c, 0x60bd64\nLDR             X1, [X29,#0x50+var_10]; char *                         ; +0x50, 0x60bd68\nADD             X0, X0, #aHttpsWwwYoutub_1@PAGEOFF; \"https://www.youtube.com/channel/%s\" ; +0x54, 0x60bd6c\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x58, 0x60bd70\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x5c, 0x60bd74\nMOV             X1, X0                                                 ; +0x60, 0x60bd78\nMOV             X0, X21                                                ; +0x64, 0x60bd7c\nBLR             X20                                                    ; +0x68, 0x60bd80\nADRP            X1, #off_122EFE8@PAGE                                  ; +0x6c, 0x60bd84\nLDR             X2, [X29,#0x50+var_10]                                 ; +0x70, 0x60bd88\nSUB             X0, X2, #0x18; p                                       ; +0x74, 0x60bd8c\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0x78, 0x60bd90\nCMP             X0, X1                                                 ; +0x7c, 0x60bd94\nB.NE            loc_60BDC0                                             ; +0x80, 0x60bd98\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x84, 0x60bd9c\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x88, 0x60bda0\nLDR             X0, [X19]                                              ; +0x8c, 0x60bda4\nCMP             X1, X0                                                 ; +0x90, 0x60bda8\nB.NE            loc_60BE04                                             ; +0x94, 0x60bdac\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x98, 0x60bdb0\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x9c, 0x60bdb4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xa0, 0x60bdb8\nRET                                                                    ; +0xa4, 0x60bdbc\nADRP            X1, #pthread_create_ptr_0@PAGE                         ; +0xa8, 0x60bdc0\nLDR             X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xac, 0x60bdc4\nCBZ             X1, loc_60BDF4                                         ; +0xb0, 0x60bdc8\nSUB             X2, X2, #8                                             ; +0xb4, 0x60bdcc\nLDAXR           W1, [X2]                                               ; +0xb8, 0x60bdd0\nSUB             W3, W1, #1                                             ; +0xbc, 0x60bdd4\nSTLXR           W4, W3, [X2]                                           ; +0xc0, 0x60bdd8\nCBNZ            W4, loc_60BDD0                                         ; +0xc4, 0x60bddc\nCMP             W1, WZR                                                ; +0xc8, 0x60bde0\nB.GT            loc_60BD9C                                             ; +0xcc, 0x60bde4\nADD             X1, X29, #0x50+var_18                                  ; +0xd0, 0x60bde8\nBL              j__ZdlPv; operator delete(void *)                      ; +0xd4, 0x60bdec\nB               loc_60BD9C                                             ; +0xd8, 0x60bdf0\nLDUR            W1, [X2,#-8]                                           ; +0xdc, 0x60bdf4\nSUB             W3, W1, #1                                             ; +0xe0, 0x60bdf8\nSTUR            W3, [X2,#-8]                                           ; +0xe4, 0x60bdfc\nB               loc_60BDE0                                             ; +0xe8, 0x60be00\nBL              .__stack_chk_fail                                      ; +0xec, 0x60be04\nADRP            X1, #off_122EFE8@PAGE                                  ; +0xf0, 0x60be08\nMOV             X19, X0                                                ; +0xf4, 0x60be0c\nLDR             X0, [X29,#0x50+var_10]                                 ; +0xf8, 0x60be10\nLDR             X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0           ; +0xfc, 0x60be14\nSUB             X0, X0, #0x18                                          ; +0x100, 0x60be18\nCMP             X0, X1                                                 ; +0x104, 0x60be1c\nB.EQ            loc_60BE2C                                             ; +0x108, 0x60be20\nADD             X1, X29, #0x50+var_18                                  ; +0x10c, 0x60be24\nBL              sub_4DB620                                             ; +0x110, 0x60be28\nMOV             X0, X19                                                ; +0x114, 0x60be2c\nBL              _Unwind_Resume                                         ; +0x118, 0x60be30", "xrefs": ["<???> @ 0x377b8", "ArtistCell::loadFromObject @ 0x6165ec", "<???> @ 0x1229b48"], "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"}