//
// ReportQueuePopup::init from 0x73b1ec to 0x73b652 (1126 bytes)
//
// 1 xrefs:
// > ReportQueuePopup::create @ 0x73b1b0
//
// 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:58:29 +0000
//
int __fastcall ReportQueuePopup::init(ReportQueuePopup *this)
{
int inited; // r10
int v3; // r7
void (__fastcall *v4)(int, _DWORD **); // r9
int v5; // r2
int v6; // r3
float v7; // s17
ButtonSprite *v8; // r0
int v9; // r7
void (__fastcall *v10)(int, _DWORD **); // r9
int v11; // r9
void (__fastcall *v12)(int, _DWORD **); // r6
const char *v13; // r1
int v14; // r6
int v15; // r6
void (__fastcall *v16)(int, _DWORD **); // r8
char **v17; // r6
int *v18; // r3
const char *v19; // r1
char **v20; // r3
size_t v21; // r0
int v22; // r0
float v23; // s14
int v24; // r8
void (__fastcall *v25)(int, _DWORD *); // r9
int v26; // r8
void (__fastcall *v27)(int, _DWORD *); // r9
int v28; // r8
int (__fastcall *v29)(int, _DWORD *); // r9
cocos2d::CCNotificationCenter *v30; // r0
int v31; // r0
float v33; // [sp+10h] [bp-64h]
const char *v34; // [sp+18h] [bp-5Ch]
int *v35; // [sp+1Ch] [bp-58h]
_DWORD v36[2]; // [sp+34h] [bp-40h] BYREF
int v37[3]; // [sp+3Ch] [bp-38h] BYREF
int v38[3]; // [sp+48h] [bp-2Ch] BYREF
int v39[3]; // [sp+54h] [bp-20h] BYREF
_DWORD *v40; // [sp+60h] [bp-14h] BYREF
_DWORD *v41; // [sp+64h] [bp-10h]
_DWORD *v42; // [sp+68h] [bp-Ch]
memset(v39, 0, sizeof(v39));
std::string::__init(v39, &unk_B6B226, 0);
inited = PagedListPopup::initPaged(
(int)this,
(cocos2d::CCLabelBMFont *)"Moderation Queue",
(unsigned __int8 *)v39,
440.0,
300.0);
std::string::~string((int)v39);
if ( inited )
{
cocos2d::CCLabelBMFont::setFntFile(*((cocos2d::CCLabelBMFont **)this + 145), "bigFont.fnt");
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 145) + 80))(*((_DWORD *)this + 145), 1056964608);
v3 = *((_DWORD *)this + 145);
v4 = *(void (__fastcall **)(int, _DWORD **))(*(_DWORD *)v3 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v40,
*((float *)this + 130),
(float)(*((float *)this + 131) + (float)(*((float *)this + 133) * 0.5)) - 14.0);
v4(v3, &v40);
PagedListPopup::createScrollArea(this, 40.0, 40.0);
ScrollableContentLayer::setSectionHeight(*((ScrollableContentLayer **)this + 136), 43.0, v5, v6);
v7 = (float)(*((float *)this + 131) - (float)(*((float *)this + 133) * 0.5)) + 22.0;
v8 = ButtonSprite::create(
(ButtonSprite *)"Top",
(const char *)&word_2C,
0,
0.5,
1,
"bigFont.fnt",
"GJ_button_04.png",
COERCE_CONST_CHAR_(24.0),
v33);
*((_DWORD *)this + 154) = v8;
v9 = CCMenuItemSpriteExtra::create((int)v8, 0, (int)this, (int)ReportQueuePopup::onToggleSort, 0);
CCMenuItemSpriteExtra::setSizeMult(v9, 1.1);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v9);
v10 = *(void (__fastcall **)(int, _DWORD **))(*(_DWORD *)v9 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v40,
(float)(*((float *)this + 130) - (float)(*((float *)this + 132) * 0.5)) + 40.0,
v7);
v10(v9, &v40);
memset(v37, 0, sizeof(v37));
std::string::__init(
v37,
"Accounts that need a look, highest pts first. Points come from blocked text and player reports.\n"
"\n"
"Review opens the account with everything reported and the actions. Bans and deletes do not close a case. P"
"ress Clear in the review when you are finished.\n"
"\n"
"Viewed by shows who opened the case in the last hour. It is a hint, not a lock.",
0x163u);
memset(v38, 0, sizeof(v38));
std::string::__init(v38, "Moderation Queue", 0x10u);
std::string::basic_string(v39, (int)v37);
v11 = InfoAlertButton::create((char *)v38, (int)v39, 1060320051);
std::string::~string((int)v39);
std::string::~string((int)v38);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v11);
v12 = *(void (__fastcall **)(int, _DWORD **))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v40,
(float)(*((float *)this + 130) - (float)(*((float *)this + 132) * 0.5)) + 90.0,
v7);
v12(v11, &v40);
v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v13);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v14 + 80))(v14, 1059313418);
v15 = CCMenuItemSpriteExtra::create(v14, 0, (int)this, (int)ReportQueuePopup::onRefresh, 0);
CCMenuItemSpriteExtra::setSizeMult(v15, 1.2);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v15);
v16 = *(void (__fastcall **)(int, _DWORD **))(*(_DWORD *)v15 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v40,
(float)(*((float *)this + 130) + (float)(*((float *)this + 132) * 0.5)) - 24.0,
v7);
v16(v15, &v40);
v40 = nullptr;
v41 = nullptr;
v42 = nullptr;
v41 = (_DWORD *)operator new(0x24u);
v17 = off_D1E2A4;
v40 = v41;
v42 = v41 + 9;
do
{
v18 = v41;
v19 = v17[1];
if ( v41 )
{
*v41 = 0;
v18[1] = 0;
v18[2] = 0;
v35 = v18;
v34 = v19;
v21 = strlen(v19);
std::string::__init(v35, v34, v21);
}
v41 += 3;
v20 = v17 + 2;
++v17;
}
while ( v20 != off_D1E2B4 );
v22 = Dropdown::create((int)this, *((_DWORD *)this + 111), (int)&v40, 0, 80.0, (int)this + 600, 0);
v23 = *((float *)this + 132);
*((_DWORD *)this + 155) = v22;
v24 = v22;
v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v22 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, (float)(*((float *)this + 130) + (float)(v23 * 0.5)) - 86.0, v7);
v25(v24, v36);
(*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 115) + 232))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 155),
2);
v26 = *((_DWORD *)this + 144);
v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, 1.0, 0.5);
v27(v26, v36);
(*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 144) + 536))(*((_DWORD *)this + 144), &unk_BF060C);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 144) + 80))(*((_DWORD *)this + 144), 1058239676);
v28 = *((_DWORD *)this + 144);
v29 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v28 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v36,
(float)(*((float *)this + 130) + (float)(*((float *)this + 132) * 0.5)) - 12.0,
(float)(*((float *)this + 131) + (float)(*((float *)this + 133) * 0.5)) - 14.0);
v30 = (cocos2d::CCNotificationCenter *)v29(v28, v36);
v31 = cocos2d::CCNotificationCenter::sharedNotificationCenter(v30);
v36[0] = ReportQueuePopup::onReportedContentChanged;
v36[1] = 0;
cocos2d::CCNotificationCenter::addObserver(
v31,
(int)this,
(int)ReportQueuePopup::onReportedContentChanged,
0,
"ReportedContentChangedNotification",
0);
PagedListPopup::loadPage((int)this, 0);
std::__vector_base::~__vector_base((int)&v40);
std::string::~string((int)v37);
}
return inited;
}