//
// cocos2d::CCTextFieldTTF::draw from 0x1800b9240 to 0x1800b92d2 (146 bytes)
//
// 5 xrefs:
// > ??> @ 0x18010d140
// > ??> @ 0x18014a7fc
// > ??> @ 0x18014a80c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c2d9c
//
// 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:22:22 +0000
//
void __fastcall cocos2d::CCTextFieldTTF::draw(cocos2d::CCTextFieldTTF *this, float a2)
{
__int64 v3; // rcx
__int64 v4; // rax
__int16 v5; // [rsp+30h] [rbp+8h] BYREF
char v6; // [rsp+32h] [rbp+Ah]
v3 = *((_QWORD *)this + 89);
if ( !v3 || !(*(unsigned __int8 (__fastcall **)(__int64, cocos2d::CCTextFieldTTF *))(*(_QWORD *)v3 + 32LL))(v3, this) )
{
if ( *(_QWORD *)(*((_QWORD *)this + 91) + 16LL) )
{
cocos2d::CCSprite::draw((GLenum *)this, a2);
}
else
{
v4 = (*(__int64 (__fastcall **)(char *))(*((_QWORD *)this + 40) + 8LL))((char *)this + 320);
v5 = *(_WORD *)v4;
v6 = *(_BYTE *)(v4 + 2);
(**((void (__fastcall ***)(char *, char *))this + 40))((char *)this + 320, (char *)this + 744);
cocos2d::CCSprite::draw((GLenum *)this, a2);
(**((void (__fastcall ***)(char *, __int16 *))this + 40))((char *)this + 320, &v5);
}
}
}