//
// ReportPopup::reasonIndicesForUploadModeration from 0xcfe438 to 0xcfe5ac (372 bytes)
//
// 3 xrefs:
// > AccountBanPopup::onTrendingBan @ 0xc927ec
// > AccountBanPopup::onLevelUploadBan @ 0xc93334
// > ??> @ 0xb4028
//
// 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:52 +0000
//
// write access to const memory has been detected, the output may be wrong!
__int64 *__usercall ReportPopup::reasonIndicesForUploadModeration@(__int64 *__return_ptr a1@)
{
_DWORD *v3; // x0
__int64 v4; // x0
_DWORD *v5; // x0
_DWORD *v6; // x0
_DWORD *v7; // x0
_DWORD *v8; // x0
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v3 = (_DWORD *)operator new(0x18u);
a1[1] = (__int64)v3;
*a1 = (__int64)v3;
a1[2] = (__int64)(v3 + 6);
*v3 = 0;
v4 = a1[1];
a1[1] = v4 + 4;
if ( v4 == -4 )
{
a1[1] = 4;
*(_DWORD *)byte_4 = 2;
v6 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v6;
if ( v6 )
{
LABEL_4:
*v6 = 4;
v7 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v7;
if ( v7 )
goto LABEL_5;
LABEL_11:
v8 = (_DWORD *)byte_4;
a1[1] = 4;
goto LABEL_6;
}
LABEL_8:
a1[1] = 4;
*(_DWORD *)byte_4 = 5;
v8 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v8;
if ( v8 )
goto LABEL_6;
goto LABEL_9;
}
*(_DWORD *)(v4 + 4) = 1;
v5 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v5;
if ( v5 )
{
*v5 = 2;
v6 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v6;
if ( v6 )
goto LABEL_4;
goto LABEL_8;
}
a1[1] = 4;
*(_DWORD *)byte_4 = 4;
v7 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v7;
if ( !v7 )
goto LABEL_11;
LABEL_5:
*v7 = 5;
v8 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v8;
if ( v8 )
{
LABEL_6:
*v8 = 6;
a1[1] += 4;
return a1;
}
LABEL_9:
a1[1] = 4;
return a1;
}