//
// AutoSaveSettingsLayer::create from 0xbc997c to 0xbc9c30 (692 bytes)
//
// 3 xrefs:
// > EditorPauseLayer::onAutoSaveSettings @ 0x8b642c
// > AutoBackupPopup::onSettings @ 0xc51b58
// > ??> @ 0xf1e88
//
// 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:03:33 +0000
//
__int64 __fastcall AutoSaveSettingsLayer::create(AutoSaveSettingsLayer *this)
{
__int64 v1; // x19
__int64 v2; // x1
v1 = operator new(0x428u);
cocos2d::CCLayerColor::CCLayerColor((cocos2d::CCLayerColor *)v1);
*(_QWORD *)(v1 + 552) = 0;
*(_QWORD *)v1 = &off_1419A40;
*(_QWORD *)(v1 + 320) = off_1419F90;
*(_QWORD *)(v1 + 328) = &off_141A000;
*(_QWORD *)(v1 + 336) = off_141A018;
*(_QWORD *)(v1 + 344) = off_141A038;
*(_QWORD *)(v1 + 352) = off_141A060;
*(_QWORD *)(v1 + 408) = &off_141A090;
*(_QWORD *)(v1 + 432) = &off_141A110;
*(_QWORD *)(v1 + 544) = off_141A130;
*(_QWORD *)(v1 + 560) = 0;
*(_QWORD *)(v1 + 568) = 0;
*(_BYTE *)(v1 + 576) = 0;
*(_QWORD *)(v1 + 584) = 0;
*(_DWORD *)(v1 + 592) = 0;
*(_BYTE *)(v1 + 596) = 0;
*(_BYTE *)(v1 + 597) = 0;
*(_BYTE *)(v1 + 598) = 0;
*(_BYTE *)(v1 + 599) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 600));
*(_DWORD *)(v1 + 632) = -1;
*(_DWORD *)(v1 + 640) = -1;
*(_QWORD *)(v1 + 608) = 0;
*(_DWORD *)(v1 + 648) = 0;
*(_QWORD *)(v1 + 616) = 0;
*(_DWORD *)(v1 + 652) = 0;
*(_QWORD *)(v1 + 624) = 0;
*(_DWORD *)(v1 + 732) = 0;
*(_BYTE *)(v1 + 636) = 0;
*(_DWORD *)(v1 + 736) = 0;
*(_BYTE *)(v1 + 637) = 0;
*(_DWORD *)(v1 + 740) = 0;
*(_BYTE *)(v1 + 644) = 0;
*(_DWORD *)(v1 + 820) = 0;
*(_BYTE *)(v1 + 656) = 0;
*(_QWORD *)(v1 + 680) = 0;
*(_QWORD *)(v1 + 688) = 0;
*(_BYTE *)(v1 + 696) = 0;
*(_BYTE *)(v1 + 697) = 0;
*(_QWORD *)(v1 + 704) = 0;
*(_QWORD *)(v1 + 712) = 0;
*(_QWORD *)(v1 + 720) = 0;
*(_BYTE *)(v1 + 728) = 0;
*(_BYTE *)(v1 + 744) = 0;
*(_QWORD *)(v1 + 752) = 0;
*(_QWORD *)(v1 + 760) = 0;
*(_QWORD *)(v1 + 768) = 0;
*(_QWORD *)(v1 + 776) = 0;
*(_QWORD *)(v1 + 784) = 0;
*(_QWORD *)(v1 + 792) = 0;
*(_QWORD *)(v1 + 800) = 0;
*(_QWORD *)(v1 + 808) = 0;
*(_DWORD *)(v1 + 816) = 0;
*(_QWORD *)(v1 + 824) = 0;
*(_QWORD *)(v1 + 880) = v1 + 888;
*(_DWORD *)(v1 + 1008) = 10;
*(_QWORD *)(v1 + 856) = v1 + 864;
*(_QWORD *)(v1 + 832) = 0;
*(_QWORD *)(v1 + 840) = 0;
*(_QWORD *)(v1 + 848) = 0;
*(_QWORD *)(v1 + 864) = 0;
*(_QWORD *)(v1 + 872) = 0;
*(_QWORD *)(v1 + 888) = 0;
*(_QWORD *)(v1 + 896) = 0;
*(_BYTE *)(v1 + 904) = 0;
*(_BYTE *)(v1 + 905) = 0;
*(_QWORD *)(v1 + 912) = 0;
*(_DWORD *)(v1 + 920) = 0;
*(_QWORD *)(v1 + 928) = 0;
*(_QWORD *)(v1 + 936) = 0;
*(_QWORD *)(v1 + 944) = 0;
*(_QWORD *)(v1 + 952) = 0;
*(_QWORD *)(v1 + 960) = 0;
*(_QWORD *)(v1 + 968) = 0;
*(_QWORD *)(v1 + 976) = 0;
*(_QWORD *)(v1 + 984) = 0;
*(_BYTE *)(v1 + 992) = 0;
*(_QWORD *)(v1 + 1000) = 0;
*(float *)(v1 + 924) = 1.0;
*(_QWORD *)v1 = &off_14E0BE0;
*(_QWORD *)(v1 + 320) = off_14E11D0;
*(_QWORD *)(v1 + 328) = &off_14E1240;
*(_QWORD *)(v1 + 336) = off_14E1258;
*(_QWORD *)(v1 + 344) = off_14E1278;
*(_QWORD *)(v1 + 352) = off_14E12A0;
*(_QWORD *)(v1 + 408) = &off_14E12D0;
*(_QWORD *)(v1 + 432) = &off_14E1350;
*(_QWORD *)(v1 + 544) = off_14E1370;
*(_QWORD *)(v1 + 664) = &off_14E13B8;
*(_QWORD *)(v1 + 672) = off_14E13D0;
*(_QWORD *)(v1 + 1016) = 0;
*(_QWORD *)(v1 + 1024) = 0;
*(_QWORD *)(v1 + 1032) = 0;
*(_QWORD *)(v1 + 1040) = 0;
*(_QWORD *)(v1 + 1048) = 0;
std::string::__init((__int64 *)(v1 + 1032), &byte_11B8890, 0);
v2 = *(_QWORD *)v1;
*(_QWORD *)(v1 + 1056) = 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;
}
}