//
// sub_100665920 from 0x100665920 to 0x100665990 (112 bytes)
//
// 1 xrefs:
// > sub_1006A9638 @ 0x1006a9924
//
// 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 11:11:00 +0000
//
__int64 __fastcall sub_100665920(__int64 a1, const void *a2, __int64 a3)
{
void *v6; // x0
void *v7; // x0
v6 = *(void **)(a1 + 752);
if ( v6 )
sub_1006AEDAC(v6);
v7 = (void *)sub_1006AE878(a3, "ssl_lib.c", 1751);
*(_QWORD *)(a1 + 752) = v7;
if ( !v7 )
return 1;
memcpy(v7, a2, (unsigned int)a3);
*(_DWORD *)(a1 + 760) = a3;
return 0;
}