//
// sub_CC26F0 from 0xcc26f0 to 0xcc27ac (188 bytes)
//
// 10 xrefs:
// > EditorSFXManager::encodeSound @ 0xcc28b4
// > EditorSFXManager::encodeSound @ 0xcc28dc
// > EditorSFXManager::encodeSound @ 0xcc28ec
// > EditorSFXManager::encodeSound @ 0xcc28fc
// > EditorSFXManager::encodeSound @ 0xcc290c
// > EditorSFXManager::encodeSound @ 0xcc291c
// > EditorSFXManager::encodeSound @ 0xcc292c
// > EditorSFXManager::encodeSound @ 0xcc294c
// > EditorSFXManager::encodeSound @ 0xcc295c
// > EditorSFXManager::encodeSound @ 0xcc299c
//
// 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_CC26F0(__int64 *a1, int a2, int a3)
{
int v3; // w4
__int64 v6; // x1
size_t v7; // x0
int v10; // [xsp+38h] [xbp+38h]
char s[32]; // [xsp+48h] [xbp+48h] BYREF
v3 = a3;
if ( a3 )
{
v6 = *(_BYTE *)a1 >> 1;
if ( (*(_BYTE *)a1 & 1) != 0 )
v6 = a1[1];
if ( v6 )
{
v10 = a2;
std::string::push_back(a1, 44);
v3 = a3;
a2 = v10;
}
snprintf(s, 0x20u, "%d,%d", a2, v3);
v7 = strlen(s);
std::string::append((__int64)a1, s, v7);
}
return _stack_chk_guard;
}