//
// sub_736D08 from 0x736d08 to 0x736d54 (76 bytes)
//
// 3 xrefs:
// > sub_6F6EAC @ 0x6f7070
// > sub_700CC0 @ 0x700d82
// > WebPPictureRescale @ 0x72b8ba
//
// 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
//
int __fastcall sub_736D08(int a1, int a2, int *a3, int *a4)
{
int v4; // r5
int v5; // r4
bool v6; // cc
v4 = *a3;
v5 = *a4;
if ( !*a3 )
v4 = (a2 / 2 + v5 * a1) / a2;
if ( !v5 )
v5 = (a1 / 2 + v4 * a2) / a1;
v6 = v4 <= 0;
if ( v4 > 0 )
v6 = v5 <= 0;
if ( v6 )
return 0;
*a3 = v4;
*a4 = v5;
return 1;
}