//
// cocos2d::CCDrawNode::drawRect from 0x100042e8c to 0x100042fc0 (308 bytes)
//
// 9 xrefs:
// > cocos2d::CCDrawNode::drawRect_1 @ 0x100042e68
// > GJBaseGameLayer::updateDebugDraw @ 0x1001e4c5c
// > GJBaseGameLayer::updateDebugDraw @ 0x1001e4f4c
// > GJBaseGameLayer::updateDebugDraw @ 0x1001e4fd0
// > sub_100366FC4 @ 0x1003672d8
// > sub_100366FC4 @ 0x100367a60
// > LevelEditorLayer::updateDebugDraw @ 0x100368050
// > LevelEditorLayer::updateDebugDraw @ 0x100368110
// > LevelEditorLayer::updateDebugDraw @ 0x1003691ac
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall cocos2d::CCDrawNode::drawRect(
cocos2d::CCDrawNode *a1,
unsigned __int32 *a2,
unsigned __int32 *a3,
float32x2_t *a4,
float32x2_t *a5,
int a6,
float a7)
{
__int64 i; // x25
__n128 v15; // q0
__n128 v16; // q1
__n128 v17; // q0
__n128 v18; // q1
__n128 v19; // q0
__n128 v20; // q1
__n128 v21; // q0
__n128 v22; // q1
double v24; // [xsp+0h] [xbp-80h] BYREF
float32x2_t v25; // [xsp+8h] [xbp-78h] BYREF
__int64 v26; // [xsp+10h] [xbp-70h] BYREF
__int64 v27; // [xsp+18h] [xbp-68h] BYREF
__int64 v28; // [xsp+20h] [xbp-60h] BYREF
for ( i = 0; i != 32; i += 8 )
sub_1000229B0((float32x2_t *)((char *)&v25 + i));
v15.n128_u32[0] = *a2;
v16.n128_u32[0] = a2[1];
sub_100022980(v15, v16, &v24);
v17.n128_f64[0] = sub_1000229D0(&v25, &v24);
v17.n128_u32[0] = *a3;
v18.n128_u32[0] = a2[1];
sub_100022980(v17, v18, &v24);
v19.n128_f64[0] = sub_1000229D0(&v26, &v24);
v19.n128_u32[0] = *a3;
v20.n128_u32[0] = a3[1];
sub_100022980(v19, v20, &v24);
v21.n128_f64[0] = sub_1000229D0(&v27, &v24);
v21.n128_u32[0] = *a2;
v22.n128_u32[0] = a3[1];
sub_100022980(v21, v22, &v24);
sub_1000229D0(&v28, &v24);
cocos2d::CCDrawNode::drawPolygon(a1, &v25, 4u, a4, a5, a6, a7);
return 1;
}