//
// fmt::BasicWriter::write_str from 0xb69760 to 0xb697e0 (128 bytes)
//
// 3 xrefs:
// > fmt::BasicFormatter::format @ 0xb6efb0
// > fmt::internal::PrintfParser::Format @ 0xb6fc44
// > ??> @ 0x523b0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int32x4_t *__fastcall fmt::BasicWriter::write_str(unsigned __int64 *a1, __int64 a2, __int64 a3)
{
unsigned int *v3; // x3
fmt::internal *v6; // x0
size_t v7; // x2
const char *v8; // x1
unsigned int *v10; // [xsp+20h] [xbp+20h]
const char *v11; // [xsp+28h] [xbp+28h]
v3 = (unsigned int *)a3;
v6 = (fmt::internal *)*(unsigned __int8 *)(a3 + 20);
if ( (_DWORD)v6 != 115 && *(_BYTE *)(a3 + 20) )
{
fmt::internal::ReportUnknownType(v6, (char)"string", (const char *)a3);
v3 = (unsigned int *)a3;
}
v7 = *(_QWORD *)(a2 + 8);
v8 = *(const char **)a2;
if ( !v7 && *v8 )
{
v10 = v3;
v11 = *(const char **)a2;
v7 = strlen(*(const char **)a2);
v3 = v10;
v8 = v11;
}
return fmt::BasicWriter::write_str(a1, (unsigned __int64)v8, v7, v3);
}