//
// AccountLoginLayer::create from 0x14007b770 to 0x14007b90e (414 bytes)
//
// 3 xrefs:
// > AccountLayer::onLogin @ 0x14007de7f
// > AccountHelpLayer::onReLogin @ 0x14007fa48
// > ??> @ 0x1406c67a4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
char *__fastcall AccountLoginLayer::create(__int64 a1)
{
char *v2; // rbx
__int64 v3; // rax
char v5[32]; // [rsp+28h] [rbp-40h] BYREF
__int64 v6; // [rsp+48h] [rbp-20h]
v6 = a1;
v2 = (char *)operator new(0x2F8u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v2);
*(_QWORD *)v2 = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 40) = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 41) = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 42) = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 43) = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 44) = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 51) = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 54) = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 79) = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 80) = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 81) = &AccountLoginLayer::`vftable';
*((_QWORD *)v2 + 82) = 0;
*((_QWORD *)v2 + 83) = 0;
*((_QWORD *)v2 + 84) = 0;
*((_QWORD *)v2 + 85) = 0;
*((_QWORD *)v2 + 86) = 0;
*(_OWORD *)(v2 + 696) = 0;
*((_QWORD *)v2 + 89) = 0;
*((_QWORD *)v2 + 90) = 15;
v2[696] = 0;
*(_OWORD *)(v2 + 728) = 0;
*((_QWORD *)v2 + 93) = 0;
*((_QWORD *)v2 + 94) = 15;
v2[728] = 0;
v3 = sub_14003BDB0((__int64)v5, a1);
if ( (unsigned __int8)AccountLoginLayer::init(v2, v3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);
v2 = nullptr;
}
sub_14003A830(a1);
return v2;
}