// // GameObject::playShineEffect from 0x7782e8 to 0x778e28 (2880 bytes) // // 14 xrefs: // > EffectGameObject::triggerObject @ 0x8987c4 // > GJBaseGameLayer::teleportPlayer @ 0x9e5b8c // > GJBaseGameLayer::teleportPlayer @ 0x9e5d30 // > GJBaseGameLayer::collisionCheckObjects @ 0x9e8abc // > GJBaseGameLayer::collisionCheckObjects @ 0x9e8b40 // > GJBaseGameLayer::collisionCheckObjects @ 0x9e8eb0 // > GJBaseGameLayer::collisionCheckObjects @ 0x9e8f5c // > GJBaseGameLayer::collisionCheckObjects @ 0x9e90d4 // > GJBaseGameLayer::collisionCheckObjects @ 0x9e9168 // > GJBaseGameLayer::collisionCheckObjects @ 0x9e9248 // > GJBaseGameLayer::collisionCheckObjects @ 0x9e92e8 // > GJBaseGameLayer::collisionCheckObjects @ 0x9e9484 // > GJBaseGameLayer::collisionCheckObjects @ 0x9e9560 // > @ 0x67840 // // 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 12:53:15 +0000 // __int64 __fastcall GameObject::playShineEffect(GameObject *this) { int v3; // w0 char *v4; // x1 int v5; // w0 int v6; // w0 int v7; // w25 __int64 *v8; // x2 CCSpritePlus *v9; // x23 CCSpritePlus *v10; // x22 int v11; // w26 __int64 v12; // x0 __int64 v13; // x1 char *v14; // x0 GameManager *v15; // x0 GameManager *v16; // x20 unsigned int v17; // w28 __int64 v18; // x0 void (__fastcall *v19)(GameManager *, __int64 *); // x28 void (__fastcall *v20)(GameManager *); // x28 void (__fastcall *v21)(GameManager *, _QWORD); // x28 unsigned int isFlipX; // w0 void (__fastcall *v23)(GameManager *, _QWORD); // x28 unsigned int isFlipY; // w0 void (__fastcall *v25)(GameManager *); // x28 void (__fastcall *v26)(GameManager *); // x28 __int64 v27; // x0 const char *v28; // x1 __int64 v29; // x20 void (__fastcall *v30)(_QWORD, __int64 *); // x21 float v31; // s8 __int64 v32; // x0 CCSpritePlus *v33; // x20 int v34; // w21 cocos2d::CCFadeIn *v35; // x0 cocos2d::CCFadeOut *v36; // x28 cocos2d::CCFiniteTimeAction *v37; // x27 __int64 v38; // x26 __int64 v39; // x0 cocos2d::CCAction *v40; // x0 int v41; // w0 float v42; // s1 _QWORD *v43; // x20 void (__fastcall *v44)(_QWORD *, __int64); // x21 __int64 v45; // x0 GameManager *v46; // x0 __int64 v47; // x21 void (__fastcall *v48)(__int64, _QWORD *, _QWORD); // x22 __int64 v49; // x0 int v50; // w0 GameManager *v51; // x0 __int64 v52; // x0 GameManager *v53; // x0 __int64 v54; // x0 char *v55; // x1 char *v56; // x1 int v57; // w0 char *v58; // x1 char *v59; // x1 char v60; // [xsp+70h] [xbp+70h] __int64 v61; // [xsp+74h] [xbp+74h] int v62; // [xsp+7Ch] [xbp+7Ch] int v63[2]; // [xsp+88h] [xbp+88h] __int64 v64; // [xsp+98h] [xbp+98h] BYREF __int64 v65[2]; // [xsp+A0h] [xbp+A0h] BYREF void *v66; // [xsp+B0h] [xbp+B0h] __int64 v67[2]; // [xsp+B8h] [xbp+B8h] BYREF void *v68; // [xsp+C8h] [xbp+C8h] __int64 v69[2]; // [xsp+D0h] [xbp+D0h] BYREF char *v70; // [xsp+E0h] [xbp+E0h] __int64 v71[2]; // [xsp+E8h] [xbp+E8h] BYREF char *v72; // [xsp+F8h] [xbp+F8h] __int64 v73[2]; // [xsp+100h] [xbp+100h] BYREF char *v74; // [xsp+110h] [xbp+110h] __int64 v75[2]; // [xsp+118h] [xbp+118h] BYREF char *v76; // [xsp+128h] [xbp+128h] __int64 v77; // [xsp+130h] [xbp+130h] BYREF __int64 v78; // [xsp+138h] [xbp+138h] char *v79; // [xsp+140h] [xbp+140h] if ( (*(unsigned __int8 (__fastcall **)(GameObject *))(*(_QWORD *)this + 1552LL))(this) || !(*(unsigned __int8 (__fastcall **)(GameObject *))(*(_QWORD *)this + 896LL))(this) || *((_BYTE *)this + 1044) || *((_BYTE *)this + 649) || !(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 512LL))(this) ) { return _stack_chk_guard; } v3 = *((_DWORD *)this + 257); v65[0] = 0; v65[1] = 0; v66 = nullptr; v67[0] = 0; v67[1] = 0; v68 = nullptr; if ( v3 == 202 ) { sub_775DC0("boost_03_001.png", "_001.png", "_shine_001.png", v73); v58 = (char *)v73 + 1; if ( (v73[0] & 1) != 0 ) v58 = v74; std::string::assign(v65, v58); if ( (v73[0] & 1) != 0 ) operator delete(v74); goto LABEL_18; } if ( v3 > 202 ) { if ( v3 != 749 ) { if ( v3 > 749 ) { if ( v3 == 1933 ) goto LABEL_125; if ( v3 <= 1933 ) { if ( v3 != 1331 ) { if ( v3 != 1334 ) return _stack_chk_guard; sub_775DC0("boost_05_001.png", "_001.png", "_shine_001.png", &v77); v56 = (char *)&v77 + 1; if ( (v77 & 1) != 0 ) v56 = v79; std::string::assign(v65, v56); if ( (v77 & 1) != 0 ) operator delete(v79); goto LABEL_18; } goto LABEL_125; } if ( v3 != 2902 ) { if ( v3 == 2926 ) goto LABEL_90; if ( v3 != 2064 ) return _stack_chk_guard; } } else { if ( v3 <= 287 ) { if ( v3 < 286 ) { if ( v3 != 203 ) return _stack_chk_guard; sub_775DC0("boost_04_001.png", "_001.png", "_shine_001.png", v75); v55 = (char *)v75 + 1; if ( (v75[0] & 1) != 0 ) v55 = v76; std::string::assign(v65, v55); if ( (v75[0] & 1) != 0 ) operator delete(v76); goto LABEL_18; } std::string::assign(v65, "portalshine_05_front_001.png"); std::string::assign(v67, "portalshine_05_back_001.png"); goto LABEL_91; } if ( v3 == 745 ) goto LABEL_125; if ( v3 != 747 ) { if ( v3 != 660 ) return _stack_chk_guard; goto LABEL_125; } } } std::string::assign(v65, "portalshine_06_front_001.png"); std::string::assign(v67, "portalshine_06_back_001.png"); goto LABEL_91; } if ( v3 > 46 ) { if ( v3 == 101 ) { LABEL_121: std::string::assign(v65, "portalshine_04_front_001.png"); std::string::assign(v67, "portalshine_04_back_001.png"); goto LABEL_91; } if ( v3 > 101 ) { if ( v3 == 200 ) { sub_775DC0("boost_01_001.png", "_001.png", "_shine_001.png", v69); v59 = (char *)v69 + 1; if ( (v69[0] & 1) != 0 ) v59 = v70; std::string::assign(v65, v59); if ( (v69[0] & 1) != 0 ) operator delete(v70); goto LABEL_18; } if ( v3 > 200 ) { sub_775DC0("boost_02_001.png", "_001.png", "_shine_001.png", v71); v4 = (char *)v71 + 1; if ( (v71[0] & 1) != 0 ) v4 = v72; std::string::assign(v65, v4); if ( (v71[0] & 1) != 0 ) operator delete(v72); LABEL_18: v5 = *((_DWORD *)this + 257); if ( v5 != 202 ) { if ( v5 <= 202 ) { if ( v5 == 200 ) { v62 = 1; v7 = 1; v60 = -1; v61 = 255; goto LABEL_27; } goto LABEL_101; } if ( v5 != 203 ) { if ( v5 == 1334 ) { v6 = 0; v62 = 1; LABEL_23: BYTE4(v61) = 50; v60 = -1; LOBYTE(v61) = 50; goto LABEL_24; } LABEL_101: v62 = 1; v7 = 1; LOBYTE(v61) = -106; v60 = 0; BYTE4(v61) = -1; goto LABEL_27; } v6 = 0; v62 = 1; goto LABEL_128; } v6 = 0; v62 = 1; LABEL_130: v60 = 0; BYTE4(v61) = -106; LOBYTE(v61) = -1; LABEL_24: if ( v6 ) v7 = 2; else v7 = 1; goto LABEL_27; } if ( v3 != 111 ) return _stack_chk_guard; goto LABEL_125; } if ( v3 != 47 ) { if ( v3 != 99 ) return _stack_chk_guard; goto LABEL_121; } LABEL_125: std::string::assign(v65, "portalshine_02_front_001.png"); std::string::assign(v67, "portalshine_02_back_001.png"); goto LABEL_91; } if ( v3 < 45 ) { if ( v3 < 10 ) return _stack_chk_guard; if ( v3 > 11 ) { if ( v3 > 13 ) return _stack_chk_guard; goto LABEL_125; } LABEL_90: std::string::assign(v65, "portalshine_01_front_001.png"); std::string::assign(v67, "portalshine_01_back_001.png"); goto LABEL_91; } std::string::assign(v65, "portalshine_03_front_001.png"); std::string::assign(v67, "portalshine_03_back_001.png"); LABEL_91: v57 = *((_DWORD *)this + 257); if ( v57 == 202 ) { v6 = 1; v62 = 0; goto LABEL_130; } if ( v57 <= 202 ) { if ( v57 == 200 ) { BYTE4(v61) = 0; v60 = -1; v7 = 2; LOBYTE(v61) = -1; v62 = 0; goto LABEL_27; } } else { if ( v57 == 203 ) { v6 = 1; v62 = 0; LABEL_128: LOBYTE(v61) = 0; BYTE4(v61) = -1; v60 = -1; goto LABEL_24; } if ( v57 == 1334 ) { v6 = 1; v62 = 0; goto LABEL_23; } } v62 = 0; BYTE4(v61) = -1; v7 = 2; v60 = 0; LOBYTE(v61) = -106; LABEL_27: v8 = v65; v9 = nullptr; v77 = 0; v10 = nullptr; v11 = 0; v78 = 0; v79 = nullptr; if ( (v65[0] & 1) != 0 ) goto LABEL_42; LABEL_28: v12 = *v8; v13 = v8[1]; v79 = (char *)v8[2]; v77 = v12; v78 = v13; while ( 1 ) { v14 = (char *)&v77 + 1; if ( (v77 & 1) != 0 ) v14 = v79; v15 = (GameManager *)CCSpritePlus::createWithSpriteFrameName( (CCSpritePlus *)v14, (const char *)(unsigned __int8)v77); v16 = v15; v17 = 5; if ( !v11 ) { v27 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 512LL))(this); v15 = (GameManager *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v27 + 104LL))(v27); v17 = (_DWORD)v15 + 1; } v18 = GameManager::sharedState(v15); (*(void (__fastcall **)(_QWORD, GameManager *, _QWORD))(**(_QWORD **)(*(_QWORD *)(v18 + 544) + 3920LL) + 464LL))( *(_QWORD *)(*(_QWORD *)(v18 + 544) + 3920LL), v16, v17); v19 = *(void (__fastcall **)(GameManager *, __int64 *))(*(_QWORD *)v16 + 184LL); (*(void (__fastcall **)(__int64 *__return_ptr, GameObject *))(*(_QWORD *)this + 1360LL))(&v64, this); v19(v16, &v64); v20 = *(void (__fastcall **)(GameManager *))(*(_QWORD *)v16 + 360LL); (*(void (__fastcall **)(GameObject *))(*(_QWORD *)this + 368LL))(this); v20(v16); v21 = *(void (__fastcall **)(GameManager *, _QWORD))(*(_QWORD *)v16 + 1240LL); isFlipX = cocos2d::CCSprite::isFlipX(this); v21(v16, isFlipX); v23 = *(void (__fastcall **)(GameManager *, _QWORD))(*(_QWORD *)v16 + 1248LL); isFlipY = cocos2d::CCSprite::isFlipY(this); v23(v16, isFlipY); v25 = *(void (__fastcall **)(GameManager *))(*(_QWORD *)v16 + 128LL); (*(void (__fastcall **)(GameObject *))(*(_QWORD *)this + 136LL))(this); v25(v16); v26 = *(void (__fastcall **)(GameManager *))(*(_QWORD *)v16 + 144LL); (*(void (__fastcall **)(GameObject *))(*(_QWORD *)this + 152LL))(this); v26(v16); if ( v11 ) v9 = v16; else v10 = v16; if ( (v77 & 1) != 0 ) break; if ( ++v11 == v7 ) goto LABEL_44; LABEL_38: v77 = 0; if ( v11 ) v8 = v67; else v8 = v65; v78 = 0; v79 = nullptr; if ( (*(_BYTE *)v8 & 1) == 0 ) goto LABEL_28; LABEL_42: std::string::__init(&v77, (void *)v8[2], v8[1]); } ++v11; operator delete(v79); if ( v11 != v7 ) goto LABEL_38; LABEL_44: v29 = (*(__int64 (__fastcall **)(GameObject *, __int64))(*(_QWORD *)this + 480LL))(this, 91); if ( v29 ) { *(_QWORD *)v63 = CCSpritePlus::createWithSpriteFrameName((CCSpritePlus *)"portal_extra_shine_001.png", v28); v30 = *(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)v63 + 184LL); v31 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 328LL))(v29) * 0.5; v32 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v29 + 328LL))(v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v64, v31, *(float *)(v32 + 4) * 0.5); v30(*(_QWORD *)v63, &v64); (*(void (__fastcall **)(__int64, int *, __int64))(*(_QWORD *)v29 + 464LL))(v29, *(int **)v63, 1); ++v7; } else { *(_QWORD *)v63 = 0; } v33 = v10; v34 = 0; while ( 1 ) { (*(void (__fastcall **)(CCSpritePlus *, _QWORD))(*(_QWORD *)v33 + 912LL))(v33, 0); if ( v34 != 2 ) CCSpritePlus::followSprite(v33, this); v35 = (cocos2d::CCFadeIn *)(*(__int64 (__fastcall **)(CCSpritePlus *, __int64))(*(_QWORD *)v33 + 1080LL))( v33, 0x100000302LL); v36 = (cocos2d::CCFadeOut *)cocos2d::CCFadeIn::create(v35, 0.05); v37 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeOut::create(v36, 0.4); v38 = cocos2d::CCCallFunc::create(v33, CCSpritePlus::stopFollow, 0); v39 = cocos2d::CCCallFunc::create(v33, 536, 1); v40 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v36, v37, v38, v39, 0); cocos2d::CCNode::runAction(v33, v40); if ( ++v34 == v7 ) break; v33 = v10; if ( v34 ) { if ( v34 == 1 ) v33 = v9; else v33 = *(CCSpritePlus **)v63; } } if ( v62 ) { v41 = *((_DWORD *)this + 257); if ( v41 == 201 ) { v42 = 65.0; } else if ( v41 <= 201 ) { if ( v41 != 200 ) goto LABEL_105; v42 = 60.0; } else if ( v41 == 203 ) { v42 = 80.0; } else { if ( v41 == 1334 ) { v42 = 90.0; goto LABEL_60; } LABEL_105: v42 = 70.0; } LABEL_60: v43 = (_QWORD *)CCCircleWave::create(nullptr, 5.0, v42, 0.3); *((_BYTE *)v43 + 340) = v60; *((_BYTE *)v43 + 341) = v61; *((_BYTE *)v43 + 342) = BYTE4(v61); v44 = *(void (__fastcall **)(_QWORD *, __int64))(*v43 + 184LL); v45 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 192LL))(this); v44(v43, v45); v46 = (GameManager *)(*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 512LL))(this); if ( v46 ) { v47 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState(v46) + 544) + 3920LL); v48 = *(void (__fastcall **)(__int64, _QWORD *, _QWORD))(*(_QWORD *)v47 + 464LL); v49 = (*(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)this + 512LL))(this); v50 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v49 + 104LL))(v49); v48(v47, v43, (unsigned int)(v50 - 1)); } *((_DWORD *)v43 + 89) = 6; *((_DWORD *)v43 + 88) = 1; v51 = (GameManager *)CCCircleWave::followObject((CCCircleWave *)v43, this, 1u); v52 = *(_QWORD *)(GameManager::sharedState(v51) + 544); if ( v52 ) v53 = (GameManager *)(v52 + 13992); else v53 = nullptr; v43[46] = v53; v54 = GameManager::sharedState(v53); PlayLayer::addCircle(*(cocos2d::CCArray ***)(v54 + 544), (CCCircleWave *)v43); } if ( (v67[0] & 1) != 0 ) operator delete(v68); if ( (v65[0] & 1) != 0 ) operator delete(v66); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source