//
// ReportPopup::createForThread from 0x7a0e04 to 0x7a0ea8 (164 bytes)
//
// 3 xrefs:
// > ThreadMessageOptionsPopup::onAction @ 0x749d7a
// > ThreadOptionsPopup::onReport @ 0x74bd30
// > ThreadRequestPopup::onReport @ 0x74cb56
//
// 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:53 +0000
//
_DWORD *__fastcall ReportPopup::createForThread(_DWORD *a1, int a2, unsigned __int8 *a3)
{
_DWORD *v5; // r4
unsigned __int8 *v6; // r1
const ReportPopupConfig *v7; // r1
char *v9[3]; // [sp+4h] [bp-5Ch] BYREF
char *v10[3]; // [sp+10h] [bp-50h] BYREF
unsigned __int8 v11[12]; // [sp+1Ch] [bp-44h] BYREF
unsigned __int8 v12[16]; // [sp+28h] [bp-38h] BYREF
__int64 v13; // [sp+38h] [bp-28h]
unsigned __int8 v14[12]; // [sp+40h] [bp-20h] BYREF
char *v15; // [sp+4Ch] [bp-14h] BYREF
v5 = a1;
if ( a1 )
{
ReportPopupConfig::ReportPopupConfig((ReportPopupConfig *)v10);
v10[0] = byte_8;
v10[1] = *((char **)v5 + 13);
if ( *((_BYTE *)v5 + 168) )
v6 = (unsigned __int8 *)(v5 + 15);
else
v6 = (unsigned __int8 *)(v5 + 18);
std::string::operator=(v11, v6);
ReportPopup::reasonIndicesForType((ReportPopup *)v9, 8);
sub_79F2A8(&v15, v9);
std::__vector_base::~__vector_base(v9);
if ( a2 )
{
v13 = *(_QWORD *)(a2 + 56);
std::string::operator=(v12, (unsigned __int8 *)(a2 + 68));
std::string::operator=(v14, a3);
}
v5 = ReportPopup::create((ReportPopup *)v10, v7);
ReportPopupConfig::~ReportPopupConfig(v10);
}
return v5;
}