//
// ERR_set_mark from 0xa10244 to 0xa10274 (48 bytes)
//
// 5 xrefs:
// > PKCS12_parse @ 0xa39ab0
// > X509_print_ex @ 0xa52894
// > sub_A5F18C @ 0xa5f1b8
// > engine_table_select @ 0xac9698
// > ??> @ 0x7c46c
//
// 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:46 +0000
//
int ERR_set_mark()
{
int state; // r0
int v1; // r2
int v2; // r3
int v3; // r1
state = ERR_get_state();
v1 = *(_DWORD *)(state + 384);
v2 = state;
if ( *(_DWORD *)(state + 388) == v1 )
return 0;
v3 = *(_DWORD *)(state + 4 * v1);
*(_DWORD *)(v2 + 4 * v1) = v3 | 1;
return 1;
}