//
// GameObject::addNewSlope02Glow from 0x3597b4 to 0x359860 (172 bytes)
//
// 2 xrefs:
// > GameObject::setupCustomSprites @ 0x5183dc
// > GameObject::setupCustomSprites @ 0x51952c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameObject::addNewSlope02Glow(GameObject *a1, bool a2)
{
cocos2d::CCSprite *m_glowSprite; // r2
char *v4; // r3
cocos2d::CCSprite *v5; // r5
char v6[4]; // [sp+8h] [bp-10h] BYREF
cocos2d::CCPoint v7; // [sp+Ch] [bp-Ch] BYREF
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
{
if ( a2 )
m_glowSprite->m_bDontDraw = 1;
sub_776584((int)v6, "blockOutline_15new_001.png");
GameObject::getGlowFrame((int)&v7, (int)a1, v6, v4);
v5 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)LODWORD(v7.x));
sub_774008(&v7);
sub_774008(v6);
((void (__fastcall *)(cocos2d::CCSprite *, int))v5->setRotation)(v5, -1043070976);
a1->m_glowSprite->addChild(a1->m_glowSprite, v5);
cocos2d::CCNode::convertToNodeSpace(&v7, a1->m_glowSprite, &stru_AC5CA0);
v5->setPosition(v5, &v7);
}
}