//
// fmt::print from 0x81d94c to 0x81d9f6 (170 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:47 +0000
//
void __fastcall fmt::print(_DWORD *a1, char *a2, int a3, _DWORD *a4)
{
char *v5; // r9
int v6; // r8
int v7; // r0
_DWORD *v10[6]; // [sp+14h] [bp-220h] BYREF
_DWORD v11[2]; // [sp+2Ch] [bp-208h] BYREF
char *v12; // [sp+34h] [bp-200h]
char v13; // [sp+38h] [bp-1FCh] BYREF
v10[0] = v11;
v11[0] = 0;
v10[2] = nullptr;
v11[1] = 500;
v12 = &v13;
fmt::BasicFormatter::Format(v10, a2, a3, a4);
v5 = v12;
v6 = v11[0];
std::ostream::sentry::sentry((int)v10, a1);
if ( LOBYTE(v10[0]) )
{
if ( v6 )
{
v7 = *(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 24);
if ( (*(int (__fastcall **)(int, char *, int, _DWORD, char *, int))(*(_DWORD *)v7 + 48))(
v7,
v5,
v6,
*(_DWORD *)(*(_DWORD *)v7 + 48),
a2,
a3) != v6 )
std::ios_base::clear(
(std::ios_base *)((char *)a1 + *(_DWORD *)(*a1 - 12)),
*(_DWORD *)((char *)a1 + *(_DWORD *)(*a1 - 12) + 16) | 1);
}
}
std::ostream::sentry::~sentry((int)v10);
fmt::internal::Array::free((int)v11);
}