//
// sub_1005346F4 from 0x1005346f4 to 0x100534780 (140 bytes)
//
// 1 xrefs:
// > sub_100524C60 @ 0x100524ef0
//
// 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
//
__int64 __fastcall sub_1005346F4(__int64 a1, const void *a2, __int64 a3)
{
__int64 v5; // x21
void *v6; // x0
void *v7; // x0
if ( (*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 200LL) + 112LL) & 2) == 0 )
return 1;
v5 = *(_QWORD *)(a1 + 256);
if ( !v5 )
return 0;
v6 = *(void **)(v5 + 576);
if ( v6 )
sub_100588C44(v6);
v7 = (void *)sub_100588710(a3, "t1_lib.c", 3701);
*(_QWORD *)(v5 + 576) = v7;
if ( v7 )
{
*(_QWORD *)(v5 + 584) = (int)a3;
memcpy(v7, a2, (int)a3);
return 1;
}
return 0;
}