//
// LevelPage::addSecretCoin from 0x100434020 to 0x1004341d0 (432 bytes)
//
// 2 xrefs:
// > LevelSelectLayer::updatePageWithObject @ 0x100432ae5
// > sub_1004341D0 @ 0x10043422c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall LevelPage::addSecretCoin(LevelPage *a1)
{
GameObject *v1; // rax
GameObject *m_coinObject; // r14
cocos2d::CCArray *v3; // r14
cocos2d::CCSpriteFrameCache *v4; // r12
cocos2d::CCString *v5; // rax
const char *CString; // rax
cocos2d::CCSpriteFrame *v7; // rax
cocos2d::CCSpriteFrameCache *v8; // r12
cocos2d::CCString *v9; // rax
const char *v10; // rax
cocos2d::CCSpriteFrame *v11; // rax
cocos2d::CCSpriteFrameCache *v12; // r12
cocos2d::CCString *v13; // rax
const char *v14; // rax
cocos2d::CCSpriteFrame *v15; // rax
cocos2d::CCSpriteFrameCache *v16; // r12
cocos2d::CCString *v17; // rax
const char *v18; // rax
cocos2d::CCSpriteFrame *v19; // rax
cocos2d::CCAnimation *v20; // rax
cocos2d::CCAnimate *v21; // rax
cocos2d::CCRepeatForever *v22; // rax
float v23; // [rsp+0h] [rbp-30h] BYREF
float v24[10]; // [rsp+8h] [rbp-28h] BYREF
double v25; // 0:xmm0_8.8
cocos2d::CCDirector::sharedDirector();
*(cocos2d::CCSize *)&v25 = cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v24);
v1 = GameObject::createWithFrame("secretCoin_01_001.png");
a1->m_coinObject = v1;
v1->m_bUnkBool2 = 0;
((void (__fastcall *)(LevelPage *, GameObject *, __int64, double))a1->addChild_0)(a1, v1, 1, v25);
m_coinObject = a1->m_coinObject;
sub_10028CBE0(&v23, v24[0] * 0.5, 0.5 * v24[1]);
((void (__fastcall *)(GameObject *, float *))m_coinObject->setPosition)(m_coinObject, &v23);
v3 = (cocos2d::CCArray *)sub_10071F9E0(m_coinObject, &v23);
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v5 = (cocos2d::CCString *)sub_1007AB580("%s_01_001.png", SLOBYTE(v23));
CString = cocos2d::CCString::getCString(v5);
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, CString);
sub_10071FCD0(v3, v7);
v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v9 = (cocos2d::CCString *)sub_1007AB580("%s_01_002.png", SLOBYTE(v23));
v10 = cocos2d::CCString::getCString(v9);
v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v10);
sub_10071FCD0(v3, v11);
v12 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v13 = (cocos2d::CCString *)sub_1007AB580("%s_01_003.png", SLOBYTE(v23));
v14 = cocos2d::CCString::getCString(v13);
v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, v14);
sub_10071FCD0(v3, v15);
v16 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v17 = (cocos2d::CCString *)sub_1007AB580("%s_01_004.png", SLOBYTE(v23));
v18 = cocos2d::CCString::getCString(v17);
v19 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, v18);
sub_10071FCD0(v3, v19);
v20 = cocos2d::CCAnimation::createWithSpriteFrames(v3, 0.115);
v21 = cocos2d::CCAnimate::create(v20);
v22 = cocos2d::CCRepeatForever::create(v21);
cocos2d::CCNode::runAction(a1->m_coinObject, v22);
}