//
// ReportPopup::buildReasonRows from 0x1400bec10 to 0x1400bef60 (848 bytes)
//
// 5 xrefs:
// > AdminActionConfirmPopup::init @ 0x1400a5e54
// > ReportPopup::init @ 0x1400c122f
// > ??> @ 0x14088ff94
// > ??> @ 0x14088ffa4
// > ??> @ 0x140913aa8
//
// 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 11:26:18 +0000
//
unsigned __int64 __fastcall ReportPopup::buildReasonRows(
_QWORD *a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
float a6,
float a7,
float a8,
int a9,
float a10,
float a11,
_QWORD *a12,
int a13,
float a14)
{
unsigned __int64 v14; // rsi
__int64 v15; // rdi
unsigned __int64 result; // rax
float v19; // xmm13_4
_QWORD *v21; // rbp
int v22; // r15d
float v23; // xmm8_4
float v24; // xmm9_4
float v25; // xmm14_4
int v26; // eax
int v27; // edx
float v28; // xmm6_4
float v29; // xmm7_4
int v30; // ebx
int v31; // eax
__int64 v32; // rdi
__int64 v33; // rbx
__int64 v34; // rax
__int64 v35; // rax
_BYTE *v36; // rdx
__int64 v37; // rcx
const char *v38; // rcx
cocos2d::CCLabelBMFont *v39; // rdi
__int64 v40; // rbx
__int64 v41; // rax
__int64 v42; // rbx
__int64 v43; // rax
_BYTE v44[8]; // [rsp+20h] [rbp-F8h] BYREF
_BYTE v45[8]; // [rsp+28h] [rbp-F0h] BYREF
_BYTE v46[8]; // [rsp+30h] [rbp-E8h] BYREF
_BYTE v47[8]; // [rsp+38h] [rbp-E0h] BYREF
cocos2d::CCMenuItem *v48; // [rsp+120h] [rbp+8h] BYREF
__int64 v49; // [rsp+138h] [rbp+20h]
v49 = a4;
v14 = 0;
v15 = a4;
result = (__int64)(a1[1] - *a1) >> 2;
v19 = a6;
if ( result )
{
v21 = a12;
v22 = a13;
v23 = a10;
v24 = a11;
v25 = a14;
do
{
if ( v22 <= 0 )
{
v26 = 0;
v27 = v14;
}
else
{
v27 = (int)v14 % v22;
v26 = (int)v14 / v22;
}
v28 = (float)((float)v26 * v25) + v19;
v29 = a7 - (float)((float)v27 * a8);
v30 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png");
v31 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png");
v48 = CCMenuItemToggler::create(v30, v31, v15, a5);
v32 = (__int64)v48;
(*(void (__fastcall **)(cocos2d::CCMenuItem *))(*(_QWORD *)v48 + 160LL))(v48);
*(_DWORD *)(*(_QWORD *)(v32 + 376) + 372LL) = 1067869798;
*(_DWORD *)(*(_QWORD *)(v32 + 384) + 372LL) = 1067869798;
CCMenuItemToggler::toggle(v32, *(unsigned __int8 *)(v32 + 392));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 464LL))(a2, v32);
v33 = *(_QWORD *)v32;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v44, v28, v29);
cocos2d::CCNode::convertToNodeSpace(a2, v45, v34);
(*(void (__fastcall **)(__int64, __int64))(v33 + 184))(v32, v35);
v36 = (_BYTE *)v21[1];
if ( v36 == (_BYTE *)v21[2] )
{
sub_1400699B0(v21, v36, &v48);
}
else
{
*(_QWORD *)v36 = v32;
v21[1] += 8LL;
}
v37 = *(int *)(*a1 + 4 * v14);
if ( (unsigned int)v37 > 7 )
v38 = "?";
else
v38 = off_140702DE0[v37];
v39 = cocos2d::CCLabelBMFont::create(v38, (const char *)&qword_140704F78);
v40 = *(_QWORD *)v39;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, 0.0, 0.5);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v40 + 288))(v39, v41);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v39 + 160LL))(v39);
cocos2d::CCLabelBMFont::limitLabelWidth(v39, v24, v23, 0.2);
v42 = *(_QWORD *)v39;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, v28 + 16.0, v29);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v42 + 184))(v39, v43);
(*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)a3 + 456LL))(a3, v39, 1);
++v14;
v15 = v49;
result = (__int64)(a1[1] - *a1) >> 2;
}
while ( v14 < result );
}
return result;
}