//
// GJGarageLayer::onShards from 0x140278d00 to 0x140278e42 (322 bytes)
//
// 2 xrefs:
// > GJGarageLayer::init @ 0x140273df1
// > ??> @ 0x1406d1028
//
// 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=1
void GJGarageLayer::onShards(GJGarageLayer *a1, cocos2d::CCObject *a2)
{
float v2; // xmm3_4
ShardsPage *v4; // rbx
__int64 v5; // r8
void (__fastcall *show)(ShardsPage *__hidden); // rdx
v4 = (ShardsPage *)operator new(0x2A0u);
FLAlertLayer::FLAlertLayer(v4);
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (ShardsPage_vtbl *)&ShardsPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&ShardsPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&ShardsPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&ShardsPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&ShardsPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&ShardsPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&ShardsPage::`vftable';
v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&ShardsPage::`vftable';
v4->m_pages = nullptr;
v4->m_prevButton = nullptr;
v4->m_nextButton = nullptr;
v4->m_tierSprite = nullptr;
v4->m_page = -1;
if ( ShardsPage::init(v4) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
((void (__fastcall *)(ShardsPage *, __int64))v4->~ShardsPage)(v4, 1);
v4 = nullptr;
}
v4->m_scene = a1;
show = v4->show;
if ( (char *)show == (char *)ChallengesPage::show )
ChallengesPage::show((__int64)v4, (__int64)show, v5, v2);
else
show(v4);
}