//
// ReportPopup::reasonIndicesForType from 0xcfe6dc to 0xcfea84 (936 bytes)
//
// 11 xrefs:
// > InfoLayer::onBulkDelete @ 0x908a58
// > AdminActionConfirmPopup::createContentDelete @ 0xc3ef54
// > ReportPopup::createForThread @ 0xd01434
// > ReportPopup::createForUser @ 0xd01670
// > ReportPopup::createForLevel @ 0xd018dc
// > ReportPopup::createForList @ 0xd01b5c
// > ReportPopup::createForSoundConfig @ 0xd01ddc
// > ReportPopup::createForComment @ 0xd020e8
// > ReportPopup::createForFriendRequest @ 0xd02504
// > ReportPopup::createForMessage @ 0xd02824
// > ??> @ 0x8f650
//
// 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
//
__int64 *__usercall ReportPopup::reasonIndicesForType@(__int64 *__return_ptr a1@, ReportPopup *this@)
{
_DWORD *v3; // x0
_DWORD *v4; // x0
_DWORD *v5; // x0
_DWORD *v6; // x0
_DWORD *v7; // x0
int v8; // w1
int *v9; // x0
int v10; // w1
int *v11; // x0
_DWORD *v13; // x0
_DWORD *v14; // x0
_DWORD *v15; // x0
_DWORD *v16; // x0
_DWORD *v17; // x0
_DWORD *v18; // x0
_DWORD *v19; // x0
_DWORD *v20; // x0
_DWORD *v21; // x0
_DWORD *v22; // x0
_DWORD *v23; // x0
switch ( (int)this )
{
case 1:
case 2:
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
std::vector::allocate(a1, 6u);
v16 = (_DWORD *)a1[1];
if ( v16 )
{
*v16 = 0;
v17 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v17;
if ( !v17 )
{
v18 = (_DWORD *)byte_4;
a1[1] = 4;
goto LABEL_19;
}
}
else
{
v17 = (_DWORD *)byte_4;
a1[1] = 4;
}
*v17 = 1;
v18 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v18;
if ( !v18 )
{
v19 = (_DWORD *)byte_4;
a1[1] = 4;
goto LABEL_20;
}
LABEL_19:
*v18 = 2;
v19 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v19;
if ( !v19 )
{
v9 = (_DWORD *)byte_4;
v8 = 6;
a1[1] = 4;
goto LABEL_8;
}
LABEL_20:
*v19 = 3;
v20 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v20;
if ( !v20 )
goto LABEL_15;
*v20 = 6;
v10 = 7;
v11 = (int *)(a1[1] + 4);
a1[1] = (__int64)v11;
if ( v11 )
goto LABEL_9;
goto LABEL_22;
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
std::vector::allocate(a1, 5u);
v13 = (_DWORD *)a1[1];
if ( v13 )
{
*v13 = 0;
v14 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v14;
if ( !v14 )
{
v15 = (_DWORD *)byte_4;
a1[1] = 4;
goto LABEL_14;
}
}
else
{
v14 = (_DWORD *)byte_4;
a1[1] = 4;
}
*v14 = 1;
v15 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v15;
if ( !v15 )
{
v9 = (_DWORD *)byte_4;
v8 = 3;
a1[1] = 4;
goto LABEL_8;
}
LABEL_14:
*v15 = 2;
v8 = 3;
v9 = (int *)(a1[1] + 4);
a1[1] = (__int64)v9;
if ( v9 )
goto LABEL_8;
goto LABEL_15;
case 9:
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
std::vector::allocate(a1, 4u);
v21 = (_DWORD *)a1[1];
if ( v21 )
{
*v21 = 0;
v22 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v22;
if ( !v22 )
{
v23 = (_DWORD *)byte_4;
a1[1] = 4;
goto LABEL_26;
}
}
else
{
v22 = (_DWORD *)byte_4;
a1[1] = 4;
}
*v22 = 1;
v23 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v23;
if ( !v23 )
{
v11 = (_DWORD *)byte_4;
v10 = 6;
a1[1] = 4;
goto LABEL_9;
}
LABEL_26:
*v23 = 2;
v10 = 6;
v11 = (int *)(a1[1] + 4);
a1[1] = (__int64)v11;
if ( v11 )
goto LABEL_9;
goto LABEL_22;
default:
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
std::vector::allocate(a1, 7u);
v3 = (_DWORD *)a1[1];
if ( v3 )
{
*v3 = 0;
v4 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v4;
if ( !v4 )
{
v5 = (_DWORD *)byte_4;
a1[1] = 4;
goto LABEL_5;
}
}
else
{
v4 = (_DWORD *)byte_4;
a1[1] = 4;
}
*v4 = 1;
v5 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v5;
if ( !v5 )
{
v6 = (_DWORD *)byte_4;
a1[1] = 4;
goto LABEL_6;
}
LABEL_5:
*v5 = 2;
v6 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v6;
if ( !v6 )
{
v7 = (_DWORD *)byte_4;
a1[1] = 4;
goto LABEL_7;
}
LABEL_6:
*v6 = 3;
v7 = (_DWORD *)(a1[1] + 4);
a1[1] = (__int64)v7;
if ( !v7 )
{
v9 = (_DWORD *)byte_4;
v8 = 5;
a1[1] = 4;
goto LABEL_8;
}
LABEL_7:
*v7 = 4;
v8 = 5;
v9 = (int *)(a1[1] + 4);
a1[1] = (__int64)v9;
if ( !v9 )
{
LABEL_15:
v11 = (_DWORD *)byte_4;
v10 = 7;
a1[1] = 4;
goto LABEL_9;
}
LABEL_8:
*v9 = v8;
v10 = 7;
v11 = (int *)(a1[1] + 4);
a1[1] = (__int64)v11;
if ( v11 )
{
LABEL_9:
*v11 = v10;
a1[1] += 4;
return a1;
}
LABEL_22:
a1[1] = 4;
return a1;
}
}