//
// GameObject::addNewSlope02Glow from 0x454bd8 to 0x454c9a (194 bytes)
//
// 2 xrefs:
// > GameObject::setupCustomSprites @ 0x64a674
// > GameObject::setupCustomSprites @ 0x64b8f2
//
// 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::addNewSlope02Glow(int this, int a2)
{
int v2; // r7
int v3; // r2
const char *v4; // r1
cocos2d::CCSprite *v5; // r0
int v6; // r4
_BYTE v7[8]; // [sp+4h] [bp-24h] BYREF
int v8[3]; // [sp+Ch] [bp-1Ch] BYREF
int v9[3]; // [sp+18h] [bp-10h] BYREF
v2 = this;
v3 = *(_DWORD *)(this + 640);
if ( v3 )
{
if ( a2 )
*(_BYTE *)(v3 + 471) = 1;
memset(v8, 0, sizeof(v8));
std::string::__init(v8, "blockOutline_15new_001.png", 0x1Au);
GameObject::getGlowFrame(v9, v2, (int)v8);
if ( (v9[0] & 1) != 0 )
v5 = (cocos2d::CCSprite *)v9[2];
else
v5 = (cocos2d::CCSprite *)((char *)v9 + 1);
v6 = cocos2d::CCSprite::createWithSpriteFrameName(v5, v4);
std::string::~string((int)v9);
std::string::~string((int)v8);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 180))(v6, -1043070976);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v2 + 640) + 228))(*(_DWORD *)(v2 + 640), v6);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v7, *(const cocos2d::CCPoint **)(v2 + 640));
return (*(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92))(v6, v7);
}
return this;
}