//
// BrowseSmartKeyLayer::onPrefabObject from 0x14045c470 to 0x14045c545 (213 bytes)
//
// 4 xrefs:
// > BrowseSmartKeyLayer::init @ 0x14045b905
// > ??> @ 0x1406a3dcc
// > ??> @ 0x1406a3ddc
// > ??> @ 0x1406dac1c
//
// 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
//
void BrowseSmartKeyLayer::onPrefabObject(BrowseSmartKeyLayer *a1, cocos2d::CCObject *a2)
{
__int64 v2; // rax
__int64 *v3; // rdi
char v4; // cl
bool v5; // si
bool v6; // zf
struct cocos2d::CCSprite *v7; // rax
__int64 v8; // r8
float v9; // xmm0_4
__int64 v10; // rbx
__int64 v11; // rax
v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].copyWithZone)(a2);
v3 = (__int64 *)v2;
v4 = *(_BYTE *)(v2 + 368);
v5 = v4 == 0;
if ( (v4 == 0) != v4 )
{
v6 = *(_QWORD *)(v2 + 360) == 0;
*(_BYTE *)(v2 + 368) = v5;
if ( v6 )
{
v7 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_select_001.png");
v8 = *v3;
v3[45] = (__int64)v7;
(*(void (__fastcall **)(__int64 *, struct cocos2d::CCSprite *))(v8 + 448))(v3, v7);
v9 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v3[45] + 160LL))(v3[45]);
v10 = *(_QWORD *)v3[45];
cocos2d::CCPoint::CCPoint(v9, 45.0);
(*(void (__fastcall **)(__int64, __int64))(v10 + 184))(v3[45], v11);
}
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v3[45] + 320LL))(v3[45], v5);
}
}