//
// sub_10098EDF0 from 0x10098edf0 to 0x10098f351 (1377 bytes)
//
// 6 xrefs:
// > sub_10098E530 @ 0x10098eaf1
// > sub_10098E530 @ 0x10098eb51
// > sub_10098E530 @ 0x10098ebb1
// > sub_10098E530 @ 0x10098ec11
// > sub_10098E530 @ 0x10098ec78
// > sub_10098E530 @ 0x10098ece9
//
// 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 12:39:08 +0000
//
__int64 __fastcall sub_10098EDF0(
__int64 a1,
unsigned int a2,
unsigned int a3,
int a4,
int a5,
__int64 a6,
__int64 a7,
__int64 a8,
__int64 a9,
__int64 a10,
char a11,
__int64 a12,
__int64 a13)
{
__int64 v14; // rbx
__int64 v15; // r14
void *v16; // r13
void *v17; // r13
void *v18; // r12
__int64 v19; // r15
float *v20; // r14
char *v21; // r14
void *v22; // r13
__int64 v23; // r14
float v24; // xmm0_4
char *v25; // r14
void *v26; // r12
float *v27; // rax
__int64 v28; // r14
__int64 PageContainer; // [rsp+8h] [rbp-68h]
unsigned __int64 v31[2]; // [rsp+18h] [rbp-58h] BYREF
float v32; // [rsp+28h] [rbp-48h] BYREF
__int64 v33; // [rsp+30h] [rbp-40h]
__int16 v34; // [rsp+3Ch] [rbp-34h] BYREF
char v35; // [rsp+3Eh] [rbp-32h]
float v36; // [rsp+40h] [rbp-30h]
float v37; // [rsp+44h] [rbp-2Ch]
v33 = a6;
v34 = a5;
v35 = BYTE2(a5);
v14 = *(_QWORD *)a1;
PageContainer = SetupTriggerPopup::getPageContainer(*(_QWORD *)a1, a3);
v37 = (float)((float)a4 * -42.0) + **(float **)(a1 + 8);
sub_100278250(&v32, **(float **)(a1 + 40), v37);
v15 = *(_QWORD *)(v14 + 584);
sub_100278270((__int64)v31, 0.0, 0.0, (__m128)0x42A00000u, (__m128)0x42A00000u);
v16 = cocos2d::extension::CCScale9Sprite::create_2((__int64)"GJ_square05.png", v31);
sub_100278260((float *)v31, 386.0, 36.0);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v16 + 320LL))(v16, v31);
(*(void (__fastcall **)(void *, float *))(*(_QWORD *)v16 + 184LL))(v16, &v32);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)v15 + 464LL))(v15, v16, 0xFFFFFFFFLL);
sub_1007FEBF0(PageContainer, (__int64)v16);
v17 = cocos2d::CCLabelBMFont::create_3(v33, (__int64)"bigFont.fnt");
sub_100278250((float *)v31, 0.0, 0.5);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v17 + 296LL))(v17, v31);
(*(void (__fastcall **)(void *, __int16 *))(*(_QWORD *)v17 + 1072LL))(v17, &v34);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v17 + 160LL))(v17, 0.44999999);
v33 = a1;
sub_100278250((float *)v31, (float)(**(float **)(a1 + 40) + -193.0) + 10.0, v37);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v17 + 184LL))(v17, v31);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v14 + 584) + 464LL))(*(_QWORD *)(v14 + 584), v17, 1);
sub_1007FEBF0(PageContainer, (__int64)v17);
v18 = cocos2d::CCLabelBMFont::create_3((__int64)"", (__int64)"chatFont.fnt");
sub_100278250((float *)v31, 0.0, 0.5);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v18 + 296LL))(v18, v31);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v18 + 160LL))(v18, 0.41999999);
BYTE2(v31[0]) = 120;
LOWORD(v31[0]) = 30975;
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v18 + 1072LL))(v18, v31);
v36 = (*(float (__fastcall **)(void *))(*(_QWORD *)v17 + 224LL))(v17);
(*(void (__fastcall **)(float *, void *))(*(_QWORD *)v17 + 336LL))(&v32, v17);
sub_100278250((float *)v31, (float)(v36 + v32) + 8.0, v37);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v18 + 184LL))(v18, v31);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v14 + 584) + 464LL))(*(_QWORD *)(v14 + 584), v18, 1);
sub_1007FEBF0(PageContainer, (__int64)v18);
*(_QWORD *)(v14 + 8LL * a2 + 1144) = v18;
if ( a11 )
{
v19 = v33;
v20 = (float *)Dropdown::create(v14, *(_QWORD *)(v14 + 552), *(_QWORD *)(v33 + 48), 4, (int)v14 + 1032, 0, 72.0);
v20[122] = (float)(v20[120] * 7.0) + (float)(v20[121] + v20[121]);
sub_100278250((float *)v31, **(float **)(v19 + 56), v37);
(*(void (__fastcall **)(float *, unsigned __int64 *))(*(_QWORD *)v20 + 184LL))(v20, v31);
(*(void (__fastcall **)(_QWORD, float *, __int64))(**(_QWORD **)(v14 + 584) + 464LL))(
*(_QWORD *)(v14 + 584),
v20,
2);
sub_1007FEBF0(PageContainer, (__int64)v20);
*(_QWORD *)(v14 + 8LL * a2 + 1112) = v20;
}
v21 = ButtonSprite::create_1(a13, 0x30u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 24.0);
v22 = CCMenuItemSpriteExtra::create((__int64)v21, 0, v14, a9, a10);
CCMenuItemSpriteExtra::setSizeMult((__int64)v22, 1.1);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v14 + 552) + 456LL))(*(_QWORD *)(v14 + 552), v22);
v36 = *(float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v21 + 328LL))(v21);
v23 = *(_QWORD *)(v14 + 552);
v24 = **(float **)(v33 + 64) - (float)(v36 * 0.5);
v37 = v37 + 1.0;
sub_100278250(&v32, v24, v37);
cocos2d::CCNode::convertToNodeSpace((double *)v31, v23, (unsigned int *)&v32);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v22 + 184LL))(v22, v31);
sub_1007FEBF0(PageContainer, (__int64)v22);
*(_QWORD *)(v14 + 8LL * a2 + 1256) = v22;
v25 = ButtonSprite::create_1(a12, 0x30u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_06.png", 0.5, 24.0);
v26 = CCMenuItemSpriteExtra::create((__int64)v25, 0, v14, a7, a8);
CCMenuItemSpriteExtra::setSizeMult((__int64)v26, 1.1);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v14 + 552) + 456LL))(*(_QWORD *)(v14 + 552), v26);
v27 = (float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v25 + 328LL))(v25);
v28 = *(_QWORD *)(v14 + 552);
sub_100278250(&v32, (float)((float)(**(float **)(v33 + 64) - v36) + -8.0) - (float)(0.5 * *v27), v37);
cocos2d::CCNode::convertToNodeSpace((double *)v31, v28, (unsigned int *)&v32);
(*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v26 + 184LL))(v26, v31);
sub_1007FEBF0(PageContainer, (__int64)v26);
*(_QWORD *)(v14 + 8LL * a2 + 1200) = v26;
return a2;
}