//
// cocos2d::CCTextFieldTTF::draw from 0x1800b5580 to 0x1800b5612 (146 bytes)
//
// 5 xrefs:
// > ??> @ 0x180106a58
// > ??> @ 0x180141484
// > ??> @ 0x180141494
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b8a84
//
// 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
//
void __fastcall cocos2d::CCTextFieldTTF::draw(cocos2d::CCTextFieldTTF *this, float a2)
{
cocos2d::CCTextFieldDelegate *m_pDelegate; // rcx
__int64 v4; // rax
__int16 v5; // [rsp+30h] [rbp+8h] BYREF
char v6; // [rsp+32h] [rbp+Ah]
m_pDelegate = this->m_pDelegate;
if ( !m_pDelegate
|| !((unsigned __int8 (__fastcall *)(cocos2d::CCTextFieldDelegate *, cocos2d::CCTextFieldTTF *))m_pDelegate->onDraw)(
m_pDelegate,
this) )
{
if ( this->m_pInputText->m_data.m_size )
{
cocos2d::CCSprite::draw(this, a2);
}
else
{
v4 = ((__int64 (__fastcall *)(cocos2d::CCRGBAProtocol *))this->getColor)(&this->cocos2d::CCRGBAProtocol);
v5 = *(_WORD *)v4;
v6 = *(_BYTE *)(v4 + 2);
((void (__fastcall *)(cocos2d::CCRGBAProtocol *, cocos2d::ccColor3B *))this->setColor)(
&this->cocos2d::CCRGBAProtocol,
&this->m_ColorSpaceHolder);
cocos2d::CCSprite::draw(this, a2);
((void (__fastcall *)(cocos2d::CCRGBAProtocol *, __int16 *))this->setColor)(&this->cocos2d::CCRGBAProtocol, &v5);
}
}
}