//
// InfoLayer::confirmReport from 0x7e2628 to 0x7e28e8 (704 bytes)
//
// 3 xrefs:
// > ??> @ 0x90048
// > InfoLayer::init @ 0x7e4efc
// > ??> @ 0x122ce90
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void InfoLayer::confirmReport(InfoLayer *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x21
int ID; // w0
bool v5; // zf
double v6; // d0
__int64 v7; // x23
FLAlertLayer *v8; // x20
void *v9; // x0
char *v10; // x0
char *v11; // x0
double v12; // d0
unsigned int *v13; // x20
int v14; // w1
unsigned int *v15; // x1
int v16; // w2
unsigned int *v17; // x1
int v18; // w2
char *v19; // [xsp+50h] [xbp+50h] BYREF
char *v20; // [xsp+58h] [xbp+58h] BYREF
__int64 v21; // [xsp+60h] [xbp+60h] BYREF
v3 = GameLevelManager::sharedState();
ID = InfoLayer::getID(a1);
if ( !GameLevelManager::hasReportedLevel(v3, ID) )
{
v5 = a1->m_mode == User;
v19 = &byte_124B6C8;
v20 = &byte_124B6C8;
if ( v5 )
{
*(_QWORD *)&v12 = sub_D1798C(&v19, "Report List", 11).n128_u64[0];
sub_D1798C(
&v20,
"Do you want to report this list for breaking the upload guidelines found in the editor? Valid re"
"asons include hateful, abusive, or otherwise inappropriate content, as well as hacks, cheats, or exploits.",
218,
v12);
}
else
{
*(_QWORD *)&v6 = sub_D1798C(&v19, "Report Level", 12).n128_u64[0];
sub_D1798C(
&v20,
"Do you want to report this level for breaking the upload guidelines found in the editor? Valid r"
"easons include hateful, abusive, or otherwise inappropriate content, as well as hacks, cheats, or exploits.",
219,
v6);
}
v7 = (__int64)v19;
sub_D153B8((int)&v21, v20);
v8 = FLAlertLayer::create((int)a1 + 648, v7, (__int64)&v21);
v9 = (void *)(v21 - 24);
if ( (__int64 *)(v21 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v17 = (unsigned int *)(v21 - 8);
do
v18 = __ldaxr(v17);
while ( __stlxr(v18 - 1, v17) );
}
else
{
v18 = *(_DWORD *)(v21 - 8);
*(_DWORD *)(v21 - 8) = v18 - 1;
}
if ( v18 <= 0 )
operator delete(v9);
}
v8->setTag(v8, 2);
v8->show(v8);
v10 = v20 - 24;
if ( v20 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v15 = (unsigned int *)(v20 - 8);
do
v16 = __ldaxr(v15);
while ( __stlxr(v16 - 1, v15) );
}
else
{
v16 = *((_DWORD *)v20 - 2);
*((_DWORD *)v20 - 2) = v16 - 1;
}
if ( v16 <= 0 )
operator delete(v10);
}
v11 = v19 - 24;
if ( v19 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v13 = (unsigned int *)(v19 - 8);
do
v14 = __ldaxr(v13);
while ( __stlxr(v14 - 1, v13) );
}
else
{
v14 = *((_DWORD *)v19 - 2);
*((_DWORD *)v19 - 2) = v14 - 1;
}
if ( v14 <= 0 )
operator delete(v11);
}
}
}