//
// cocos2d::CCTextFieldTTF::draw from 0xda2238 to 0xda231c (228 bytes)
//
// 2 xrefs:
// > ??> @ 0xdba78
// > ??> @ 0x152fe48
//
// This function is hookable on this platform (idp: arm, 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 13:08:30 +0000
//
__int64 __fastcall cocos2d::CCTextFieldTTF::draw(cocos2d::CCTextFieldTTF *this)
{
__int64 v2; // x0
__int64 v4; // x1
__int64 v5; // x0
__int64 v6; // x3
void (__fastcall *v7)(cocos2d::CCTextFieldTTF *, char *); // x3
__int16 v8; // [xsp+20h] [xbp+20h] BYREF
char v9; // [xsp+22h] [xbp+22h]
v2 = *((_QWORD *)this + 88);
if ( !v2 || !(*(unsigned __int8 (__fastcall **)(__int64, cocos2d::CCTextFieldTTF *))(*(_QWORD *)v2 + 32LL))(v2, this) )
{
v4 = *((_QWORD *)this + 90);
if ( (*(_BYTE *)v4 & 1) != 0 )
{
if ( *(_QWORD *)(v4 + 8) )
{
LABEL_6:
cocos2d::CCSprite::draw((int *)this);
return _stack_chk_guard;
}
}
else if ( *(_BYTE *)v4 >> 1 )
{
goto LABEL_6;
}
v5 = (*(__int64 (__fastcall **)(cocos2d::CCTextFieldTTF *))(*(_QWORD *)this + 944LL))(this);
v6 = *(_QWORD *)this;
v8 = *(_WORD *)v5;
v7 = *(void (__fastcall **)(cocos2d::CCTextFieldTTF *, char *))(v6 + 960);
v9 = *(_BYTE *)(v5 + 2);
v7(this, (char *)this + 736);
cocos2d::CCSprite::draw((int *)this);
(*(void (__fastcall **)(cocos2d::CCTextFieldTTF *, __int16 *))(*(_QWORD *)this + 960LL))(this, &v8);
}
return _stack_chk_guard;
}