//
// sub_F30F28 from 0xf30f28 to 0xf30f80 (88 bytes)
//
// 3 xrefs:
// > sub_EDA980 @ 0xedab90
// > sub_EE86C8 @ 0xee8828
// > WebPPictureRescale @ 0xf225c4
//
// 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_F30F28(int a1, int a2, int *a3, int *a4)
{
int v4; // w4
int v5; // w5
v4 = *a3;
v5 = *a4;
if ( !*a3 )
v4 = (a2 / 2 + a1 * v5) / a2;
if ( !v5 )
v5 = (a1 / 2 + a2 * v4) / a1;
if ( v5 <= 0 || v4 <= 0 )
return 0;
*a3 = v4;
*a4 = v5;
return 1;
}