//
// MoveStepPopup::onBuildWindowContent from 0x1402c9680 to 0x1402c991a (666 bytes)
//
// 2 xrefs:
// > ??> @ 0x140766fe8
// > ??> @ 0x14091dc78
//
// 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:29:23 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall MoveStepPopup::onBuildWindowContent(_QWORD *a1)
{
__int64 v2; // rax
__int64 *v3; // rdi
__int64 v4; // rbx
__int64 v5; // rax
__int64 v6; // rax
cocos2d::CCString *v7; // rax
char *CString; // rax
size_t v9; // r8
cocos2d::CCDictionary *v10; // rcx
struct cocos2d::CCObject *v11; // rax
__int64 v12; // rax
struct cocos2d::CCSprite *v13; // rax
int v14; // ebx
cocos2d::CCObject *v15; // rbx
__int64 v16; // rax
int v17[2]; // [rsp+30h] [rbp-D0h] BYREF
float v18[2]; // [rsp+38h] [rbp-C8h] BYREF
_BYTE v19[8]; // [rsp+40h] [rbp-C0h] BYREF
_BYTE v20[24]; // [rsp+48h] [rbp-B8h] BYREF
int v21; // [rsp+60h] [rbp-A0h] BYREF
_BYTE v22[32]; // [rsp+68h] [rbp-98h] BYREF
_BYTE v23[8]; // [rsp+88h] [rbp-78h] BYREF
int v24; // [rsp+90h] [rbp-70h]
char v25; // [rsp+94h] [rbp-6Ch]
int v26; // [rsp+98h] [rbp-68h]
int v27; // [rsp+9Ch] [rbp-64h]
char v28; // [rsp+A0h] [rbp-60h]
int v29; // [rsp+A4h] [rbp-5Ch]
int v30; // [rsp+A8h] [rbp-58h]
int v31; // [rsp+B8h] [rbp-48h]
_BYTE v32[40]; // [rsp+C8h] [rbp-38h] BYREF
void *v33[4]; // [rsp+F0h] [rbp-10h] BYREF
v2 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v2, v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, *(float *)v17 * 0.5, *(float *)&v17[1] * 0.5);
v3 = (__int64 *)a1[126];
v4 = *v3;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v20, 15.0, 15.0, 50.0, 50.0);
(*(void (__fastcall **)(__int64 *, __int64))(v4 + 912))(v3, v5);
sub_14009BE60((__int64)&v21);
v21 = -1;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v18[0] - 16.0, v18[1]);
cocos2d::CCPoint::operator=(v23, v6);
v24 = 1058642330;
v25 = 1;
v28 = 1;
v26 = 1;
v31 = 2;
v27 = 3;
v29 = 1008981770;
v30 = 1133903872;
v7 = cocos2d::CCString::createWithFormat("%g", 0x4024000000000000LL);
CString = (char *)cocos2d::CCString::getCString(v7);
v9 = -1;
do
++v9;
while ( CString[v9] );
sub_1400405A0(v33, CString, v9);
SetupTriggerPopup::createValueControlAdvanced_1(a1, &v21);
v17[0] = -1;
*(_BYTE *)sub_14016EE40(a1 + 109, v17) = 1;
v10 = (cocos2d::CCDictionary *)a1[95];
if ( v10 )
{
v11 = cocos2d::CCDictionary::objectForKey(v10, -1);
if ( v11 )
{
v12 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v11 + 200LL))(v11);
cocos2d::CCNode::convertToNodeSpace(a1[69], v17, v12);
v13 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_trashBtn_001.png");
v14 = (int)v13;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v13 + 160LL))(v13);
v15 = CCMenuItemSpriteExtra::create(v14, 0, (int)a1, (__int64)MoveStepPopup::onReset);
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)a1[69] + 464LL))(a1[69], v15);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 66.0, 0.0);
cocos2d::CCPoint::operator+(v17, v19, v16);
(*(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_QWORD *)v15 + 184LL))(v15, v19);
}
}
sub_14003D310((__int64)v33);
sub_14003D310((__int64)v32);
sub_14003D310((__int64)v22);
}