//
// sub_100158300 from 0x100158300 to 0x100158598 (664 bytes)
//
// 3 xrefs:
// > GJScaleControl::init @ 0x1001580e0
// > GJScaleControl::init @ 0x10015819c
// > GJScaleControl::init @ 0x100158258
//
// This function is hookable on this platform (idp: arm, 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 10:59:42 +0000
//
__int64 __fastcall sub_100158300(_QWORD **a1, float32x2_t *a2, __int64 a3, __int64 *a4)
{
__int64 v8; // x21
double v9; // d0
__int64 v10; // x24
__int64 v11; // x24
__int64 v12; // x24
double v13; // d0
float32x2_t v15[2]; // [xsp+0h] [xbp-70h] BYREF
void *__p[2]; // [xsp+10h] [xbp-60h] BYREF
char v17; // [xsp+27h] [xbp-49h]
float32x2_t v18; // [xsp+28h] [xbp-48h] BYREF
v8 = CCTextInputNode::create(" ", "Thonburi", 24, "bigFont.fnt", 48.0, 19.2);
sub_1000262BC((float *)&v18, 0.0, 0.0);
*(float32x2_t *)&v9 = sub_100026318(a2, &v18, v15);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v8 + 184LL))(v8, v15, v9);
CCTextInputNode::setMaxLabelScale(v8, 0.48);
CCTextInputNode::setMaxLabelWidth(v8, 48.0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v8 + 576) + 344LL))(*(_QWORD *)(v8 + 576), 0);
*(_DWORD *)(v8 + 592) = 6;
*(_QWORD *)(v8 + 700) = 0x200000001LL;
sub_100009900(__p, "0123456789.");
CCTextInputNode::setAllowedChars(v8, __p);
if ( v17 < 0 )
operator delete(__p[0]);
sub_1000262CC((float *)v15, 0.0, 0.0, 40.0, 40.0);
v10 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v15);
sub_1000262C4((float *)v15, 80.0, 32.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v10 + 320LL))(v10, v15);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.625);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 912LL))(v10, 90);
(*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)v10 + 248LL))(v10, 0.0, -0.5);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v8 + 464LL))(v8, v10, 0xFFFFFFFFLL);
((void (__fastcall *)(_QWORD **, __int64, __int64))(*a1)[58])(a1, v8, 2);
v11 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v11 + 160LL))(v11, 0.4);
v12 = CCMenuItemSpriteExtra::create(v11, 0, a1, sub_10015944C, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 72LL))(v12, a3);
sub_1000262BC((float *)&v18, 41.0, 0.0);
*(float32x2_t *)&v13 = sub_100026318(a2, &v18, v15);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v12 + 184LL))(v12, v15, v13);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1[67] + 456LL))(a1[67], v12);
*a4 = v12;
return v8;
}