// // sub_1003A9298 from 0x1003a9298 to 0x1003a9674 (988 bytes) // // 1 xrefs: // > SecretLayer2::onSubmit @ 0x1003a7958 // // 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:50 +0000 // __int64 __fastcall sub_1003A9298(__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 __int64 CString; // x0 __int64 v11; // x0 __int64 v12; // x21 void *v13; // x0 __int64 v14; // x0 __int64 v15; // x0 __int64 v16; // x21 void *v17; // x0 __int64 v18; // x0 __int64 v19; // x0 __int64 v20; // x21 void *v21; // x0 __int64 v22; // x0 _QWORD *v23; // x0 void *v24; // x0 _DWORD *v25; // x0 float v26; // s10 unsigned int v27; // w0 _OWORD *v28; // x20 char v29; // w0 __int64 v30; // x1 __int64 v31; // x2 __int64 v32; // x3 __int64 v33; // x4 __int64 v34; // x5 __int64 v35; // x6 __int64 v36; // x7 __int64 v37; // x0 float *v38; // x20 char v39; // w0 __int64 v40; // x1 __int64 v41; // x2 __int64 v42; // x3 __int64 v43; // x4 __int64 v44; // x5 __int64 v45; // x6 __int64 v46; // x7 __int64 v47; // x0 double v49; // [xsp+10h] [xbp-80h] BYREF __int64 v50; // [xsp+18h] [xbp-78h] BYREF __int64 v51; // [xsp+20h] [xbp-70h] BYREF __int64 v52; // [xsp+28h] [xbp-68h] BYREF float v53[2]; // [xsp+30h] [xbp-60h] BYREF __int64 v54; // [xsp+38h] [xbp-58h] BYREF double v55; // [xsp+40h] [xbp-50h] BYREF __int64 v56; // [xsp+48h] [xbp-48h] BYREF v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v2, &v56); sub_1000262BC((float *)&v55, *(float *)&v56 * 0.5, (float)(*((float *)&v56 + 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, &v55); 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, &v55); (*(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, &v55); (*(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, &v55); v7 = sub_1002E736C(); v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v7); v9 = sub_1003065B0("%s_01_001.png", "secretCoin"); CString = cocos2d::CCString::getCString((__int64)v9); cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, CString); v11 = sub_1002E74E0((__int64)v7); v12 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v11); v13 = sub_1003065B0("%s_01_002.png", "secretCoin"); v14 = cocos2d::CCString::getCString((__int64)v13); cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, v14); v15 = sub_1002E74E0((__int64)v7); v16 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v15); v17 = sub_1003065B0("%s_01_003.png", "secretCoin"); v18 = cocos2d::CCString::getCString((__int64)v17); cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, v18); v19 = sub_1002E74E0((__int64)v7); v20 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v19); v21 = sub_1003065B0("%s_01_004.png", "secretCoin"); v22 = cocos2d::CCString::getCString((__int64)v21); cocos2d::CCSpriteFrameCache::spriteFrameByName(v20, v22); sub_1002E74E0((__int64)v7); v23 = cocos2d::CCAnimation::createWithSpriteFrames((__int64)v7, 0.05); v24 = cocos2d::CCAnimate::create((__int64)v23); v25 = cocos2d::CCRepeatForever::create((__int64)v24); cocos2d::CCNode::runAction((__int64)v6, (__int64)v25); sub_1000262F4(&v54, &v55); v26 = *(float *)&v55; v27 = rand(); sub_1000262BC( v53, v26 + (float)((float)((float)(vcvts_n_f32_s32(v27, 0x1Fu) * 2.0) + -1.0) * 50.0), *((float *)&v54 + 1) + -60.0); sub_1000262EC(&v50); sub_1000262EC(&v51); sub_1000262EC(&v52); sub_1000262BC((float *)&v49, *(float *)&v54, *((float *)&v54 + 1) + 90.0); sub_10002630C(&v51, &v49); sub_1000262BC((float *)&v49, v53[0], *((float *)&v54 + 1) + 180.0); sub_10002630C(&v52, &v49); sub_1000262BC((float *)&v49, v53[0], v53[1] + -20.0); sub_10002630C(&v50, &v49); v28 = cocos2d::CCBezierTo::create((__int64)&v50, 0.75); v29 = (unsigned __int8)cocos2d::CCCallFunc::create((__int64)v6, 536, 1); v37 = sub_10021D420((__int64)v28, v30, v31, v32, v33, v34, v35, v36, v29); cocos2d::CCNode::runAction((__int64)v6, v37); v38 = cocos2d::CCDelayTime::create(0.5); v39 = (unsigned __int8)cocos2d::CCFadeOut::create(0.3); v47 = sub_10021D420((__int64)v38, v40, v41, v42, v43, v44, v45, v46, v39); return cocos2d::CCNode::runAction((__int64)v6, v47); }
GD Web Decomp Icon

GD Web Decomp

Raw Source