//
// sub_1800DEF70 from 0x1800def70 to 0x1800defb7 (71 bytes)
//
// 5 xrefs:
// > ??> @ 0x18016d120
// > ??> @ 0x18016d310
// > ??> @ 0x18016d4a8
// > ??> @ 0x18016d678
// > ??> @ 0x1801ff7a4
//
// 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_1800DEF70(__int64 a1, _BYTE *a2, int a3)
{
int v6; // r8d
char *v7; // rdx
if ( !a2 )
return 31;
v6 = 256;
v7 = (char *)&byte_18014572F;
if ( a3 <= 256 )
v6 = a3;
if ( *(_QWORD *)(a1 + 48) )
v7 = *(char **)(a1 + 48);
sub_1800B7D20(a2, v7, v6);
return 0;
}