//
// cocos2d::CCDrawNode::drawRect from 0x7cd838 to 0x7cd8de (166 bytes)
//
// 9 xrefs:
// > drawTrace @ 0x47aefa
// > LevelEditorLayer::updateDebugDraw @ 0x47fc24
// > LevelEditorLayer::updateDebugDraw @ 0x480342
// > LevelEditorLayer::updateDebugDraw @ 0x48042e
// > GJBaseGameLayer::drawHitboxTrail @ 0x58d382
// > GJBaseGameLayer::updateDebugDraw @ 0x58dab6
// > GJBaseGameLayer::updateDebugDraw @ 0x58dc36
// > GJBaseGameLayer::updateDebugDraw @ 0x58dcc2
// > cocos2d::CCDrawNode::drawRect @ 0x7cd944
//
// 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 12:00:32 +0000
//
int __fastcall cocos2d::CCDrawNode::drawRect(int a1, float *a2, float *a3, int a4, float a5, int a6, int a7)
{
int i; // r4
float *v12; // r0
float v14[2]; // [sp+14h] [bp-30h] BYREF
float v15[2]; // [sp+1Ch] [bp-28h] BYREF
float v16[2]; // [sp+24h] [bp-20h] BYREF
float v17[2]; // [sp+2Ch] [bp-18h] BYREF
float v18[2]; // [sp+34h] [bp-10h] BYREF
for ( i = 0; i != 8; i += 2 )
{
v12 = &v15[i];
cocos2d::CCPoint::CCPoint(v12);
}
cocos2d::CCPoint::CCPoint(v14, *a2, a2[1]);
cocos2d::CCPoint::operator=(v15, v14);
cocos2d::CCPoint::CCPoint(v14, *a3, a2[1]);
cocos2d::CCPoint::operator=(v16, v14);
cocos2d::CCPoint::CCPoint(v14, *a3, a3[1]);
cocos2d::CCPoint::operator=(v17, v14);
cocos2d::CCPoint::CCPoint(v14, *a2, a3[1]);
cocos2d::CCPoint::operator=(v18, v14);
cocos2d::CCDrawNode::drawPolygon(a1, v15, 4u, a4, a5, a6, a7);
return 1;
}