//
// EditorSoundConfigInfoLayer::onDuplicate from 0xccd46c to 0xccd588 (284 bytes)
//
// 3 xrefs:
// > ??> @ 0x7dba8
// > EditorSoundConfigInfoLayer::init @ 0xcd20d0
// > ??> @ 0x15433d8
//
// 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:25 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::onDuplicate(EditorSoundConfigInfoLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x20
_QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF
void *v6; // [xsp+30h] [xbp+30h]
if ( *((_QWORD *)this + 136) )
{
v6 = (void *)operator new(0x30u);
v5[1] = 33;
v5[0] = 49;
strcpy((char *)v6, "Create a copy of this sound pack?");
v3 = FLAlertLayer::create(
(__int64)this + 1032,
(cocos2d::CCLabelBMFont *)"Clone Sound Pack",
(char *)v5,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Clone",
380.0);
if ( (v5[0] & 1) != 0 )
operator delete(v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 7005);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1312LL))(v3);
}
return _stack_chk_guard;
}