//
// SFXFolderPickerPopup::updateShareHint from 0x100973800 to 0x100973938 (312 bytes)
//
// 5 xrefs:
// > SFXFolderPickerPopup::init @ 0x1009724bd
// > SFXFolderPickerPopup::onSelectAll @ 0x100972732
// > sub_1009739B0 @ 0x100973bbe
// > sub_100973BD0 @ 0x100973c62
// > SFXFolderPickerPopup::setTextPopupClosed @ 0x100973e75
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:38:54 +0000
//
void __fastcall SFXFolderPickerPopup::updateShareHint(__int64 a1)
{
__int64 v1; // rax
__int64 v3; // r15
__int64 v4; // rax
int v5; // r14d
char *v6; // rax
__int64 CString; // rax
__int64 v8; // rdi
__int64 v9; // rdi
bool v10; // cc
_BOOL8 v11; // rsi
const char *v12; // r14
__int64 v13; // rax
int v14; // [rsp-24h] [rbp-24h] BYREF
if ( *(_DWORD *)(a1 + 672) == 2 )
{
v14 = HIDWORD(v1);
v3 = *(_QWORD *)(a1 + 776);
if ( v3 )
{
if ( *(_QWORD *)(a1 + 720) )
{
v4 = MusicDownloadManager::sharedState();
v5 = sub_1006516B0(v4, a1 + 704);
v3 = *(_QWORD *)(a1 + 776);
}
else
{
v5 = 0;
}
v6 = sub_10088E820("Saved with this level: %i/%i entries", v5, 1000);
CString = cocos2d::CCString::getCString((__int64)v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 928LL))(v3, CString);
cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(a1 + 776), 280.0, (__m128)0x3F000000u, (__m128)0x3E99999Au);
v8 = *(_QWORD *)(a1 + 776);
if ( v5 >= 1001 )
{
BYTE2(v14) = 90;
LOWORD(v14) = 23295;
}
else
{
BYTE2(v14) = -1;
LOWORD(v14) = -1;
}
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v8 + 1072LL))(v8, &v14);
v9 = *(_QWORD *)(a1 + 768);
if ( v9 )
{
v10 = v5 < 1001;
v11 = v5 < 1001;
v12 = "GJ_button_04.png";
if ( v10 )
v12 = "GJ_button_01.png";
(*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v9 + 1056LL))(v9, v11);
v13 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 768) + 1072LL))(*(_QWORD *)(a1 + 768));
ButtonSprite::updateBGImage(v13, (__int64)v12);
}
}
}
}