//
// sub_100527278 from 0x100527278 to 0x100527480 (520 bytes)
//
// 2 xrefs:
// > MusicChangelogPopup::buildContent @ 0x1005170f8
// > SFXChangelogPopup::buildContent @ 0x100527a58
//
// This function is hookable on this platform (idp: arm, 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 11:07:15 +0000
//
float __fastcall sub_100527278(float a1, float a2, __int64 a3, __int64 a4, int a5, int a6)
{
tm *v10; // x3
std::string *v11; // x8
const char *v12; // x9
void *v13; // x0
char *CString; // x0
std::string::value_type *v15; // x0
void *v16; // x20
time_t v18; // [xsp+18h] [xbp-78h] BYREF
std::string v19; // [xsp+20h] [xbp-70h] BYREF
std::string::value_type __s[8]; // [xsp+38h] [xbp-58h] BYREF
char v21; // [xsp+4Fh] [xbp-41h]
memset(&v19, 0, sizeof(v19));
if ( a6 <= 0 )
{
LABEL_7:
v11 = &v19;
v12 = "";
goto LABEL_10;
}
v18 = (unsigned int)a6;
v10 = gmtime(&v18);
if ( v10 )
{
strftime(__s, 0x20u, "%b %d, %Y", v10);
std::string::assign(&v19, __s);
}
if ( (*((_BYTE *)&v19.__r_.__value_.__s + 23) & 0x80) == 0 )
{
if ( *((_BYTE *)&v19.__r_.__value_.__s + 23) )
{
v11 = &v19;
v12 = " - ";
goto LABEL_10;
}
goto LABEL_7;
}
v12 = " - ";
v11 = (std::string *)v19.__r_.__value_.__r.__words[0];
if ( !v19.__r_.__value_.__l.__size_ )
v12 = "";
LABEL_10:
v13 = sub_1003065B0("Version %i%s%s", a5, v12, (const char *)v11);
CString = (char *)cocos2d::CCString::getCString((__int64)v13);
sub_100009900(__s, CString);
if ( v21 >= 0 )
v15 = __s;
else
v15 = *(std::string::value_type **)__s;
v16 = cocos2d::CCLabelBMFont::create_1(v15, "goldFont.fnt");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v16 + 160LL))(v16, 0.55);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v16, a2 + -30.0, 0.55, 0.3);
sub_1000262BC((float *)&v18, 0.0, 0.5);
(*(void (__fastcall **)(void *, time_t *))(*(_QWORD *)v16 + 296LL))(v16, &v18);
sub_1000262BC((float *)&v18, 15.0, (float)(a1 + -4.0) + -11.0);
(*(void (__fastcall **)(void *, time_t *))(*(_QWORD *)v16 + 184LL))(v16, &v18);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a4 + 456LL))(a4, v16);
if ( v21 < 0 )
operator delete(*(void **)__s);
if ( SHIBYTE(v19.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v19.__r_.__value_.__l.__data_);
return 26.0;
}