; ; cocos2d::CCLayerColor::draw from 0x180051a90 to 0x180051b77 (231 bytes) ; ; 4 xrefs: ; > @ 0x1800f3d58 ; > @ 0x1800f42e0 ; > @ 0x18014cf68 ; > @ 0x1801bc130 ; ; 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:21:45 +0000 ; push rbx ; +0x0, 0x180051a90 sub rsp, 30h ; +0x2, 0x180051a92 mov rbx, rcx ; +0x6, 0x180051a96 mov ecx, [rcx+0F8h]; this ; +0x9, 0x180051a99 call ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0xf, 0x180051a9f mov rax, [rbx] ; +0x14, 0x180051aa4 mov rcx, rbx ; +0x17, 0x180051aa7 call qword ptr [rax+288h] ; +0x1a, 0x180051aaa mov rax, [rbx] ; +0x20, 0x180051ab0 mov rcx, rbx ; +0x23, 0x180051ab3 call qword ptr [rax+288h] ; +0x26, 0x180051ab6 mov rcx, rax; this ; +0x2c, 0x180051abc call ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x2f, 0x180051abf mov rax, [rbx] ; +0x34, 0x180051ac4 mov rcx, rbx ; +0x37, 0x180051ac7 call qword ptr [rax+288h] ; +0x3a, 0x180051aca mov rcx, rax; this ; +0x40, 0x180051ad0 call ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x43, 0x180051ad3 mov ecx, 3; this ; +0x48, 0x180051ad8 call ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x4d, 0x180051add mov rax, cs:__glewVertexAttribPointer ; +0x52, 0x180051ae2 lea rcx, [rbx+1B8h] ; +0x59, 0x180051ae9 mov [rsp+38h+var_10], rcx ; +0x60, 0x180051af0 xor r9d, r9d ; +0x65, 0x180051af5 mov edx, 2 ; +0x68, 0x180051af8 mov [rsp+38h+var_18], 0 ; +0x6d, 0x180051afd xor ecx, ecx ; +0x75, 0x180051b05 mov r8d, 1406h ; +0x77, 0x180051b07 mov r10, [rax] ; +0x7d, 0x180051b0d call r10 ; +0x80, 0x180051b10 mov rax, cs:__glewVertexAttribPointer ; +0x83, 0x180051b13 lea rcx, [rbx+1D8h] ; +0x8a, 0x180051b1a mov [rsp+38h+var_10], rcx ; +0x91, 0x180051b21 xor r9d, r9d ; +0x96, 0x180051b26 mov edx, 4 ; +0x99, 0x180051b29 mov [rsp+38h+var_18], 0 ; +0x9e, 0x180051b2e mov ecx, 1 ; +0xa6, 0x180051b36 mov r8d, 1406h ; +0xab, 0x180051b3b mov r10, [rax] ; +0xb1, 0x180051b41 call r10 ; +0xb4, 0x180051b44 mov edx, [rbx+21Ch]; dfactor ; +0xb7, 0x180051b47 mov ecx, [rbx+218h]; sfactor ; +0xbd, 0x180051b4d call ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0xc3, 0x180051b53 xor edx, edx; first ; +0xc8, 0x180051b58 mov ecx, 5; mode ; +0xca, 0x180051b5a mov r8d, 4; count ; +0xcf, 0x180051b5f call cs:glDrawArrays ; +0xd5, 0x180051b65 inc cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws ; +0xdb, 0x180051b6b add rsp, 30h ; +0xe1, 0x180051b71 pop rbx ; +0xe5, 0x180051b75 retn ; +0xe6, 0x180051b76