//
// ERR_set_mark from 0x7fb644 to 0x7fb674 (48 bytes)
//
// 5 xrefs:
// > PKCS12_parse @ 0x824eb0
// > X509_print_ex @ 0x83dc94
// > sub_84A58C @ 0x84a5b8
// > engine_table_select @ 0x8b4698
// > ??> @ 0x629ec
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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;
}