//
// InfoLayer::confirmReport from 0x100351a34 to 0x100351bb0 (380 bytes)
//
// 1 xrefs:
// > InfoLayer::init @ 0x1003506e0
//
// 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 __fastcall InfoLayer::confirmReport(InfoLayer *a1, cocos2d::CCObject *a2)
{
GameLevelManager *v3; // x0
GJUserScore *m_score; // x8
int m_userID; // w1
GJLevelList *m_levelList; // x8
GJGameLevel *m_level; // x8
const std::string::value_type *v8; // x1
int v9; // w21
std::string::size_type v10; // x20
std::string *v11; // x1
std::string *v12; // x1
FLAlertLayer *v13; // x19
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
char v15; // [xsp+1Fh] [xbp-51h]
std::string v16; // [xsp+20h] [xbp-50h] BYREF
std::string v17; // [xsp+38h] [xbp-38h] BYREF
v3 = GameLevelManager::sharedState();
m_score = a1->m_score;
if ( m_score )
{
m_userID = m_score->m_userID;
}
else
{
m_levelList = a1->m_levelList;
if ( m_levelList )
{
m_userID = -m_levelList->m_listID;
}
else
{
m_level = a1->m_level;
if ( m_level )
m_userID = m_level->m_levelID.random - m_level->m_levelID.seed;
else
m_userID = 0;
}
}
if ( !GameLevelManager::hasReportedLevel(v3, m_userID) )
{
memset(&v17, 0, sizeof(v17));
memset(&v16, 0, sizeof(v16));
if ( a1->m_mode == User )
{
std::string::assign(&v17, "Report List");
v8 = "Do you want to report this list for breaking the upload guidelines found in the editor? Valid"
" reasons include hateful, abusive, or otherwise inappropriate content, as well as hacks, cheats, or exploits.";
}
else
{
std::string::assign(&v17, "Report Level");
v8 = "Do you want to report this level for breaking the upload guidelines found in the editor? Vali"
"d reasons include hateful, abusive, or otherwise inappropriate content, as well as hacks, cheats, or exploits.";
}
std::string::assign(&v16, v8);
v9 = SHIBYTE(v17.__r_.__value_.__r.__words[2]);
v10 = v17.__r_.__value_.__r.__words[0];
if ( (v16.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v11 = &v16;
else
v11 = (std::string *)v16.__r_.__value_.__r.__words[0];
sub_100009900(__p, (char *)v11);
if ( v9 >= 0 )
v12 = &v17;
else
v12 = (std::string *)v10;
v13 = FLAlertLayer::create_1(
(__int64)&a1->FLAlertLayerProtocol,
(__int64)v12,
(__int64)__p,
(__int64)"NO",
(__int64)"YES",
380.0);
if ( v15 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(FLAlertLayer *, __int64))v13->setTag)(v13, 2);
((void (__fastcall *)(FLAlertLayer *))v13->show)(v13);
if ( SHIBYTE(v16.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v16.__r_.__value_.__l.__data_);
if ( SHIBYTE(v17.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v17.__r_.__value_.__l.__data_);
}
}