//
// cocos2d::CCSprite::draw from 0x1002d4f60 to 0x1002d506c (268 bytes)
//
// 74 xrefs:
// > cocos2d::CCTextFieldTTF::draw @ 0x100263784
// > cocos2d::CCTextFieldTTF::draw @ 0x1002637c8
// > ??> @ 0x1008aeb58
// > ??> @ 0x1008c0058
// > ??> @ 0x1008c09b0
// > ??> @ 0x1008c1bc0
// > ??> @ 0x1008c4188
// > ??> @ 0x1008c7bd8
// > ??> @ 0x1008c8188
// > ??> @ 0x1008eecc0
// > ??> @ 0x10090a9f8
// > ??> @ 0x100910828
// > ??> @ 0x10091c3b0
// > ??> @ 0x10091cbf8
// > ??> @ 0x10091fc00
// > ??> @ 0x100920700
// > ??> @ 0x100921f80
// > ??> @ 0x100922548
// > ??> @ 0x100928630
// > ??> @ 0x100928e28
// > ??> @ 0x100929648
// > ??> @ 0x10093cc28
// > ??> @ 0x100942470
// > ??> @ 0x100942a38
// > ??> @ 0x100944768
// > ??> @ 0x100944d00
// > ??> @ 0x100947c70
// > ??> @ 0x10094d608
// > ??> @ 0x10094de50
// > ??> @ 0x10094e658
// > ??> @ 0x10094ee60
// > ??> @ 0x10094f668
// > ??> @ 0x10094fe70
// > ??> @ 0x100950678
// > ??> @ 0x100950e80
// > ??> @ 0x100951678
// > ??> @ 0x100951e98
// > ??> @ 0x100952710
// > ??> @ 0x100952f30
// > ??> @ 0x100953750
// > ??> @ 0x100953f70
// > ??> @ 0x100954790
// > ??> @ 0x100954fb0
// > ??> @ 0x1009557d0
// > ??> @ 0x100955ff0
// > ??> @ 0x100956810
// > ??> @ 0x100957030
// > ??> @ 0x100957868
// > ??> @ 0x1009580d0
// > ??> @ 0x100958908
// > ??> @ 0x100959140
// > ??> @ 0x100959978
// > ??> @ 0x10095a1b0
// > ??> @ 0x10095a9d0
// > ??> @ 0x10095b1f0
// > ??> @ 0x10095ba10
// > ??> @ 0x10095c230
// > ??> @ 0x10095ca50
// > ??> @ 0x10095d270
// > ??> @ 0x10095da90
// > ??> @ 0x10095e2b0
// > ??> @ 0x10095ead0
// > ??> @ 0x10095f2f0
// > ??> @ 0x10095fb10
// > ??> @ 0x100960330
// > ??> @ 0x100960b50
// > ??> @ 0x100961370
// > ??> @ 0x100961b90
// > ??> @ 0x1009623b0
// > ??> @ 0x100962bd0
// > ??> @ 0x100963b88
// > ??> @ 0x100969fa0
// > ??> @ 0x10096dfd0
// > ??> @ 0x10098c988
//
// 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 11:02:40 +0000
//
void __fastcall cocos2d::CCSprite::draw(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
if ( (*(_BYTE *)(a1 + 559) & 1) == 0 )
{
if ( *(_BYTE *)(a1 + 329) )
{
cocos2d::ccGLEnable();
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1);
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1);
cocos2d::CCGLProgram::use(v2);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 656LL))(a1);
cocos2d::CCGLProgram::setUniformsForBuiltins(v3);
cocos2d::ccGLBlendFunc(*(unsigned int *)(a1 + 404), *(_DWORD *)(a1 + 408));
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 416) + 104LL))(*(_QWORD *)(a1 + 416));
cocos2d::ccGLBindTexture2D(v4);
cocos2d::ccGLEnableVertexAttribs(7);
glVertexAttribPointer(0, 3, 0x1406u, 0, 24, (const GLvoid *)(a1 + 460));
glVertexAttribPointer(2u, 2, 0x1406u, 0, 24, (const GLvoid *)(a1 + 476));
glVertexAttribPointer(1u, 4, 0x1401u, 1u, 24, (const GLvoid *)(a1 + 472));
glDrawArrays(5u, 0, 4);
++dword_100A0F904;
}
}
}