//
// sub_140139B00 from 0x140139b00 to 0x140139bab (171 bytes)
//
// 2 xrefs:
// > ??> @ 0x140738550
// > ??> @ 0x140917258
//
// This function is hookable on this platform (idp: pc, 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:27:06 +0000
//
// Hidden C++ exception states: #wind=2
cocos2d::CCSprite *__fastcall sub_140139B00(cocos2d::CCSprite *Block, char a2)
{
cocos2d::CCObject *v4; // rcx
cocos2d::CCObject *v5; // rcx
*(_QWORD *)Block = &CurrencySprite::`vftable';
*((_QWORD *)Block + 40) = &CurrencySprite::`vftable';
*((_QWORD *)Block + 43) = &CurrencySprite::`vftable';
v4 = *((cocos2d::CCObject **)Block + 84);
if ( v4 )
cocos2d::CCObject::release(v4);
*(_QWORD *)Block = &CCSpritePlus::`vftable';
*((_QWORD *)Block + 40) = &CCSpritePlus::`vftable';
*((_QWORD *)Block + 43) = &CCSpritePlus::`vftable';
v5 = *((cocos2d::CCObject **)Block + 75);
if ( v5 )
cocos2d::CCObject::release(v5);
cocos2d::CCSprite::~CCSprite(Block);
if ( (a2 & 1) != 0 )
j_j_free(Block);
return Block;
}