//
// sub_100465B9C from 0x100465b9c to 0x100465f78 (988 bytes)
//
// 1 xrefs:
// > sub_100464B28 @ 0x100464fb8
//
// 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:05:32 +0000
//
__int64 __fastcall sub_100465B9C(__int64 a1)
{
__int64 v2; // x0
void *v3; // x19
_BYTE *v4; // x19
__int64 v5; // x19
void *v6; // x19
_QWORD *v7; // x20
__int64 v8; // x21
void *v9; // x0
char *CString; // x0
__int64 v11; // x21
void *v12; // x0
char *v13; // x0
__int64 v14; // x21
void *v15; // x0
char *v16; // x0
__int64 v17; // x21
void *v18; // x0
char *v19; // x0
_QWORD *v20; // x0
void *v21; // x0
_DWORD *v22; // x0
float v23; // s10
unsigned int v24; // w0
_OWORD *v25; // x20
char v26; // w0
__int64 v27; // x1
__int64 v28; // x2
__int64 v29; // x3
__int64 v30; // x4
__int64 v31; // x5
__int64 v32; // x6
__int64 v33; // x7
__int64 v34; // x0
float *v35; // x20
char v36; // w0
__int64 v37; // x1
__int64 v38; // x2
__int64 v39; // x3
__int64 v40; // x4
__int64 v41; // x5
__int64 v42; // x6
__int64 v43; // x7
__int64 v44; // x0
double v46; // [xsp+10h] [xbp-80h] BYREF
__int64 v47; // [xsp+18h] [xbp-78h] BYREF
__int64 v48; // [xsp+20h] [xbp-70h] BYREF
__int64 v49; // [xsp+28h] [xbp-68h] BYREF
float v50[2]; // [xsp+30h] [xbp-60h] BYREF
__int64 v51; // [xsp+38h] [xbp-58h] BYREF
double v52; // [xsp+40h] [xbp-50h] BYREF
__int64 v53; // [xsp+48h] [xbp-48h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v2, &v53);
sub_1000262BC((float *)&v52, *(float *)&v53 * 0.5, (float)(*((float *)&v53 + 1) * 0.5) + 50.0);
v3 = cocos2d::CCParticleSystemQuad::create("coinPickupEffect.plist", 0);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v3 + 1584LL))(v3, 1);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v3, 1);
(*(void (__fastcall **)(void *, double *))(*(_QWORD *)v3 + 184LL))(v3, &v52);
v4 = CCCircleWave::create(0, 0, 25.0, 5.0, 0.3);
v4[342] = 0;
*((_WORD *)v4 + 170) = -14081;
(*(void (__fastcall **)(_BYTE *, double *))(*(_QWORD *)v4 + 184LL))(v4, &v52);
(*(void (__fastcall **)(__int64, _BYTE *, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v4, 0);
v5 = CCCircleWave::create_1(0);
*(_BYTE *)(v5 + 342) = 0;
*(_WORD *)(v5 + 340) = -1;
(*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v5 + 184LL))(v5, &v52);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v5, 0);
*(_QWORD *)(v5 + 352) = 0x400000001LL;
v6 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"secretCoin_01_001.png");
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v6, 2);
(*(void (__fastcall **)(void *, double *))(*(_QWORD *)v6 + 184LL))(v6, &v52);
v7 = sub_1002E736C();
v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v9 = sub_1003065B0("%s_01_001.png", "secretCoin");
CString = (char *)cocos2d::CCString::getCString((__int64)v9);
cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, CString);
sub_1002E74E0((__int64)v7);
v11 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v12 = sub_1003065B0("%s_01_002.png", "secretCoin");
v13 = (char *)cocos2d::CCString::getCString((__int64)v12);
cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, v13);
sub_1002E74E0((__int64)v7);
v14 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v15 = sub_1003065B0("%s_01_003.png", "secretCoin");
v16 = (char *)cocos2d::CCString::getCString((__int64)v15);
cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, v16);
sub_1002E74E0((__int64)v7);
v17 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v18 = sub_1003065B0("%s_01_004.png", "secretCoin");
v19 = (char *)cocos2d::CCString::getCString((__int64)v18);
cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, v19);
sub_1002E74E0((__int64)v7);
v20 = cocos2d::CCAnimation::createWithSpriteFrames((__int64)v7, 0.05);
v21 = cocos2d::CCAnimate::create((__int64)v20);
v22 = cocos2d::CCRepeatForever::create((__int64)v21);
cocos2d::CCNode::runAction((__int64)v6, (__int64)v22);
sub_1000262F4(&v51, &v52);
v23 = *(float *)&v52;
v24 = rand();
sub_1000262BC(
v50,
v23 + (float)((float)((float)(vcvts_n_f32_s32(v24, 0x1Fu) * 2.0) + -1.0) * 50.0),
*((float *)&v51 + 1) + -60.0);
sub_1000262EC(&v47);
sub_1000262EC(&v48);
sub_1000262EC(&v49);
sub_1000262BC((float *)&v46, *(float *)&v51, *((float *)&v51 + 1) + 90.0);
sub_10002630C(&v48, &v46);
sub_1000262BC((float *)&v46, v50[0], *((float *)&v51 + 1) + 180.0);
sub_10002630C(&v49, &v46);
sub_1000262BC((float *)&v46, v50[0], v50[1] + -20.0);
sub_10002630C(&v47, &v46);
v25 = cocos2d::CCBezierTo::create((__int64)&v47, 0.75);
v26 = (unsigned __int8)cocos2d::CCCallFunc::create((__int64)v6, 536, 1);
v34 = sub_10021D420((__int64)v25, v27, v28, v29, v30, v31, v32, v33, v26);
cocos2d::CCNode::runAction((__int64)v6, v34);
v35 = cocos2d::CCDelayTime::create(0.5);
v36 = (unsigned __int8)cocos2d::CCFadeOut::create(0.3);
v44 = sub_10021D420((__int64)v35, v37, v38, v39, v40, v41, v42, v43, v36);
return cocos2d::CCNode::runAction((__int64)v6, v44);
}