//
// ASN1_const_check_infinite_end from 0x9d7278 to 0x9d72c4 (76 bytes)
//
// 1 xrefs:
// > ??> @ 0x781dc
//
// 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:07:15 +0000
//
int __fastcall ASN1_const_check_infinite_end(_DWORD *a1, int a2)
{
_BYTE *v2; // r2
if ( a2 <= 0 )
return 1;
if ( a2 == 1 )
return 0;
v2 = (_BYTE *)*a1;
if ( *(_BYTE *)*a1 || v2[1] )
return 0;
*a1 = v2 + 2;
return 1;
}