//
// GJScaleControl::createScaleInput from 0x1401a46d0 to 0x1401a498f (703 bytes)
//
// 4 xrefs:
// > GJScaleControl::init @ 0x1401a340e
// > GJScaleControl::init @ 0x1401a34e0
// > GJScaleControl::init @ 0x1401a35b2
// > ??> @ 0x140919ac0
//
// 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:27:49 +0000
//
char *__fastcall GJScaleControl::createScaleInput(_QWORD **a1, __int64 a2, unsigned int a3, cocos2d::CCObject **a4)
{
char *v8; // r14
__int64 v9; // rax
__int64 v10; // rax
_QWORD *v11; // rdi
__int64 v12; // rbx
__int64 v13; // rax
__int64 v14; // rdx
struct cocos2d::CCSprite *v15; // rax
cocos2d::CCObject *v16; // rbx
__int64 v17; // rax
void *v19[4]; // [rsp+30h] [rbp-48h] BYREF
_BYTE v20[16]; // [rsp+50h] [rbp-28h] BYREF
v8 = CCTextInputNode::create((__int64)a1, a2, (__int64)" ");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 0.0, 0.0);
cocos2d::CCPoint::operator+(a2, v19, v9);
(*(void (__fastcall **)(char *, void **))(*(_QWORD *)v8 + 184LL))(v8, v19);
*((_DWORD *)v8 + 141) = 1056293520;
CCTextInputNode::refreshLabel((__int64)v8);
*((_DWORD *)v8 + 140) = 1111490560;
CCTextInputNode::refreshLabel((__int64)v8);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v8 + 74) + 336LL))(*((_QWORD *)v8 + 74), 0);
*((_DWORD *)v8 + 152) = 6;
*((_DWORD *)v8 + 179) = 1;
*((_DWORD *)v8 + 180) = 2;
HIDWORD(v19[1]) = 0;
v19[2] = (void *)11;
v19[3] = (void *)15;
strcpy((char *)v19, "0123456789.");
CCTextInputNode::setAllowedChars((__int64)v8, v19);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v19, 0.0, 0.0, 40.0, 40.0);
v11 = (_QWORD *)cocos2d::extension::CCScale9Sprite::create("square02_small.png", v10);
v12 = *v11;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v20, 80.0, 32.0);
(*(void (__fastcall **)(_QWORD *, __int64))(v12 + 312))(v11, v13);
(*(void (__fastcall **)(_QWORD *))(*v11 + 160LL))(v11);
LOBYTE(v14) = 90;
(*(void (__fastcall **)(_QWORD *, __int64))(v11[40] + 40LL))(v11 + 40, v14);
(*(void (__fastcall **)(_QWORD *))(*v11 + 240LL))(v11);
(*(void (__fastcall **)(char *, _QWORD *, __int64))(*(_QWORD *)v8 + 456LL))(v8, v11, 0xFFFFFFFFLL);
((void (__fastcall *)(_QWORD **, char *, __int64))(*a1)[57])(a1, v8, 2);
v15 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png");
LODWORD(v12) = (_DWORD)v15;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v15 + 160LL))(v15);
v16 = CCMenuItemSpriteExtra::create(v12, 0, (int)a1, (__int64)GJScaleControl::onApplyScale);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v16 + 64LL))(v16, a3);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 41.0, 0.0);
cocos2d::CCPoint::operator+(a2, v19, v17);
(*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v16 + 184LL))(v16, v19);
(*(void (__fastcall **)(_QWORD *, cocos2d::CCObject *))(*a1[67] + 464LL))(a1[67], v16);
*a4 = v16;
return v8;
}