//
// ReportPopup::reasonIndicesForTextModeration from 0xcfe300 to 0xcfe438 (312 bytes)
//
// 6 xrefs:
// > AccountReviewPopup::reviewChoicePicked @ 0xc427a8
// > AccountReviewPopup::reviewChoicePicked @ 0xc429d4
// > AccountBanPopup::onNameLock @ 0xc92a10
// > AccountBanPopup::onCommentBan @ 0xc931b0
// > AccountBanPopup::onMessageBan @ 0xc934b8
// > ??> @ 0xd5fe8
//
// 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::reasonIndicesForTextModeration@(__int64 *__return_ptr a1@)
{
_DWORD *v3; // x0
__int64 v4; // x0
_DWORD *v5; // x0
_DWORD *v6; // x0
_DWORD *v7; // x0
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v3 = (_DWORD *)operator new(0x14u);
a1[1] = (__int64)v3;
*a1 = (__int64)v3;
a1[2] = (__int64)(v3 + 5);
*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 )
goto LABEL_4;
LABEL_7:
v7 = (_DWORD *)byte_4;
a1[1] = 4;
goto LABEL_5;
}
*(_DWORD *)(v4 + 4) = 1;
v5 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v5;
if ( !v5 )
{
a1[1] = 4;
*(_DWORD *)byte_4 = 3;
v7 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v7;
if ( v7 )
goto LABEL_5;
goto LABEL_9;
}
*v5 = 2;
v6 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v6;
if ( !v6 )
goto LABEL_7;
LABEL_4:
*v6 = 3;
v7 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v7;
if ( v7 )
{
LABEL_5:
*v7 = 5;
a1[1] += 4;
return a1;
}
LABEL_9:
a1[1] = 4;
return a1;
}