//
// DialogLayer::createDialogLayer from 0x1003b0690 to 0x1003b07bb (299 bytes)
//
// 2 xrefs:
// > DialogLayer::create @ 0x1003b0689
// > DialogLayer::createWithObjects @ 0x1003b07dc
//
// This function is hookable on this platform (idp: pc, 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:29:25 +0000
//
char *__fastcall DialogLayer::createDialogLayer(__int64 a1, __int64 a2, unsigned int a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x288u);
cocos2d::CCLayerColor::CCLayerColor(v4);
*(_QWORD *)v4 = off_100B36C60;
*((_QWORD *)v4 + 40) = off_100B37190;
*((_QWORD *)v4 + 41) = &off_100B37200;
*((_QWORD *)v4 + 42) = off_100B37218;
*((_QWORD *)v4 + 43) = off_100B37238;
*((_QWORD *)v4 + 44) = off_100B37260;
*((_QWORD *)v4 + 51) = off_100B37290;
*((_QWORD *)v4 + 54) = off_100B37310;
*((_QWORD *)v4 + 68) = &off_100B37330;
*((_QWORD *)v4 + 69) = 0;
*(_OWORD *)(v4 + 568) = 0;
*(_OWORD *)(v4 + 584) = 0;
*((_DWORD *)v4 + 150) = -1;
*((_WORD *)v4 + 308) = 0;
*((_QWORD *)v4 + 78) = 0;
v4[632] = 0;
*((_DWORD *)v4 + 159) = 1;
v4[640] = 0;
if ( (unsigned __int8)DialogLayer::init(v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return v4;
}