//
// ReportPopup::selectedReasons from 0xcfed50 to 0xcfee44 (244 bytes)
//
// 3 xrefs:
// > ReportPopup::FLAlert_Clicked @ 0xcfeec0
// > ReportPopup::onSubmit @ 0xcff088
// > ??> @ 0x88f48
//
// 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 13:06:53 +0000
//
_QWORD *__usercall ReportPopup::selectedReasons@(ReportPopup *this@, _QWORD *a2@)
{
unsigned __int64 v4; // x19
__int64 v5; // x1
__int64 v6; // x2
_DWORD *v7; // x0
__int64 v8; // x2
*a2 = 0;
a2[1] = 0;
v4 = 0;
a2[2] = 0;
v5 = *((_QWORD *)this + 143);
v6 = *((_QWORD *)this + 144);
if ( (v6 - v5) >> 3 )
{
do
{
if ( *(_BYTE *)(*(_QWORD *)(v5 + 8 * v4) + 392LL) )
{
v7 = (_DWORD *)a2[1];
v8 = *((_QWORD *)this + 140);
if ( v7 == (_DWORD *)a2[2] )
{
std::vector::__push_back_slow_path((__int64)a2, (_DWORD *)(v8 + 4 * v4));
v5 = *((_QWORD *)this + 143);
v6 = *((_QWORD *)this + 144);
}
else
{
if ( v7 )
{
*v7 = *(_DWORD *)(v8 + 4 * v4);
v7 = (_DWORD *)a2[1];
}
a2[1] = v7 + 1;
v5 = *((_QWORD *)this + 143);
v6 = *((_QWORD *)this + 144);
}
}
++v4;
}
while ( v4 < (v6 - v5) >> 3 );
}
return a2;
}