//
// DialogLayer::createDialogLayer from 0x609e20 to 0x609eee (206 bytes)
//
// 2 xrefs:
// > DialogLayer::create @ 0x609ef8
// > DialogLayer::createWithObjects @ 0x609f04
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:47 +0000
//
cocos2d::CCLayerColor *__fastcall DialogLayer::createDialogLayer(
DialogLayer *this,
DialogObject *a2,
cocos2d::CCArray *a3,
int a4)
{
cocos2d::CCLayerColor *v7; // r4
int v8; // r3
int *v9; // r0
v7 = (cocos2d::CCLayerColor *)operator new(0x1F8u);
cocos2d::CCLayerColor::CCLayerColor(v7);
*(_DWORD *)v7 = &off_CC3228;
*((_DWORD *)v7 + 66) = &off_CC34C0;
*((_DWORD *)v7 + 67) = &off_CC34F8;
*((_DWORD *)v7 + 68) = &off_CC3504;
*((_DWORD *)v7 + 69) = &off_CC3514;
*((_DWORD *)v7 + 70) = &off_CC3528;
*((_DWORD *)v7 + 79) = &off_CC3540;
*((_DWORD *)v7 + 83) = &off_CC3580;
*((_DWORD *)v7 + 110) = &off_CC3590;
*((_QWORD *)v7 + 56) = 0;
*((_DWORD *)v7 + 115) = 0;
*((_DWORD *)v7 + 116) = 0;
*((_DWORD *)v7 + 117) = 0;
*((_DWORD *)v7 + 118) = 0;
*((_DWORD *)v7 + 119) = -1;
*((_BYTE *)v7 + 484) = 0;
*((_BYTE *)v7 + 485) = 0;
*((_DWORD *)v7 + 122) = 0;
*((_BYTE *)v7 + 492) = 0;
*((_DWORD *)v7 + 124) = 1;
*((_BYTE *)v7 + 500) = 0;
if ( DialogLayer::init(v7, this, a2, (const char *)a3) )
{
cocos2d::CCObject::autorelease(v7);
}
else
{
v8 = *(_DWORD *)v7;
v9 = (int *)v7;
v7 = nullptr;
(*(void (__fastcall **)(int *))(v8 + 8))(v9);
}
return v7;
}