// // AdminActionConfirmPopup::init from 0x7312f8 to 0x731aa0 (1960 bytes) // // 1 xrefs: // > AdminActionConfirmPopup::create @ 0x731d18 // // 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:20 +0000 // GameManager *__fastcall AdminActionConfirmPopup::init( int a1, int a2, int a3, const char *a4, int a5, ButtonSprite *a6, char **a7, unsigned __int8 *a8, char a9) { GameManager *v12; // r9 int v13; // r2 int v14; // r2 int v15; // r3 int v16; // r5 int v17; // r2 int v18; // r3 float v19; // r2 int v20; // r3 float v21; // s15 float v22; // s16 float v23; // s17 float v24; // s16 float v25; // s20 int v26; // r10 int v27; // r3 const void *v28; // r1 size_t v29; // r10 unsigned int v30; // r2 void *v31; // r3 int v32; // r3 float v33; // s20 size_t v34; // r0 float v35; // s19 float v36; // s18 int v37; // r10 const char *v38; // r2 float v39; // s16 _DWORD *v40; // r0 int v41; // r1 cocos2d::CCLabelBMFont *v42; // r2 const char *v43; // r2 cocos2d::CCLabelBMFont *v44; // r0 cocos2d::CCLabelBMFont *v45; // r6 void (__fastcall *v46)(cocos2d::CCLabelBMFont *, _DWORD *); // r3 void (__fastcall *v47)(cocos2d::CCLabelBMFont *, _DWORD *); // r11 int v48; // r11 void (__fastcall *v49)(int, _DWORD *); // r10 void (__fastcall *v50)(int, _DWORD *); // r3 void (__fastcall *v51)(int, _DWORD *); // r10 int InputNode; // r0 int v53; // r11 void (__fastcall *v54)(int, _DWORD *); // r10 int v55; // r10 float v56; // s16 int v57; // r6 void (__fastcall *v58)(int, _DWORD *); // r10 float v59; // s16 int v60; // r2 int v61; // r7 float v62; // s15 float v63; // s18 ButtonSprite *v64; // r7 int v65; // r10 char *v66; // r3 ButtonSprite *v67; // r5 int v68; // r5 const cocos2d::CCPoint *v69; // r8 void (__fastcall *v70)(int, _BYTE *); // r6 int v72; // [sp+0h] [bp-B4h] float v73; // [sp+10h] [bp-A4h] float v74; // [sp+10h] [bp-A4h] int v75; // [sp+34h] [bp-80h] void (__fastcall *v76)(int, _DWORD *); // [sp+34h] [bp-80h] cocos2d::CCPoint *v77; // [sp+38h] [bp-7Ch] cocos2d::CCPoint *v78; // [sp+38h] [bp-7Ch] void (__fastcall *v80)(int, _DWORD *); // [sp+44h] [bp-70h] float v81; // [sp+54h] [bp-60h] BYREF float v82; // [sp+58h] [bp-5Ch] _BYTE v83[8]; // [sp+5Ch] [bp-58h] BYREF _BYTE v84[8]; // [sp+64h] [bp-50h] BYREF void (__fastcall *v85)(AdminActionConfirmPopup *, cocos2d::CCObject *); // [sp+6Ch] [bp-48h] int v86; // [sp+70h] [bp-44h] void (__fastcall *v87)(AdminActionConfirmPopup *, cocos2d::CCObject *); // [sp+74h] [bp-40h] int v88; // [sp+78h] [bp-3Ch] int v89; // [sp+7Ch] [bp-38h] int v90; // [sp+80h] [bp-34h] _DWORD v91[2]; // [sp+84h] [bp-30h] BYREF cocos2d::CCLabelBMFont *v92; // [sp+8Ch] [bp-28h] int v93; // [sp+90h] [bp-24h] BYREF int v94; // [sp+94h] [bp-20h] int v95; // [sp+98h] [bp-1Ch] _DWORD v96[4]; // [sp+9Ch] [bp-18h] BYREF if ( !a2 ) return nullptr; v13 = *a8; if ( (v13 & 1) != 0 ) v14 = *((_DWORD *)a8 + 1); else v14 = v13 >> 1; v15 = v14; if ( v14 ) v15 = 1; v77 = (cocos2d::CCPoint *)v15; v16 = (a7[1] - *a7) >> 2; cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)a1); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v81); v17 = v77 ? 144 : 126; v18 = a9 ? 30 : 0; LODWORD(v19) = v17 + v18; v20 = v16 <= 0 ? 0 : 26; v21 = (float)(v20 + LODWORD(v19)); if ( v16 <= 5 ) { v75 = v16; } else { LODWORD(v19) = v16 + 1 + ((unsigned int)(v16 + 1) >> 31); v75 = (v16 + 1) / 2; } v22 = (float)v75; if ( v75 <= 0 ) { v23 = 24.0; } else { v23 = (float)((float)(v82 - 20.0) - v21) / v22; if ( v23 <= 12.0 ) { v23 = 12.0; } else if ( v23 >= 24.0 ) { v23 = 24.0; } } v24 = v21 + (float)(v22 * v23); v25 = FLAlertLayer::keyboardRaise((FLAlertLayer *)LODWORD(v24), (float)(290.0 - v24) * 0.5, v19); v12 = SetupTriggerPopup::init((SetupTriggerPopup *)a1, nullptr, nullptr, 340.0, v24, (_BYTE *)&dword_0 + 1, v25); if ( !v12 ) return nullptr; *(_DWORD *)(a1 + 712) = a2; *(_DWORD *)(a1 + 716) = a3; if ( (unsigned __int8 *)(a1 + 720) != a8 ) { v26 = *a8; v27 = *(unsigned __int8 *)(a1 + 720); if ( (v26 & 1) != 0 ) { v28 = *((const void **)a8 + 2); v29 = *((_DWORD *)a8 + 1); } else { v28 = a8 + 1; v29 = v26 >> 1; } if ( (v27 & 1) != 0 ) { v30 = (*(_DWORD *)(a1 + 720) & 0xFFFFFFFE) - 1; if ( v30 >= v29 ) { v31 = *(void **)(a1 + 728); LABEL_37: if ( v29 ) v31 = memmove(v31, v28, v29); *((_BYTE *)v31 + v29) = 0; if ( (*(_BYTE *)(a1 + 720) & 1) != 0 ) *(_DWORD *)(a1 + 724) = v29; else *(_BYTE *)(a1 + 720) = 2 * v29; goto LABEL_44; } v32 = *(_DWORD *)(a1 + 724); } else { if ( v29 <= 0xA ) { v31 = (void *)(a1 + 721); goto LABEL_37; } v32 = v27 >> 1; v30 = 10; } std::string::__grow_by_and_replace(a1 + 720, v30, v29 - v30, v32, 0, v32, v29, v28); } LABEL_44: v93 = 0; v94 = 0; v95 = 0; v33 = v25 + (float)(v82 * 0.5); v34 = strlen(a4); v35 = v81 * 0.5; v36 = v24 * 0.5; std::string::__init(&v93, a4, v34); SetupTriggerPopup::addTitle(a1, (unsigned __int8 *)&v93); std::string::~string((int)&v93); std::string::basic_string(&v93, a5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, 0.5, 0.5); v37 = TextArea::create( (int)&v93, "chatFont.fnt", 1065353216, 1133903872, (const cocos2d::CCPoint *)v96, 1101004800, 0, 0); std::string::~string((int)&v93); (*(void (__fastcall **)(int, int))(*(_DWORD *)v37 + 80))(v37, 1063675494); v80 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v37 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, v35, (float)(v33 + (float)(v24 * 0.5)) - 52.0); v80(v37, v96); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v37, 1); v39 = (float)((float)(v33 + (float)(v24 * 0.5)) - 52.0) - 32.0; if ( v77 ) { GameToolbox::singleLineSnippet((unsigned __int8 *)&v93, (int)a8, 0x3Cu); v40 = std::string::insert(&v93, 0, "Reason: "); v41 = v40[1]; v42 = (cocos2d::CCLabelBMFont *)v40[2]; v91[0] = *v40; v91[1] = v41; v92 = v42; *v40 = 0; v40[1] = 0; v40[2] = 0; std::string::~string((int)&v93); if ( (v91[0] & 1) != 0 ) v44 = v92; else v44 = (cocos2d::CCLabelBMFont *)((char *)v91 + 1); v45 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v44, "chatFont.fnt", v43); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v45 + 80))(v45, 1057803469); v46 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v45 + 536); LOWORD(v96[0]) = -11521; BYTE2(v96[0]) = 60; v46(v45, v96); cocos2d::CCLabelBMFont::limitLabelWidth(v45, 300.0, 0.55, 0.3); v47 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v45 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, v35, (float)((float)(v33 + v36) - 52.0) - 32.0); v47(v45, v96); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), v45, 1); v39 = v39 - 18.0; std::string::~string((int)v91); } if ( a9 ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v96, 0.0, 0.0, 40.0, 40.0); v48 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v96); v49 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v48 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v96, 300.0, 26.0); v49(v48, v96); v50 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v48 + 480); LOWORD(v96[0]) = 13405; BYTE2(v96[0]) = 31; v50(v48, v96); v51 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v48 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, v35, v39 - 10.0); v51(v48, v96); (*(void (__fastcall **)(_DWORD, int, _DWORD))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v48, 0); InputNode = GameToolbox::createInputNode( (GameToolbox *)0x43900000, 26.0, COERCE_FLOAT("Reason (optional)"), (const char *)&dword_FC + 3, v72); *(_DWORD *)(a1 + 732) = InputNode; v53 = InputNode; v54 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)InputNode + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, v35, v39 - 10.0); v54(v53, v96); CCTextInputNode::setMaxLabelScale(*(_DWORD *)(a1 + 732), 0.9); CCTextInputNode::setMaxLabelWidth(*(_DWORD *)(a1 + 732), 284.0); v55 = *(_DWORD *)(a1 + 732); v93 = 0; v94 = 0; v95 = 0; std::string::__init(&v93, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,!?'\"-:;()/", 0x4Bu); CCTextInputNode::setAllowedChars(v55, (unsigned __int8 *)&v93); std::string::~string((int)&v93); CCTextInputNode::setLabelPlaceholderScale(*(_DWORD *)(a1 + 732), 0.8); *(_DWORD *)(*(_DWORD *)(a1 + 732) + 420) = a1 + 440; (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 732), 5); v39 = v39 - 30.0; } if ( v16 > 0 ) { v56 = v39 - 5.0; v57 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Categories (optional):", "goldFont.fnt", v38); (*(void (__fastcall **)(int, int))(*(_DWORD *)v57 + 80))(v57, 1055286886); v58 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v57 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, v35, v56); v58(v57, v96); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v57, 1); v59 = v56 - v23; if ( (char **)(a1 + 736) != a7 ) std::vector::assign((_DWORD *)(a1 + 736), *a7, a7[1]); v60 = *(_DWORD *)(a1 + 460); v61 = *(_DWORD *)(a1 + 444); v62 = v23 / 24.0; if ( v16 <= 5 ) { v87 = AdminActionConfirmPopup::onCategoryToggle; v88 = 0; ReportPopup::buildReasonRows( a1 + 736, v61, v60, a1, (int)AdminActionConfirmPopup::onCategoryToggle, 0, v35 - 90.0, v59, v23, COERCE_INT(v62 * 0.6), v62 * 0.42, 210.0, a1 + 748, 0, 0.0); } else { v85 = AdminActionConfirmPopup::onCategoryToggle; v86 = 0; ReportPopup::buildReasonRows( a1 + 736, v61, v60, a1, (int)AdminActionConfirmPopup::onCategoryToggle, 0, v35 - 140.0, v59, v23, COERCE_INT(v62 * 0.6), v62 * 0.34, 136.0, a1 + 748, v75, 164.0); } } v63 = (float)(v33 - v36) + 24.0; v64 = ButtonSprite::create( (ButtonSprite *)"Cancel", (const char *)&dword_50, 0, 0.6, 1, "bigFont.fnt", "GJ_button_01.png", COERCE_CONST_CHAR_(28.0), v73); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v64 + 80))(v64, 1063675494); v89 = 684; v90 = 1; v65 = CCMenuItemSpriteExtra::create((int)v64, 0, a1, 684, 1); CCMenuItemSpriteExtra::setSizeMult(v65, 1.1); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v65); v76 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v65 + 92); v78 = *(cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, v35 - 60.0, v63); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v96, v78); v76(v65, v96); if ( v16 > 0 ) v66 = "GJ_button_06.png"; else v66 = "GJ_button_01.png"; v67 = ButtonSprite::create(a6, (const char *)&dword_50, 0, 0.6, 1, "bigFont.fnt", v66, COERCE_CONST_CHAR_(28.0), v74); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v67 + 80))(v67, 1063675494); v96[0] = AdminActionConfirmPopup::onConfirm; v96[1] = 0; v68 = CCMenuItemSpriteExtra::create((int)v67, 0, a1, (int)AdminActionConfirmPopup::onConfirm, 0); CCMenuItemSpriteExtra::setSizeMult(v68, 1.1); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v68); v69 = *(const cocos2d::CCPoint **)(a1 + 444); v70 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v68 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, v35 + 60.0, v63); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v84, v69); v70(v68, v84); return v12; }