//
// cocos2d::ccDrawRect from 0x180011ad0 to 0x180011bc5 (245 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae320
//
// 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
//
void __fastcall cocos2d::ccDrawRect(cocos2d *this, struct cocos2d::CCPoint a2, struct cocos2d::CCPoint a3)
{
const struct cocos2d::CCPoint *v5; // rbx
float *v6; // rax
const struct cocos2d::CCPoint *v7; // r8
const struct cocos2d::CCPoint *v8; // rbx
float *v9; // rax
const struct cocos2d::CCPoint *v10; // r8
const struct cocos2d::CCPoint *v11; // rbx
float *v12; // rax
const struct cocos2d::CCPoint *v13; // r8
const struct cocos2d::CCPoint *v14; // rbx
float *v15; // rax
const struct cocos2d::CCPoint *v16; // r8
float v17; // [rsp+30h] [rbp+8h] BYREF
float v18; // [rsp+38h] [rbp+10h] BYREF
v5 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v17, **(float **)&a2, *((float *)this + 1));
v6 = kmVec2Fill(&v18, *(float *)this, *((float *)this + 1));
cocos2d::ccDrawLine((cocos2d *)v6, v5, v7);
v8 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v17, **(float **)&a2, *(float *)(*(_QWORD *)&a2 + 4LL));
v9 = kmVec2Fill(&v18, **(float **)&a2, *((float *)this + 1));
cocos2d::ccDrawLine((cocos2d *)v9, v8, v10);
v11 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v17, *(float *)this, *(float *)(*(_QWORD *)&a2 + 4LL));
v12 = kmVec2Fill(&v18, **(float **)&a2, *(float *)(*(_QWORD *)&a2 + 4LL));
cocos2d::ccDrawLine((cocos2d *)v12, v11, v13);
v14 = (const struct cocos2d::CCPoint *)kmVec2Fill(&v17, *(float *)this, *((float *)this + 1));
v15 = kmVec2Fill(&v18, *(float *)this, *(float *)(*(_QWORD *)&a2 + 4LL));
cocos2d::ccDrawLine((cocos2d *)v15, v14, v16);
}