//
// sub_1002FFCB4 from 0x1002ffcb4 to 0x1002ffd98 (228 bytes)
//
// 2 xrefs:
// > GameObject::setupCustomSprites @ 0x10034f5dc
// > GameObject::setupCustomSprites @ 0x10035eba8
//
// 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 11:03:04 +0000
//
__int64 __fastcall sub_1002FFCB4(__int64 result, int a2)
{
__int64 v2; // x8
__int64 v3; // x19
void **v4; // x0
void *v5; // x20
void *v6[2]; // [xsp+0h] [xbp-40h] BYREF
char v7; // [xsp+17h] [xbp-29h]
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v9; // [xsp+2Fh] [xbp-11h]
v2 = *(_QWORD *)(result + 752);
if ( v2 )
{
v3 = result;
if ( a2 )
*(_BYTE *)(v2 + 559) = 1;
sub_100009900(v6, "blockOutline_14new_001.png");
sub_1002F2DF0((char *)v6, __p);
if ( v9 >= 0 )
v4 = __p;
else
v4 = (void **)__p[0];
v5 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v4);
if ( v9 < 0 )
operator delete(__p[0]);
if ( v7 < 0 )
operator delete(v6[0]);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v5 + 360LL))(v5, -45.0);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v3 + 752) + 456LL))(*(_QWORD *)(v3 + 752), v5);
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(v3 + 752), (__int64)flt_1009F63A0, __p);
return (*(__int64 (__fastcall **)(void *, void **))(*(_QWORD *)v5 + 184LL))(v5, __p);
}
return result;
}