//
// SelectPremadeLayer::onSelectPremade from 0xb46cf8 to 0xb46d54 (92 bytes)
//
// 3 xrefs:
// > ??> @ 0x550c0
// > SelectPremadeLayer::init @ 0xb4ca68
// > ??> @ 0x1541e38
//
// 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:54 +0000
//
__int64 __fastcall SelectPremadeLayer::onSelectPremade(SelectPremadeLayer *this, cocos2d::CCObject *a2)
{
void (__fastcall ***v3)(_QWORD, SelectPremadeLayer *, _QWORD); // x20
void (__fastcall *v4)(_QWORD, SelectPremadeLayer *, _QWORD); // x21
unsigned int v5; // w0
v3 = *((void (__fastcall ****)(_QWORD, SelectPremadeLayer *, _QWORD))this + 83);
if ( v3 )
{
v4 = **v3;
v5 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4(v3, this, v5);
}
return SelectPremadeLayer::onClose(this, nullptr);
}