//
// sub_10093CF30 from 0x10093cf30 to 0x10093d00d (221 bytes)
//
// 1 xrefs:
// > FriendPickerPopup::init @ 0x10093cb20
//
// 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:29 +0000
//
void __fastcall sub_10093CF30(__int64 a1, __int64 a2, std::string::size_type size, std::string::pointer data)
{
__int64 v5; // rsi
std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v6; // al
unsigned __int8 v7; // si
bool v8; // zf
std::string::value_type *v9; // rax
std::string::size_type v10; // rcx
__int64 v11; // rdx
__int64 v12; // rdi
__int64 v13; // rax
std::string v14; // [rsp+0h] [rbp-20h] BYREF
v5 = *(_QWORD *)(a1 + 864);
if ( v5 )
{
CCTextInputNode::getString(&v14, v5);
v6 = v14.__r_.__value_.__s.0;
data = v14.__r_.__value_.__l.__data_;
size = v14.__r_.__value_.__l.__size_;
}
else
{
*(_WORD *)&v14.__r_.__value_.__l.0 = 0;
v6 = 0;
}
v7 = *(unsigned __int8 *)&v6 >> 1;
v8 = (*(_BYTE *)&v6 & 1) == 0;
v9 = v14.__r_.__value_.__s.__data_;
if ( !v8 )
v9 = data;
v10 = v7;
if ( !v8 )
v10 = size;
if ( v10 )
{
v11 = 0;
while ( v9[v11] == 32 )
{
if ( v10 == ++v11 )
goto LABEL_18;
}
if ( v11 != -1 )
{
*(_BYTE *)(a1 + 856) = 0;
v12 = *(_QWORD *)(a1 + 880);
if ( v12 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 912LL))(v12, 140);
v13 = GameLevelManager::sharedState();
if ( sub_100578FA0(v13, &v14) )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1368) = a1 + 784;
sub_10095CF70(a1);
}
}
}
LABEL_18:
if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v14.__r_.__value_.__l.__data_);
}