//
// DialogLayer::createDialogLayer from 0xa71470 to 0xa7159c (300 bytes)
//
// 3 xrefs:
// > DialogLayer::create @ 0xa715a4
// > DialogLayer::createWithObjects @ 0xa715b8
// > ??> @ 0x943f0
//
// 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:00:23 +0000
//
__int64 __fastcall DialogLayer::createDialogLayer(DialogLayer *this, DialogObject *a2, cocos2d::CCArray *a3)
{
unsigned int v5; // w20
__int64 v6; // x19
v5 = (unsigned int)a3;
v6 = operator new(0x288u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v6);
*(_QWORD *)(v6 + 568) = 0;
*(_QWORD *)(v6 + 544) = &off_14931D0;
*(_QWORD *)v6 = &off_1492B00;
*(_DWORD *)(v6 + 600) = -1;
*(_QWORD *)(v6 + 320) = off_1493030;
*(_QWORD *)(v6 + 328) = &off_14930A0;
*(_QWORD *)(v6 + 336) = off_14930B8;
*(_QWORD *)(v6 + 344) = off_14930D8;
*(_QWORD *)(v6 + 352) = off_1493100;
*(_QWORD *)(v6 + 408) = &off_1493130;
*(_QWORD *)(v6 + 432) = &off_14931B0;
*(_QWORD *)(v6 + 576) = 0;
*(_QWORD *)(v6 + 584) = 0;
*(_QWORD *)(v6 + 592) = 0;
*(_BYTE *)(v6 + 616) = 0;
*(_BYTE *)(v6 + 617) = 0;
*(_QWORD *)(v6 + 624) = 0;
*(_BYTE *)(v6 + 632) = 0;
*(_DWORD *)(v6 + 636) = 1;
*(_BYTE *)(v6 + 640) = 0;
*(_QWORD *)(v6 + 552) = 0;
if ( (unsigned __int8)DialogLayer::init((DialogLayer *)v6, this, a2, v5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return v6;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6);
return 0;
}
}