//
// sub_10043168C from 0x10043168c to 0x100431790 (260 bytes)
//
// 2 xrefs:
// > sub_1004B66C0 @ 0x1004b6904
// > ??> @ 0x100826d88
//
// 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_10043168C(__int64 a1, __int64 a2, __int64 a3, __int64 a4, int a5, int a6, int a7, int a8)
{
bool v15; // w8
_BYTE v17[4096]; // [xsp+8h] [xbp-1048h] BYREF
bzero(v17, 0x1000u);
*(_QWORD *)(a1 + 192) = a2;
v15 = a5 == 1 || a7 == 1;
*(_BYTE *)(a1 + 16) = v15;
*(_DWORD *)(a1 + 8) = a6;
*(_DWORD *)(a1 + 12) = a8;
sub_1004F0690(a1 + 24, a2, 1.0);
sub_1004F0B50(v17, *(unsigned __int8 *)(a1 + 16), *(unsigned int *)(a1 + 12), *(unsigned int *)(a1 + 8), 1.0);
sub_1004F28F8(a1 + 24, v17, *(unsigned int *)(a1 + 12), *(unsigned int *)(a1 + 8), 32, 0, 0);
sub_1004F2F64(a1 + 24, 0, 0, 1.0);
return 0;
}