//
// sub_180075700 from 0x180075700 to 0x180075784 (132 bytes)
//
// 5 xrefs:
// > sub_180075CC0 @ 0x180075de4
// > sub_180076710 @ 0x1800767b7
// > ??> @ 0x18013bb18
// > ??> @ 0x18013bb28
// > ??> @ 0x1801b465c
//
// 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
//
unsigned __int64 __fastcall sub_180075700(unsigned __int64 *a1, unsigned __int64 *a2, unsigned __int64 *a3)
{
unsigned __int64 result; // rax
unsigned __int64 *v5; // r9
unsigned __int64 v6; // rdx
unsigned __int64 v7; // rcx
unsigned __int64 v8; // rdx
result = 0;
v5 = a1;
v6 = (unsigned __int64)((char *)a2 - (char *)a1 + 7) >> 3;
if ( a1 > a2 )
v6 = 0;
if ( v6 >= 2 )
{
result = *a3;
v7 = (unsigned __int64)&a1[v6 - 1];
if ( v5 > a3 || v7 < (unsigned __int64)a3 )
{
v8 = 8 * (v6 & 0xFFFFFFFFFFFFFFFEuLL);
memset64(v5, result, v8 >> 3);
v5 = (unsigned __int64 *)((char *)v5 + v8);
}
}
for ( ; v5 != a2; ++v5 )
{
result = *a3;
*v5 = *a3;
}
return result;
}