//
// sub_100617220 from 0x100617220 to 0x1006172bc (156 bytes)
//
// 2 xrefs:
// > sub_100620868 @ 0x100620918
// > sub_100620A0C @ 0x100620a74
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100617220(__int64 a1)
{
_BYTE *v2; // x0
__int64 v3; // x19
__int64 v4; // x0
v2 = sub_100588710(48, (__int64)"ui_lib.c", 81);
v3 = (__int64)v2;
if ( v2 )
{
if ( a1 )
{
*(_QWORD *)v2 = a1;
}
else
{
v4 = qword_100884EC8;
if ( !qword_100884EC8 )
{
v4 = sub_10061826C(0);
qword_100884EC8 = v4;
}
*(_QWORD *)v3 = v4;
}
*(_DWORD *)(v3 + 40) = 0;
*(_QWORD *)(v3 + 8) = 0;
*(_QWORD *)(v3 + 16) = 0;
sub_1005893A4(11, v3, v3 + 24);
}
else
{
sub_1005E0E48(40, 104, 65, (__int64)"ui_lib.c", 83);
return 0;
}
return v3;
}