//
// sub_F310A8 from 0xf310a8 to 0xf31114 (108 bytes)
//
// 9 xrefs:
// > sub_EDEEE8 @ 0xedef70
// > sub_EDEFD8 @ 0xedf098
// > sub_EDEFD8 @ 0xedf0e8
// > sub_EDEFD8 @ 0xedf128
// > WebPPictureRescale @ 0xf226c0
// > WebPPictureRescale @ 0xf22750
// > WebPPictureRescale @ 0xf22800
// > WebPPictureRescale @ 0xf22874
// > WebPPictureRescale @ 0xf2294c
//
// 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_F310A8(int *a1)
{
unsigned int v1; // w20
v1 = 0;
if ( a1[14] > a1[16] )
{
while ( a1[6] <= 0 )
{
++v1;
sub_F01578((__int64)a1);
if ( a1[14] <= a1[16] )
return v1;
}
}
return v1;
}