//
// sub_1007171E0 from 0x1007171e0 to 0x100717222 (66 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b99ba8
//
// 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:36:08 +0000
//
__int64 __fastcall sub_1007171E0(__int64 a1, __int64 a2, unsigned __int64 a3)
{
__int64 v3; // rax
__int64 v4; // rdi
v3 = *(_QWORD *)(a1 + 8);
v4 = *(_QWORD *)(a1 + 16);
if ( v3 )
{
if ( v4 )
sub_1009A7250();
return std::ostream::write(v3, a2, a3);
}
else
{
if ( !v4 )
sub_1009A72B0();
if ( (a3 & 3) != 0 )
sub_1009A7280();
return std::wostream::write(v4, a2, a3 >> 2);
}
}