//
// sub_180043F30 from 0x180043f30 to 0x180043fa0 (112 bytes)
//
// 2 xrefs:
// > sub_180045B60 @ 0x1800461ea
// > ??> @ 0x1801f813c
//
// 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 10:53:12 +0000
//
__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;
}