//
// cocos2d::CCDrawNode::drawRect from 0x100046da0 to 0x100046ed4 (308 bytes)
//
// 10 xrefs:
// > cocos2d::CCDrawNode::drawRect_1 @ 0x100046d7c
// > GJBaseGameLayer::updateDebugDraw @ 0x10027f354
// > GJBaseGameLayer::updateDebugDraw @ 0x10027f770
// > GJBaseGameLayer::updateDebugDraw @ 0x10027f7f4
// > sub_10027F810 @ 0x10027fe64
// > sub_10040908C @ 0x100409998
// > sub_10040908C @ 0x100409b54
// > LevelEditorLayer::updateDebugDraw @ 0x10040a074
// > LevelEditorLayer::updateDebugDraw @ 0x10040a138
// > LevelEditorLayer::updateDebugDraw @ 0x10040b2d0
//
// 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 10:57:39 +0000
//
__int64 __fastcall cocos2d::CCDrawNode::drawRect(
__int64 a1,
float *a2,
float *a3,
float32x2_t *a4,
float32x2_t *a5,
int a6,
float a7)
{
__int64 i; // x25
double v16; // [xsp+0h] [xbp-80h] BYREF
float32x2_t v17; // [xsp+8h] [xbp-78h] BYREF
__int64 v18; // [xsp+10h] [xbp-70h] BYREF
__int64 v19; // [xsp+18h] [xbp-68h] BYREF
__int64 v20; // [xsp+20h] [xbp-60h] BYREF
for ( i = 0; i != 32; i += 8 )
sub_1000262EC((float32x2_t *)((char *)&v17 + i));
sub_1000262BC((float *)&v16, *a2, a2[1]);
sub_10002630C(&v17, &v16);
sub_1000262BC((float *)&v16, *a3, a2[1]);
sub_10002630C(&v18, &v16);
sub_1000262BC((float *)&v16, *a3, a3[1]);
sub_10002630C(&v19, &v16);
sub_1000262BC((float *)&v16, *a2, a3[1]);
sub_10002630C(&v20, &v16);
cocos2d::CCDrawNode::drawPolygon(a1, &v17, 4u, a4, a5, a6, a7);
return 1;
}