//
// StartPosLayer::updateInputNode from 0xb65648 to 0xb65840 (504 bytes)
//
// 2 xrefs:
// > ??> @ 0x90010
// > ??> @ 0x14c6520
//
// 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:02:14 +0000
//
__int64 __fastcall StartPosLayer::updateInputNode(cocos2d::CCDictionary **this, int a2, float a3)
{
_QWORD *v5; // x21
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x2
__int64 v9; // x0
size_t v10; // x1
__int64 v11; // [xsp+38h] [xbp+38h] BYREF
size_t v12; // [xsp+40h] [xbp+40h]
void *v13; // [xsp+48h] [xbp+48h]
__int64 v14; // [xsp+50h] [xbp+50h] BYREF
size_t v15; // [xsp+58h] [xbp+58h]
void *v16; // [xsp+60h] [xbp+60h]
__int64 v17; // [xsp+68h] [xbp+68h] BYREF
size_t v18; // [xsp+70h] [xbp+70h]
void *v19; // [xsp+78h] [xbp+78h]
__int64 v20; // [xsp+80h] [xbp+80h] BYREF
size_t v21; // [xsp+88h] [xbp+88h]
void *v22; // [xsp+90h] [xbp+90h]
if ( a2 == -16 )
{
v5 = (_QWORD *)cocos2d::CCDictionary::objectForKey(*(this + 95), -16);
if ( v5 )
{
v6 = (__int64)*(this + 127);
v11 = 0;
v12 = 0;
v7 = *(_QWORD *)(v6 + 1840);
v13 = nullptr;
v8 = v7 + 480;
if ( (*(_BYTE *)(v7 + 480) & 1) != 0 )
{
std::string::__init(&v11, *(void **)(v7 + 496), *(_QWORD *)(v7 + 488));
}
else
{
v9 = *(_QWORD *)v8;
v10 = *(_QWORD *)(v8 + 8);
v13 = *(void **)(v8 + 16);
v11 = v9;
v12 = v10;
}
v17 = 0;
v18 = 0;
v19 = nullptr;
if ( (v11 & 1) != 0 )
{
std::string::__init(&v17, v13, v12);
}
else
{
v19 = v13;
v17 = v11;
v18 = v12;
}
LevelTools::base64DecodeString((__int64)&v17, &v14);
if ( (v17 & 1) != 0 )
operator delete(v19);
v20 = 0;
v21 = 0;
v22 = nullptr;
if ( (v14 & 1) != 0 )
{
std::string::__init(&v20, v16, v15);
}
else
{
v20 = v14;
v21 = v15;
v22 = v16;
}
CCTextInputNode::setString(v5, (char *)&v20);
if ( (v20 & 1) != 0 )
operator delete(v22);
if ( (v14 & 1) != 0 )
operator delete(v16);
if ( (v11 & 1) != 0 )
operator delete(v13);
}
}
else
{
SetupTriggerPopup::updateInputNode(this, a2, a3);
}
return _stack_chk_guard;
}