//
// sub_736D54 from 0x736d54 to 0x736d6c (24 bytes)
//
// 3 xrefs:
// > sub_6F9950 @ 0x6f99f0
// > sub_6FC848 @ 0x6fca50
// > sub_6FC848 @ 0x6fcbba
//
// 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_736D54(int a1, int a2)
{
int result; // r0
result = (*(_DWORD *)(a1 + 24) + *(_DWORD *)(a1 + 32) - 1) / *(_DWORD *)(a1 + 32);
if ( result >= a2 )
return a2;
return result;
}