//
// AudioEffectsLayer::create from 0x401a2c to 0x401b02 (214 bytes)
//
// 1 xrefs:
// > PlayLayer::setupHasCompleted @ 0x31bdca
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall AudioEffectsLayer::create(char *a1, char *a2, char *a3)
{
int v3; // r4
int v4; // r5
char *v6[3]; // [sp+0h] [bp-Ch] BYREF
v6[0] = a1;
v6[1] = a2;
v6[2] = a3;
v3 = operator new(0x1D8u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v3);
*(_DWORD *)v3 = &off_A5D0D0;
*(_DWORD *)(v3 + 264) = &off_A5D35C;
*(_DWORD *)(v3 + 268) = &off_A5D394;
*(_DWORD *)(v3 + 272) = &off_A5D3A0;
*(_DWORD *)(v3 + 276) = &off_A5D3B0;
*(_DWORD *)(v3 + 280) = &off_A5D3C0;
*(_DWORD *)(v3 + 316) = &off_A5D3D4;
*(_DWORD *)(v3 + 332) = &off_A5D414;
*(_DWORD *)(v3 + 452) = 0;
*(_DWORD *)(v3 + 440) = 0;
*(_DWORD *)(v3 + 444) = 0;
*(_DWORD *)(v3 + 448) = 0;
*(_DWORD *)(v3 + 456) = 0;
*(_BYTE *)(v3 + 460) = 0;
*(_DWORD *)(v3 + 464) = 0;
*(_BYTE *)(v3 + 468) = 0;
sub_775C20(v6);
v4 = AudioEffectsLayer::init((AudioEffectsLayer *)v3, v6);
sub_774008(v6);
if ( v4 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(int))(*(_DWORD *)v3 + 8))(v3);
return 0;
}
}