//
// SFXChangelogPopup::buildContent from 0x1005279ac to 0x100527d1c (880 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009a1c80
//
// 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 SFXChangelogPopup::buildContent(__int64 a1, __int64 a2, float a3)
{
unsigned int v6; // w21
float v7; // s13
float v8; // s14
__int64 v9; // x0
__int64 v10; // x24
float v11; // s13
__int64 v12; // x0
int v13; // w0
int v14; // w25
unsigned int i; // w26
__int64 v16; // x0
__int64 v17; // x27
size_t v18; // x28
std::string *v19; // x22
const void *v20; // x1
const std::string::value_type *v21; // x8
__int64 v22; // x27
const std::string::value_type *v23; // t1
int v24; // w10
const std::string::value_type *v25; // x1
std::string::size_type v26; // x2
std::string *v27; // x0
__int128 v28; // q0
void **v29; // x0
void *v30; // x27
float v31; // s0
void *v32; // x22
std::string v34; // [xsp+8h] [xbp-C8h] BYREF
void *__p[2]; // [xsp+20h] [xbp-B0h] BYREF
signed __int64 v36; // [xsp+30h] [xbp-A0h]
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 664)) )
{
v6 = 0;
v7 = 0.0;
v8 = -10.0;
do
{
v9 = sub_1002E75A0(*(_QWORD *)(a1 + 664), v6);
if ( v9 )
{
v10 = v9;
v11 = v7 - sub_100527278(v7, a3, a1, a2, *(_DWORD *)(v9 + 56), *(_DWORD *)(v9 + 60));
v12 = *(_QWORD *)(v10 + 72);
if ( v12 && (v13 = sub_1002E757C(v12)) != 0 )
{
v14 = v13;
if ( v13 >= 1 )
{
for ( i = 0; i != v14; ++i )
{
v16 = sub_1002E75A0(*(_QWORD *)(v10 + 72), i);
v17 = v16;
if ( *(char *)(v16 + 79) >= 0 )
v18 = *(unsigned __int8 *)(v16 + 79);
else
v18 = *(_QWORD *)(v16 + 64);
sub_100026068((__int64)&v34, v18 + 3);
if ( (v34.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v19 = &v34;
else
v19 = (std::string *)v34.__r_.__value_.__r.__words[0];
if ( v18 )
{
if ( *(char *)(v17 + 79) >= 0 )
v20 = (const void *)(v17 + 56);
else
v20 = *(const void **)(v17 + 56);
memmove(v19, v20, v18);
}
*(_DWORD *)((char *)&v19->__r_.__value_.__l.__data_ + v18) = 2826298;
v23 = *(const std::string::value_type **)(v17 + 80);
v22 = v17 + 80;
v21 = v23;
v24 = *(char *)(v22 + 23);
if ( v24 >= 0 )
v25 = (const std::string::value_type *)v22;
else
v25 = v21;
if ( v24 >= 0 )
v26 = *(unsigned __int8 *)(v22 + 23);
else
v26 = *(_QWORD *)(v22 + 8);
v27 = std::string::append(&v34, v25, v26);
v28 = *(_OWORD *)&v27->__r_.__value_.__l.__data_;
v36 = v27->__r_.__value_.__r.__words[2];
*(_OWORD *)__p = v28;
v27->__r_.__value_.__l.__size_ = 0;
v27->__r_.__value_.__r.__words[2] = 0;
v27->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
if ( v36 >= 0 )
v29 = __p;
else
v29 = (void **)__p[0];
v30 = cocos2d::CCLabelBMFont::create_1((const char *)v29, "chatFont.fnt");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v30 + 160LL))(v30, 0.6);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v30, a3 + -35.0, 0.6, 0.35);
sub_1000262BC((float *)&v34, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v30 + 296LL))(v30, &v34);
sub_1000262BC((float *)&v34, 22.0, (float)(v11 + -7.0) + (float)((float)i * -14.0));
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v30 + 184LL))(v30, &v34);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 456LL))(a2, v30);
if ( SHIBYTE(v36) < 0 )
operator delete(__p[0]);
}
}
v31 = v11 + (float)((float)v14 * -14.0);
v8 = -10.0;
}
else
{
v32 = cocos2d::CCLabelBMFont::create_1("(no new sounds)", "chatFont.fnt");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v32 + 160LL))(v32, 0.55);
BYTE2(__p[0]) = -106;
LOWORD(__p[0]) = -26986;
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v32 + 1072LL))(v32, __p);
sub_1000262BC((float *)__p, 0.0, 0.5);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v32 + 296LL))(v32, __p);
sub_1000262BC((float *)__p, 22.0, v11 + -7.0);
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v32 + 184LL))(v32, __p);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 456LL))(a2, v32);
v31 = v11 + -14.0;
}
v7 = v31 + v8;
}
++v6;
}
while ( v6 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 664)) );
}
else
{
v7 = 0.0;
}
return -v7;
}