// // sub_1003BF9C0 from 0x1003bf9c0 to 0x1003c01e4 (2084 bytes) // // 1 xrefs: // > sub_1003BE060 @ 0x1003be094 // // 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:04:02 +0000 // __int64 __fastcall sub_1003BF9C0(__int64 a1, int a2, char a3) { __int16 v6; // w8 float v7; // s8 int v8; // w8 __int16 v9; // w9 __int16 v10; // w8 std::string *v11; // x1 __int64 v12; // x22 std::string *v13; // x0 void *v14; // x0 __int64 v15; // x21 float v16; // s0 void *v17; // x21 float v18; // s8 unsigned int v19; // w0 float *v20; // x0 _DWORD *v21; // x0 unsigned int v22; // w0 unsigned int v23; // w0 void *v24; // x23 unsigned int v25; // w0 float *v26; // x0 _DWORD *v27; // x0 std::string *v28; // x0 void *v29; // x21 float *v30; // x0 _OWORD *v31; // x0 __int64 v33; // [xsp+Ch] [xbp-84h] BYREF __int16 v34; // [xsp+14h] [xbp-7Ch] BYREF char v35; // [xsp+16h] [xbp-7Ah] __int16 v36; // [xsp+18h] [xbp-78h] BYREF char v37; // [xsp+1Ah] [xbp-76h] __int16 v38; // [xsp+1Ch] [xbp-74h] BYREF char v39; // [xsp+1Eh] [xbp-72h] std::string v40; // [xsp+20h] [xbp-70h] BYREF std::string v41; // [xsp+38h] [xbp-58h] BYREF memset(&v41, 0, sizeof(v41)); memset(&v40, 0, sizeof(v40)); v39 = -1; v38 = -1; v37 = -1; v36 = -1; v35 = -1; v34 = -1; switch ( a2 ) { case 2: std::string::assign(&v41, "GJ_bigStar_noShadow_001.png"); std::string::assign(&v40, "GJ_bigStar_glow_001.png"); v39 = 0; v38 = -26881; v37 = 0; v36 = -26881; v35 = 0; v6 = -14081; goto LABEL_23; case 3: std::string::assign(&v41, "GJ_bigDiamond_noShadow_001.png"); std::string::assign(&v40, "GJ_bigDiamond_glow_001.png"); v39 = -1; v38 = (int)(float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 125.0) + 130.0) | 0xFF00; v37 = -1; v36 = (int)(float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 125.0) + 130.0) | 0xFF00; v8 = (int)(float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 175.0) + 80.0) | 0xFF00; goto LABEL_13; case 4: std::string::assign(&v41, "fireShardBig_001.png"); std::string::assign(&v40, "shard_glow_001.png"); v39 = 0; v38 = -26881; v37 = 0; v10 = -1; goto LABEL_17; case 5: std::string::assign(&v41, "iceShardBig_001.png"); std::string::assign(&v40, "shard_glow_001.png"); v39 = -1; v38 = -56; v37 = -1; v36 = -256; v35 = -1; v6 = -27136; goto LABEL_23; case 6: std::string::assign(&v41, "poisonShardBig_001.png"); std::string::assign(&v40, "shard_glow_001.png"); v39 = 0; v38 = -106; v37 = 0; v36 = -106; v35 = 0; v6 = -156; goto LABEL_23; case 7: std::string::assign(&v41, "shadowShardBig_001.png"); std::string::assign(&v40, "shard_glow_001.png"); v6 = 255; v39 = -1; v38 = 255; v37 = -1; v36 = 100; v35 = -1; goto LABEL_23; case 8: std::string::assign(&v41, "lavaShardBig_001.png"); std::string::assign(&v40, "shard_glow_001.png"); v39 = 0; v38 = -26881; v37 = 0; v10 = 13055; LABEL_17: v36 = v10; v35 = 0; v6 = 25855; goto LABEL_23; case 9: std::string::assign(&v41, "GJ_bigKey_001.png"); std::string::assign(&v40, "GJ_bigKey_glow_001.png"); v39 = -1; v38 = -1; v37 = -1; v36 = -1; v35 = -1; v7 = 1.5; goto LABEL_19; case 10: std::string::assign(&v41, "shard0201ShardBig_001.png"); std::string::assign(&v40, "shard2_glow_001.png"); v39 = 0; v6 = -26881; v38 = -26881; v37 = 0; v9 = -14081; goto LABEL_21; case 11: std::string::assign(&v41, "shard0202ShardBig_001.png"); std::string::assign(&v40, "shard2_glow_001.png"); v39 = 0; v6 = 255; v38 = 255; v37 = 0; v9 = 13055; LABEL_21: v36 = v9; goto LABEL_22; case 12: std::string::assign(&v41, "shard0203ShardBig_001.png"); std::string::assign(&v40, "shard2_glow_001.png"); v39 = -1; v38 = -1; v37 = -1; v36 = -1; v35 = -1; v7 = 1.0; LABEL_19: v34 = -1; break; case 13: std::string::assign(&v41, "shard0204ShardBig_001.png"); std::string::assign(&v40, "shard2_glow_001.png"); v39 = 0; v6 = -1; v38 = -1; v37 = 50; v36 = -1; LABEL_22: v35 = 0; goto LABEL_23; case 14: std::string::assign(&v41, "shard0205ShardBig_001.png"); std::string::assign(&v40, "shard2_glow_001.png"); v38 = -26881; v39 = 50; LOWORD(v8) = 175; v37 = -81; v36 = 255; LABEL_13: v35 = -1; v34 = v8; v7 = 1.0; break; case 15: std::string::assign(&v41, "GJ_bigMoon_noShadow_001.png"); std::string::assign(&v40, "GJ_bigMoon_glow_001.png"); v39 = -1; v38 = -27136; v37 = -1; v36 = -27136; v35 = -1; v6 = -14336; LABEL_23: v7 = 1.0; v34 = v6; break; case 16: std::string::assign(&v41, "GJ_bigGoldKey_001.png"); std::string::assign(&v40, "GJ_bigGoldKey_glow_001.png"); v38 = -26881; v39 = 50; v36 = -26881; v37 = 50; v35 = 50; v34 = -14081; v7 = 1.5; break; default: v7 = 1.0; std::string::assign(&v41, "currencyOrb_001.png"); break; } if ( (v41.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v11 = &v41; else v11 = (std::string *)v41.__r_.__value_.__r.__words[0]; v12 = cocos2d::CCSprite::initWithSpriteFrameName(a1, (__int64)v11); if ( (_DWORD)v12 ) { if ( SHIBYTE(v40.__r_.__value_.__r.__words[2]) < 0 ) { if ( v40.__r_.__value_.__l.__size_ && (a3 & 1) == 0 ) { v13 = (std::string *)v40.__r_.__value_.__r.__words[0]; goto LABEL_35; } } else if ( *((_BYTE *)&v40.__r_.__value_.__s + 23) && (a3 & 1) == 0 ) { v13 = &v40; LABEL_35: v14 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v13); *(_QWORD *)(a1 + 664) = v14; (*(void (__fastcall **)(void *, float))(*(_QWORD *)v14 + 160LL))(v14, flt_10076DFF0[a2 == 3]); v15 = *(_QWORD *)(a1 + 664); v16 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v15 + 168LL))(v15); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 160LL))(v15, v7 * v16); cocos2d::CCObject::retain(*(_QWORD *)(a1 + 664)); (*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 664) + 960LL))(*(_QWORD *)(a1 + 664), &v38); v17 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"shineBurst_001.png"); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 664) + 456LL))(*(_QWORD *)(a1 + 664), v17); cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 664), (__int64)&unk_1009F6F60, &v33); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v17 + 184LL))(v17, &v33); if ( vcvts_n_f32_s32(rand(), 0x1Fu) <= 0.5 ) v18 = -1.0; else v18 = 1.0; v19 = rand(); v20 = cocos2d::CCRotateBy::create_1( 1.0, v18 * (float)((float)((float)(vcvts_n_f32_s32(v19, 0x1Fu) * 0.5) + 0.5) * 180.0)); v21 = cocos2d::CCRepeatForever::create((__int64)v20); cocos2d::CCNode::runAction((__int64)v17, (__int64)v21); v22 = rand(); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v17 + 160LL))(v17, vcvts_n_f32_s32(v22, 0x1Fu) + 1.8); v23 = rand(); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v17 + 912LL))( v17, (unsigned int)(int)(float)((float)((float)(vcvts_n_f32_s32(v23, 0x1Fu) * 0.4) + 0.6) * 255.0)); (*(void (__fastcall **)(void *, __int16 *))(*(_QWORD *)v17 + 960LL))(v17, &v36); v24 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"shineBurst_001.png"); (*(void (__fastcall **)(void *, void *))(*(_QWORD *)v17 + 456LL))(v17, v24); cocos2d::CCNode::convertToNodeSpace((__int64)v17, (__int64)&unk_1009F6F60, &v33); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v24 + 184LL))(v24, &v33); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v24 + 160LL))(v24, 0.8); (*(void (__fastcall **)(void *, __int16 *))(*(_QWORD *)v24 + 960LL))(v24, &v34); v25 = rand(); v26 = cocos2d::CCRotateBy::create_1( 1.0, (float)((float)((float)(vcvts_n_f32_s32(v25, 0x1Fu) * 0.5) + 0.5) * -180.0) * v18); v27 = cocos2d::CCRepeatForever::create((__int64)v26); cocos2d::CCNode::runAction((__int64)v24, (__int64)v27); if ( (v40.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v28 = &v40; else v28 = (std::string *)v40.__r_.__value_.__r.__words[0]; v29 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v28); (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v29, 10); cocos2d::CCNode::convertToNodeSpace(a1, (__int64)&unk_1009F6F60, &v33); (*(void (__fastcall **)(void *, __int64 *))(*(_QWORD *)v29 + 184LL))(v29, &v33); v30 = cocos2d::CCFadeOut::create(0.5); v31 = cocos2d::CCEaseIn::create((__int64)v30, 1.3); cocos2d::CCNode::runAction((__int64)v29, (__int64)v31); } *(_DWORD *)(a1 + 648) = a2; } if ( SHIBYTE(v40.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v40.__r_.__value_.__l.__data_); if ( SHIBYTE(v41.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v41.__r_.__value_.__l.__data_); return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source