//
// GJUINode::draw from 0x3fc270 to 0x3fc478 (520 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:21 +0000
//
int __fastcall GJUINode::draw(int this)
{
int v1; // r4
unsigned int v2; // r0
cocos2d *v3; // r7
char *v4; // r0
int v5; // r6
int v6; // r5
const cocos2d::CCPoint *v7; // r2
float v8; // s15
unsigned __int8 v9; // [sp+0h] [bp-34h]
unsigned __int8 v10; // [sp+0h] [bp-34h]
unsigned int v11; // [sp+0h] [bp-34h]
bool v12; // [sp+4h] [bp-30h]
_BYTE v13[8]; // [sp+14h] [bp-20h] BYREF
_BYTE v14[8]; // [sp+1Ch] [bp-18h] BYREF
_BYTE v15[8]; // [sp+24h] [bp-10h] BYREF
v1 = this;
if ( *(_BYTE *)(this + 316) )
{
glLineWidth(2.0);
v2 = (*(int (__fastcall **)(int))(*(_DWORD *)v1 + 32))(v1) - 2;
if ( v2 > 2 )
{
v6 = 0;
v5 = 255;
v3 = nullptr;
}
else
{
v3 = (cocos2d *)byte_BEB5D0[v2];
v4 = (char *)&byte_BEB5D0[v2];
v5 = (unsigned __int8)v4[4];
v6 = (unsigned __int8)v4[8];
}
cocos2d::ccDrawColor4B(v3, v5, v6, 0xFFu, v9);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, (const cocos2d::CCPoint *)(v1 + 272));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, (const cocos2d::CCSize *)(v1 + 280));
cocos2d::CCPoint::operator+(v14, v1 + 272, v15);
this = cocos2d::ccDrawRect(v13, v14);
if ( *(_BYTE *)(v1 + 317) )
{
if ( *(float *)(v1 + 308) > 0.0 )
{
cocos2d::ccDrawColor4B((cocos2d *)((char *)&dword_FC + 3), 0x96u, 0, (unsigned __int8)&dword_FC + 3, v10);
cocos2d::ccDrawCircle(
(cocos2d *)&unk_D2B6C8,
*(const cocos2d::CCPoint **)(v1 + 308),
360.0,
COERCE_FLOAT(100),
0,
v12);
}
v8 = *(float *)(v1 + 312);
if ( v8 > 0.0 && v8 < *(float *)(v1 + 308) )
{
cocos2d::ccDrawColor4B((cocos2d *)&dword_C8, 0, 0, 0xFFu, v10);
cocos2d::ccDrawCircle(
(cocos2d *)&unk_D2B6C8,
*(const cocos2d::CCPoint **)(v1 + 312),
360.0,
COERCE_FLOAT(100),
0,
v12);
}
cocos2d::ccDrawColor4B(
(cocos2d *)((char *)&dword_7C + 3),
(unsigned __int8)&dword_7C + 3,
(unsigned __int8)&dword_7C + 3,
(unsigned __int8)&dword_7C + 3,
v10);
return cocos2d::ccDrawFilledCircle(
(cocos2d *)&unk_D2B6C8,
(const cocos2d::CCPoint *)0x40000000,
0.0,
COERCE_FLOAT(20),
v11);
}
else if ( *(_DWORD *)(v1 + 268) )
{
if ( *(float *)(v1 + 312) <= 0.0 )
{
cocos2d::ccDrawColor4B(
(cocos2d *)(unsigned __int8)(unsigned int)(float)((float)(int)v3 * 0.3),
(unsigned int)(float)((float)v5 * 0.3),
(unsigned int)(float)((float)v6 * 0.3),
0xFFu,
v10);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, 0.0, *(float *)(v1 + 276));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, 0.0, *(float *)(v1 + 276) + *(float *)(v1 + 284));
return cocos2d::ccDrawLine((cocos2d *)v14, (const cocos2d::CCPoint *)v15, v7);
}
else
{
cocos2d::ccDrawColor4B((cocos2d *)&dword_C8, *(_BYTE *)(v1 + 317), *(_BYTE *)(v1 + 317), 0xFFu, v10);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v14,
COERCE_FLOAT(*(_DWORD *)(v1 + 312) ^ 0x80000000),
*(float *)(v1 + 276));
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v15,
*(float *)(v1 + 312),
*(float *)(v1 + 276) + *(float *)(v1 + 284));
return cocos2d::ccDrawRect(v14, v15);
}
}
}
return this;
}