//
// ReportPopup::createForMessage from 0x7a1584 to 0x7a16c4 (320 bytes)
//
// 1 xrefs:
// > GJMessagePopup::onReport @ 0x5d371a
//
// 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::createForMessage(ReportPopup *this, GJUserMessage *a2)
{
ReportPopup *v2; // r4
_BYTE *v4; // r2
int v5; // r3
int v6; // r0
int v7; // r1
_BYTE *v8; // r2
int v9; // r3
int v10; // r1
int v11; // r0
int v12; // r1
_BYTE *v13; // r2
const ReportPopupConfig *v14; // r1
int v15; // [sp+0h] [bp-84h] BYREF
int v16; // [sp+4h] [bp-80h]
_BYTE *v17; // [sp+8h] [bp-7Ch]
int v18[3]; // [sp+Ch] [bp-78h] BYREF
int v19; // [sp+18h] [bp-6Ch] BYREF
int v20; // [sp+1Ch] [bp-68h]
_BYTE *v21; // [sp+20h] [bp-64h]
char *v22[3]; // [sp+24h] [bp-60h] BYREF
char *v23[3]; // [sp+30h] [bp-54h] BYREF
int v24; // [sp+3Ch] [bp-48h] BYREF
int v25; // [sp+40h] [bp-44h]
_BYTE *v26; // [sp+44h] [bp-40h]
int v27; // [sp+48h] [bp-3Ch] BYREF
int v28; // [sp+4Ch] [bp-38h]
_BYTE *v29; // [sp+50h] [bp-34h]
unsigned __int8 v30[12]; // [sp+60h] [bp-24h] BYREF
char *v31; // [sp+6Ch] [bp-18h] BYREF
v2 = this;
if ( this )
{
if ( *((_BYTE *)this + 325) )
{
return nullptr;
}
else
{
ReportPopupConfig::ReportPopupConfig((ReportPopupConfig *)v23);
v23[0] = &byte_5;
v23[1] = *((char **)v2 + 66);
std::string::basic_string(&v15, (int)v2 + 300);
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 = v15;
v7 = v16;
v8 = v17;
v15 = 0;
v16 = 0;
v17 = nullptr;
v24 = v6;
v25 = v7;
v26 = v8;
std::string::~string((int)&v15);
std::string::operator=(v30, (unsigned __int8 *)&v24);
std::string::basic_string(v18, (int)v2 + 288);
if ( (v18[0] & 1) != 0 )
v9 = v18[1];
else
v9 = (int)LOBYTE(v18[0]) >> 1;
if ( v9 )
v10 = (int)v2 + 288;
else
v10 = (int)v2 + 276;
std::string::basic_string(&v19, v10);
if ( (v27 & 1) != 0 )
{
*v29 = 0;
v28 = 0;
}
else
{
LOWORD(v27) = 0;
}
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);
std::string::~string((int)v18);
ReportPopup::reasonIndicesForType((ReportPopup *)v22, 5);
sub_79F2A8(&v31, v22);
std::__vector_base::~__vector_base(v22);
v2 = (ReportPopup *)ReportPopup::create((ReportPopup *)v23, v14);
ReportPopupConfig::~ReportPopupConfig(v23);
}
}
return v2;
}