//
// sub_1006D3C70 from 0x1006d3c70 to 0x1006d4081 (1041 bytes)
//
// 1 xrefs:
// > SecretLayer::onSubmit @ 0x1006d2d01
//
// 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:35:40 +0000
//
__int64 __fastcall sub_1006D3C70(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rbx
char *v4; // rbx
__int64 v5; // rbx
double v6; // xmm0_8
char *v7; // rbx
__int64 v8; // r15
__int64 v9; // r13
__int64 v10; // rax
const char *CString; // rax
__int64 v12; // rax
__int64 v13; // r13
__int64 v14; // rax
const char *v15; // rax
__int64 v16; // rax
__int64 v17; // r13
__int64 v18; // rax
const char *v19; // rax
__int64 v20; // rax
__int64 v21; // r13
__int64 v22; // rax
const char *v23; // rax
__int64 v24; // rax
_QWORD *v25; // rax
char *v26; // rax
_DWORD *v27; // rax
int v28; // eax
_OWORD *v29; // r14
__int64 v30; // rax
__int64 v31; // rax
_OWORD *v32; // r14
_OWORD *v33; // rax
__int64 v34; // rax
char v36; // [rsp+0h] [rbp-70h]
char v37; // [rsp+0h] [rbp-70h]
char v38; // [rsp+0h] [rbp-70h]
char v39; // [rsp+0h] [rbp-70h]
__int64 v40; // [rsp+4h] [rbp-6Ch] BYREF
__int64 v41; // [rsp+Ch] [rbp-64h] BYREF
__int64 v42; // [rsp+14h] [rbp-5Ch] BYREF
__int64 v43; // [rsp+1Ch] [rbp-54h] BYREF
__int64 v44; // [rsp+24h] [rbp-4Ch] BYREF
__int64 v45; // [rsp+2Ch] [rbp-44h] BYREF
float v46[2]; // [rsp+34h] [rbp-3Ch] BYREF
float v47; // [rsp+3Ch] [rbp-34h]
__int64 v48; // [rsp+40h] [rbp-30h] BYREF
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v44, v2);
sub_100278250((float *)&v43, *(float *)&v44 * 0.5, (float)(*((float *)&v44 + 1) * 0.5) + 50.0);
v3 = cocos2d::CCParticleSystemQuad::create("coinPickupEffect.plist", 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1584LL))(v3, 1);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v3, 1);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v3 + 184LL))(v3, &v43);
v4 = CCCircleWave::create(0, 0, 25.0, 5.0, 0.30000001);
v4[342] = 0;
*((_WORD *)v4 + 170) = -14081;
(*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v4 + 184LL))(v4, &v43);
(*(void (__fastcall **)(__int64, char *, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v4, 0);
v5 = CCCircleWave::create_1(0, 5.0, 60.0, 0.30000001);
*(_BYTE *)(v5 + 342) = 0;
*(_WORD *)(v5 + 340) = -1;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL))(v5, &v43);
v6 = (*(double (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v5, 0);
*(_QWORD *)(v5 + 352) = 0x400000001LL;
v7 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"secretCoin_01_001.png", v6);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7, 2);
(*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v7 + 184LL))(v7, &v43);
v8 = sub_1007FE900(v7);
v9 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v10 = sub_10088E820("%s_01_001.png", v36);
CString = (const char *)cocos2d::CCString::getCString(v10);
v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, CString);
sub_1007FEBF0(v8, v12);
v13 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v14 = sub_10088E820("%s_01_002.png", v37);
v15 = (const char *)cocos2d::CCString::getCString(v14);
v16 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, v15);
sub_1007FEBF0(v8, v16);
v17 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v18 = sub_10088E820("%s_01_003.png", v38);
v19 = (const char *)cocos2d::CCString::getCString(v18);
v20 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, v19);
sub_1007FEBF0(v8, v20);
v21 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v22 = sub_10088E820("%s_01_004.png", v39);
v23 = (const char *)cocos2d::CCString::getCString(v22);
v24 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v21, v23);
sub_1007FEBF0(v8, v24);
v25 = cocos2d::CCAnimation::createWithSpriteFrames(v8, 0.050000001);
v26 = cocos2d::CCAnimate::create((__int64)v25);
v27 = cocos2d::CCRepeatForever::create((__int64)v26);
cocos2d::CCNode::runAction((__int64)v7, (__int64)v27);
sub_1002782D0(&v48, &v43);
v47 = *(float *)&v43;
v28 = rand();
sub_100278250(
v46,
(float)((float)((float)((float)((float)v28 * 4.6566129e-10) + (float)((float)v28 * 4.6566129e-10)) + -1.0) * 50.0)
+ v47,
*((float *)&v48 + 1) + -60.0);
sub_1002782A0(&v40);
sub_1002782A0(&v41);
sub_1002782A0(&v42);
sub_100278250((float *)&v45, *(float *)&v48, *((float *)&v48 + 1) + 90.0);
sub_100278300(&v41, &v45);
sub_100278250((float *)&v45, v46[0], *((float *)&v48 + 1) + 180.0);
sub_100278300(&v42, &v45);
sub_100278250((float *)&v45, v46[0], v46[1] + -20.0);
sub_100278300(&v40, &v45);
v29 = cocos2d::CCBezierTo::create(&v40, (__m128)0x3F400000u);
v30 = cocos2d::CCCallFunc::create(v7, 537, 0);
v31 = sub_10039EB60((__int64)v29, v30, 0);
cocos2d::CCNode::runAction((__int64)v7, v31);
v32 = cocos2d::CCDelayTime::create((__m128)0x3F000000u);
v33 = cocos2d::CCFadeOut::create((__m128)0x3E99999Au);
v34 = sub_10039EB60((__int64)v32, v33, 0);
return cocos2d::CCNode::runAction((__int64)v7, v34);
}