//
// ProfilePage::onSocialPage from 0x4c4d64 to 0x4c4ec4 (352 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void ProfilePage::onSocialPage(ProfilePage *a1, cocos2d::CCObject *a2)
{
int *v2; // r6
char *v3; // r1
cocos2d::CCApplication *v4; // r0
const unsigned __int8 *v5; // [sp+0h] [bp-1Ch] BYREF
_BYTE v6[4]; // [sp+4h] [bp-18h] BYREF
_BYTE v7[4]; // [sp+8h] [bp-14h] BYREF
_BYTE v8[4]; // [sp+Ch] [bp-10h] BYREF
int v9; // [sp+10h] [bp-Ch] BYREF
if ( a1->m_score )
{
v5 = (const unsigned __int8 *)&unk_ACDDA8;
switch ( a2->getTag(a2) )
{
case 0:
v2 = &v9;
sub_775C20(&v9);
if ( sub_7749B0((int)&v9, "UC") || *(_DWORD *)(v9 - 12) != 24 )
v3 = "https://www.youtube.com/@";
else
v3 = "https://www.youtube.com/channel/";
sub_7753D4((int)&v5, v3);
sub_77441C(&v5, &v9);
goto LABEL_10;
case 1:
sub_7753D4((int)&v5, "https://www.twitter.com/");
v2 = (int *)v6;
sub_775C20(v6);
sub_77441C(&v5, v6);
goto LABEL_10;
case 2:
sub_7753D4((int)&v5, "https://www.twitch.tv/");
v2 = (int *)v7;
sub_775C20(v7);
sub_77441C(&v5, v7);
goto LABEL_10;
case 3:
sub_7753D4((int)&v5, "https://www.instagram.com/");
v2 = (int *)v8;
sub_775C20(v8);
sub_77441C(&v5, v8);
goto LABEL_10;
case 4:
sub_7753D4((int)&v5, "https://www.tiktok.com/@");
v2 = &v9;
sub_775C20(&v9);
sub_77441C(&v5, &v9);
LABEL_10:
sub_774008(v2);
break;
default:
break;
}
if ( *((_DWORD *)v5 - 3) )
{
v4 = cocos2d::CCApplication::sharedApplication();
v4->openURL(v4, v5);
}
sub_774008(&v5);
}
}