//
// EndLevelLayer::create from 0x53412c to 0x534280 (340 bytes)
//
// 1 xrefs:
// > PlayLayer::showEndLayer @ 0x40253e
//
// 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:52:06 +0000
//
int *__fastcall EndLevelLayer::create(EndLevelLayer *this, PlayLayer *a2)
{
int *v3; // r4
int v4; // r3
int *v5; // r0
v3 = (int *)operator new(0x220u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v3);
*v3 = (int)&off_CA8E30;
v3[66] = (int)&off_CA90EC;
v3[67] = (int)&off_CA9124;
v3[68] = (int)&off_CA9130;
v3[69] = (int)&off_CA9140;
v3[70] = (int)&off_CA9154;
v3[79] = (int)&off_CA916C;
v3[83] = (int)&off_CA91AC;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 110));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 112));
v3[114] = 0;
v3[115] = 0;
v3[116] = 0;
*v3 = (int)&off_CAAF60;
*((_BYTE *)v3 + 468) = 0;
v3[66] = (int)&off_CAB220;
v3[118] = 0;
v3[67] = (int)&off_CAB258;
*((_BYTE *)v3 + 476) = 0;
v3[68] = (int)&off_CAB264;
v3[120] = 0;
v3[69] = (int)&off_CAB274;
*((_BYTE *)v3 + 484) = 0;
v3[70] = (int)&off_CAB288;
*((_BYTE *)v3 + 485) = 0;
v3[79] = (int)&off_CAB2A0;
v3[83] = (int)&off_CAB2E0;
*((_BYTE *)v3 + 486) = 0;
*((_BYTE *)v3 + 487) = 0;
*((_BYTE *)v3 + 488) = 0;
*((_BYTE *)v3 + 489) = 0;
v3[123] = 0;
v3[124] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 125));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 127));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 129));
v3[131] = 0;
v3[132] = 0;
v3[133] = 0;
v3[134] = 0;
*((_BYTE *)v3 + 541) = 0;
if ( EndLevelLayer::init((EndLevelLayer *)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
v4 = *v3;
v5 = v3;
v3 = nullptr;
(*(void (__fastcall **)(int *))(v4 + 8))(v5);
}
return v3;
}