//
// sub_10090C0E0 from 0x10090c0e0 to 0x10090c251 (369 bytes)
//
// 1 xrefs:
// > IDNameBrowserPopup::mountVirtualRow @ 0x10090bea1
//
// 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:07 +0000
//
void __fastcall sub_10090C0E0(__int64 a1, __int64 a2)
{
int v2; // eax
int v3; // r14d
__int64 v4; // rax
_QWORD *v5; // r14
char *v6; // r15
size_t v7; // rax
size_t v8; // r12
char *v9; // r13
size_t v10; // r15
char *v11; // [rsp+0h] [rbp-60h]
char *v12[2]; // [rsp+8h] [rbp-58h] BYREF
char *__s; // [rsp+18h] [rbp-48h]
_QWORD __dst[2]; // [rsp+20h] [rbp-40h] BYREF
void *__p; // [rsp+30h] [rbp-30h]
if ( a2 )
{
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v2 > 0 )
{
v3 = v2;
if ( *(_QWORD *)(GameManager::sharedState() + 552) )
{
if ( *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 3272LL) )
{
v4 = GameManager::sharedState();
sub_1000D91B0(v12, *(_QWORD *)(*(_QWORD *)(v4 + 552) + 3272LL), v3, *(_DWORD *)(a1 + 676));
sub_10090B2D0(a1, v3);
v5 = *(_QWORD **)(a1 + 720);
if ( !v5 )
{
LABEL_19:
sub_10090C4C0(a1);
if ( ((__int64)v12[0] & 1) != 0 )
operator delete(__s);
return;
}
if ( ((__int64)v12[0] & 1) != 0 )
v6 = __s;
else
v6 = (char *)v12 + 1;
v7 = strlen(v6);
if ( v7 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v8 = v7;
if ( v7 >= 0x17 )
{
v11 = v6;
v10 = 26;
if ( (v7 | 7) != 0x17 )
v10 = (v7 | 7) + 1;
v9 = (char *)operator new(v10);
__p = v9;
__dst[0] = v10 | 1;
__dst[1] = v8;
v6 = v11;
}
else
{
LOBYTE(__dst[0]) = 2 * v7;
v9 = (char *)__dst + 1;
if ( !v7 )
{
LABEL_17:
v9[v8] = 0;
CCTextInputNode::setString(v5, (__int64)__dst);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
goto LABEL_19;
}
}
memmove(v9, v6, v8);
goto LABEL_17;
}
}
}
}
}