//
// sub_7D12E0 from 0x7d12e0 to 0x7d130c (44 bytes)
//
// 3 xrefs:
// > BIO_get_new_index @ 0x7d131c
// > BIO_get_new_index @ 0x7d1328
// > ??> @ 0x7d13ac
//
// 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 __fastcall sub_7D12E0(int a1)
{
int result; // r0
int v2; // r1
result = CRYPTO_THREAD_lock_new(a1);
v2 = result;
if ( result )
v2 = 1;
bio_type_lock = result;
dword_AD2DEC = v2;
return result;
}