//
// cocos2d::CCDrawNode::drawRect from 0xd4d950 to 0xd4da88 (312 bytes)
//
// 12 xrefs:
// > drawTrace @ 0x7b5b7c
// > drawTrace @ 0x7b6aa8
// > LevelEditorLayer::updateDebugDraw @ 0x7beaf8
// > LevelEditorLayer::updateDebugDraw @ 0x7bf54c
// > LevelEditorLayer::updateDebugDraw @ 0x7bf96c
// > GJBaseGameLayer::drawHitboxTrail @ 0x99b388
// > GJBaseGameLayer::drawHitboxTrail @ 0x99b4d4
// > GJBaseGameLayer::updateDebugDraw @ 0x99bea8
// > GJBaseGameLayer::updateDebugDraw @ 0x99c16c
// > GJBaseGameLayer::updateDebugDraw @ 0x99c20c
// > cocos2d::CCDrawNode::drawRect @ 0xd4db20
// > ??> @ 0x656e0
//
// 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:07:39 +0000
//
__int64 __fastcall cocos2d::CCDrawNode::drawRect(
__int64 a1,
float *a2,
float *a3,
float *a4,
float *a5,
int a6,
float a7)
{
__int64 i; // x19
cocos2d::CCPoint *v15; // x0
float v17; // [xsp+60h] [xbp+60h] BYREF
float v18[2]; // [xsp+68h] [xbp+68h] BYREF
float v19; // [xsp+70h] [xbp+70h] BYREF
float v20; // [xsp+78h] [xbp+78h] BYREF
float v21; // [xsp+80h] [xbp+80h] BYREF
for ( i = 0; i != 8; i += 2 )
{
v15 = (cocos2d::CCPoint *)&v18[i];
cocos2d::CCPoint::CCPoint(v15);
}
cocos2d::CCPoint::CCPoint(&v17, *a2, a2[1]);
cocos2d::CCPoint::operator=(v18, &v17);
cocos2d::CCPoint::CCPoint(&v17, *a3, a2[1]);
cocos2d::CCPoint::operator=(&v19, &v17);
cocos2d::CCPoint::CCPoint(&v17, *a3, a3[1]);
cocos2d::CCPoint::operator=(&v20, &v17);
cocos2d::CCPoint::CCPoint(&v17, *a2, a3[1]);
cocos2d::CCPoint::operator=(&v21, &v17);
cocos2d::CCDrawNode::drawPolygon(a1, v18, 4u, a4, a5, a6, a7);
return 1;
}