//
// GameObject::playShineEffect from 0x10068ea60 to 0x10068f34b (2283 bytes)
//
// 13 xrefs:
// > GJBaseGameLayer::teleportPlayer @ 0x1000fd023
// > GJBaseGameLayer::teleportPlayer @ 0x1000fd13c
// > GJBaseGameLayer::collisionCheckObjects @ 0x100104bcd
// > GJBaseGameLayer::collisionCheckObjects @ 0x100104d89
// > GJBaseGameLayer::collisionCheckObjects @ 0x100104efc
// > GJBaseGameLayer::collisionCheckObjects @ 0x100104f9d
// > GJBaseGameLayer::collisionCheckObjects @ 0x10010502e
// > GJBaseGameLayer::collisionCheckObjects @ 0x1001050f5
// > GJBaseGameLayer::collisionCheckObjects @ 0x1001051b4
// > GJBaseGameLayer::collisionCheckObjects @ 0x1001052a9
// > GJBaseGameLayer::collisionCheckObjects @ 0x100105339
// > GJBaseGameLayer::collisionCheckObjects @ 0x10010541e
// > EffectGameObject::triggerObject @ 0x10019a232
//
// This function is hookable on this platform (idp: pc, 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:35:07 +0000
//
void __fastcall GameObject::playShineEffect(int *a1)
{
int v2; // eax
__int64 v3; // rdx
__int64 v4; // rdx
__int64 v5; // rdx
const std::string::value_type *v6; // rsi
const std::string::value_type *data; // rsi
int v8; // ecx
__int64 v9; // rax
std::string *v10; // rax
int i; // r15d
std::string *v12; // rax
std::string *v13; // rax
const char *v14; // rdi
char *v15; // r12
unsigned int v16; // r13d
__int64 v17; // rax
__int64 v18; // rax
unsigned __int8 isFlipX; // al
unsigned __int8 isFlipY; // al
char *v21; // rax
char *v22; // rax
__int64 v23; // r15
__int64 v24; // rax
int v25; // ebx
__int64 v26; // r13
_OWORD *v27; // r14
_OWORD *v28; // r15
__int64 v29; // r12
__int64 v30; // rax
__int64 v31; // rsi
__int64 v32; // rbx
int v33; // eax
float v34; // xmm1_4
_QWORD *v35; // r14
char v36; // eax^2
__int64 v37; // rax
__int64 v38; // r15
__int64 v39; // rax
int v40; // eax
__int64 v41; // rax
__int64 v42; // rcx
__int64 v43; // rax
char v44[8]; // [rsp+0h] [rbp-C0h] BYREF
int *v45; // [rsp+8h] [rbp-B8h]
std::string v46; // [rsp+10h] [rbp-B0h] BYREF
float v47; // [rsp+34h] [rbp-8Ch]
__int64 v48; // [rsp+38h] [rbp-88h]
__int64 v49; // [rsp+40h] [rbp-80h]
char *v50; // [rsp+48h] [rbp-78h]
std::string v51; // [rsp+50h] [rbp-70h] BYREF
int v52; // [rsp+68h] [rbp-58h]
int v53; // [rsp+6Ch] [rbp-54h]
std::string __s; // [rsp+70h] [rbp-50h] BYREF
int v55; // [rsp+94h] [rbp-2Ch]
if ( (*(unsigned __int8 (__fastcall **)(int *))(*(_QWORD *)a1 + 1552LL))(a1)
|| !(*(unsigned __int8 (__fastcall **)(int *))(*(_QWORD *)a1 + 896LL))(a1)
|| *((_BYTE *)a1 + 1044)
|| *((_BYTE *)a1 + 649)
|| !(*(__int64 (__fastcall **)(int *))(*(_QWORD *)a1 + 512LL))(a1) )
{
return;
}
memset(&v51, 0, sizeof(v51));
memset(&v46, 0, sizeof(v46));
v2 = a1[257];
if ( v2 <= 285 )
{
if ( v2 > 100 )
{
switch ( v2 )
{
case 200:
sub_100675AA0(&__s, "boost_01_001.png", (std::string *)"_001.png", "_shine_001.png");
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
data = __s.__r_.__value_.__l.__data_;
else
data = __s.__r_.__value_.__s.__data_;
goto LABEL_59;
case 201:
sub_100675AA0(&__s, "boost_02_001.png", (std::string *)"_001.png", "_shine_001.png");
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
data = __s.__r_.__value_.__l.__data_;
else
data = __s.__r_.__value_.__s.__data_;
goto LABEL_59;
case 202:
sub_100675AA0(&__s, "boost_03_001.png", (std::string *)"_001.png", "_shine_001.png");
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
data = __s.__r_.__value_.__l.__data_;
else
data = __s.__r_.__value_.__s.__data_;
goto LABEL_59;
case 203:
sub_100675AA0(&__s, "boost_04_001.png", (std::string *)"_001.png", "_shine_001.png");
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
data = __s.__r_.__value_.__l.__data_;
else
data = __s.__r_.__value_.__s.__data_;
goto LABEL_59;
default:
if ( v2 == 101 )
goto LABEL_46;
if ( v2 != 111 )
goto LABEL_109;
goto LABEL_44;
}
}
if ( (unsigned int)v2 > 0x2F )
{
LABEL_45:
if ( v2 == 99 )
{
LABEL_46:
std::string::assign(&v51, "portalshine_04_front_001.png");
v6 = "portalshine_04_back_001.png";
goto LABEL_47;
}
goto LABEL_109;
}
v3 = 0x800000003000LL;
if ( !_bittest64(&v3, (unsigned int)v2) )
{
v4 = 3072;
if ( !_bittest64(&v4, (unsigned int)v2) )
{
v5 = 0x600000000000LL;
if ( _bittest64(&v5, (unsigned int)v2) )
{
std::string::assign(&v51, "portalshine_03_front_001.png");
v6 = "portalshine_03_back_001.png";
LABEL_47:
std::string::assign(&v46, v6);
v55 = 2;
v52 = 0;
v8 = a1[257];
v9 = (unsigned int)(v8 - 200);
goto LABEL_48;
}
goto LABEL_45;
}
LABEL_32:
std::string::assign(&v51, "portalshine_01_front_001.png");
v6 = "portalshine_01_back_001.png";
goto LABEL_47;
}
LABEL_44:
std::string::assign(&v51, "portalshine_02_front_001.png");
v6 = "portalshine_02_back_001.png";
goto LABEL_47;
}
if ( v2 > 1330 )
{
if ( v2 <= 2063 )
{
if ( v2 != 1331 )
{
if ( v2 == 1334 )
{
sub_100675AA0(&__s, "boost_05_001.png", (std::string *)"_001.png", "_shine_001.png");
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
data = __s.__r_.__value_.__l.__data_;
else
data = __s.__r_.__value_.__s.__data_;
LABEL_59:
v10 = std::string::assign(&v51, data);
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
LOBYTE(v10) = 1;
v52 = (int)v10;
v55 = 1;
v8 = a1[257];
v9 = (unsigned int)(v8 - 200);
if ( (unsigned int)v9 > 3 )
{
LABEL_62:
if ( v8 == 1334 )
v53 = 3289855;
else
LABEL_64:
v53 = 16750080;
goto LABEL_65;
}
LABEL_48:
switch ( v9 )
{
case 0LL:
v53 = 0xFFFF;
break;
case 1LL:
goto LABEL_64;
case 2LL:
v53 = 9895680;
break;
case 3LL:
v53 = 16711935;
break;
default:
goto LABEL_62;
}
LABEL_65:
v48 = 0;
v49 = 0;
for ( i = 0; i != v55; ++i )
{
v12 = &v46;
if ( !i )
v12 = &v51;
if ( (*(_BYTE *)&v12->__r_.__value_.__s.0 & 1) != 0 )
{
v13 = &v46;
if ( !i )
v13 = &v51;
sub_10001AD30(&__s, v13->__r_.__value_.__l.__data_, v13->__r_.__value_.__l.__size_);
}
else
{
__s = *v12;
}
v14 = __s.__r_.__value_.__s.__data_;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
v14 = __s.__r_.__value_.__l.__data_;
v15 = CCSpritePlus::createWithSpriteFrameName(v14);
v16 = 5;
if ( !i )
{
v17 = (*(__int64 (__fastcall **)(int *))(*(_QWORD *)a1 + 512LL))(a1);
v16 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 104LL))(v17) + 1;
}
v18 = GameManager::sharedState();
(*(void (__fastcall **)(_QWORD, char *, _QWORD))(**(_QWORD **)(*(_QWORD *)(v18 + 544) + 3920LL) + 464LL))(
*(_QWORD *)(*(_QWORD *)(v18 + 544) + 3920LL),
v15,
v16);
(*(void (__fastcall **)(char *, int *))(*(_QWORD *)a1 + 1360LL))(v44, a1);
(*(void (__fastcall **)(char *, char *))(*(_QWORD *)v15 + 184LL))(v15, v44);
(*(void (__fastcall **)(int *))(*(_QWORD *)a1 + 368LL))(a1);
(*(void (__fastcall **)(char *))(*(_QWORD *)v15 + 360LL))(v15);
isFlipX = cocos2d::CCSprite::isFlipX((__int64)a1);
(*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v15 + 1240LL))(v15, isFlipX);
isFlipY = cocos2d::CCSprite::isFlipY((__int64)a1);
(*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v15 + 1248LL))(v15, isFlipY);
(*(void (__fastcall **)(int *))(*(_QWORD *)a1 + 136LL))(a1);
(*(void (__fastcall **)(char *))(*(_QWORD *)v15 + 128LL))(v15);
(*(void (__fastcall **)(int *))(*(_QWORD *)a1 + 152LL))(a1);
(*(void (__fastcall **)(char *))(*(_QWORD *)v15 + 144LL))(v15);
v21 = (char *)v49;
if ( i )
v21 = v15;
v49 = (__int64)v21;
v22 = (char *)v48;
if ( !i )
v22 = v15;
v48 = (__int64)v22;
if ( (*(_BYTE *)&__s.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__s.__r_.__value_.__l.__data_);
}
v23 = (*(__int64 (__fastcall **)(int *, __int64, std::string *))(*(_QWORD *)a1 + 480LL))(a1, 91, &v46);
v45 = a1;
if ( v23 )
{
v50 = CCSpritePlus::createWithSpriteFrameName("portal_extra_shine_001.png");
v47 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 328LL))(v23);
v24 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 328LL))(v23);
sub_100278250((float *)&__s, v47 * 0.5, 0.5 * *(float *)(v24 + 4));
(*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v50 + 184LL))(v50, &__s);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v23 + 464LL))(v23, v50, 1);
++v55;
}
else
{
v50 = nullptr;
}
v25 = 0;
do
{
v26 = v48;
if ( v25 )
{
v26 = v49;
if ( v25 != 1 )
v26 = (__int64)v50;
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v26 + 912LL))(v26, 0);
if ( v25 != 2 )
CCSpritePlus::followSprite(v26, (__int64)v45);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v26 + 1080LL))(v26, 0x100000302LL);
v27 = cocos2d::CCFadeIn::create((__m128)0x3D4CCCCDu);
v28 = cocos2d::CCFadeOut::create((__m128)0x3ECCCCCDu);
v29 = cocos2d::CCCallFunc::create(v26, CCSpritePlus::stopFollow, 0);
v30 = cocos2d::CCCallFunc::create(v26, 537, 0);
v31 = sub_10039EB60((__int64)v27, v28, v29, v30, 0);
cocos2d::CCNode::runAction(v26, v31);
++v25;
}
while ( v55 != v25 );
v32 = (__int64)v45;
if ( (_BYTE)v52 )
{
v33 = v45[257];
v34 = 70.0;
if ( v33 > 202 )
{
if ( v33 == 203 )
{
v34 = 80.0;
}
else if ( v33 == 1334 )
{
v34 = 90.0;
}
}
else if ( v33 == 200 )
{
v34 = 60.0;
}
else if ( v33 == 201 )
{
v34 = 65.0;
}
v35 = (_QWORD *)CCCircleWave::create_1(0, 5.0, v34, 0.30000001);
v36 = BYTE2(v53);
*((_WORD *)v35 + 170) = v53;
*((_BYTE *)v35 + 342) = v36;
v37 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 192LL))(v32);
(*(void (__fastcall **)(_QWORD *, __int64))(*v35 + 184LL))(v35, v37);
if ( (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 512LL))(v32) )
{
v38 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 3920LL);
v39 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 512LL))(v32);
v40 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v39 + 104LL))(v39);
(*(void (__fastcall **)(__int64, _QWORD *, _QWORD))(*(_QWORD *)v38 + 464LL))(
v38,
v35,
(unsigned int)(v40 - 1));
}
v35[44] = 0x600000001LL;
CCCircleWave::followObject(v35, v32, 1);
v41 = *(_QWORD *)(GameManager::sharedState() + 544);
v42 = v41 + 13992;
if ( !v41 )
v42 = 0;
v35[46] = v42;
v43 = GameManager::sharedState();
PlayLayer::addCircle(*(_QWORD *)(v43 + 544), (__int64)v35);
}
goto LABEL_109;
}
if ( v2 != 1933 )
goto LABEL_109;
}
goto LABEL_44;
}
if ( v2 != 2064 && v2 != 2902 )
{
if ( v2 != 2926 )
goto LABEL_109;
goto LABEL_32;
}
LABEL_33:
std::string::assign(&v51, "portalshine_06_front_001.png");
v6 = "portalshine_06_back_001.png";
goto LABEL_47;
}
if ( v2 > 744 )
{
if ( v2 == 745 )
goto LABEL_44;
if ( v2 != 747 && v2 != 749 )
goto LABEL_109;
goto LABEL_33;
}
if ( (unsigned int)(v2 - 286) < 2 )
{
std::string::assign(&v51, "portalshine_05_front_001.png");
v6 = "portalshine_05_back_001.png";
goto LABEL_47;
}
if ( v2 == 660 )
goto LABEL_44;
LABEL_109:
if ( (*(_BYTE *)&v46.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v46.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v51.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v51.__r_.__value_.__l.__data_);
}