//
// sub_180043F30 from 0x180043f30 to 0x180043fa0 (112 bytes)
//
// 2 xrefs:
// > sub_180045B60 @ 0x1800461ea
// > ??> @ 0x1801f813c
//
// 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_180043F30(__int64 a1, __int64 a2, _QWORD *a3)
{
__int64 v5; // r8
unsigned int (__fastcall *v6)(__int64, _QWORD *, _QWORD); // rax
__int64 v7; // rcx
v5 = *(_QWORD *)(a2 + 8);
v6 = *(unsigned int (__fastcall **)(__int64, _QWORD *, _QWORD))(v5 + 16);
if ( !v6 || v6(a2, a3, *(_QWORD *)(v5 + 104)) || !sub_180041B90(*(_QWORD *)(*(_QWORD *)(a2 + 8) + 120LL)) )
return 0;
v7 = (unsigned int)sub_180041A40(*(_DWORD **)(*(_QWORD *)(a2 + 8) + 120LL)) >> 3;
*a3 -= v7;
return 1;
}