//
// unknown_libname_43 from 0x18012dd08 to 0x18012dd81 (121 bytes)
//
// 2 xrefs:
// > __multtenpow12 @ 0x18012d97b
// > ??> @ 0x180202c90
//
// 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
//
// Microsoft VisualC 64bit universal runtime
char __fastcall unknown_libname_43(__int64 a1)
{
unsigned __int16 *v2; // rdi
__int64 v3; // rsi
char is_wide_character; // al
unsigned int v5; // ecx
*(_QWORD *)(a1 + 32) += 8LL;
v2 = *(unsigned __int16 **)(*(_QWORD *)(a1 + 32) - 8LL);
if ( !v2 || (v3 = *((_QWORD *)v2 + 1)) == 0 )
{
*(_QWORD *)(a1 + 72) = "(null)";
v5 = 6;
goto LABEL_6;
}
is_wide_character = __crt_stdio_output::is_wide_character_specifier(
*(_QWORD *)a1,
*(_WORD *)(a1 + 66),
*(_DWORD *)(a1 + 60));
*(_QWORD *)(a1 + 72) = v3;
v5 = *v2;
if ( !is_wide_character )
{
LABEL_6:
*(_BYTE *)(a1 + 84) = 0;
goto LABEL_7;
}
*(_BYTE *)(a1 + 84) = 1;
v5 >>= 1;
LABEL_7:
*(_DWORD *)(a1 + 80) = v5;
return 1;
}