//
// MoveStepPopup::onBuildWindowContent from 0x10098d880 to 0x10098db72 (754 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bd58d0
//
// 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:07 +0000
//
void __fastcall MoveStepPopup::onBuildWindowContent(_QWORD *a1)
{
__int64 v2; // r14
char *v3; // rax
const std::string::value_type *CString; // rax
__int64 v5; // rdi
__int64 v6; // rax
__int64 v7; // r14
unsigned int *v8; // rax
char *v9; // r14
void *v10; // r14
double v11; // [rsp+0h] [rbp-D0h] BYREF
unsigned __int64 v12; // [rsp+8h] [rbp-C8h] BYREF
int v13; // [rsp+10h] [rbp-C0h] BYREF
__int128 v14; // [rsp+18h] [rbp-B8h]
void *__p; // [rsp+28h] [rbp-A8h]
__int64 v16; // [rsp+30h] [rbp-A0h] BYREF
int v17; // [rsp+38h] [rbp-98h]
char v18; // [rsp+3Ch] [rbp-94h]
__int64 v19; // [rsp+40h] [rbp-90h]
char v20; // [rsp+48h] [rbp-88h]
__int128 v21; // [rsp+4Ch] [rbp-84h]
__int64 v22; // [rsp+5Ch] [rbp-74h]
__int16 v23; // [rsp+64h] [rbp-6Ch]
int v24; // [rsp+68h] [rbp-68h]
char v25; // [rsp+70h] [rbp-60h]
_BYTE v26[23]; // [rsp+71h] [rbp-5Fh] BYREF
int v27; // [rsp+88h] [rbp-48h]
std::string v28; // [rsp+90h] [rbp-40h] BYREF
float v29[2]; // [rsp+A8h] [rbp-28h] BYREF
unsigned __int64 v30[4]; // [rsp+B0h] [rbp-20h] BYREF
sub_100900430(v29);
v2 = a1[128];
sub_100278270((__int64)&v13, 15.0, 15.0, (__m128)0x42480000u, (__m128)0x42480000u);
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v2 + 1032LL))(v2, &v13);
v13 = 0;
v14 = 0;
__p = nullptr;
sub_1002782D0(&v16, &qword_100BE79B8);
v17 = 1065353216;
v18 = 0;
v19 = 0x600000002LL;
v20 = 1;
v21 = 0;
v22 = 0x200000000LL;
v23 = 0;
v24 = 1116471296;
v25 = 24;
strcpy(v26, "goldFont.fnt");
v27 = 0;
v28.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)6;
*(_DWORD *)((char *)&v28.__r_.__value_.__l.0 + 1) = 7173454;
v13 = -1;
sub_100278250((float *)v30, v29[0] + -16.0, v29[1]);
sub_100278300(&v16, v30);
v17 = 1058642330;
v18 = 1;
v20 = 1;
v19 = 0x300000001LL;
HIDWORD(v22) = 2;
*(_QWORD *)&v21 = 0x439600003C23D70ALL;
v3 = sub_10088E820("%g", 10.0);
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v3);
std::string::assign(&v28, CString);
SetupTriggerPopup::createValueControlAdvanced_1((__int64)a1, &v13);
sub_1002235B0((__int64)a1, -1, 1);
v5 = a1[95];
if ( v5 )
{
v6 = cocos2d::CCDictionary::objectForKey_1(v5, -1);
if ( v6 )
{
v7 = a1[69];
v8 = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 192LL))(v6);
cocos2d::CCNode::convertToNodeSpace((double *)v30, v7, v8);
v9 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_trashBtn_001.png", 10.0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v9 + 160LL))(v9, 0.5);
v10 = CCMenuItemSpriteExtra::create((__int64)v9, 0, (__int64)a1, (__int64)MoveStepPopup::onReset, 0);
(*(void (__fastcall **)(_QWORD, void *))(*(_QWORD *)a1[69] + 456LL))(a1[69], v10);
sub_100278250((float *)&v12, 66.0, 0.0);
sub_100278350(&v11, v30, &v12);
(*(void (__fastcall **)(void *, double *))(*(_QWORD *)v10 + 184LL))(v10, &v11);
}
}
if ( (*(_BYTE *)&v28.__r_.__value_.__s.0 & 1) != 0 )
{
operator delete(v28.__r_.__value_.__l.__data_);
if ( (v25 & 1) == 0 )
{
LABEL_6:
if ( (v14 & 1) == 0 )
return;
goto LABEL_7;
}
}
else if ( (v25 & 1) == 0 )
{
goto LABEL_6;
}
operator delete(*(void **)&v26[15]);
if ( (v14 & 1) == 0 )
return;
LABEL_7:
operator delete(__p);
}