// // AdminActionConfirmPopup::init from 0xc3e008 to 0xc3eaf8 (2800 bytes) // // 2 xrefs: // > AdminActionConfirmPopup::create @ 0xc3eddc // > @ 0x713b0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:04:56 +0000 // __int64 __fastcall AdminActionConfirmPopup::init( __int64 a1, __int64 a2, int a3, char *a4, char *a5, ButtonSprite *a6, __int64 a7, __int64 a8, char a9) { __int64 v16; // x1 cocos2d::CCDirector *v17; // x0 _BOOL4 v18; // w23 __int64 v19; // x20 cocos2d::CCDirector *v20; // x0 __int64 v21; // x20 int v22; // w1 int v23; // w0 unsigned __int64 v24; // x0 float v25; // s8 int v26; // w28 float v27; // s11 float v28; // s9 float v29; // s14 float v30; // s8 float v31; // s0 float v32; // s11 unsigned __int8 v33; // w0 unsigned int v34; // w23 __int64 v35; // x4 unsigned __int8 v36; // w3 const void *v37; // x7 size_t v38; // x6 unsigned __int64 v39; // x1 void *v40; // x3 float v41; // s10 float v42; // s8 float v43; // s12 size_t v44; // x0 char v45; // w27 size_t v46; // x1 __int64 v47; // x26 const char *v48; // x2 const char *v49; // x6 float v50; // s11 float v51; // s8 __int64 v52; // x21 __int64 v53; // x21 cocos2d::CCNode *v54; // x28 void (__fastcall *v55)(__int64, __int64 *); // x26 const char *v56; // x6 const char *v57; // x5 __int64 v58; // x20 __int64 v59; // x20 cocos2d::CCNode *v60; // x21 void (__fastcall *v61)(__int64, __int64 *); // x19 float v63; // s11 __int64 v64; // x21 void (__fastcall *v65)(__int64, __int64 *); // x25 long double v66; // q1 __int64 v67; // x1 __int64 v68; // x2 __int64 v69; // x3 __int64 v70; // x21 void (__fastcall *v71)(__int64, __int64 *); // x24 void (__fastcall *v72)(__int64, __int64 *); // x2 void (__fastcall *v73)(__int64, __int64 *); // x24 int v74; // w2 __int64 v75; // x3 const char *v76; // x4 __int64 InputNode; // x21 void (__fastcall *v78)(__int64, __int64 *); // x24 __int64 v79; // x21 size_t v80; // x3 unsigned __int64 v81; // x1 char *v82; // x21 char *v83; // x26 size_t v84; // x3 cocos2d::CCLabelBMFont *v85; // x0 cocos2d::CCLabelBMFont *v86; // x21 void (__fastcall *v87)(cocos2d::CCLabelBMFont *, __int64 *); // x2 void (__fastcall *v88)(cocos2d::CCLabelBMFont *, __int64 *); // x24 void (__fastcall *v89)(__int64, __int64 *); // [xsp+B0h] [xbp+B0h] size_t v90; // [xsp+B0h] [xbp+B0h] _BOOL4 v91; // [xsp+B8h] [xbp+B8h] size_t v92; // [xsp+B8h] [xbp+B8h] int v94; // [xsp+CCh] [xbp+CCh] long double v95; // [xsp+D0h] [xbp+D0h] __int64 v96; // [xsp+E8h] [xbp+E8h] BYREF _BYTE v97[8]; // [xsp+F0h] [xbp+F0h] BYREF __int64 v98[2]; // [xsp+F8h] [xbp+F8h] BYREF char v99[8]; // [xsp+108h] [xbp+108h] BYREF size_t v100; // [xsp+110h] [xbp+110h] void *v101; // [xsp+118h] [xbp+118h] __int64 v102; // [xsp+120h] [xbp+120h] BYREF size_t v103; // [xsp+128h] [xbp+128h] void *v104; // [xsp+130h] [xbp+130h] if ( !a2 ) return 0; v16 = *(_BYTE *)a8 >> 1; if ( (*(_BYTE *)a8 & 1) != 0 ) v16 = *(_QWORD *)(a8 + 8); v17 = *(cocos2d::CCDirector **)(a7 + 8); v18 = v16 != 0; v91 = v18; v19 = (__int64)v17 - *(_QWORD *)a7; v20 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v17); v21 = v19 >> 2; cocos2d::CCDirector::getWinSize(&v96, v20); if ( v18 ) v22 = 144; else v22 = 126; if ( a9 ) v23 = 30; else v23 = 0; v24 = (unsigned int)(v22 + v23); if ( (int)v21 <= 0 ) { v25 = (float)(int)v24; v26 = v21; v27 = (float)(int)v21; v94 = 0; v29 = 1.0; v28 = 24.0; } else { v24 = (unsigned int)(v24 + 26); v25 = (float)(int)v24; if ( (int)v21 <= 5 ) { v26 = v21; v94 = 0; } else { v94 = 1; v24 = (_DWORD)v21 + 1 + ((unsigned int)(v21 + 1) >> 31); v26 = ((int)v21 + 1) / 2; if ( v26 <= 0 ) { v27 = (float)v26; v29 = 1.0; v28 = 24.0; goto LABEL_16; } } v27 = (float)v26; v28 = (float)((float)(*((float *)&v96 + 1) - 20.0) - v25) / (float)v26; if ( v28 <= 12.0 ) { v28 = 12.0; v29 = 0.5; } else if ( v28 < 24.0 ) { v29 = v28 / 24.0; } else { v28 = 24.0; v29 = 1.0; } } LABEL_16: v30 = v25 + (float)(v28 * v27); FLAlertLayer::keyboardRaise((FLAlertLayer *)v24, v30, (float)(290.0 - v30) * 0.5); v32 = v31; v33 = SetupTriggerPopup::init((SetupTriggerPopup *)a1, nullptr, nullptr, 340.0, v30, 1u, v31); v34 = v33; if ( !v33 ) return 0; v35 = a1 + 1032; *(_QWORD *)(a1 + 1016) = a2; *(_DWORD *)(a1 + 1024) = a3; if ( a8 == a1 + 1032 ) goto LABEL_26; if ( (*(_BYTE *)a8 & 1) != 0 ) { v36 = *(_BYTE *)(a1 + 1032); v37 = *(const void **)(a8 + 16); v38 = *(_QWORD *)(a8 + 8); if ( (v36 & 1) != 0 ) goto LABEL_20; LABEL_49: if ( v38 <= 0x16 ) { v40 = (void *)(a1 + 1033); goto LABEL_22; } v69 = v36 >> 1; v39 = 22; LABEL_51: std::string::__grow_by_and_replace(a1 + 1032, v39, v38 - v39, v69, 0, v69, v38, v37); goto LABEL_26; } v36 = *(_BYTE *)(a1 + 1032); v37 = (const void *)(a8 + 1); v38 = *(_BYTE *)a8 >> 1; if ( (v36 & 1) == 0 ) goto LABEL_49; LABEL_20: v39 = (*(_QWORD *)(a1 + 1032) & 0xFFFFFFFFFFFFFFFELL) - 1; if ( v38 > v39 ) { v69 = *(_QWORD *)(a1 + 1040); goto LABEL_51; } v40 = *(void **)(a1 + 1048); LABEL_22: if ( v38 ) { v90 = v38; v40 = memmove(v40, v37, v38); v35 = a1 + 1032; v38 = v90; } *((_BYTE *)v40 + v38) = 0; if ( (*(_BYTE *)(a1 + 1032) & 1) != 0 ) *(_QWORD *)(v35 + 8) = v38; else *(_BYTE *)(a1 + 1032) = 2 * v38; LABEL_26: v102 = 0; v41 = v32 + (float)(*((float *)&v96 + 1) * 0.5); v103 = 0; v42 = v30 * 0.5; v104 = nullptr; v43 = *(float *)&v96 * 0.5; v44 = strlen(a4); std::string::__init(&v102, a4, v44); SetupTriggerPopup::addTitle(a1, (__int64)&v102); if ( (v102 & 1) != 0 ) operator delete(v104); v45 = *a5; v102 = 0; v103 = 0; v104 = nullptr; if ( (v45 & 1) != 0 ) { std::string::__init(&v102, *((void **)a5 + 2), *((_QWORD *)a5 + 1)); } else { v104 = *((void **)a5 + 2); v46 = *((_QWORD *)a5 + 1); v102 = *(_QWORD *)a5; v103 = v46; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, 0.5, 0.5); v47 = TextArea::create((char *)&v102, "chatFont.fnt", (const cocos2d::CCPoint *)v98, 0, 0, 1.0, 300.0, 20.0); if ( (v102 & 1) != 0 ) operator delete(v104); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 160LL))(v47, 0.9); v89 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, v43, (float)(v42 + v41) - 52.0); v89(v47, v98); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v47, 1); v50 = (float)((float)(v42 + v41) - 52.0) - 32.0; if ( !v91 ) goto LABEL_33; GameToolbox::singleLineSnippet(a8, 0x3Cu, (__int64)&v102); if ( (v102 & 1) != 0 ) { v80 = v103; v81 = (v102 & 0xFFFFFFFFFFFFFFFELL) - 1; if ( v81 - v103 > 7 ) { v82 = (char *)v104; LABEL_61: v83 = "Reason: "; if ( v80 ) { if ( v82 <= "Reason: " && &v82[v80] > "Reason: " ) v83 = ""; v92 = v80; memmove(v82 + 8, v82, v80); v80 = v92; } v84 = v80 + 8; *(_QWORD *)v82 = *(_QWORD *)v83; if ( (v102 & 1) != 0 ) v103 = v84; else LOBYTE(v102) = 2 * v84; v82[v84] = 0; goto LABEL_69; } } else { v80 = (unsigned __int8)v102 >> 1; v81 = 22; v82 = (char *)&v102 + 1; if ( 22 - v80 > 7 ) goto LABEL_61; } std::string::__grow_by_and_replace((__int64)&v102, v81, v80 + 8 - v81, v80, 0, 0, 8u, "Reason: "); LABEL_69: *(_QWORD *)v99 = v102; if ( (v102 & 1) != 0 ) v85 = (cocos2d::CCLabelBMFont *)v104; else v85 = (cocos2d::CCLabelBMFont *)&v99[1]; v100 = v103; v101 = v104; v86 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v85, "chatFont.fnt", v99); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, float))(*(_QWORD *)v86 + 160LL))(v86, 0.55); v87 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v86 + 1072LL); LOWORD(v98[0]) = -11521; BYTE2(v98[0]) = 60; v87(v86, v98); cocos2d::CCLabelBMFont::limitLabelWidth(v86, 300.0, 0.55, 0.3); v88 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v86 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, v43, v50); v88(v86, v98); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v86, 1); v50 = v50 - 18.0; if ( (v99[0] & 1) != 0 ) operator delete(v101); LABEL_33: if ( a9 ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v98, 0.0, 0.0, 40.0, 40.0); v70 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v98); v71 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v70 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v98, 300.0, 26.0); v71(v70, v98); v72 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v70 + 960LL); LOWORD(v98[0]) = 13405; BYTE2(v98[0]) = 31; v72(v70, v98); v73 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v70 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, v43, v50 - 10.0); v73(v70, v98); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v70, 0); InputNode = GameToolbox::createInputNode( (GameToolbox *)"Reason (optional)", 288.0, 26.0, (const char *)off_F8 + 7, v74, v75, v76); *(_QWORD *)(a1 + 1056) = InputNode; v78 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)InputNode + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, v43, v50 - 10.0); v78(InputNode, v98); CCTextInputNode::setMaxLabelScale(*(CCTextInputNode **)(a1 + 1056), 0.9); CCTextInputNode::setMaxLabelWidth(*(CCTextInputNode **)(a1 + 1056), 284.0); v79 = *(_QWORD *)(a1 + 1056); v102 = 0; v103 = 0; v104 = nullptr; std::string::__init(&v102, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,!?'\"-:;()/", 0x4Bu); CCTextInputNode::setAllowedChars(v79, (__int64)&v102); if ( (v102 & 1) != 0 ) operator delete(v104); CCTextInputNode::setLabelPlaceholderScale(*(CCTextInputNode **)(a1 + 1056), 0.8); *(_QWORD *)(*(_QWORD *)(a1 + 1056) + 584LL) = a1 + 544; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1056), 5); v50 = v50 - 30.0; } if ( (int)v21 > 0 ) { v63 = v50 - 5.0; v64 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Categories (optional):", "goldFont.fnt", v48); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v64 + 160LL))(v64, 0.45); v65 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v64 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v98, v43, v63); v65(v64, v98); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v64, 1); *(float *)&v66 = v63 - v28; if ( a7 != a1 + 1064 ) { v95 = v66; std::vector::assign((__int64 *)(a1 + 1064), *(char **)a7, *(_QWORD *)(a7 + 8)); v66 = v95; } v67 = *(_QWORD *)(a1 + 552); v68 = *(_QWORD *)(a1 + 584); if ( v94 ) ReportPopup::buildReasonRows( a1 + 1064, v67, v68, a1, AdminActionConfirmPopup::onCategoryToggle, 0, a1 + 1088, (unsigned int)v26, v43 - 140.0, v66, v28, v29 * 0.6, v29 * 0.34, 136.0, 164.0); else ReportPopup::buildReasonRows( a1 + 1064, v67, v68, a1, AdminActionConfirmPopup::onCategoryToggle, 0, a1 + 1088, 0, v43 - 90.0, v66, v28, v29 * 0.6, v29 * 0.42, 210.0, 0.0); } v51 = (float)(v41 - v42) + 24.0; v52 = ButtonSprite::create( (ButtonSprite *)"Cancel", (const char *)off_50, 0, 1, 0.6, "bigFont.fnt", "GJ_button_01.png", v49, 28.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v52 + 160LL))(v52, 0.9); v53 = CCMenuItemSpriteExtra::create(v52, 0, a1, 1368, 1); CCMenuItemSpriteExtra::setSizeMult(v53, 1.1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v53); v54 = *(cocos2d::CCNode **)(a1 + 552); v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v97, v43 - 60.0, v51); cocos2d::CCNode::convertToNodeSpace(v98, v54, (const cocos2d::CCPoint *)v97); v55(v53, v98); v57 = "GJ_button_01.png"; if ( (int)v21 > 0 ) v57 = "GJ_button_06.png"; v58 = ButtonSprite::create(a6, (const char *)off_50, 0, 1, 0.6, "bigFont.fnt", v57, v56, 28.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v58 + 160LL))(v58, 0.9); v59 = CCMenuItemSpriteExtra::create(v58, 0, a1, (__int64)AdminActionConfirmPopup::onConfirm, 0); CCMenuItemSpriteExtra::setSizeMult(v59, 1.1); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v59); v60 = *(cocos2d::CCNode **)(a1 + 552); v61 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v59 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v97, v43 + 60.0, v51); cocos2d::CCNode::convertToNodeSpace(v98, v60, (const cocos2d::CCPoint *)v97); v61(v59, v98); return v34; }