//
// sub_CC27AC from 0xcc27ac to 0xcc2864 (184 bytes)
//
// 3 xrefs:
// > EditorSFXManager::encodeSound @ 0xcc297c
// > EditorSFXManager::encodeSound @ 0xcc298c
// > EditorSFXManager::encodeSound @ 0xcc29ac
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:06:18 +0000
//
__int64 __fastcall sub_CC27AC(__int64 *a1, int a2, char a3)
{
__int64 v5; // x1
size_t v6; // x0
int v8; // [xsp+38h] [xbp+38h]
char s[16]; // [xsp+48h] [xbp+48h] BYREF
if ( a3 )
{
v5 = *(_BYTE *)a1 >> 1;
if ( (*(_BYTE *)a1 & 1) != 0 )
v5 = a1[1];
if ( v5 )
{
v8 = a2;
std::string::push_back(a1, 44);
a2 = v8;
}
snprintf(s, 0x10u, "%d,%d", a2, 1);
v6 = strlen(s);
std::string::append((__int64)a1, s, v6);
}
return _stack_chk_guard;
}