//
// sub_1406B0479 from 0x1406b0479 to 0x1406b04d3 (90 bytes)
//
// 2 xrefs:
// > ??> @ 0x1408c2c3e
// > ??> @ 0x1409407f0
//
// 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_1406B0479(__int64 a1, _QWORD *a2)
{
_DWORD *v3; // r8
__int64 v4; // rsi
__int64 v5; // rdi
__int64 *v6; // rbx
v3 = (_DWORD *)a2[10];
a2[7] = v3;
v4 = a2[4];
a2[8] = v4;
v5 = a2[24];
a2[9] = v5;
v6 = (__int64 *)a2[5];
sub_140122C60(v5, *v6, v3);
a2[6] = 0;
sub_140122D20(v5, *v6);
*v6 = v4;
throw;
}