//
// sub_100158720 from 0x100158720 to 0x100158763 (67 bytes)
//
// 1 xrefs:
// > sub_1008AA930 @ 0x1008aa94a
//
// 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 12:25:05 +0000
//
__int64 __fastcall sub_100158720(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 result; // rax
*(_QWORD *)a1 = 0;
*(_QWORD *)(a1 + 64) = *(_QWORD *)a2;
v2 = *(_QWORD *)(a2 + 48);
*(_OWORD *)(a1 + 8) = *(_OWORD *)(a2 + 8);
*(_OWORD *)(a1 + 24) = 0;
*(_QWORD *)(a1 + 40) = *(_QWORD *)(a2 + 40);
*(_QWORD *)(a1 + 48) = v2;
result = *(_QWORD *)(a2 + 56);
*(_QWORD *)(a1 + 56) = result;
*(_OWORD *)(a1 + 72) = *(_OWORD *)(a2 + 24);
return result;
}