//
// GJUINode::draw from 0x6ee300 to 0x6ee59c (668 bytes)
//
// 2 xrefs:
// > ??> @ 0xe5ee8
// > ??> @ 0x14281d8
//
// 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 12:51:47 +0000
//
__int64 __fastcall GJUINode::draw(GJUINode *this)
{
__int64 v3; // x0
unsigned __int8 v4; // w4
int v5; // w27
int v6; // w26
int v7; // w25
unsigned __int8 v8; // w4
bool v9; // w3
float v10; // s0
unsigned int v11; // w2
const cocos2d::CCPoint *v12; // x2
bool v13; // w3
_BYTE v14[8]; // [xsp+60h] [xbp+60h] BYREF
__int64 v15; // [xsp+68h] [xbp+68h] BYREF
_BYTE v16[8]; // [xsp+70h] [xbp+70h] BYREF
if ( *((_BYTE *)this + 380) )
{
glLineWidth();
v3 = (*(unsigned int (__fastcall **)(GJUINode *))(*(_QWORD *)this + 64LL))(this) - 2;
if ( (unsigned int)v3 > 2 )
{
v7 = 0;
v6 = 255;
v5 = 0;
}
else
{
v5 = byte_1120E40[v3];
v6 = byte_1120E50[v3];
v7 = byte_1120E60[v3];
}
cocos2d::ccDrawColor4B((cocos2d *)(unsigned int)v5, v6, v7, 0xFFu, v4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, (GJUINode *)((char *)this + 336));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, (GJUINode *)((char *)this + 344));
cocos2d::CCPoint::operator+(&v15, (char *)this + 336);
cocos2d::ccDrawRect(v14, &v15);
if ( *((_BYTE *)this + 381) )
{
if ( *((float *)this + 93) > 0.0 )
{
cocos2d::ccDrawColor4B((cocos2d *)0xFFFFFFFFLL, 0x96u, 0, 0xFFu, v8);
cocos2d::ccDrawCircle(
(cocos2d *)&unk_155C4B8,
(const cocos2d::CCPoint *)((char *)&qword_60 + 4),
*((float *)this + 93),
360.0,
0,
v9);
}
v10 = *((float *)this + 94);
if ( v10 > 0.0 && v10 < *((float *)this + 93) )
{
cocos2d::ccDrawColor4B((cocos2d *)0xFFFFFFC8LL, 0, 0, 0xFFu, v8);
cocos2d::ccDrawCircle(
(cocos2d *)&unk_155C4B8,
(const cocos2d::CCPoint *)((char *)&qword_60 + 4),
*((float *)this + 94),
360.0,
0,
v13);
}
cocos2d::ccDrawColor4B(
(cocos2d *)((char *)&dword_7C + 3),
(unsigned __int8)&dword_7C + 3,
(unsigned __int8)&dword_7C + 3,
(unsigned __int8)&dword_7C + 3,
v8);
cocos2d::ccDrawFilledCircle((cocos2d *)&unk_155C4B8, (const cocos2d::CCPoint *)&dword_14, 2.0, 0.0, v11);
}
else if ( *((_QWORD *)this + 41) )
{
if ( *((float *)this + 94) <= 0.0 )
{
cocos2d::ccDrawColor4B(
(cocos2d *)(unsigned int)(float)((float)v5 * 0.3),
(unsigned int)(float)((float)v6 * 0.3),
(unsigned int)(float)((float)v7 * 0.3),
0xFFu,
v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, *((float *)this + 85));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 0.0, *((float *)this + 85) + *((float *)this + 87));
cocos2d::ccDrawLine((cocos2d *)&v15, (const cocos2d::CCPoint *)v16, v12);
}
else
{
cocos2d::ccDrawColor4B((cocos2d *)0xFFFFFFC8LL, 0, 0, 0xFFu, v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, -*((float *)this + 94), *((float *)this + 85));
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v16,
*((float *)this + 94),
*((float *)this + 85) + *((float *)this + 87));
cocos2d::ccDrawRect(&v15, v16);
}
}
}
return _stack_chk_guard;
}