//
// GameObject::addNewSlope01Glow from 0x778008 to 0x778174 (364 bytes)
//
// 3 xrefs:
// > GameObject::setupCustomSprites @ 0xaddf5c
// > GameObject::setupCustomSprites @ 0xae111c
// > ??> @ 0x86cb0
//
// 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:53:15 +0000
//
__int64 __fastcall GameObject::addNewSlope01Glow(GameObject *this, char a2)
{
__int64 v3; // x0
cocos2d::CCSprite *v4; // x0
__int64 v5; // x19
__int64 v7; // [xsp+30h] [xbp+30h] BYREF
__int64 v8[2]; // [xsp+38h] [xbp+38h] BYREF
void *v9; // [xsp+48h] [xbp+48h]
unsigned __int64 v10[2]; // [xsp+50h] [xbp+50h] BYREF
void *v11; // [xsp+60h] [xbp+60h]
v3 = *((_QWORD *)this + 94);
if ( v3 )
{
if ( a2 )
*(_BYTE *)(v3 + 559) = 1;
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
std::string::__init(v8, "blockOutline_14new_001.png", 0x1Au);
GameObject::getGlowFrame((__int64)v8, v10);
v4 = (cocos2d::CCSprite *)((char *)v10 + 1);
if ( (v10[0] & 1) != 0 )
v4 = (cocos2d::CCSprite *)v11;
v5 = cocos2d::CCSprite::createWithSpriteFrameName(v4, (const char *)LOBYTE(v10[0]));
if ( (v10[0] & 1) != 0 )
operator delete(v11);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 360LL))(v5, -45.0);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 94) + 456LL))(*((_QWORD *)this + 94), v5);
cocos2d::CCNode::convertToNodeSpace(&v7, *((cocos2d::CCNode **)this + 94), (const cocos2d::CCPoint *)&unk_155C668);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL))(v5, &v7);
}
return _stack_chk_guard;
}