//
// cocos2d::ccDrawLine from 0x1001eb8f0 to 0x1001eba18 (296 bytes)
//
// 62 xrefs:
// > DrawGridLayer::draw @ 0x1000d744c
// > DrawGridLayer::draw @ 0x1000d764d
// > DrawGridLayer::draw @ 0x1000d7838
// > DrawGridLayer::draw @ 0x1000d8330
// > DrawGridLayer::draw @ 0x1000d837f
// > DrawGridLayer::draw @ 0x1000d858c
// > DrawGridLayer::draw @ 0x1000d8646
// > DrawGridLayer::draw @ 0x1000d8740
// > DrawGridLayer::draw @ 0x1000d8783
// > DrawGridLayer::draw @ 0x1000d8876
// > DrawGridLayer::draw @ 0x1000d88c1
// > cocos2d::ccDrawRect @ 0x1001eba66
// > cocos2d::ccDrawRect @ 0x1001eba96
// > cocos2d::ccDrawRect @ 0x1001ebac6
// > cocos2d::ccDrawRect @ 0x1001ebafc
// > AchievementCell::draw @ 0x10023681e
// > AchievementCell::draw @ 0x100236854
// > LevelCell::draw @ 0x10023af6b
// > LevelCell::draw @ 0x10023afa1
// > MapPackCell::draw @ 0x10023b8ae
// > MapPackCell::draw @ 0x10023b8e4
// > StatsCell::draw @ 0x10023c64e
// > StatsCell::draw @ 0x10023c684
// > SongCell::draw @ 0x10023c8de
// > SongCell::draw @ 0x10023c914
// > CustomSongCell::draw @ 0x10023ccce
// > CustomSongCell::draw @ 0x10023cd04
// > CustomSFXCell::draw @ 0x10023d2be
// > CustomSFXCell::draw @ 0x10023d2f4
// > ArtistCell::draw @ 0x10023d96e
// > ArtistCell::draw @ 0x10023d9a4
// > CommentCell::draw @ 0x10023e35e
// > CommentCell::draw @ 0x10023e394
// > GJScoreCell::draw @ 0x10023ec6e
// > GJScoreCell::draw @ 0x10023eca4
// > GJLocalLevelScoreCell::draw @ 0x10023ee5e
// > GJLocalLevelScoreCell::draw @ 0x10023ee94
// > GJLevelScoreCell::draw @ 0x10023f07e
// > GJLevelScoreCell::draw @ 0x10023f0b4
// > GJCompactUserCell::draw @ 0x10024030e
// > GJCompactUserCell::draw @ 0x100240344
// > GJRequestCell::draw @ 0x10024093e
// > GJRequestCell::draw @ 0x100240974
// > GJThreadCell::draw @ 0x1002410ce
// > GJThreadCell::draw @ 0x100241104
// > GJNotificationCell::draw @ 0x100241d4e
// > GJNotificationCell::draw @ 0x100241d84
// > GJMessageCell::draw @ 0x1002425be
// > GJMessageCell::draw @ 0x1002425f4
// > SmartTemplateCell::draw @ 0x100242d8e
// > SmartTemplateCell::draw @ 0x100242dc4
// > LevelListCell::draw @ 0x1002433be
// > LevelListCell::draw @ 0x1002433f4
// > URLCell::draw @ 0x10024356e
// > URLCell::draw @ 0x1002435a4
// > ListCell::draw @ 0x1002f7e02
// > GameCell::draw @ 0x1002f7fce
// > ParticlePreviewLayer::draw @ 0x10046c192
// > ParticlePreviewLayer::draw @ 0x10046c24c
// > GJUINode::draw @ 0x1004c7041
// > FriendRowEdges::draw @ 0x1007380f6
// > FriendRowEdges::draw @ 0x100738130
//
// 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 12:26:31 +0000
//
__int64 __fastcall cocos2d::ccDrawLine(__int64 a1, const double *a2)
{
__int64 v2; // rax
__m128 pointer; // [rsp+0h] [rbp-30h] BYREF
if ( !byte_100BE1570 )
{
v2 = cocos2d::CCShaderCache::sharedShaderCache();
qword_100BE1568 = cocos2d::CCShaderCache::programForKey(v2, "ShaderPosition_uColor");
cocos2d::CCObject::retain(qword_100BE1568);
dword_100BDE840 = glGetUniformLocation(*(_DWORD *)(qword_100BE1568 + 56), "u_color");
dword_100BDE860 = glGetUniformLocation(*(_DWORD *)(qword_100BE1568 + 56), "u_pointSize");
byte_100BE1570 = 1;
}
pointer = _mm_loadh_ps(a2);
cocos2d::CCGLProgram::use(qword_100BE1568);
cocos2d::CCGLProgram::setUniformsForBuiltins(qword_100BE1568);
cocos2d::CCGLProgram::setUniformLocationWith4fv(qword_100BE1568, (unsigned int)dword_100BDE840, &xmmword_100BDE850, 1);
cocos2d::ccGLEnableVertexAttribs(1);
glVertexAttribPointer(0, 2, 0x1406u, 0, 0, &pointer);
glDrawArrays(1u, 0, 2);
++dword_100BE8BE8;
return __stack_chk_guard;
}