//
// sub_14059E710 from 0x14059e710 to 0x14059e771 (97 bytes)
//
// 4 xrefs:
// > SelectPremadeLayer::init @ 0x14059e456
// > ??> @ 0x1408de550
// > ??> @ 0x1408de560
// > ??> @ 0x14092d344
//
// This function is hookable on this platform (idp: pc, 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:34:36 +0000
//
__int64 __fastcall sub_14059E710(_QWORD *a1, __int64 a2)
{
void (__fastcall ***v2)(_QWORD, _QWORD *, _QWORD); // rsi
void (__fastcall **v4)(_QWORD, _QWORD *, _QWORD); // rbx
unsigned int v5; // eax
__int64 v6; // rdx
v2 = (void (__fastcall ***)(_QWORD, _QWORD *, _QWORD))a1[83];
if ( v2 )
{
v4 = *v2;
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
(*v4)(v2, a1, v5);
}
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 992LL))(a1, 0);
LOBYTE(v6) = 1;
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 520LL))(a1, v6);
}