//
// sub_9784EC from 0x9784ec to 0x978518 (44 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:06:00 +0000
//
_DWORD *__fastcall sub_9784EC(_DWORD *a1, size_t a2, unsigned int a3, unsigned __int8 *a4)
{
unsigned __int64 v4; // kr00_8
unsigned int v5; // r4
v4 = *(_QWORD *)(a4 + 4);
v5 = *a4;
if ( (v5 & 1) == 0 )
v4 = __PAIR64__((unsigned int)(a4 + 1), v5 >> 1);
return std::string::replace(a1, a2, a3, (char *)HIDWORD(v4), v4);
}