//
// EditorSFXManager::getOrCreateBinding from 0xcc48d0 to 0xcc4988 (184 bytes)
//
// 4 xrefs:
// > EditorSFXManager::setPlayMode @ 0xcc4994
// > EditorSFXManager::addSound @ 0xcc49f4
// > EditorSFXManager::deserializeAll @ 0xcc6638
// > ??> @ 0x541d8
//
// 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:19 +0000
//
__int64 __fastcall EditorSFXManager::getOrCreateBinding(EditorSFXManager *this, int a2)
{
__int64 *v3; // x0
__int64 v5; // x20
cocos2d::CCObject *v6; // x0
int v7; // [xsp+3Ch] [xbp+3Ch] BYREF
v7 = a2;
v3 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
this,
&v7);
if ( v3 )
return v3[3];
v5 = operator new(0x50u);
*(_DWORD *)(v5 + 8) = 1;
*(_QWORD *)v5 = 0;
*(_DWORD *)(v5 + 12) = 0;
*(_QWORD *)(v5 + 16) = 0;
*(_QWORD *)(v5 + 24) = 0;
*(_QWORD *)(v5 + 32) = 0;
*(_QWORD *)(v5 + 40) = 0;
*(_QWORD *)(v5 + 48) = 0;
*(_QWORD *)(v5 + 56) = 0;
*(_DWORD *)(v5 + 64) = 0;
*(_QWORD *)(v5 + 68) = 0xFFFFFFFFLL;
v6 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)0xFFFFFFFFLL);
*(_QWORD *)v5 = v6;
cocos2d::CCObject::retain(v6);
*(_QWORD *)std::unordered_map::operator[]((__int64)this, &v7) = v5;
return v5;
}