//
// sub_1800B8300 from 0x1800b8300 to 0x1800b8386 (134 bytes)
//
// 3 xrefs:
// > sub_1800A4BC0 @ 0x1800a4d76
// > sub_1800A4BC0 @ 0x1800a4dfb
// > ??> @ 0x1801fd2b4
//
// 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
//
_BYTE *__fastcall sub_1800B8300(_WORD *a1)
{
_WORD *v1; // rbx
_WORD *i; // rax
_BYTE *result; // rax
signed __int64 v4; // rdx
__int16 v5; // cx
char v6; // [rsp+30h] [rbp-18h]
v1 = a1;
for ( i = a1; *i; ++i )
;
v6 = 1;
result = sub_1800B6530(
*((_QWORD *)off_1801AED20 + 52),
2 * (unsigned int)(i - a1) + 2,
"C:\\buildagent1\\work\\570ad728b1678096\\core_api\\src\\fmod_stringw.cpp",
202,
0,
0,
v6);
if ( result )
{
v4 = result - (_BYTE *)v1;
do
{
v5 = *v1;
*(_WORD *)((char *)v1 + v4) = *v1;
++v1;
}
while ( v5 );
}
return result;
}