//
// sub_18008F7C0 from 0x18008f7c0 to 0x18008f847 (135 bytes)
//
// 3 xrefs:
// > ??> @ 0x180104028
// > ??> @ 0x1801b61e0
// > ??> @ 0x1801b61ec
//
// 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
//
cocos2d::CCSpriteFrame *__fastcall sub_18008F7C0(cocos2d::CCSpriteFrame *Block, char a2)
{
int v3; // edi
v3 = a2 & 1;
if ( (a2 & 2) != 0 )
{
`eh vector destructor iterator'(
Block,
0xC8u,
Block[-1].m_strFrameName.m_data.m_capacity,
(void (*)(void *))cocos2d::CCSpriteFrame::~CCSpriteFrame);
if ( v3 )
j_j_j_free_0(&Block[-1].m_strFrameName.m_data.m_capacity);
return (cocos2d::CCSpriteFrame *)((char *)Block - 8);
}
else
{
cocos2d::CCSpriteFrame::~CCSpriteFrame(Block);
if ( v3 )
j_j_free_0(Block);
return Block;
}
}