//
// sub_100456448 from 0x100456448 to 0x10045647c (52 bytes)
//
// 4 xrefs:
// > sub_100457D88 @ 0x100457d98
// > sub_100458F80 @ 0x100458fa4
// > ??> @ 0x1008275f8
// > ??> @ 0x1008276f0
//
// 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_100456448(__int64 a1, unsigned int a2, int a3)
{
__int64 v3; // x9
unsigned int v4; // w9
unsigned int v5; // w10
bool v6; // cf
bool v7; // zf
v3 = *(_QWORD *)(a1 + 40);
if ( !v3 )
return 31;
v4 = *(_DWORD *)(v3 + 68);
v5 = a3 + a2;
if ( v4 > a2 )
{
v6 = v5 >= v4;
v7 = v5 == v4;
}
else
{
v6 = 1;
v7 = 0;
}
if ( !v7 && v6 )
return 31;
*(_DWORD *)(a1 + 88) = a2;
*(_DWORD *)(a1 + 92) = a3;
return 0;
}