//
// sub_F30D80 from 0xf30d80 to 0xf30e10 (144 bytes)
//
// 2 xrefs:
// > sub_EDBD8C @ 0xedbf28
// > WebPPictureARGBToYUVADithered @ 0xf20150
//
// This function is hookable on this platform (idp: arm, 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 13:12:53 +0000
//
__int64 __fastcall sub_F30D80(_DWORD *a1, float a2)
{
__int64 result; // x0
memcpy(a1 + 2, &unk_11E89F0, 0xDCu);
*a1 = 0;
a1[1] = 31;
if ( a2 < 0.0 )
{
a1[57] = 0;
return 0;
}
else
{
result = 256;
if ( a2 <= 1.0 )
{
result = (unsigned int)(float)(a2 * 256.0);
a1[57] = result;
}
else
{
a1[57] = 256;
}
}
return result;
}