//
// GameObject::addNewSlope01 from 0x772b64 to 0x772c7c (280 bytes)
//
// 3 xrefs:
// > GameObject::setupCustomSprites @ 0xacdbb8
// > GameObject::setupCustomSprites @ 0xaddf50
// > ??> @ 0x100a20
//
// 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:13 +0000
//
__int64 __fastcall GameObject::addNewSlope01(GameObject *this, char a2)
{
__int64 v3; // x20
_BYTE v5[8]; // [xsp+38h] [xbp+38h] BYREF
_QWORD v6[2]; // [xsp+40h] [xbp+40h] BYREF
void *v7; // [xsp+50h] [xbp+50h]
if ( a2 )
*((_BYTE *)this + 559) = 1;
v7 = (void *)operator new(0x20u);
v6[0] = 33;
v6[1] = 26;
strcpy((char *)v7, "blockOutline_14new_001.png");
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v5, (const cocos2d::CCPoint *)&unk_155C668);
v3 = GameObject::addCustomChild(this, (unsigned __int8 *)v6, (__int64)v5, 2u);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 360LL))(v3, -45.0);
return _stack_chk_guard;
}