//
// GJGarageLayer::playRainbowEffect from 0x8b9b50 to 0x8b9d0c (444 bytes)
//
// 3 xrefs:
// > GJGarageLayer::toggleGlow @ 0x8ba2dc
// > GJGarageLayer::onSelect @ 0x8bcba4
// > ??> @ 0xc8b90
//
// 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:56:26 +0000
//
__int64 __fastcall GJGarageLayer::playRainbowEffect(GJGarageLayer *this)
{
__int64 v2; // x0
__int64 v3; // x19
void (__fastcall *v4)(__int64, __int64); // x26
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x19
void (__fastcall *v8)(__int64, __int64); // x25
__int64 v9; // x0
__int64 v10; // x0
__int64 v11; // x19
void (__fastcall *v12)(__int64, __int64); // x22
__int64 v13; // x0
__int64 result; // x0
v2 = CCCircleWave::create(nullptr, 4.0, 64.0, 0.5);
*(_BYTE *)(v2 + 340) = -1;
*(_BYTE *)(v2 + 341) = 0;
*(_BYTE *)(v2 + 342) = 0;
v3 = v2;
*(_BYTE *)(v2 + 364) = 1;
*(_DWORD *)(v2 + 360) = 1061997773;
v4 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 184LL);
v5 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 59) + 192LL))(*((_QWORD *)this + 59));
v4(v3, v5);
(*(void (__fastcall **)(GJGarageLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v3, 0xFFFFFFFFLL);
*(_DWORD *)(v3 + 356) = 4;
*(_DWORD *)(v3 + 352) = 1;
v6 = CCCircleWave::create(nullptr, 1.0, 60.0, 0.5);
*(_BYTE *)(v6 + 364) = 1;
*(_BYTE *)(v6 + 341) = -1;
v7 = v6;
*(_BYTE *)(v6 + 340) = 0;
*(_BYTE *)(v6 + 342) = 0;
*(_DWORD *)(v6 + 360) = 1061997773;
v8 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 184LL);
v9 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 59) + 192LL))(*((_QWORD *)this + 59));
v8(v7, v9);
(*(void (__fastcall **)(GJGarageLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v7, 0xFFFFFFFFLL);
*(_DWORD *)(v7 + 356) = 4;
*(_DWORD *)(v7 + 352) = 1;
v10 = CCCircleWave::create(nullptr, 20.0, 60.0, 0.5);
*(_BYTE *)(v10 + 364) = 1;
*(_BYTE *)(v10 + 340) = 0;
v11 = v10;
*(_BYTE *)(v10 + 341) = 0;
*(_BYTE *)(v10 + 342) = -1;
*(float *)(v10 + 360) = 1.0;
v12 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 184LL);
v13 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 59) + 192LL))(*((_QWORD *)this + 59));
v12(v11, v13);
result = (*(__int64 (__fastcall **)(GJGarageLayer *, __int64, __int64))(*(_QWORD *)this + 464LL))(
this,
v11,
0xFFFFFFFFLL);
*(_DWORD *)(v11 + 356) = 4;
return result;
}