//
// sub_1800BE390 from 0x1800be390 to 0x1800be422 (146 bytes)
//
// 2 xrefs:
// > _cfltcvt_init @ 0x1800be6aa
// > ??> @ 0x1801fd878
//
// 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 10:54:02 +0000
//
__int64 __fastcall sub_1800BE390(__int64 *a1)
{
__int64 v1; // rdx
_DWORD *v3; // rax
_QWORD *v4; // rdi
v1 = *a1;
if ( *a1 )
{
v3 = *(_DWORD **)(v1 + 24);
v4 = (_QWORD *)(v1 + 24);
if ( !v3 || (sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v3), *v4 = 0, (v1 = *a1) != 0) )
{
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), (_DWORD *)v1);
*a1 = 0;
}
}
return 0;
}