//
// sub_1009A0F70 from 0x1009a0f70 to 0x1009a1473 (1283 bytes)
//
// 1 xrefs:
// > AccountReviewPopup::buildReportedRows @ 0x10099beb4
//
// 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:39:17 +0000
//
void __fastcall sub_1009A0F70(__int64 a1, __int64 a2, float a3)
{
void *v4; // r15
void *v5; // r15
int v6; // eax
int v7; // esi
const char *v8; // rcx
char *v9; // rax
const char *CString; // r13
size_t v11; // rax
std::string::size_type v12; // r12
char *data; // r14
size_t v14; // rbx
int v15; // esi
char *v16; // rax
const std::string::value_type *v17; // rax
std::string::pointer v18; // rdi
void *v19; // r12
signed int v20; // edi
const std::string::value_type *v21; // rax
void *v22; // r15
void *v23; // r15
float v25; // [rsp+10h] [rbp-60h] BYREF
__int64 v26; // [rsp+18h] [rbp-58h]
float v27; // [rsp+20h] [rbp-50h]
float v28; // [rsp+24h] [rbp-4Ch]
std::string __dst; // [rsp+28h] [rbp-48h] BYREF
float v30[12]; // [rsp+40h] [rbp-30h] BYREF
v27 = a3;
v28 = a3 + 10.0;
sub_100278270((__int64)&__dst, 0.0, 0.0, (__m128)0x42200000u, (__m128)0x42200000u);
v4 = cocos2d::extension::CCScale9Sprite::create_2((__int64)"square02_small.png", (unsigned __int64 *)&__dst);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 912LL))(v4, 60);
__dst.__r_.__value_.__s.__data_[1] = 0;
*(_WORD *)&__dst.__r_.__value_.__l.0 = 0;
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v4 + 960LL))(v4, &__dst);
sub_100278260((float *)&__dst, *(float *)(a1 + 704) + -8.0, 40.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v4 + 320LL))(v4, &__dst);
sub_100278250((float *)&__dst, *(float *)(a1 + 704) * 0.5, a3);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v4 + 184LL))(v4, &__dst);
(*(void (__fastcall **)(__int64, void *, _QWORD))(*(_QWORD *)a2 + 464LL))(a2, v4, 0);
v5 = cocos2d::CCLabelBMFont::create_3((__int64)"Account", (__int64)"bigFont.fnt");
sub_100278250((float *)&__dst, 0.0, 0.5);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v5 + 296LL))(v5, &__dst);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v5 + 160LL))(v5, 0.31999999);
v6 = sub_1009644C0(0);
*(_WORD *)&__dst.__r_.__value_.__l.0 = v6;
__dst.__r_.__value_.__s.__data_[1] = BYTE2(v6);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v5 + 1072LL))(v5, &__dst);
sub_100278250((float *)&__dst, 32.0, a3 + 10.0);
(*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v5 + 184LL))(v5, &__dst);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a2 + 464LL))(a2, v5, 1);
v7 = *(_DWORD *)(a1 + 1368);
v8 = "s";
if ( v7 == 1 )
v8 = "";
v9 = sub_10088E820("%i %s%s", v7, "report", v8);
CString = (const char *)cocos2d::CCString::getCString((__int64)v9);
v11 = strlen(CString);
if ( v11 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v12 = v11;
if ( v11 >= 0x17 )
{
v26 = a2;
v14 = 26;
if ( (v11 | 7) != 0x17 )
v14 = (v11 | 7) + 1;
data = (char *)operator new(v14);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data;
__dst.__r_.__value_.__r.__words[0] = v14 + 1;
a2 = v26;
__dst.__r_.__value_.__l.__size_ = v12;
goto LABEL_10;
}
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v11);
data = __dst.__r_.__value_.__s.__data_;
if ( v11 )
LABEL_10:
memmove(data, CString, v12);
data[v12] = 0;
v15 = *(_DWORD *)(a1 + 1372);
if ( v15 > 0 )
{
v16 = sub_10088E820(" +%i anonymous", v15);
v17 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v16);
std::string::append(&__dst, v17);
}
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
v18 = __dst.__r_.__value_.__l.__data_;
else
v18 = __dst.__r_.__value_.__s.__data_;
v19 = cocos2d::CCLabelBMFont::create_3((__int64)v18, (__int64)"chatFont.fnt");
sub_100278250(v30, 0.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v19 + 296LL))(v19, v30);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v19 + 160LL))(v19, 0.44999999);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v19 + 1024LL))(v19, 180);
(*(void (__fastcall **)(float *, void *))(*(_QWORD *)v5 + 336LL))(&v25, v5);
sub_100278250(v30, (float)(v25 + 32.0) + 8.0, v28);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v19 + 184LL))(v19, v30);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a2 + 464LL))(a2, v19, 1);
v20 = *(_DWORD *)(a1 + 1376);
if ( v20 >= 0 )
{
v21 = sub_100964350(v20);
v22 = cocos2d::CCLabelBMFont::create_3((__int64)v21, (__int64)"chatFont.fnt");
sub_100278250(v30, 0.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v22 + 296LL))(v22, v30);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v22 + 160LL))(v22, 0.40000001);
BYTE2(v30[0]) = 60;
LOWORD(v30[0]) = -11521;
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v22 + 1072LL))(v22, v30);
LODWORD(v26) = (*(float (__fastcall **)(void *))(*(_QWORD *)v19 + 224LL))(v19);
(*(void (__fastcall **)(float *, void *))(*(_QWORD *)v19 + 336LL))(&v25, v19);
sub_100278250(v30, (float)(*(float *)&v26 + v25) + 8.0, v28);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v22 + 184LL))(v22, v30);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a2 + 464LL))(a2, v22, 1);
}
v23 = cocos2d::CCLabelBMFont::create_3(
(__int64)"Reported from the profile page, no content attached. Clear removes these.",
(__int64)"chatFont.fnt");
sub_100278250(v30, 0.0, 0.5);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v23 + 296LL))(v23, v30);
cocos2d::CCLabelBMFont::limitLabelWidth(
(__int64)v23,
*(float *)(a1 + 704) + -50.0,
(__m128)0x3F000000u,
(__m128)0x3E4CCCCDu);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v23 + 1024LL))(v23, 150);
sub_100278250(v30, 32.0, v27 + -10.0);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v23 + 184LL))(v23, v30);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a2 + 464LL))(a2, v23, 1);
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
}