//
// MapSelectLayer::create from 0xac1fe4 to 0xac20ec (264 bytes)
//
// 2 xrefs:
// > MapSelectLayer::scene @ 0xac2108
// > ??> @ 0xd5d18
//
// 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:01:05 +0000
//
__int64 __fastcall MapSelectLayer::create(MapSelectLayer *this)
{
__int64 v1; // x19
__int64 v2; // x1
v1 = operator new(0x1E8u);
cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v1);
*(_QWORD *)(v1 + 408) = 0;
*(_QWORD *)v1 = &off_14AAD70;
*(_QWORD *)(v1 + 320) = off_14AB208;
*(_QWORD *)(v1 + 328) = &off_14AB278;
*(_QWORD *)(v1 + 336) = off_14AB290;
*(_QWORD *)(v1 + 344) = off_14AB2B0;
*(_QWORD *)(v1 + 352) = off_14AB2D8;
*(_QWORD *)(v1 + 424) = 0;
*(_BYTE *)(v1 + 432) = 0;
*(_BYTE *)(v1 + 433) = 0;
*(_BYTE *)(v1 + 434) = 0;
*(_BYTE *)(v1 + 435) = 0;
*(_BYTE *)(v1 + 448) = 0;
*(_QWORD *)(v1 + 440) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 452));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 460));
v2 = *(_QWORD *)v1;
*(_QWORD *)(v1 + 472) = 0;
*(_QWORD *)(v1 + 480) = 0;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(v2 + 80))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}