//
// sub_100915F90 from 0x100915f90 to 0x100916026 (150 bytes)
//
// 1 xrefs:
// > IDNameInput::textInputClosed @ 0x1009162b5
//
// 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 12:38:11 +0000
//
__int64 __fastcall sub_100915F90(__int64 a1)
{
_QWORD *v1; // r14
__int64 result; // rax
__int128 v3; // [rsp+0h] [rbp-30h] BYREF
void *__p; // [rsp+10h] [rbp-20h]
v1 = *(_QWORD **)(a1 + 384);
if ( v1 )
{
v1[73] = 0;
if ( (*(_BYTE *)(a1 + 464) & 1) != 0 )
{
sub_10001AD30(&v3, *(const void **)(a1 + 480), *(_QWORD *)(a1 + 472));
}
else
{
__p = *(void **)(a1 + 480);
v3 = *(_OWORD *)(a1 + 464);
}
CCTextInputNode::setString(v1, (__int64)&v3);
if ( (v3 & 1) != 0 )
operator delete(__p);
result = *(_QWORD *)(a1 + 384);
*(_QWORD *)(result + 584) = a1 + 320;
}
return result;
}