//
// sub_10047F294 from 0x10047f294 to 0x10047f350 (188 bytes)
//
// 1 xrefs:
// > sub_10047F010 @ 0x10047f0a0
//
// 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_10047F294(__int64 a1, int a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)
{
int v6; // w8
__int64 v7; // x8
unsigned __int16 *v9; // x9
int v10; // w8
v6 = *(_DWORD *)(a6 + 40);
if ( v6 == 15 )
{
v9 = *(unsigned __int16 **)(a6 + 552);
*(_QWORD *)(a1 + 552) = v9;
v10 = *v9;
if ( v10 == 105 || v10 == 17 )
{
*(_DWORD *)(a1 + 504) = v9[6];
*(_DWORD *)(a1 + 488) = v9[9];
}
if ( (*(_BYTE *)(a1 + 353) & 2) == 0 )
return 0;
if ( (((_WORD)v10 - 1) & 0xFFFD) != 0 )
return 19;
else
return 0;
}
else
{
if ( v6 != 5 )
return 19;
v7 = 0;
*(_DWORD *)(a1 + 504) = 0;
*(_QWORD *)(a1 + 552) = a1 + 512;
*(_WORD *)(a1 + 512) = 1;
if ( *(_DWORD *)(*(_QWORD *)(a6 + 376) + 44LL) == 7 )
{
*(_WORD *)(a1 + 512) = 17;
*(_DWORD *)(a1 + 504) = 36 * a2;
*(_DWORD *)(a1 + 488) = 64;
return 0;
}
}
return v7;
}