//
// sub_9985C4 from 0x9985c4 to 0x9985f8 (52 bytes)
//
// 2 xrefs:
// > sub_997FF4 @ 0x99816e
// > sub_997FF4 @ 0x9981ca
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:06:42 +0000
//
int __fastcall sub_9985C4(int **a1)
{
_BOOL4 v2; // r0
int v3; // r5
int *v4; // r0
int v5; // r1
v2 = sub_992FEA(**a1);
v3 = 0;
while ( v2 )
{
v4 = *a1 + 1;
v5 = **a1;
*a1 = v4;
v3 = v5 + 10 * v3 - 48;
v2 = sub_992FEA(*v4);
}
return v3;
}