//
// ArtistCell::onNewgrounds from 0x1001107d4 to 0x100110884 (176 bytes)
//
// 1 xrefs:
// > ArtistCell::loadFromObject @ 0x100105814
//
// 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 __fastcall ArtistCell::onNewgrounds(ArtistCell *a1, cocos2d::CCObject *a2)
{
cocos2d::CCApplication *v3; // x19
SongInfoObject *m_songInfo; // x8
std::string *p_m_artistName; // x8
void **v6; // x8
cocos2d::CCString *v7; // x0
const char *CString; // x0
void *__p[2]; // [xsp+10h] [xbp-30h] BYREF
char *longStorage; // [xsp+20h] [xbp-20h]
if ( a1->m_songInfo )
{
v3 = cocos2d::CCApplication::sharedApplication();
m_songInfo = a1->m_songInfo;
if ( m_songInfo->m_artistName.m_data.m_short.shortStorage.__elems_[22] < 0 )
{
sub_1000097D0(
__p,
(void *)m_songInfo->m_artistName.m_data.m_long.capacitym1,
m_songInfo->m_artistName.m_data.m_long.size);
}
else
{
p_m_artistName = &m_songInfo->m_artistName;
*(_OWORD *)__p = *(_OWORD *)&p_m_artistName->m_data.m_short.sizex2;
longStorage = p_m_artistName->m_data.m_long.longStorage;
}
v6 = __p;
if ( SHIBYTE(longStorage) < 0 )
v6 = (void **)__p[0];
v7 = (cocos2d::CCString *)sub_100268F4C("https://%s.newgrounds.com/audio", (const char *)v6);
CString = cocos2d::CCString::getCString(v7);
((void (__fastcall *)(cocos2d::CCApplication *, const char *))v3->openURL)(v3, CString);
if ( SHIBYTE(longStorage) < 0 )
operator delete(__p[0]);
}
}