//
// cocos2d::CCTexture2D::drawAtPoint from 0x1800a89d0 to 0x1800a8b2a (346 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1e84
//
// This function is hookable on this platform (idp: pc, 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 11:22:16 +0000
//
void __fastcall cocos2d::CCTexture2D::drawAtPoint(cocos2d::CCTexture2D *this, const struct cocos2d::CCPoint *a2)
{
float v2; // xmm1_4
float v4; // xmm4_4
int v5; // eax
float v6; // xmm2_4
float v7; // xmm3_4
int v8; // eax
unsigned int v9; // edx
float v10[2]; // [rsp+30h] [rbp-58h] BYREF
float v11; // [rsp+38h] [rbp-50h]
float v12; // [rsp+3Ch] [rbp-4Ch]
float v13; // [rsp+40h] [rbp-48h]
float v14; // [rsp+44h] [rbp-44h]
float v15; // [rsp+48h] [rbp-40h]
float v16; // [rsp+4Ch] [rbp-3Ch]
_DWORD v17[4]; // [rsp+50h] [rbp-38h] BYREF
__int64 v18; // [rsp+60h] [rbp-28h]
float v19; // [rsp+68h] [rbp-20h]
int v20; // [rsp+6Ch] [rbp-1Ch]
v2 = *((float *)this + 19);
v4 = *((float *)this + 20);
v5 = *((_DWORD *)this + 16);
v6 = *((float *)a2 + 1);
v10[0] = *(float *)a2;
v13 = v10[0];
v7 = (float)v5;
v8 = *((_DWORD *)this + 17);
v17[0] = 0;
v18 = 0;
v20 = 0;
*(float *)&v17[1] = v4;
*(float *)&v17[2] = v2;
*(float *)&v17[3] = v4;
v19 = v2;
v10[1] = v6;
v12 = v6;
v11 = (float)(v7 * v2) + v10[0];
v15 = v11;
v14 = (float)((float)v8 * v4) + v6;
v16 = v14;
cocos2d::ccGLEnableVertexAttribs((cocos2d *)5);
cocos2d::CCGLProgram::use(*((cocos2d::CCGLProgram **)this + 12), v9);
cocos2d::CCGLProgram::setUniformsForBuiltins(*((cocos2d::CCGLProgram **)this + 12));
cocos2d::ccGLBindTexture2D((cocos2d *)*((unsigned int *)this + 18));
_glewVertexAttribPointer(0, 2, 5126, 0, 0, v10);
_glewVertexAttribPointer(2, 2, 5126, 0, 0, v17);
glDrawArrays(5u, 0, 4);
}