//
// sub_10025D560 from 0x10025d560 to 0x10025db6c (1548 bytes)
//
// 2 xrefs:
// > RewardUnlockLayer::playRewardEffect @ 0x10025c27c
// > RewardUnlockLayer::playRewardEffect @ 0x10025c304
//
// 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:01:37 +0000
//
void __fastcall sub_10025D560(__int64 a1, int a2, int a3, __int64 a4, __int64 a5, float a6)
{
std::string *v12; // x0
const std::string::value_type *v13; // x1
int v14; // w27
float v15; // s9
__int64 v16; // x23
__int64 v17; // x22
const char *v18; // x0
__int64 v19; // x21
__n128 v20; // q0
double v21; // d0
std::string *v22; // x0
__n128 v23; // q0
_DWORD *v24; // x24
__int64 v25; // x0
__int64 CString; // x0
float32x2_t *v27; // x25
double v28; // d0
float32x2_t *v29; // x0
double v30; // d0
char v31; // w19
float *v32; // x0
char v33; // w20
float *v34; // x0
__int64 v35; // x1
__int64 v36; // x2
__int64 v37; // x3
__int64 v38; // x4
__int64 v39; // x5
__int64 v40; // x6
__int64 v41; // x7
__int64 v42; // x0
float *v43; // x0
__int64 v44; // x1
__int64 v45; // x2
__int64 v46; // x3
__int64 v47; // x4
__int64 v48; // x5
__int64 v49; // x6
__int64 v50; // x7
__int64 v51; // x0
__n128 v52; // q0
float *v53; // x19
char v54; // w0
__int64 v55; // x1
__int64 v56; // x2
__int64 v57; // x3
__int64 v58; // x4
__int64 v59; // x5
__int64 v60; // x6
__int64 v61; // x7
__int64 v62; // x19
float *v63; // x20
char v64; // w0
__int64 v65; // x1
__int64 v66; // x2
__int64 v67; // x3
__int64 v68; // x4
__int64 v69; // x5
__int64 v70; // x6
__int64 v71; // x7
__int64 v72; // x20
__n128 v73; // q0
float *v74; // x19
char v75; // w0
__int64 v76; // x1
__int64 v77; // x2
__int64 v78; // x3
__int64 v79; // x4
__int64 v80; // x5
__int64 v81; // x6
__int64 v82; // x7
__int64 v83; // x0
float32x2_t v84; // [xsp+10h] [xbp-A0h] BYREF
float32x2_t v85; // [xsp+18h] [xbp-98h] BYREF
float32x2_t v86; // [xsp+20h] [xbp-90h] BYREF
float32x2_t v87; // [xsp+28h] [xbp-88h] BYREF
float32x2_t v88; // [xsp+30h] [xbp-80h] BYREF
std::string v89; // [xsp+38h] [xbp-78h] BYREF
memset(&v89, 0, sizeof(v89));
sub_1000262F4(&v88, &dbl_1009F53B0);
sub_1000262F4(&v87, &dbl_1009F53B0);
v13 = "fireShardBig_001.png";
switch ( a3 )
{
case 1:
v12 = std::string::assign(&v89, "currencyOrbIcon_001.png");
goto LABEL_41;
case 3:
v12 = std::string::assign(&v89, "GJ_bigDiamond_001.png");
v14 = 0;
v15 = 0.65;
goto LABEL_17;
case 4:
goto LABEL_16;
case 5:
v13 = "iceShardBig_001.png";
goto LABEL_16;
case 6:
v13 = "poisonShardBig_001.png";
goto LABEL_16;
case 7:
v13 = "shadowShardBig_001.png";
goto LABEL_16;
case 8:
v13 = "lavaShardBig_001.png";
goto LABEL_16;
case 9:
std::string::assign(&v89, "GJ_bigKey_001.png");
sub_1000262BC((float *)&v86, -7.0, 0.0);
sub_10002630C(&v88, (double *)&v86);
sub_1000262BC((float *)&v86, 0.0, -0.5);
sub_10002630C(&v87, (double *)&v86);
goto LABEL_13;
case 10:
v13 = "shard0201ShardBig_001.png";
goto LABEL_16;
case 11:
v13 = "shard0202ShardBig_001.png";
goto LABEL_16;
case 12:
v13 = "shard0203ShardBig_001.png";
goto LABEL_16;
case 13:
v13 = "shard0204ShardBig_001.png";
goto LABEL_16;
case 14:
v13 = "shard0205ShardBig_001.png";
LABEL_16:
v12 = std::string::assign(&v89, v13);
v14 = 1;
v15 = 0.7;
goto LABEL_17;
case 16:
std::string::assign(&v89, "GJ_bigGoldKey_001.png");
sub_1000262BC((float *)&v86, -7.0, 0.0);
sub_10002630C(&v88, (double *)&v86);
sub_1000262BC((float *)&v86, 0.0, -0.5);
sub_10002630C(&v87, (double *)&v86);
LABEL_13:
v14 = 0;
v15 = 0.9;
goto LABEL_17;
default:
if ( !a4 )
goto LABEL_37;
LABEL_41:
v14 = 0;
v15 = 1.2;
LABEL_17:
v16 = cocos2d::CCNode::create(v12);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v16,
10);
v17 = a4;
if ( !a4 )
{
if ( (v89.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v22 = &v89;
else
v22 = (std::string *)v89.__r_.__value_.__r.__words[0];
v17 = cocos2d::CCSprite::createWithSpriteFrameName(v22);
if ( v14 )
goto LABEL_19;
LABEL_27:
v19 = 0;
goto LABEL_28;
}
if ( !v14 )
goto LABEL_27;
LABEL_19:
if ( a3 >= 9 )
v18 = "shard2Shadow_001.png";
else
v18 = "shardShadow_001.png";
v19 = cocos2d::CCSprite::createWithSpriteFrameName(v18);
v20.n128_f64[0] = (*(double (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v17 + 464LL))(
v17,
v19,
0xFFFFFFFFLL);
cocos2d::CCNode::convertToNodeSpace(&v85, v17, &dbl_1009F53B0, v20);
sub_1000262BC((float *)&v84, 0.0, 1.0);
*(float32x2_t *)&v21 = sub_100026318(&v85, &v84, &v86);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v19 + 184LL))(v19, &v86, v21);
LABEL_28:
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 456LL))(v16, v17);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v17 + 160LL))(v17, v15);
if ( a4 )
{
v24 = nullptr;
}
else
{
sub_1000262BC((float *)&v86, 15.0, 0.0);
(*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v17 + 184LL))(v17, &v86);
v25 = sub_1003065B0("+%i", a2);
CString = cocos2d::CCString::getCString(v25);
v24 = (_DWORD *)cocos2d::CCLabelBMFont::create_1(CString, "bigFont.fnt");
sub_1000262BC((float *)&v86, 1.0, 0.5);
(*(void (__fastcall **)(_DWORD *, float32x2_t *))(*(_QWORD *)v24 + 296LL))(v24, &v86);
(*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v16 + 456LL))(v16, v24);
sub_1000262BC((float *)&v86, -2.0, -16.0);
(*(void (__fastcall **)(_DWORD *, float32x2_t *))(*(_QWORD *)v24 + 184LL))(v24, &v86);
v27 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 192LL))(v17);
sub_1000262BC((float *)&v84, -15.0, 0.0);
sub_100026318(v27, &v84, &v85);
*(float32x2_t *)&v28 = sub_100026318(&v85, &v88, &v86);
(*(void (__fastcall **)(_DWORD *, float32x2_t *, double))(*(_QWORD *)v24 + 184LL))(v24, &v86, v28);
(*(void (__fastcall **)(_DWORD *, float))(*(_QWORD *)v24 + 160LL))(v24, 0.7);
v24[7] = 4;
v23 = cocos2d::CCLabelBMFont::limitLabelWidth(v24, 40.0, 0.7, 0.0);
}
v29 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64, __n128))(*(_QWORD *)v17 + 192LL))(v17, v23);
*(float32x2_t *)&v30 = sub_100026318(v29, &v87, &v86);
(*(void (__fastcall **)(__int64, float32x2_t *, double))(*(_QWORD *)v17 + 184LL))(v17, &v86, v30);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 184LL))(v16, a5);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v16 + 160LL))(v16, 3.0);
v31 = (unsigned __int8)cocos2d::CCCallFuncO::create(a1, (__int64)nullsub_113, 0, v16);
v32 = cocos2d::CCScaleTo::create_1(0.3, 1.0);
v33 = cocos2d::CCEaseBounceOut::create(v32);
v34 = cocos2d::CCDelayTime::create(a6);
v42 = sub_10021D420((__int64)v34, v35, v36, v37, v38, v39, v40, v41, v33);
cocos2d::CCNode::runAction(v16, v42);
v43 = cocos2d::CCDelayTime::create(a6 + 0.2);
v51 = sub_10021D420((__int64)v43, v44, v45, v46, v47, v48, v49, v50, v31);
v52 = cocos2d::CCNode::runAction(v16, v51);
(*(void (__fastcall **)(__int64, _QWORD, __n128))(*(_QWORD *)v17 + 912LL))(v17, 0, v52);
if ( v24 )
(*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v24 + 1024LL))(v24, 0);
v53 = cocos2d::CCDelayTime::create(a6);
v54 = (unsigned __int8)cocos2d::CCFadeIn::create(0.3);
v62 = sub_10021D420((__int64)v53, v55, v56, v57, v58, v59, v60, v61, v54);
v63 = cocos2d::CCDelayTime::create(a6);
v64 = (unsigned __int8)cocos2d::CCFadeIn::create(0.3);
v72 = sub_10021D420((__int64)v63, v65, v66, v67, v68, v69, v70, v71, v64);
v73 = cocos2d::CCNode::runAction(v17, v62);
if ( v24 )
v73 = cocos2d::CCNode::runAction(v24, v72);
if ( v19 )
{
(*(void (__fastcall **)(__int64, _QWORD, __n128))(*(_QWORD *)v19 + 912LL))(v19, 0, v73);
v74 = cocos2d::CCDelayTime::create(a6);
v75 = (unsigned __int8)cocos2d::CCFadeIn::create(0.3);
v83 = sub_10021D420((__int64)v74, v76, v77, v78, v79, v80, v81, v82, v75);
cocos2d::CCNode::runAction(v19, v83);
}
LABEL_37:
if ( SHIBYTE(v89.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v89.__r_.__value_.__l.__data_);
return;
}
}