//
// EndLevelLayer::create from 0x8f9ad8 to 0x8f9c84 (428 bytes)
//
// 2 xrefs:
// > PlayLayer::showEndLayer @ 0x6f712c
// > ??> @ 0xfa480
//
// 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 12:57:02 +0000
//
__int64 __fastcall EndLevelLayer::create(EndLevelLayer *this, PlayLayer *a2)
{
__int64 v3; // x19
v3 = operator new(0x2B0u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v3);
*(_QWORD *)v3 = &off_145E470;
*(_QWORD *)(v3 + 320) = off_145E9E8;
*(_QWORD *)(v3 + 328) = &off_145EA58;
*(_QWORD *)(v3 + 336) = off_145EA70;
*(_QWORD *)(v3 + 344) = off_145EA90;
*(_QWORD *)(v3 + 352) = off_145EAB8;
*(_QWORD *)(v3 + 408) = &off_145EAE8;
*(_QWORD *)(v3 + 432) = &off_145EB68;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 544));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 552));
*(_QWORD *)(v3 + 560) = 0;
*(_QWORD *)(v3 + 568) = 0;
*(_QWORD *)(v3 + 576) = 0;
*(_BYTE *)(v3 + 584) = 0;
*(_QWORD *)(v3 + 592) = 0;
*(_BYTE *)(v3 + 600) = 0;
*(_QWORD *)(v3 + 608) = 0;
*(_QWORD *)v3 = &off_14626B0;
*(_QWORD *)(v3 + 320) = off_1462C30;
*(_QWORD *)(v3 + 328) = &off_1462CA0;
*(_QWORD *)(v3 + 336) = off_1462CB8;
*(_QWORD *)(v3 + 344) = off_1462CD8;
*(_QWORD *)(v3 + 352) = off_1462D00;
*(_QWORD *)(v3 + 408) = &off_1462D30;
*(_QWORD *)(v3 + 432) = &off_1462DB0;
*(_BYTE *)(v3 + 616) = 0;
*(_BYTE *)(v3 + 617) = 0;
*(_BYTE *)(v3 + 618) = 0;
*(_BYTE *)(v3 + 619) = 0;
*(_BYTE *)(v3 + 620) = 0;
*(_BYTE *)(v3 + 621) = 0;
*(_QWORD *)(v3 + 624) = 0;
*(_QWORD *)(v3 + 632) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 640));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 648));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v3 + 656));
*(_DWORD *)(v3 + 664) = 0;
*(_DWORD *)(v3 + 668) = 0;
*(_DWORD *)(v3 + 672) = 0;
*(_DWORD *)(v3 + 676) = 0;
*(_BYTE *)(v3 + 681) = 0;
if ( (unsigned __int8)EndLevelLayer::init((EndLevelLayer *)v3, this) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
return 0;
}
}