//
// SFXChangelogPopup::buildContent from 0x100970e10 to 0x100971269 (1113 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bcfca8
//
// 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:53 +0000
//
__m128 __fastcall SFXChangelogPopup::buildContent(__int64 a1, __int64 a2, float a3)
{
unsigned int v4; // esi
__int64 v5; // rbx
void *v6; // rbx
__m128 v7; // xmm0
__int64 v8; // rdi
__int64 v9; // rax
__int64 v10; // r14
float v11; // xmm0_4
__m128 v12; // xmm1
__int64 v13; // rdi
int v14; // eax
unsigned int v15; // ebx
__int64 v16; // rdi
__int64 v17; // r13
unsigned int v18; // eax
size_t v19; // rbx
unsigned __int64 v20; // r15
char *data; // r14
const void *v22; // rsi
size_t v23; // r12
unsigned int v24; // edx
std::string::size_type v25; // rdx
const std::string::value_type *v26; // r13
int v27; // ebx
std::string *v28; // rax
char *v29; // rdi
void *v30; // r13
__m128 v31; // xmm1
__int64 v33; // [rsp+8h] [rbp-B8h]
__int64 v34; // [rsp+10h] [rbp-B0h]
float v36; // [rsp+24h] [rbp-9Ch]
float v37; // [rsp+28h] [rbp-98h]
char v38; // [rsp+2Ch] [rbp-94h]
__int128 v39; // [rsp+30h] [rbp-90h] BYREF
void *v40; // [rsp+40h] [rbp-80h]
std::string __dst; // [rsp+50h] [rbp-70h] BYREF
__m128 v42; // [rsp+70h] [rbp-50h]
unsigned int v43; // [rsp+88h] [rbp-38h]
int v44; // [rsp+8Ch] [rbp-34h]
unsigned int v45; // [rsp+90h] [rbp-30h]
float v46; // [rsp+94h] [rbp-2Ch]
v46 = a3;
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 664)) )
{
v37 = v46 + -35.0;
v4 = 0;
v42 = 0;
v5 = a1;
v33 = a2;
while ( 1 )
{
v8 = *(_QWORD *)(v5 + 664);
v45 = v4;
v9 = sub_1007FEFE0(v8, v4);
if ( v9 )
{
v10 = v9;
v11 = sub_10096F160(v42.f32[0], v46, v5, a2, *(_DWORD *)(v9 + 56), *(_DWORD *)(v9 + 60));
v12 = v42;
v12.f32[0] = v42.f32[0] - v11;
v42 = v12;
v13 = *(_QWORD *)(v10 + 72);
if ( v13 && (v14 = sub_1007FEF90(v13), (v44 = v14) != 0) )
{
if ( v14 > 0 )
{
v36 = v42.f32[0] + -7.0;
v15 = 0;
v34 = v10;
while ( 1 )
{
v16 = *(_QWORD *)(v10 + 72);
v43 = v15;
v17 = sub_1007FEFE0(v16, v15);
v18 = *(unsigned __int8 *)(v17 + 56);
if ( (v18 & 1) != 0 )
v19 = *(_QWORD *)(v17 + 64);
else
v19 = v18 >> 1;
v20 = v19 + 3;
if ( v19 + 3 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
if ( v20 >= 0x17 )
break;
memset(&__dst, 0, sizeof(__dst));
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v20);
data = __dst.__r_.__value_.__s.__data_;
if ( v19 )
{
if ( (v18 & 1) != 0 )
goto LABEL_19;
LABEL_23:
v22 = (const void *)(v17 + 57);
goto LABEL_24;
}
LABEL_25:
*(_DWORD *)&data[v19] = 2826298;
v24 = *(unsigned __int8 *)(v17 + 80);
if ( (v24 & 1) != 0 )
{
v25 = *(_QWORD *)(v17 + 88);
v26 = *(const std::string::value_type **)(v17 + 96);
}
else
{
v26 = (const std::string::value_type *)(v17 + 81);
v25 = v24 >> 1;
}
v10 = v34;
v27 = v43;
v28 = std::string::append(&__dst, v26, v25);
v40 = v28->__r_.__value_.__l.__data_;
v39 = *(_OWORD *)&v28->__r_.__value_.__l.0;
*(_OWORD *)&v28->__r_.__value_.__l.0 = 0;
v28->__r_.__value_.__r.__words[2] = 0;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
v29 = (char *)&v39 + 1;
if ( (v39 & 1) != 0 )
v29 = (char *)v40;
v30 = cocos2d::CCLabelBMFont::create_3((__int64)v29, (__int64)"chatFont.fnt");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v30 + 160LL))(v30, 0.60000002);
cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v30, v37, (__m128)0x3F19999Au, (__m128)0x3EB33333u);
sub_100278250((float *)&__dst, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v30 + 296LL))(v30, &__dst);
sub_100278250((float *)&__dst, 22.0, (float)((float)v27 * -14.0) + v36);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v30 + 184LL))(v30, &__dst);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 456LL))(a2, v30);
if ( (v39 & 1) != 0 )
operator delete(v40);
v15 = v27 + 1;
if ( v44 == v15 )
goto LABEL_34;
}
v38 = *(_BYTE *)(v17 + 56);
v23 = (v20 | 7) + 1;
if ( (v20 | 7) == 0x17 )
v23 = 26;
data = (char *)operator new(v23);
__dst.__r_.__value_.__r.__words[0] = v23 + 1;
a2 = v33;
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data;
__dst.__r_.__value_.__l.__size_ = v19 + 3;
if ( (v38 & 1) == 0 )
goto LABEL_23;
LABEL_19:
v22 = *(const void **)(v17 + 72);
LABEL_24:
memmove(data, v22, v19);
goto LABEL_25;
}
LABEL_34:
v31 = v42;
v31.f32[0] = v42.f32[0] + (float)((float)v44 * -14.0);
v7 = v31;
}
else
{
v6 = cocos2d::CCLabelBMFont::create_3((__int64)"(no new sounds)", (__int64)"chatFont.fnt");
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v6 + 160LL))(v6, 0.55000001);
BYTE2(v39) = -106;
LOWORD(v39) = -26986;
(*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v6 + 1072LL))(v6, &v39);
sub_100278250((float *)&v39, 0.0, 0.5);
(*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v6 + 296LL))(v6, &v39);
sub_100278250((float *)&v39, 22.0, v42.f32[0] + -7.0);
(*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v6 + 184LL))(v6, &v39);
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 456LL))(a2, v6);
v7 = v42;
v7.f32[0] = v42.f32[0] + -14.0;
}
v7.f32[0] = v7.f32[0] + -10.0;
v42 = v7;
v5 = a1;
}
v4 = v45 + 1;
if ( v4 >= (unsigned int)sub_1007FEF90(*(_QWORD *)(v5 + 664)) )
return _mm_xor_ps(v42, (__m128)xmmword_100A035F0);
}
}
v42 = 0;
return _mm_xor_ps(v42, (__m128)xmmword_100A035F0);
}