//
// SetGroupIDLayer::createTextInput from 0x63cd54 to 0x63d02a (726 bytes)
//
// 5 xrefs:
// > SetGroupIDLayer::init @ 0x63d774
// > SetGroupIDLayer::init @ 0x63d7c6
// > SetGroupIDLayer::init @ 0x63da0e
// > SetGroupIDLayer::init @ 0x63dfba
// > SetGroupIDLayer::init @ 0x63e000
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:25 +0000
//
int *__fastcall SetGroupIDLayer::createTextInput(
int a1,
int a2,
char *a3,
int a4,
int a5,
CCTextInputNode *a6,
char *a7)
{
int v10; // r11
char *v11; // r2
int *v12; // r4
cocos2d::CCString *v13; // r0
const char *CString; // r0
const char *v15; // r7
size_t v16; // r0
const char *v17; // r1
cocos2d::CCSprite *v18; // r0
int v19; // r7
int v20; // r7
const char *v21; // r1
cocos2d::CCSprite *v22; // r0
cocos2d::CCSprite *v23; // r7
int v24; // r7
void (__fastcall *v25)(int, _BYTE *); // r10
char *v28; // [sp+8h] [bp-74h]
cocos2d::CCPoint *v29; // [sp+Ch] [bp-70h]
cocos2d::CCPoint *v30; // [sp+Ch] [bp-70h]
cocos2d::CCPoint *v31; // [sp+10h] [bp-6Ch]
int v32; // [sp+1Ch] [bp-60h]
_BYTE v33[8]; // [sp+20h] [bp-5Ch] BYREF
_BYTE v34[8]; // [sp+28h] [bp-54h] BYREF
_BYTE v35[8]; // [sp+30h] [bp-4Ch] BYREF
_BYTE v36[8]; // [sp+38h] [bp-44h] BYREF
int *(__fastcall *v37)(SetGroupIDLayer *, cocos2d::CCObject *); // [sp+40h] [bp-3Ch]
int v38; // [sp+44h] [bp-38h]
int v39; // [sp+48h] [bp-34h] BYREF
int v40; // [sp+4Ch] [bp-30h]
cocos2d::CCSprite *v41; // [sp+50h] [bp-2Ch]
_BYTE v42[16]; // [sp+54h] [bp-28h] BYREF
_DWORD v43[4]; // [sp+64h] [bp-18h] BYREF
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v42, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v43, (const cocos2d::CCRect *)v42);
v10 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v43);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 456))(v10, 100);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v33, *(float *)&a6, 30.0);
(*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 160))(v10, v33);
(*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v10, -1);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 92))(v10, a2);
if ( (*(_BYTE *)a5 & 1) != 0 )
v11 = *(char **)(a5 + 8);
else
v11 = (char *)(a5 + 1);
v12 = CCTextInputNode::create(a6, 40.0, v11, "Thonburi", (const char *)&dword_18, "bigFont.fnt", a3);
(*(void (__fastcall **)(_DWORD, int *, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v12, 20);
(*(void (__fastcall **)(int *, int))(*v12 + 92))(v12, a2);
CCTextInputNode::setMaxLabelScale((unsigned int)v12, 0.6);
CCTextInputNode::setMaxLabelWidth((unsigned int)v12, 40.0);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v12[104] + 172))(v12[104], 0);
v12[106] = a4;
v39 = 0;
v40 = 0;
v41 = nullptr;
if ( v28 == &byte_7 )
std::string::__init(&v39, "0123456789-", 0xBu);
else
std::string::__init(&v39, "0123456789", 0xAu);
CCTextInputNode::setAllowedChars((int)v12, (unsigned __int8 *)&v39);
std::string::~string((int)&v39);
LOWORD(v32) = -21896;
BYTE2(v32) = -16;
CCTextInputNode::setLabelPlaceholderColor((unsigned int)v12, v32);
CCTextInputNode::setLabelPlaceholderScale((unsigned int)v12, 0.5);
v12[105] = a1 + 440;
*((_BYTE *)v12 + 324) = 1;
(*(void (__fastcall **)(int *, char *))(*v12 + 36))(v12, v28);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"GJ_arrow_0%i_001.png", a7);
CString = (const char *)cocos2d::CCString::getCString(v13);
v39 = 0;
v40 = 0;
v41 = nullptr;
v15 = CString;
v16 = strlen(CString);
std::string::__init(&v39, v15, v16);
if ( (v39 & 1) != 0 )
v18 = v41;
else
v18 = (cocos2d::CCSprite *)((char *)&v39 + 1);
v19 = cocos2d::CCSprite::createWithSpriteFrameName(v18, v17);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 80))(v19, 1060320051);
v37 = SetGroupIDLayer::onArrowLeft;
v38 = 0;
v20 = CCMenuItemSpriteExtra::create(v19, 0, a1, (int)SetGroupIDLayer::onArrowLeft, 0);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v20);
v29 = *(cocos2d::CCPoint **)(*(_DWORD *)v20 + 92);
v31 = *(cocos2d::CCPoint **)(a1 + 444);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, -45.0, 0.0);
cocos2d::CCPoint::operator+(v36, a2, v35);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v43, v31);
((void (__fastcall *)(int, _DWORD *))v29)(v20, v43);
CCMenuItemSpriteExtra::setSizeMult(v20, 1.6);
(*(void (__fastcall **)(int, char *))(*(_DWORD *)v20 + 36))(v20, v28);
if ( (v39 & 1) != 0 )
v22 = v41;
else
v22 = (cocos2d::CCSprite *)((char *)&v39 + 1);
v23 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v22, v21);
cocos2d::CCSprite::setFlipX(v23, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v23 + 80))(v23, 1060320051);
v43[0] = SetGroupIDLayer::onArrowRight;
v43[1] = 0;
v24 = CCMenuItemSpriteExtra::create((int)v23, 0, a1, (int)SetGroupIDLayer::onArrowRight, 0);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v24);
v25 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v24 + 92);
v30 = *(cocos2d::CCPoint **)(a1 + 444);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, 45.0, 0.0);
cocos2d::CCPoint::operator+(v35, a2, v34);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v36, v30);
v25(v24, v36);
CCMenuItemSpriteExtra::setSizeMult(v24, 1.6);
(*(void (__fastcall **)(int, char *))(*(_DWORD *)v24 + 36))(v24, v28);
std::string::~string((int)&v39);
return v12;
}