//
// sub_1800B50A0 from 0x1800b50a0 to 0x1800b512b (139 bytes)
//
// 3 xrefs:
// > sub_1800B512C @ 0x1800b5133
// > ??> @ 0x180106790
// > ??> @ 0x1801b8a3c
//
// 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::CCTextFieldTTF *__fastcall sub_1800B50A0(cocos2d::CCTextFieldTTF *Block, char a2)
{
int v3; // edi
v3 = a2 & 1;
if ( (a2 & 2) != 0 )
{
`eh vector destructor iterator'(
Block,
0x300u,
*(_QWORD *)&Block[-1].m_uCursorPos,
(void (*)(void *))cocos2d::CCTextFieldTTF::~CCTextFieldTTF);
if ( v3 )
j_j_j_free_0(&Block[-1].m_uCursorPos);
return (cocos2d::CCTextFieldTTF *)((char *)Block - 8);
}
else
{
cocos2d::CCTextFieldTTF::~CCTextFieldTTF(Block);
if ( v3 )
j_j_free_0(Block);
return Block;
}
}