//
// sub_100034D98 from 0x100034d98 to 0x100034ef8 (352 bytes)
//
// 1 xrefs:
// > sub_100034C70 @ 0x100034d94
//
// 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 10:57:32 +0000
//
__int64 __fastcall sub_100034D98(__int64 a1)
{
__int64 v2; // x20
float v3; // s8
__int64 v4; // x22
float v5; // s9
float v6; // s10
__int64 v7; // x23
__int64 v8; // x0
__int64 v9; // x20
__int64 v10; // x1
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 320)) )
{
v2 = 0;
v3 = 0.0;
do
{
v4 = sub_1002E75A0(*(_QWORD *)(a1 + 320), v2);
v5 = vcvts_n_f32_s32(rand(), 0x1Fu) * 0.2;
v6 = (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.1) + 0.5;
v7 = cocos2d::CCDelayTime::create(v5);
cocos2d::CCActionTween::create_1("opacity", v6, *(float *)(v4 + 336), 0.0);
cocos2d::CCCallFunc::create(v4, 536, 1);
v8 = sub_10021D420(v7);
cocos2d::CCNode::runAction(v4, v8);
if ( (float)(v5 + v6) > v3 )
v3 = v5 + v6;
v2 = (unsigned int)(v2 + 1);
}
while ( (unsigned int)v2 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 320)) );
}
else
{
v3 = 0.0;
}
v9 = cocos2d::CCDelayTime::create(v3);
cocos2d::CCCallFunc::create(a1, 536, 1);
v10 = sub_10021D420(v9);
return cocos2d::CCNode::runAction(a1, v10);
}