// // GameObject::playShineEffect from 0x454cac to 0x455384 (1752 bytes) // // 13 xrefs: // > EffectGameObject::triggerObject @ 0x4f546c // > GJBaseGameLayer::teleportPlayer @ 0x5b8446 // > GJBaseGameLayer::teleportPlayer @ 0x5b84fe // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba490 // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba504 // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba588 // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba744 // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba79a // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba836 // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba8a2 // > GJBaseGameLayer::collisionCheckObjects @ 0x5baac4 // > GJBaseGameLayer::collisionCheckObjects @ 0x5bab08 // > GJBaseGameLayer::collisionCheckObjects @ 0x5bab50 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:48:39 +0000 // int __fastcall GameObject::playShineEffect(GameObject *this) { int result; // r0 int v3; // r5 int v4; // r3 int *v5; // r5 char *v6; // r1 int v7; // r3 int v8; // r2 char *v9; // r1 int v10; // r2 char v11; // r11 char v12; // r10 char v13; // r2 int *v14; // r1 int v15; // r3 GameManager *v16; // r7 int v17; // r6 const char *v18; // r1 CCSpritePlus *v19; // r0 GameManager *v20; // r0 GameManager *v21; // r5 int v22; // r0 int v23; // r8 int v24; // r0 void (__fastcall *v25)(GameManager *, _DWORD *); // r8 void (__fastcall *v26)(GameManager *, int); // r8 int v27; // r0 void (__fastcall *v28)(GameManager *, int); // r8 int isFlipX; // r0 void (__fastcall *v30)(GameManager *, int); // r8 int isFlipY; // r0 void (__fastcall *v32)(GameManager *, int); // r8 int v33; // r0 void (__fastcall *v34)(GameManager *, int); // r8 int v35; // r0 const char *v36; // r1 int v37; // r6 int v38; // r8 void (__fastcall *v39)(int, _DWORD *); // r9 float v40; // s17 int v41; // r0 CCSpritePlus *v42; // r6 int v43; // r7 float v44; // r1 float v45; // r1 int v46; // r9 int v47; // r0 cocos2d::CCAction *v48; // r0 CCSpritePlus *v49; // r3 int v50; // r3 int v51; // r1 CCCircleWave *v52; // r5 void (__fastcall *v53)(CCCircleWave *, int); // r6 int v54; // r0 GameManager *v55; // r0 GameManager *v56; // r0 int v57; // r6 void (__fastcall *v58)(int, CCCircleWave *, int); // r7 int v59; // r0 int v60; // r0 GameManager *v61; // r0 int v62; // r3 int v63; // r0 bool v64; // zf int v65; // [sp+Ch] [bp-98h] char v66; // [sp+10h] [bp-94h] GameManager *v67; // [sp+14h] [bp-90h] int v68; // [sp+18h] [bp-8Ch] cocos2d::CCSequence *v69; // [sp+1Ch] [bp-88h] cocos2d::CCFiniteTimeAction *v70; // [sp+20h] [bp-84h] _DWORD v71[2]; // [sp+40h] [bp-64h] BYREF int v72[3]; // [sp+48h] [bp-5Ch] BYREF int v73[3]; // [sp+54h] [bp-50h] BYREF int v74[3]; // [sp+60h] [bp-44h] BYREF int v75[3]; // [sp+6Ch] [bp-38h] BYREF int v76[3]; // [sp+78h] [bp-2Ch] BYREF int v77[3]; // [sp+84h] [bp-20h] BYREF int v78[2]; // [sp+90h] [bp-14h] BYREF CCSpritePlus *v79; // [sp+98h] [bp-Ch] result = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 776))(this); if ( !result ) { result = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 448))(this); if ( result ) { if ( !*((_BYTE *)this + 908) ) { v3 = *((unsigned __int8 *)this + 549); if ( !*((_BYTE *)this + 549) ) { result = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 256))(this); if ( result ) { v4 = *((_DWORD *)this + 223); v72[0] = v3; v72[1] = v3; v72[2] = v3; v73[0] = v3; v73[1] = v3; v73[2] = v3; if ( v4 == 202 ) { v5 = v76; sub_45316C(v76, "boost_03_001.png", "_001.png", "_shine_001.png"); if ( (v76[0] & 1) != 0 ) v6 = (char *)v76[2]; else v6 = (char *)v76 + 1; LABEL_18: std::string::assign(v72, v6); std::string::~string((int)v5); v7 = 0; v8 = 1; goto LABEL_24; } if ( v4 <= 202 ) { if ( v4 > 46 ) { if ( v4 == 101 ) goto LABEL_90; if ( v4 > 101 ) { if ( v4 == 200 ) { v5 = v74; sub_45316C(v74, "boost_01_001.png", "_001.png", "_shine_001.png"); if ( (v74[0] & 1) != 0 ) v6 = (char *)v74[2]; else v6 = (char *)v74 + 1; goto LABEL_18; } if ( v4 > 200 ) { v5 = v75; sub_45316C(v75, "boost_02_001.png", "_001.png", "_shine_001.png"); if ( (v75[0] & 1) != 0 ) v6 = (char *)v75[2]; else v6 = (char *)v75 + 1; goto LABEL_18; } v64 = v4 == 111; LABEL_109: if ( !v64 ) goto LABEL_84; goto LABEL_88; } if ( v4 == 47 ) { LABEL_88: std::string::assign(v72, "portalshine_02_front_001.png"); v9 = "portalshine_02_back_001.png"; goto LABEL_23; } if ( v4 == 99 ) { LABEL_90: std::string::assign(v72, "portalshine_04_front_001.png"); v9 = "portalshine_04_back_001.png"; goto LABEL_23; } LABEL_84: std::string::~string((int)v73); return std::string::~string((int)v72); } if ( v4 >= 45 ) { std::string::assign(v72, "portalshine_03_front_001.png"); v9 = "portalshine_03_back_001.png"; goto LABEL_23; } if ( v4 < 10 ) goto LABEL_84; if ( v4 > 11 ) { if ( v4 <= 13 ) goto LABEL_88; goto LABEL_84; } LABEL_22: std::string::assign(v72, "portalshine_01_front_001.png"); v9 = "portalshine_01_back_001.png"; LABEL_23: std::string::assign(v73, v9); v7 = 1; v8 = 0; LABEL_24: v65 = v8; v10 = *((_DWORD *)this + 223); if ( v10 == 202 ) { v11 = -106; v12 = -1; } else { if ( v10 > 202 ) { if ( v10 == 203 ) { v11 = -1; v12 = 0; v66 = -1; goto LABEL_37; } if ( v10 == 1334 ) { v11 = 50; v13 = -1; v12 = 50; goto LABEL_33; } } else if ( v10 == 200 ) { v11 = 0; v12 = -1; v66 = -1; goto LABEL_37; } v11 = -1; v12 = -106; } v13 = 0; LABEL_33: v66 = v13; LABEL_37: v14 = v72; if ( v7 ) v15 = 2; else v15 = 1; v68 = v15; v16 = nullptr; v67 = nullptr; v17 = 0; while ( 1 ) { std::string::basic_string(v78, (int)v14); if ( (v78[0] & 1) != 0 ) v19 = v79; else v19 = (CCSpritePlus *)((char *)v78 + 1); v20 = (GameManager *)CCSpritePlus::createWithSpriteFrameName(v19, v18); v21 = v20; if ( v17 ) { v23 = 5; } else { v22 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 256))(this); v20 = (GameManager *)(*(int (__fastcall **)(int))(*(_DWORD *)v22 + 52))(v22); v23 = (int)v20 + 1; } v24 = GameManager::sharedState(v20); (*(void (__fastcall **)(_DWORD, GameManager *, int))(**(_DWORD **)(*(_DWORD *)(v24 + 404) + 2436) + 232))( *(_DWORD *)(*(_DWORD *)(v24 + 404) + 2436), v21, v23); v25 = *(void (__fastcall **)(GameManager *, _DWORD *))(*(_DWORD *)v21 + 92); (*(void (__fastcall **)(_DWORD *, GameObject *))(*(_DWORD *)this + 680))(v71, this); v25(v21, v71); v26 = *(void (__fastcall **)(GameManager *, int))(*(_DWORD *)v21 + 180); v27 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 184))(this); v26(v21, v27); v28 = *(void (__fastcall **)(GameManager *, int))(*(_DWORD *)v21 + 620); isFlipX = cocos2d::CCSprite::isFlipX(this); v28(v21, isFlipX); v30 = *(void (__fastcall **)(GameManager *, int))(*(_DWORD *)v21 + 624); isFlipY = cocos2d::CCSprite::isFlipY(this); v30(v21, isFlipY); v32 = *(void (__fastcall **)(GameManager *, int))(*(_DWORD *)v21 + 64); v33 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 68))(this); v32(v21, v33); v34 = *(void (__fastcall **)(GameManager *, int))(*(_DWORD *)v21 + 72); v35 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 76))(this); v34(v21, v35); if ( v17 ) { v67 = v21; v21 = v16; } ++v17; std::string::~string((int)v78); if ( v17 == v68 ) break; if ( v17 ) v14 = v73; else v14 = v72; v16 = v21; } v37 = (*(int (__fastcall **)(GameObject *, int))(*(_DWORD *)this + 240))(this, 91); if ( v37 ) { v38 = CCSpritePlus::createWithSpriteFrameName((CCSpritePlus *)"portal_extra_shine_001.png", v36); v39 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v38 + 92); v40 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v37 + 164))(v37); v41 = (*(int (__fastcall **)(int))(*(_DWORD *)v37 + 164))(v37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v71, v40 * 0.5, *(float *)(v41 + 4) * 0.5); v39(v38, v71); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)v37 + 232))(v37, v38, 1); ++v68; } else { v38 = 0; } v42 = v21; v43 = 0; while ( 1 ) { (*(void (__fastcall **)(CCSpritePlus *, _DWORD))(*(_DWORD *)v42 + 456))(v42, 0); if ( v43 != 2 ) CCSpritePlus::followSprite(v42, this); (*(void (__fastcall **)(CCSpritePlus *, int, int))(*(_DWORD *)v42 + 540))(v42, 770, 1); v69 = (cocos2d::CCSequence *)cocos2d::CCFadeIn::create((cocos2d::CCFadeIn *)0x3D4CCCCD, v44); v70 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeOut::create((cocos2d::CCFadeOut *)0x3ECCCCCD, v45); v46 = cocos2d::CCCallFunc::create(v42, CCSpritePlus::stopFollow, 0); v71[0] = 268; v71[1] = 1; v47 = cocos2d::CCCallFunc::create(v42, 268, 1); v48 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v69, v70, v46, v47); cocos2d::CCNode::runAction(v42, v48); if ( ++v43 == v68 ) break; if ( v43 ) { v49 = v67; if ( v43 != 1 ) v49 = (CCSpritePlus *)v38; v42 = v49; } else { v42 = v21; } } if ( !v65 ) goto LABEL_67; v50 = *((_DWORD *)this + 223); if ( v50 == 201 ) { v51 = 1115815936; goto LABEL_78; } if ( v50 > 201 ) { if ( v50 == 203 ) { v51 = 1117782016; goto LABEL_78; } if ( v50 == 1334 ) { v51 = 1119092736; goto LABEL_78; } } else if ( v50 == 200 ) { v51 = 1114636288; LABEL_78: v52 = CCCircleWave::create( (CCCircleWave *)0x40A00000, v51, (cocos2d::CCActionTween *)0x3E99999A, 0.0, 0); *((_BYTE *)v52 + 281) = v12; *((_BYTE *)v52 + 282) = v11; *((_BYTE *)v52 + 280) = v66; v53 = *(void (__fastcall **)(CCCircleWave *, int))(*(_DWORD *)v52 + 92); v54 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 96))(this); v53(v52, v54); v55 = (GameManager *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 256))(this); if ( v55 ) { v57 = *(_DWORD *)(*(_DWORD *)(GameManager::sharedState(v55) + 404) + 2436); v58 = *(void (__fastcall **)(int, CCCircleWave *, int))(*(_DWORD *)v57 + 232); v59 = (*(int (__fastcall **)(GameObject *))(*(_DWORD *)this + 256))(this); v60 = (*(int (__fastcall **)(int))(*(_DWORD *)v59 + 52))(v59); v58(v57, v52, v60 - 1); } *((_DWORD *)v52 + 73) = 1; *((_DWORD *)v52 + 74) = 6; v56 = (GameManager *)CCCircleWave::followObject(v52, this, 1); v61 = (GameManager *)GameManager::sharedState(v56); v62 = *((_DWORD *)v61 + 101); if ( v62 ) v62 += 11688; *((_DWORD *)v52 + 77) = v62; v63 = GameManager::sharedState(v61); PlayLayer::addCircle(*(cocos2d::CCArray ***)(v63 + 404), v52); LABEL_67: std::string::~string((int)v73); return std::string::~string((int)v72); } v51 = 1116471296; goto LABEL_78; } if ( v4 != 749 ) { if ( v4 > 749 ) { if ( v4 == 1933 ) goto LABEL_88; if ( v4 <= 1933 ) { if ( v4 == 1331 ) goto LABEL_88; if ( v4 == 1334 ) { v5 = v78; sub_45316C(v78, "boost_05_001.png", "_001.png", "_shine_001.png"); if ( (v78[0] & 1) != 0 ) v6 = (char *)v79; else v6 = (char *)v78 + 1; goto LABEL_18; } goto LABEL_84; } if ( v4 != 2902 ) { if ( v4 == 2926 ) goto LABEL_22; if ( v4 != 2064 ) goto LABEL_84; } } else { if ( v4 < 288 ) { if ( v4 >= 286 ) { std::string::assign(v72, "portalshine_05_front_001.png"); v9 = "portalshine_05_back_001.png"; goto LABEL_23; } if ( v4 == 203 ) { v5 = v77; sub_45316C(v77, "boost_04_001.png", "_001.png", "_shine_001.png"); if ( (v77[0] & 1) != 0 ) v6 = (char *)v77[2]; else v6 = (char *)v77 + 1; goto LABEL_18; } goto LABEL_84; } if ( v4 == 745 ) goto LABEL_88; if ( v4 != 747 ) { v64 = v4 == 660; goto LABEL_109; } } } std::string::assign(v72, "portalshine_06_front_001.png"); v9 = "portalshine_06_back_001.png"; goto LABEL_23; } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source