//
// sub_100394D68 from 0x100394d68 to 0x100394e80 (280 bytes)
//
// 1 xrefs:
// > sub_1003941B8 @ 0x1003943e8
//
// 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:40 +0000
//
__int64 __fastcall sub_100394D68(__int64 result)
{
__int64 v1; // x8
__int64 v2; // x19
int v3; // w21
void *v4; // x20
__int64 v5; // x0
__int64 v6; // x20
int v7; // w8
float32x2_t v8; // [xsp+0h] [xbp-30h] BYREF
float32x2_t v9; // [xsp+8h] [xbp-28h] BYREF
v1 = *(_QWORD *)(result + 608);
if ( v1 )
{
v2 = result;
v3 = *(_DWORD *)(*(_QWORD *)(v1 + 1936) + 900LL);
sub_1000262BC((float *)&v8, 0.0, 8.0);
sub_100026318((float32x2_t *)(v2 + 640), &v8, &v9);
v4 = cocos2d::CCParticleSystemQuad::create("starEffect.plist", 0);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 1584LL))(v4, 1);
(*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v2 + 576) + 464LL))(*(_QWORD *)(v2 + 576), v4, 9);
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v4 + 184LL))(v4, &v9);
v5 = CCCircleWave::create_1(0);
v6 = v5;
if ( v3 == 5 )
v7 = -256;
else
v7 = 0xFFFF;
*(_BYTE *)(v5 + 342) = BYTE2(v7);
*(_WORD *)(v5 + 340) = v7;
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v5 + 184LL))(v5, &v9);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v2 + 576) + 464LL))(*(_QWORD *)(v2 + 576), v6, 9);
return sub_100394E80(v2);
}
return result;
}