//
// SetGroupIDLayer::createTextInput from 0xabe8a4 to 0xabed68 (1220 bytes)
//
// 6 xrefs:
// > SetGroupIDLayer::init @ 0xabf704
// > SetGroupIDLayer::init @ 0xabf788
// > SetGroupIDLayer::init @ 0xabfa54
// > SetGroupIDLayer::init @ 0xac04a0
// > SetGroupIDLayer::init @ 0xac0504
// > ??> @ 0xf6148
//
// 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 13:01:03 +0000
//
__int64 __fastcall SetGroupIDLayer::createTextInput(
__int64 a1,
__int64 a2,
unsigned int a3,
int a4,
__int64 a5,
unsigned int a6,
float a7)
{
__int64 v13; // x19
CCTextInputNode *v14; // x0
__int64 v15; // x19
__int64 v16; // x2
cocos2d::CCString *v17; // x0
const char *CString; // x0
size_t v19; // x0
cocos2d::CCSprite *v20; // x0
__int64 v21; // x23
__int64 v22; // x23
cocos2d::CCSprite *v23; // x0
cocos2d::CCSprite *v24; // x21
__int64 v25; // x21
cocos2d::CCNode *v26; // x23
void (__fastcall *v27)(__int64, __int64 *); // x20
cocos2d::CCNode *v30; // [xsp+70h] [xbp+70h]
char *v31; // [xsp+78h] [xbp+78h]
void (__fastcall *v32)(__int64, __int64 *); // [xsp+78h] [xbp+78h]
int v33; // [xsp+80h] [xbp+80h]
_BYTE v34[8]; // [xsp+88h] [xbp+88h] BYREF
_BYTE v35[8]; // [xsp+90h] [xbp+90h] BYREF
__int64 v36; // [xsp+98h] [xbp+98h] BYREF
_BYTE v37[16]; // [xsp+A0h] [xbp+A0h] BYREF
__int64 v38[2]; // [xsp+B0h] [xbp+B0h] BYREF
char *v39; // [xsp+C0h] [xbp+C0h] BYREF
__int64 v40; // [xsp+C8h] [xbp+C8h]
cocos2d::CCSprite *v41; // [xsp+D0h] [xbp+D0h]
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v37, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v38, (const cocos2d::CCRect *)v37);
v13 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v38);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 912LL))(v13, 100);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v34, a7, 30.0);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v13 + 320LL))(v13, v34);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v13,
0xFFFFFFFFLL);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 184LL))(v13, a2);
v14 = (CCTextInputNode *)(a5 + 1);
if ( (*(_BYTE *)a5 & 1) != 0 )
v14 = *(CCTextInputNode **)(a5 + 16);
v15 = CCTextInputNode::create(v14, a7, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", (const char *)a5);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v15, 20);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 184LL))(v15, a2);
CCTextInputNode::setMaxLabelScale((CCTextInputNode *)v15, 0.6);
CCTextInputNode::setMaxLabelWidth((CCTextInputNode *)v15, 40.0);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v15 + 576) + 344LL))(*(_QWORD *)(v15 + 576), 0);
*(_DWORD *)(v15 + 592) = a4;
v39 = nullptr;
v40 = 0;
v41 = nullptr;
if ( a3 == 7 )
std::string::__init((__int64 *)&v39, "0123456789-", 0xBu);
else
std::string::__init((__int64 *)&v39, "0123456789", 0xAu);
CCTextInputNode::setAllowedChars(v15, (__int64)&v39);
if ( ((unsigned __int8)v39 & 1) != 0 )
operator delete(v41);
LOBYTE(v33) = 120;
*(_WORD *)((char *)&v33 + 1) = -3926;
CCTextInputNode::setLabelPlaceholderColor(v15, v33);
CCTextInputNode::setLabelPlaceholderScale((CCTextInputNode *)v15, 0.5);
v16 = *(_QWORD *)v15;
*(_QWORD *)(v15 + 584) = a1 + 544;
*(_BYTE *)(v15 + 424) = 1;
(*(void (__fastcall **)(__int64, _QWORD))(v16 + 72))(v15, a3);
v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"GJ_arrow_0%i_001.png",
(const char *)a6);
CString = (const char *)cocos2d::CCString::getCString(v17);
v39 = nullptr;
v31 = (char *)CString;
v40 = 0;
v41 = nullptr;
v19 = strlen(CString);
std::string::__init((__int64 *)&v39, v31, v19);
v20 = (cocos2d::CCSprite *)((char *)&v39 + 1);
if ( ((unsigned __int8)v39 & 1) != 0 )
v20 = v41;
v21 = cocos2d::CCSprite::createWithSpriteFrameName(v20, (const char *)(unsigned __int8)v39);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, 0.7);
v22 = CCMenuItemSpriteExtra::create(v21, 0, a1, (__int64)SetGroupIDLayer::onArrowLeft, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v22);
v30 = *(cocos2d::CCNode **)(a1 + 552);
v32 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, -45.0, 0.0);
cocos2d::CCPoint::operator+(&v36, a2);
cocos2d::CCNode::convertToNodeSpace(v38, v30, (const cocos2d::CCPoint *)&v36);
v32(v22, v38);
CCMenuItemSpriteExtra::setSizeMult(v22, 1.6);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v22 + 72LL))(v22, a3);
v23 = (cocos2d::CCSprite *)((char *)&v39 + 1);
if ( ((unsigned __int8)v39 & 1) != 0 )
v23 = v41;
v24 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v23, (const char *)(unsigned __int8)v39);
cocos2d::CCSprite::setFlipX(v24, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v24 + 160LL))(v24, 0.7);
v25 = CCMenuItemSpriteExtra::create((__int64)v24, 0, a1, (__int64)SetGroupIDLayer::onArrowRight, 0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v25);
v26 = *(cocos2d::CCNode **)(a1 + 552);
v27 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v25 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, 45.0, 0.0);
cocos2d::CCPoint::operator+(&v36, a2);
cocos2d::CCNode::convertToNodeSpace(v38, v26, (const cocos2d::CCPoint *)&v36);
v27(v25, v38);
CCMenuItemSpriteExtra::setSizeMult(v25, 1.6);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v25 + 72LL))(v25, a3);
if ( ((unsigned __int8)v39 & 1) != 0 )
operator delete(v41);
return v15;
}