//
// sub_1400A7300 from 0x1400a7300 to 0x1400a7986 (1670 bytes)
//
// 7 xrefs:
// > AccountBanPopup::init @ 0x1400a709f
// > AccountBanPopup::init @ 0x1400a70fd
// > AccountBanPopup::init @ 0x1400a715b
// > AccountBanPopup::init @ 0x1400a71b9
// > AccountBanPopup::init @ 0x1400a7220
// > AccountBanPopup::init @ 0x1400a728e
// > ??> @ 0x140913238
//
// This function is hookable on this platform (idp: pc, 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 11:26:08 +0000
//
// Hidden C++ exception states: #wind=2
float *__fastcall sub_1400A7300(
float **a1,
int a2,
unsigned int a3,
int a4,
__int64 a5,
const char *a6,
__int64 a7,
__int64 a8,
char a9,
__int64 a10,
__int64 a11)
{
__int64 v12; // rbp
cocos2d::CCArray *PageContainer; // r12
float v15; // xmm8_4
__int64 v16; // r14
__int64 v17; // rax
__int64 v18; // rsi
float v19; // xmm7_4
float v20; // xmm6_4
__int64 v21; // rax
struct cocos2d::CCObject *v22; // rdi
__int64 v23; // rbx
__int64 v24; // rax
struct cocos2d::CCObject *v25; // rsi
__int64 v26; // rbx
__int64 v27; // rax
__int64 v28; // rbx
__int64 v29; // rax
struct cocos2d::CCObject *v30; // rdi
__int64 v31; // rbx
__int64 v32; // rax
__int64 v33; // rbx
float v34; // xmm6_4
double v35; // xmm0_8
__int64 v36; // rax
__int64 v37; // rax
float *v38; // rdi
__int64 v39; // rbx
__int64 v40; // rax
cocos2d::CCObject *v41; // rbx
cocos2d::CCObject *v42; // rsi
float v43; // xmm9_4
__int64 v44; // rdi
float v45; // xmm8_4
__int64 v46; // rbx
__int64 v47; // rax
__int64 v48; // rax
cocos2d::CCObject *v49; // rbx
cocos2d::CCObject *v50; // rsi
float *v51; // rax
__int64 v52; // rdi
__int64 v53; // rbx
__int64 v54; // rax
__int64 v55; // rax
float *result; // rax
char v57[8]; // [rsp+50h] [rbp-98h] BYREF
char v58[88]; // [rsp+58h] [rbp-90h] BYREF
void *v59; // [rsp+F0h] [rbp+8h] BYREF
__int16 v60; // [rsp+F8h] [rbp+10h] BYREF
char v61; // [rsp+FAh] [rbp+12h]
v12 = a2;
PageContainer = (cocos2d::CCArray *)SetupTriggerPopup::getPageContainer(*a1, a3);
v15 = *a1[1] - (float)((float)(*a1[3] + *a1[2]) * (float)a4);
v16 = *((_QWORD *)*a1 + 73);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v59, *a1[5], v15);
v18 = v17;
v19 = *a1[2];
v20 = *a1[4];
v21 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)v58, 0.0, 0.0, 80.0, 80.0);
v22 = (struct cocos2d::CCObject *)cocos2d::extension::CCScale9Sprite::create("GJ_square05.png", v21);
v23 = *(_QWORD *)v22;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v57, v20, v19);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v23 + 312))(v22, v24);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v22 + 184LL))(v22, v18);
(*(void (__fastcall **)(__int64, struct cocos2d::CCObject *, __int64))(*(_QWORD *)v16 + 456LL))(
v16,
v22,
0xFFFFFFFFLL);
cocos2d::CCArray::addObject(PageContainer, v22);
v25 = cocos2d::CCLabelBMFont::create(a6, (const char *)&qword_140704F78);
v26 = *(_QWORD *)v25;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v59, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v26 + 288))(v25, v27);
(**((void (__fastcall ***)(__int64, __int64))v25 + 46))((__int64)v25 + 368, a5);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v25 + 160LL))(v25);
v28 = *(_QWORD *)v25;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v59, (float)(*a1[5] - (float)(*a1[4] * 0.5)) + 10.0, v15);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v28 + 184))(v25, v29);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**((_QWORD **)*a1 + 73) + 456LL))(
*((_QWORD *)*a1 + 73),
v25,
1);
cocos2d::CCArray::addObject(PageContainer, v25);
v30 = cocos2d::CCLabelBMFont::create(&byte_1406ED6E0, "chatFont.fnt");
v31 = *(_QWORD *)v30;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v59, 0.0, 0.5);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v31 + 288))(v30, v32);
(*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v30 + 160LL))(v30);
v60 = 30975;
v61 = 120;
(**((void (__fastcall ***)(__int64, __int16 *))v30 + 46))((__int64)v30 + 368, &v60);
v33 = *(_QWORD *)v30;
v34 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *, void **))(*(_QWORD *)v25 + 328LL))(v25, &v59);
v35 = (*(double (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v25 + 216LL))(v25);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v57, (float)(*(float *)&v35 + v34) + 8.0, v15);
(*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v33 + 184))(v30, v36);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**((_QWORD **)*a1 + 73) + 456LL))(
*((_QWORD *)*a1 + 73),
v30,
1);
cocos2d::CCArray::addObject(PageContainer, v30);
*(_QWORD *)&(*a1)[2 * v12 + 284] = v30;
if ( a9 )
{
v37 = (__int64)(*a1 + 254);
if ( !*a1 )
v37 = 0;
v38 = (float *)Dropdown::create((unsigned int)*a1, *((_QWORD *)*a1 + 69), (unsigned int)a1[6], 4, 1116733440, v37);
v38[126] = (float)(v38[125] + v38[125]) + (float)(v38[124] * 7.0);
v39 = *(_QWORD *)v38;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v59, *a1[7], v15);
(*(void (__fastcall **)(float *, __int64))(v39 + 184))(v38, v40);
(*(void (__fastcall **)(_QWORD, float *, __int64))(**((_QWORD **)*a1 + 73) + 456LL))(*((_QWORD *)*a1 + 73), v38, 2);
cocos2d::CCArray::addObject(PageContainer, (struct cocos2d::CCObject *)v38);
*(_QWORD *)&(*a1)[2 * v12 + 276] = v38;
}
v59 = operator new(0x2C8u);
v41 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v59);
if ( v41 )
{
if ( ButtonSprite::init_1(
(__int64)v41,
a11,
48,
0,
1056964608,
1,
&qword_140704F78,
(__int64)"GJ_button_01.png",
1103101952) )
{
cocos2d::CCObject::autorelease(v41);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v41 + 8LL))(v41, 1);
v41 = nullptr;
}
}
v42 = CCMenuItemSpriteExtra::create((int)v41, 0, (int)*a1, a8);
*((_DWORD *)v42 + 93) = 1066192077;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)*a1 + 69) + 464LL))(*((_QWORD *)*a1 + 69), v42);
v43 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v41 + 320LL))(v41);
v44 = *(_QWORD *)v42;
v45 = v15 + 1.0;
v46 = *((_QWORD *)*a1 + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v59, *a1[8] - (float)(v43 * 0.5), v45);
cocos2d::CCNode::convertToNodeSpace(v46, v57, v47);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v44 + 184))(v42, v48);
cocos2d::CCArray::addObject(PageContainer, v42);
*(_QWORD *)&(*a1)[2 * v12 + 312] = v42;
v59 = operator new(0x2C8u);
v49 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v59);
if ( v49 )
{
if ( ButtonSprite::init_1(
(__int64)v49,
a10,
48,
0,
1056964608,
1,
&qword_140704F78,
(__int64)"GJ_button_06.png",
1103101952) )
{
cocos2d::CCObject::autorelease(v49);
}
else
{
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v49 + 8LL))(v49, 1);
v49 = nullptr;
}
}
v50 = CCMenuItemSpriteExtra::create((int)v49, 0, (int)*a1, a7);
*((_DWORD *)v50 + 93) = 1066192077;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)*a1 + 69) + 464LL))(*((_QWORD *)*a1 + 69), v50);
v51 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v49 + 320LL))(v49);
v52 = *(_QWORD *)v50;
v53 = *((_QWORD *)*a1 + 69);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v59, (float)((float)(*a1[8] - v43) - 8.0) - (float)(*v51 * 0.5), v45);
cocos2d::CCNode::convertToNodeSpace(v53, v57, v54);
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v52 + 184))(v50, v55);
cocos2d::CCArray::addObject(PageContainer, v50);
result = *a1;
*(_QWORD *)&(*a1)[2 * v12 + 298] = v50;
return result;
}