//
// sub_998F30 from 0x998f30 to 0x998f4e (30 bytes)
//
// 0 xrefs:
//
// 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_998F30(int result, int a2)
{
__int64 v2; // kr00_8
if ( *(_DWORD *)a2 )
return j_fputc((unsigned __int8)result, *(FILE **)a2);
v2 = *(_QWORD *)(a2 + 8);
if ( HIDWORD(v2) < (unsigned int)v2 )
{
*(_DWORD *)(a2 + 12) = HIDWORD(v2) + 1;
*(_BYTE *)(*(_DWORD *)(a2 + 4) + HIDWORD(v2)) = result;
}
return result;
}