//
// SecretLayer5::handleSecretResponse from 0x100471020 to 0x1004710d6 (182 bytes)
//
// 4 xrefs:
// > SecretLayer5::finishLoadingState @ 0x100471015
// > SecretLayer5::onlineRewardStatusFinished @ 0x1004723a3
// > SecretLayer5::onlineRewardStatusFailed @ 0x10047242f
// > sub_100472440 @ 0x10047247d
//
// This function is hookable on this platform (idp: pc, 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 12:30:33 +0000
//
__int64 __fastcall SecretLayer5::handleSecretResponse(__int64 a1)
{
__int64 v2; // rbx
_OWORD *v3; // rax
LoadingCircleSprite::fadeInCircle(*(_QWORD *)(a1 + 632), 0, 0.5, 0.0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 480) + 1056LL))(*(_QWORD *)(a1 + 480), 1);
if ( *(_DWORD *)(a1 + 516) == 1 )
return SecretLayer5::showSuccessAnimation(a1);
SecretLayer5::showFailAnimation(a1);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 464) + 1000LL))(*(_QWORD *)(a1 + 464), 1);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 464) + 344LL))(*(_QWORD *)(a1 + 464), 1);
cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 624));
v2 = *(_QWORD *)(a1 + 624);
v3 = cocos2d::CCFadeTo::create(100, (__m128)0x3F99999Au);
return cocos2d::CCNode::runAction(v2, (__int64)v3);
}