//
// BrowseSmartKeyLayer::create from 0x6751b4 to 0x6752a0 (236 bytes)
//
// 1 xrefs:
// > BrowseSmartTemplateLayer::onTemplateObject @ 0x67531c
//
// 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:55:55 +0000
//
FLAlertLayer *__fastcall BrowseSmartKeyLayer::create(cocos2d::CCObject *a1, int a2, int a3, int a4)
{
FLAlertLayer *v6; // r4
GameManager *v7; // r7
int v8; // r3
FLAlertLayer *v9; // r0
int v11[4]; // [sp+0h] [bp-10h] BYREF
v11[0] = (int)a1;
v11[1] = a2;
v11[2] = a3;
v11[3] = a4;
v6 = (FLAlertLayer *)operator new(0x230u);
FLAlertLayer::FLAlertLayer(v6);
*((_DWORD *)v6 + 130) = 0;
*((_DWORD *)v6 + 131) = 0;
*((_DWORD *)v6 + 132) = 0;
*((_DWORD *)v6 + 133) = 0;
*((_DWORD *)v6 + 134) = 0;
*((_DWORD *)v6 + 135) = 0;
*(_DWORD *)v6 = &off_CD3658;
*((_DWORD *)v6 + 136) = 0;
*((_DWORD *)v6 + 66) = &off_CD3904;
*((_DWORD *)v6 + 137) = 0;
*((_DWORD *)v6 + 67) = &off_CD393C;
*((_DWORD *)v6 + 138) = 0;
*((_DWORD *)v6 + 68) = &off_CD3948;
*((_DWORD *)v6 + 139) = 0;
*((_DWORD *)v6 + 69) = &off_CD3958;
*((_DWORD *)v6 + 70) = &off_CD396C;
*((_DWORD *)v6 + 79) = &off_CD3984;
*((_DWORD *)v6 + 83) = &off_CD39C4;
*((_DWORD *)v6 + 110) = &off_CD39D4;
std::string::basic_string(v11, a2);
v7 = BrowseSmartKeyLayer::init((int)v6, a1, (unsigned __int8 *)v11);
std::string::~string((int)v11);
if ( v7 )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
v8 = *(_DWORD *)v6;
v9 = v6;
v6 = nullptr;
(*(void (__fastcall **)(FLAlertLayer *))(v8 + 8))(v9);
}
return v6;
}