//
// SFXFolderPickerPopup::updateShareHint from 0x72f0fc to 0x72f1de (226 bytes)
//
// 2 xrefs:
// > SFXFolderPickerPopup::refreshList @ 0x7301ae
// > SFXFolderPickerPopup::init @ 0x730c9a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:58:18 +0000
//
char *__fastcall SFXFolderPickerPopup::updateShareHint(char *this, int a2)
{
char *v2; // r4
const char *CustomSFXCount; // r1
MusicDownloadManager *v4; // r0
int v5; // r2
int v6; // r3
_DWORD *v7; // r7
_BOOL4 v8; // r6
void (__fastcall *v9)(_DWORD *, int); // r8
cocos2d::CCString *v10; // r0
int CString; // r0
char *v12; // r0
const char *v13; // r1
char *v14; // [sp+0h] [bp-8h]
v14 = this;
v2 = this;
if ( *((_DWORD *)this + 131) == 2 && *((_DWORD *)this + 144) )
{
CustomSFXCount = *((const char **)this + 137);
if ( CustomSFXCount )
{
v4 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)this);
CustomSFXCount = (const char *)MusicDownloadManager::getCustomSFXCount(v4, (_DWORD *)v2 + 135, v5, v6);
}
v7 = *((_DWORD **)v2 + 144);
v8 = (int)CustomSFXCount > 1000;
v9 = *(void (__fastcall **)(_DWORD *, int))(*v7 + 464);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"Saved with this level: %i/%i entries",
CustomSFXCount,
1000,
*v7,
v14,
a2);
CString = cocos2d::CCString::getCString(v10);
v9(v7, CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)v2 + 144), 280.0, 0.5, 0.3);
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)v2 + 144) + 536))(*((_DWORD *)v2 + 144));
this = *((char **)v2 + 143);
if ( this )
{
(*(void (__fastcall **)(char *, bool))(*(_DWORD *)this + 528))(this, !v8);
v12 = (char *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)v2 + 143) + 536))(*((_DWORD *)v2 + 143));
if ( v8 )
v13 = "GJ_button_04.png";
else
v13 = "GJ_button_01.png";
return ButtonSprite::updateBGImage(v12, v13);
}
}
return this;
}