//
// sub_58B5D4 from 0x58b5d4 to 0x58b64c (120 bytes)
//
// 2 xrefs:
// > ObjectManager::replaceAllOccurencesOfString @ 0x58c1d8
// > ObjectManager::replaceAllOccurencesOfString @ 0x58c6a0
//
// 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
//
__int64 __fastcall sub_58B5D4(__int64 a1, void **a2, _QWORD *a3)
{
__int64 result; // x0
while ( 1 )
{
result = sub_D1641C(a1, *a2);
if ( result == -1 )
break;
sub_D1861C(a1, result, *((_QWORD *)*a2 - 3), *a3, *(_QWORD *)(*a3 - 24LL));
}
return result;
}