//
// AudioEffectsLayer::create from 0x8b8dd4 to 0x8b8f54 (384 bytes)
//
// 2 xrefs:
// > PlayLayer::setupHasCompleted @ 0x707c58
// > ??> @ 0xb8ae0
//
// 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 12:56:26 +0000
//
__int64 __fastcall AudioEffectsLayer::create(char *a1)
{
__int64 v2; // x19
char v3; // w0
__int64 v4; // x0
__int64 v5; // x1
int v6; // w21
__int64 v8; // [xsp+30h] [xbp+30h] BYREF
__int64 v9; // [xsp+38h] [xbp+38h]
void *v10; // [xsp+40h] [xbp+40h]
v2 = operator new(0x250u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v2);
*(_QWORD *)(v2 + 544) = 0;
*(_QWORD *)v2 = &off_1459E80;
*(_QWORD *)(v2 + 320) = off_145A3A8;
*(_QWORD *)(v2 + 328) = &off_145A418;
*(_QWORD *)(v2 + 336) = off_145A430;
*(_QWORD *)(v2 + 344) = off_145A450;
*(_QWORD *)(v2 + 352) = off_145A478;
*(_QWORD *)(v2 + 408) = &off_145A4A8;
*(_QWORD *)(v2 + 432) = &off_145A528;
*(_QWORD *)(v2 + 552) = 0;
*(_QWORD *)(v2 + 560) = 0;
*(_BYTE *)(v2 + 576) = 0;
*(_BYTE *)(v2 + 584) = 0;
*(_DWORD *)(v2 + 568) = 0;
v8 = 0;
*(_DWORD *)(v2 + 572) = 0;
v9 = 0;
*(_DWORD *)(v2 + 580) = 0;
v3 = *a1;
v10 = nullptr;
if ( (v3 & 1) != 0 )
{
std::string::__init(&v8, *((void **)a1 + 2), *((_QWORD *)a1 + 1));
}
else
{
v4 = *(_QWORD *)a1;
v5 = *((_QWORD *)a1 + 1);
v10 = *((void **)a1 + 2);
v8 = v4;
v9 = v5;
}
v6 = (unsigned __int8)AudioEffectsLayer::init((AudioEffectsLayer *)v2, (__int64)&v8);
if ( (v8 & 1) != 0 )
operator delete(v10);
if ( v6 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return 0;
}
}