//
// ReportPopup::createForLevel from 0x7a0f60 to 0x7a1064 (260 bytes)
//
// 1 xrefs:
// > InfoLayer::confirmReport @ 0x53c9ca
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:54 +0000
//
ReportPopup *__fastcall ReportPopup::createForLevel(ReportPopup *this, GJGameLevel *a2)
{
ReportPopup *v2; // r4
int v3; // r2
_BYTE *v4; // r2
int v5; // r3
int v6; // r0
int v7; // r1
_BYTE *v8; // r2
_BYTE *v9; // r2
int v10; // r3
int v11; // r0
int v12; // r1
_BYTE *v13; // r2
const ReportPopupConfig *v14; // r1
int v16; // [sp+4h] [bp-74h] BYREF
int v17; // [sp+8h] [bp-70h]
_BYTE *v18; // [sp+Ch] [bp-6Ch]
int v19; // [sp+10h] [bp-68h] BYREF
int v20; // [sp+14h] [bp-64h]
_BYTE *v21; // [sp+18h] [bp-60h]
char *v22[3]; // [sp+1Ch] [bp-5Ch] BYREF
char *v23[3]; // [sp+28h] [bp-50h] BYREF
int v24; // [sp+34h] [bp-44h] BYREF
int v25; // [sp+38h] [bp-40h]
_BYTE *v26; // [sp+3Ch] [bp-3Ch]
int v27; // [sp+58h] [bp-20h] BYREF
int v28; // [sp+5Ch] [bp-1Ch]
_BYTE *v29; // [sp+60h] [bp-18h]
char *v30; // [sp+64h] [bp-14h] BYREF
v2 = this;
if ( this )
{
ReportPopupConfig::ReportPopupConfig((ReportPopupConfig *)v23);
v3 = *((_DWORD *)v2 + 68);
v23[0] = (_BYTE *)(&dword_0 + 1);
v23[1] = (char *)(*((_DWORD *)v2 + 67) - v3);
std::string::basic_string(&v16, (int)v2 + 280);
v5 = v24 & 1;
if ( (v24 & 1) != 0 )
{
v4 = v26;
v5 = 0;
}
else
{
BYTE1(v24) = v24 & 1;
}
if ( (v24 & 1) != 0 )
{
*v4 = v5;
v25 = v5;
}
else
{
LOBYTE(v24) = v5;
}
std::string::reserve(&v24, 0);
v6 = v16;
v7 = v17;
v8 = v18;
v16 = 0;
v17 = 0;
v18 = nullptr;
v24 = v6;
v25 = v7;
v26 = v8;
std::string::~string((int)&v16);
std::string::basic_string(&v19, (int)v2 + 316);
v10 = v27 & 1;
if ( (v27 & 1) != 0 )
{
v9 = v29;
v10 = 0;
}
else
{
BYTE1(v27) = v27 & 1;
}
if ( (v27 & 1) != 0 )
{
*v9 = v10;
v28 = v10;
}
else
{
LOBYTE(v27) = v10;
}
std::string::reserve(&v27, 0);
v11 = v19;
v12 = v20;
v13 = v21;
v19 = 0;
v20 = 0;
v21 = nullptr;
v27 = v11;
v28 = v12;
v29 = v13;
std::string::~string((int)&v19);
ReportPopup::reasonIndicesForType((ReportPopup *)v22, 1);
sub_79F2A8(&v30, v22);
std::__vector_base::~__vector_base(v22);
v2 = (ReportPopup *)ReportPopup::create((ReportPopup *)v23, v14);
ReportPopupConfig::~ReportPopupConfig(v23);
}
return v2;
}