//
// SecretLayer5::handleSecretResponse from 0x10047c6c0 to 0x10047c776 (182 bytes)
//
// 4 xrefs:
// > SecretLayer5::finishLoadingState @ 0x10047c6b5
// > SecretLayer5::onlineRewardStatusFinished @ 0x10047da43
// > SecretLayer5::onlineRewardStatusFailed @ 0x10047dacf
// > sub_10047DAE0 @ 0x10047db1d
//
// 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 __fastcall SecretLayer5::handleSecretResponse(SecretLayer5 *a1)
{
cocos2d::extension::CCScale9Sprite *m_inputBackground; // rbx
cocos2d::CCFadeTo *v2; // rax
LoadingCircleSprite::fadeInCircle(a1->m_circleSprite, 0, 0.5, 0.0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_wraithButton->setEnabled)(a1->m_wraithButton, 1);
if ( a1->m_rewardStatus == 1 )
{
SecretLayer5::showSuccessAnimation(a1);
}
else
{
SecretLayer5::showFailAnimation(a1);
((void (__fastcall *)(CCTextInputNode *, __int64))a1->m_textInput->setTouchEnabled)(a1->m_textInput, 1);
((void (__fastcall *)(CCTextInputNode *, __int64))a1->m_textInput->setVisible)(a1->m_textInput, 1);
cocos2d::CCNode::stopAllActions(a1->m_inputBackground);
m_inputBackground = a1->m_inputBackground;
v2 = cocos2d::CCFadeTo::create(1.2, 0x64u);
cocos2d::CCNode::runAction(m_inputBackground, v2);
}
}