//
// SFXBrowser::onCredits from 0xa5ce9c to 0xa5cfdc (320 bytes)
//
// 3 xrefs:
// > ??> @ 0x437d0
// > sub_A5DEA4 @ 0xa5e938
// > ??> @ 0x122a228
//
// 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 SFXBrowser::onCredits(SFXBrowser *a1, cocos2d::CCObject *a2)
{
MusicDownloadManager *v3; // x0
cocos2d::CCObject *m_sfxArtists; // x20
cocos2d::CCNode *v5; // x20
void *v6; // x0
unsigned int *v7; // x2
int v8; // w1
__int64 v9; // [xsp+40h] [xbp+40h] BYREF
v3 = MusicDownloadManager::sharedState();
m_sfxArtists = v3->m_sfxArtists;
if ( m_sfxArtists && (unsigned int)cocos2d::CCArray::count(v3->m_sfxArtists) )
{
sub_D153B8((int)&v9, "SFX Credits");
v5 = (cocos2d::CCNode *)URLViewLayer::create((__int64)&v9, m_sfxArtists);
v6 = (void *)(v9 - 24);
if ( (__int64 *)(v9 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v7 = (unsigned int *)(v9 - 8);
do
v8 = __ldaxr(v7);
while ( __stlxr(v8 - 1, v7) );
}
else
{
v8 = *(_DWORD *)(v9 - 8);
*(_DWORD *)(v9 - 8) = v8 - 1;
}
if ( v8 <= 0 )
operator delete(v6);
}
a1->addChild_0(a1, v5, 100);
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))v5->__vftable[1].isIgnoreAnchorPointForPosition)(v5, 0);
}
}