//
// sub_1003A90D8 from 0x1003a90d8 to 0x1003a91e8 (272 bytes)
//
// 1 xrefs:
// > SecretLayer2::onSubmit @ 0x1003a8090
//
// 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 11:03:50 +0000
//
__int64 __fastcall sub_1003A90D8(__int64 a1)
{
__int64 v2; // x0
unsigned int v3; // w20
__int64 v4; // x0
float *v5; // x0
_OWORD *v6; // x20
float *v7; // x21
__int64 v8; // x19
v2 = GameManager::sharedState(a1);
GameManager::setUGV(v2, "1", 1);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 496) + 344LL))(*(_QWORD *)(a1 + 496), 1);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 496) + 1056LL))(*(_QWORD *)(a1 + 496), 1);
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 504)) )
{
v3 = 0;
do
{
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 504), v3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 344LL))(v4, 1);
++v3;
}
while ( v3 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 504)) );
}
v5 = cocos2d::CCScaleTo::create_1(0.5, 0.5);
v6 = cocos2d::CCEaseBounceOut::create((__int64)v5);
v7 = cocos2d::CCFadeIn::create(0.15);
v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 496) + 1072LL))(*(_QWORD *)(a1 + 496));
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 1.0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v8 + 912LL))(v8, 0);
cocos2d::CCNode::runAction(v8, (__int64)v6);
return cocos2d::CCNode::runAction(v8, (__int64)v7);
}