//
// sub_109B830 from 0x109b830 to 0x109b8ec (188 bytes)
//
// 1 xrefs:
// > ??> @ 0x140fab8
//
// 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:17:28 +0000
//
bool __fastcall sub_109B830(int a1, _QWORD *a2, __int64 a3, _QWORD *a4)
{
int v4; // w2
__int64 v5; // x20
_BOOL8 result; // x0
__int64 v8; // x0
if ( !a2 )
return 1;
v4 = a1 - 10;
v5 = *a2;
result = 1;
switch ( v4 )
{
case 0:
if ( (int)CMS_stream(a4 + 2, *a2) > 0 )
goto LABEL_4;
result = 0;
break;
case 1:
case 3:
result = (int)CMS_dataFinal(v5, a4[1]) > 0;
break;
case 2:
LABEL_4:
v8 = CMS_dataInit(v5, *a4);
a4[1] = v8;
result = v8 != 0;
break;
default:
return result;
}
return result;
}