//
// sub_1405214E0 from 0x1405214e0 to 0x1405215ab (203 bytes)
//
// 9 xrefs:
// > sub_1405351F0 @ 0x14053521d
// > sub_1405351F0 @ 0x140535229
// > sub_1405351F0 @ 0x140535235
// > sub_140535600 @ 0x140535869
// > sub_140547690 @ 0x1405478e2
// > sub_140547690 @ 0x1405493a2
// > sub_140547690 @ 0x140549da0
// > ??> @ 0x14092b424
// > ??> @ 0x14092b430
//
// 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:33:38 +0000
//
double __fastcall sub_1405214E0(__int64 a1, unsigned __int8 *a2)
{
unsigned int v2; // ebx
unsigned int v4; // esi
__int128 v6; // [rsp+20h] [rbp-28h] BYREF
_BYTE v7[24]; // [rsp+30h] [rbp-18h] BYREF
v2 = a2[1];
v4 = a2[2];
fmt::BasicWriter::operator<<(a1, *a2);
v6 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v7, a1 + 528);
fmt::BasicWriter::operator<<(a1, &v6);
fmt::BasicWriter::operator<<(a1, v2);
v6 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v7, a1 + 528);
fmt::BasicWriter::operator<<(a1, &v6);
fmt::BasicWriter::operator<<(a1, v4);
v6 = *(_OWORD *)fmt::BasicStringRef::BasicStringRef(v7, a1 + 528);
return fmt::BasicWriter::operator<<(a1, &v6);
}