//
// sub_733604 from 0x733604 to 0x7336d2 (206 bytes)
//
// 3 xrefs:
// > VP8LGetInfo @ 0x6fe5c8
// > sub_6FE768 @ 0x6fe7ce
// > sub_6FF430 @ 0x6ff454
//
// 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
//
_DWORD *__fastcall sub_733604(_DWORD *result, unsigned __int8 *a2, unsigned int a3)
{
int v3; // r4
__int64 v4; // r2
result[3] = a3;
v3 = a3;
if ( a3 >= 8 )
v3 = 8;
*result = 0;
result[1] = 0;
result[5] = 0;
result[6] = 0;
if ( v3 )
{
v4 = *a2;
if ( v3 != 1 )
{
LODWORD(v4) = v4 | (a2[1] << 8);
if ( v3 != 2 )
{
LODWORD(v4) = v4 | (a2[2] << 16);
if ( v3 != 3 )
{
LODWORD(v4) = v4 | (a2[3] << 24);
if ( v3 != 4 )
{
HIDWORD(v4) = a2[4];
if ( v3 != 5 )
{
HIDWORD(v4) |= a2[5] << 8;
if ( v3 != 6 )
{
HIDWORD(v4) |= a2[6] << 16;
if ( v3 == 8 )
HIDWORD(v4) |= a2[7] << 24;
}
}
}
}
}
}
}
else
{
v4 = 0;
}
result[4] = v3;
*(_QWORD *)result = v4;
result[2] = a2;
return result;
}