// // GameObject::playShineEffect from 0x1002f95ac to 0x1002f9e58 (2220 bytes) // // 13 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x10027e5d4 // > GJBaseGameLayer::teleportPlayer @ 0x10027e6fc // > GJBaseGameLayer::collisionCheckObjects @ 0x100283f20 // > GJBaseGameLayer::collisionCheckObjects @ 0x100284018 // > GJBaseGameLayer::collisionCheckObjects @ 0x1002840a8 // > GJBaseGameLayer::collisionCheckObjects @ 0x100284134 // > GJBaseGameLayer::collisionCheckObjects @ 0x1002841ec // > GJBaseGameLayer::collisionCheckObjects @ 0x100284398 // > GJBaseGameLayer::collisionCheckObjects @ 0x100284470 // > GJBaseGameLayer::collisionCheckObjects @ 0x1002845bc // > GJBaseGameLayer::collisionCheckObjects @ 0x1002845fc // > GJBaseGameLayer::collisionCheckObjects @ 0x10028463c // > EffectGameObject::triggerObject @ 0x10042c550 // // 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:01 +0000 // void __fastcall GameObject::playShineEffect(int *a1) { int v2; // w8 const std::string::value_type *v3; // x1 std::string *p_p; // x1 int v5; // w27 int v6; // w8 int v7; // w8 __int64 v8; // x26 __int64 v9; // x28 int i; // w22 std::string *v11; // x8 _BYTE *v12; // x1 std::string *v13; // x8 std::string *v14; // x0 char *v15; // x0 char *v16; // x20 __int64 v17; // x21 __int64 v18; // x0 __int64 v19; // x0 __int64 isFlipX; // x0 __int64 isFlipY; // x0 __int64 v22; // x21 float v23; // s8 __int64 v24; // x0 int v25; // w20 __int64 v26; // x22 __n128 v27; // q0 float *v28; // x23 char v29; // w24 __int64 v30; // x1 __int64 v31; // x2 __int64 v32; // x3 __int64 v33; // x4 __int64 v34; // x5 __int64 v35; // x6 __int64 v36; // x7 __int64 v37; // x0 _QWORD *v38; // x20 __int64 v39; // x0 __int64 v40; // x0 __int64 v41; // x21 __int64 v42; // x0 int v43; // w0 __int64 v44; // x0 __int64 v45; // x0 __int64 v46; // x8 __int64 v47; // x8 __int64 v48; // x0 int v49; // [xsp+28h] [xbp-C8h] char v50; // [xsp+2Ch] [xbp-C4h] char *v51; // [xsp+30h] [xbp-C0h] __int64 v52; // [xsp+38h] [xbp-B8h] BYREF std::string __p; // [xsp+40h] [xbp-B0h] BYREF std::string v54; // [xsp+58h] [xbp-98h] BYREF std::string v55; // [xsp+70h] [xbp-80h] BYREF if ( ((*(__int64 (__fastcall **)(int *))(*(_QWORD *)a1 + 1552LL))(a1) & 1) != 0 || !(*(unsigned int (__fastcall **)(int *))(*(_QWORD *)a1 + 896LL))(a1) || (a1[261] & 1) != 0 || (*((_BYTE *)a1 + 649) & 1) != 0 || !(*(__int64 (__fastcall **)(int *))(*(_QWORD *)a1 + 512LL))(a1) ) { return; } memset(&v55, 0, sizeof(v55)); memset(&v54, 0, sizeof(v54)); v2 = a1[257]; if ( v2 > 202 ) { if ( v2 > 1330 ) { if ( v2 <= 2063 ) { if ( v2 == 1331 ) goto LABEL_33; if ( v2 != 1334 ) { if ( v2 != 1933 ) goto LABEL_96; goto LABEL_33; } sub_1002F22C0(&__p, "boost_05_001.png", "_001.png", "_shine_001.png"); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; goto LABEL_113; } if ( v2 != 2064 && v2 != 2902 ) { if ( v2 != 2926 ) goto LABEL_96; LABEL_42: std::string::assign(&v55, "portalshine_01_front_001.png"); v3 = "portalshine_01_back_001.png"; goto LABEL_46; } } else { if ( v2 <= 744 ) { if ( (unsigned int)(v2 - 286) < 2 ) { std::string::assign(&v55, "portalshine_05_front_001.png"); v3 = "portalshine_05_back_001.png"; goto LABEL_46; } if ( v2 != 203 ) { if ( v2 != 660 ) goto LABEL_96; goto LABEL_33; } sub_1002F22C0(&__p, "boost_04_001.png", "_001.png", "_shine_001.png"); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; goto LABEL_113; } if ( v2 == 745 ) goto LABEL_33; if ( v2 != 747 && v2 != 749 ) goto LABEL_96; } std::string::assign(&v55, "portalshine_06_front_001.png"); v3 = "portalshine_06_back_001.png"; goto LABEL_46; } if ( v2 > 98 ) { if ( v2 <= 199 ) { if ( v2 == 99 || v2 == 101 ) { std::string::assign(&v55, "portalshine_04_front_001.png"); v3 = "portalshine_04_back_001.png"; goto LABEL_46; } if ( v2 != 111 ) goto LABEL_96; LABEL_33: std::string::assign(&v55, "portalshine_02_front_001.png"); v3 = "portalshine_02_back_001.png"; goto LABEL_46; } if ( v2 == 200 ) { sub_1002F22C0(&__p, "boost_01_001.png", "_001.png", "_shine_001.png"); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; } else if ( v2 == 201 ) { sub_1002F22C0(&__p, "boost_02_001.png", "_001.png", "_shine_001.png"); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; } else { sub_1002F22C0(&__p, "boost_03_001.png", "_001.png", "_shine_001.png"); if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_p = &__p; else p_p = (std::string *)__p.__r_.__value_.__r.__words[0]; } LABEL_113: std::string::assign(&v55, (const std::string::value_type *)p_p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); v5 = 1; v50 = 1; LABEL_47: v6 = a1[257]; if ( v6 <= 201 ) { if ( v6 != 200 ) { LABEL_53: v7 = 16750080; goto LABEL_57; } v7 = 0xFFFF; } else { switch ( v6 ) { case 202: v7 = 9895680; break; case 203: v7 = 16711935; break; case 1334: v7 = 3289855; break; default: goto LABEL_53; } } LABEL_57: v49 = v7; v8 = 0; v9 = 0; for ( i = 0; i != v5; ++i ) { if ( i ) v11 = &v54; else v11 = &v55; if ( SHIBYTE(v11->__r_.__value_.__r.__words[2]) < 0 ) { v12 = (_BYTE *)v11->__r_.__value_.__r.__words[0]; if ( i ) v13 = &v54; else v13 = &v55; sub_1000097D0(&__p, v12, v13->__r_.__value_.__l.__size_); } else { __p = *v11; } if ( (__p.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v14 = &__p; else v14 = (std::string *)__p.__r_.__value_.__r.__words[0]; v15 = sub_10024D8D0((__int64)v14); v16 = v15; if ( i ) { v17 = 5; } else { v18 = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a1 + 512LL))(a1); v15 = (char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 104LL))(v18); v17 = (unsigned int)((_DWORD)v15 + 1); } v19 = GameManager::sharedState(v15); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(*(_QWORD *)(v19 + 544) + 3920LL) + 464LL))( *(_QWORD *)(*(_QWORD *)(v19 + 544) + 3920LL), v16, v17); (*(void (__fastcall **)(__int64 *__return_ptr, int *))(*(_QWORD *)a1 + 1360LL))(&v52, a1); (*(void (__fastcall **)(char *, __int64 *))(*(_QWORD *)v16 + 184LL))(v16, &v52); (*(void (__fastcall **)(int *))(*(_QWORD *)a1 + 368LL))(a1); (*(void (__fastcall **)(char *))(*(_QWORD *)v16 + 360LL))(v16); isFlipX = cocos2d::CCSprite::isFlipX((__int64)a1); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v16 + 1240LL))(v16, isFlipX); isFlipY = cocos2d::CCSprite::isFlipY((__int64)a1); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v16 + 1248LL))(v16, isFlipY); (*(void (__fastcall **)(int *))(*(_QWORD *)a1 + 136LL))(a1); (*(void (__fastcall **)(char *))(*(_QWORD *)v16 + 128LL))(v16); (*(void (__fastcall **)(int *))(*(_QWORD *)a1 + 152LL))(a1); (*(void (__fastcall **)(char *))(*(_QWORD *)v16 + 144LL))(v16); if ( i ) v9 = (__int64)v16; else v8 = (__int64)v16; if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); } v22 = (*(__int64 (__fastcall **)(int *, __int64))(*(_QWORD *)a1 + 480LL))(a1, 91); if ( v22 ) { v51 = sub_10024D8D0((__int64)"portal_extra_shine_001.png"); v23 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 328LL))(v22); v24 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v22 + 328LL))(v22); sub_1000262BC((float *)&__p, v23 * 0.5, *(float *)(v24 + 4) * 0.5); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v51 + 184LL))(v51, &__p); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v22 + 464LL))(v22, v51, 1); ++v5; } else { v51 = nullptr; } v25 = 0; do { v26 = v8; if ( v25 ) { v26 = v9; if ( v25 != 1 ) v26 = (__int64)v51; } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v26 + 912LL))(v26, 0); if ( v25 != 2 ) v27.n128_f64[0] = sub_10024DE74(v26, (__int64)a1); (*(void (__fastcall **)(__int64, __int64, __n128))(*(_QWORD *)v26 + 1080LL))(v26, 0x100000302LL, v27); v28 = cocos2d::CCFadeIn::create(0.05); v29 = (unsigned __int8)cocos2d::CCFadeOut::create(0.4); cocos2d::CCCallFunc::create(v26, (__int64)sub_10024DE88, 0); cocos2d::CCCallFunc::create(v26, 536, 1); v37 = sub_10021D420((__int64)v28, v30, v31, v32, v33, v34, v35, v36, v29); cocos2d::CCNode::runAction(v26, v37); ++v25; } while ( v5 != v25 ); if ( (v50 & 1) != 0 ) { v38 = (_QWORD *)CCCircleWave::create_1(0); *((_WORD *)v38 + 170) = v49; *((_BYTE *)v38 + 342) = BYTE2(v49); v39 = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a1 + 192LL))(a1); (*(void (__fastcall **)(_QWORD *, __int64))(*v38 + 184LL))(v38, v39); v40 = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a1 + 512LL))(a1); if ( v40 ) { v41 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v40) + 544) + 3920LL); v42 = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a1 + 512LL))(a1); v43 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v42 + 104LL))(v42); (*(void (__fastcall **)(__int64, _QWORD *, _QWORD))(*(_QWORD *)v41 + 464LL))(v41, v38, (unsigned int)(v43 - 1)); } v38[44] = 0x600000001LL; v44 = CCCircleWave::followObject(v38, (__int64)a1, 1); v45 = GameManager::sharedState(v44); v46 = *(_QWORD *)(v45 + 544); if ( v46 ) v47 = v46 + 13992; else v47 = 0; v38[46] = v47; v48 = GameManager::sharedState(v45); PlayLayer::addCircle(*(_QWORD *)(v48 + 544), (__int64)v38); } goto LABEL_96; } if ( (unsigned int)v2 > 0x2F ) goto LABEL_96; if ( ((1LL << v2) & 0x800000003000LL) != 0 ) goto LABEL_33; if ( ((1LL << v2) & 0xC00) != 0 ) goto LABEL_42; if ( ((1LL << v2) & 0x600000000000LL) != 0 ) { std::string::assign(&v55, "portalshine_03_front_001.png"); v3 = "portalshine_03_back_001.png"; LABEL_46: std::string::assign(&v54, v3); v50 = 0; v5 = 2; goto LABEL_47; } LABEL_96: if ( SHIBYTE(v54.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v54.__r_.__value_.__l.__data_); if ( SHIBYTE(v55.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v55.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source