//
// sub_1406B03C4 from 0x1406b03c4 to 0x1406b0451 (141 bytes)
//
// 2 xrefs:
// > ??> @ 0x1408c2c37
// > ??> @ 0x1409407e4
//
// 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:36:56 +0000
//
void __fastcall __noreturn sub_1406B03C4(__int64 a1, _QWORD *a2)
{
_DWORD *v3; // rdi
__int64 v4; // rsi
__int64 v5; // rbx
_DWORD *v6; // r8
_DWORD *v7; // rcx
__int64 *v8; // rbx
v3 = (_DWORD *)a2[10];
a2[7] = v3;
v4 = a2[4];
a2[8] = v4;
v5 = a2[27];
a2[9] = &v3[18 * v5];
sub_140122C60((__int64)&v3[18 * v5], (__int64)&v3[36 * v5], v3);
a2[6] = 0;
v6 = &v3[18 * v5];
v7 = &v3[36 * v5];
v8 = (__int64 *)a2[5];
sub_1403CCC40(v7, (_DWORD *)*v8, v6);
sub_140122D20(v4, *v8);
*v8 = v4;
throw;
}