; ; cocos2d::CCLayerColor::draw from 0x18004fc70 to 0x18004fd47 (215 bytes) ; ; 4 xrefs: ; > @ 0x1800edbb8 ; > @ 0x1800ee120 ; > @ 0x1801438a8 ; > @ 0x1801b1e9c ; ; 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 ; push rbx ; +0x0, 0x18004fc70 sub rsp, 30h ; +0x2, 0x18004fc72 mov rbx, rcx ; +0x6, 0x18004fc76 mov ecx, [rcx+0F8h]; this ; +0x9, 0x18004fc79 call ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0xf, 0x18004fc7f mov rax, [rbx] ; +0x14, 0x18004fc84 mov rcx, rbx ; +0x17, 0x18004fc87 call qword ptr [rax+278h] ; +0x1a, 0x18004fc8a mov rax, [rbx] ; +0x20, 0x18004fc90 mov rcx, rbx ; +0x23, 0x18004fc93 call qword ptr [rax+278h] ; +0x26, 0x18004fc96 mov rcx, rax; this ; +0x2c, 0x18004fc9c call ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x2f, 0x18004fc9f mov rax, [rbx] ; +0x34, 0x18004fca4 mov rcx, rbx ; +0x37, 0x18004fca7 call qword ptr [rax+278h] ; +0x3a, 0x18004fcaa mov rcx, rax; this ; +0x40, 0x18004fcb0 call ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x43, 0x18004fcb3 mov ecx, 3; this ; +0x48, 0x18004fcb8 call ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x4d, 0x18004fcbd lea rax, [rbx+1B8h] ; +0x52, 0x18004fcc2 xor r9d, r9d ; +0x59, 0x18004fcc9 mov [rsp+38h+var_10], rax ; +0x5c, 0x18004fccc xor ecx, ecx ; +0x61, 0x18004fcd1 mov rax, cs:__glewVertexAttribPointer ; +0x63, 0x18004fcd3 mov r8d, 1406h ; +0x6a, 0x18004fcda mov [rsp+38h+var_18], 0 ; +0x70, 0x18004fce0 lea edx, [r9+2] ; +0x78, 0x18004fce8 call qword ptr [rax] ; +0x7c, 0x18004fcec xor r9d, r9d ; +0x7e, 0x18004fcee lea rax, [rbx+1D8h] ; +0x81, 0x18004fcf1 mov [rsp+38h+var_10], rax ; +0x88, 0x18004fcf8 mov r8d, 1406h ; +0x8d, 0x18004fcfd mov rax, cs:__glewVertexAttribPointer ; +0x93, 0x18004fd03 mov [rsp+38h+var_18], 0 ; +0x9a, 0x18004fd0a lea edx, [r9+4] ; +0xa2, 0x18004fd12 lea ecx, [rdx-3] ; +0xa6, 0x18004fd16 call qword ptr [rax] ; +0xa9, 0x18004fd19 mov edx, [rbx+21Ch]; dfactor ; +0xab, 0x18004fd1b mov ecx, [rbx+218h]; sfactor ; +0xb1, 0x18004fd21 call ?ccGLBlendFunc@cocos2d@@YAXII@Z; cocos2d::ccGLBlendFunc(uint,uint) ; +0xb7, 0x18004fd27 xor edx, edx; first ; +0xbc, 0x18004fd2c lea ecx, [rdx+5]; mode ; +0xbe, 0x18004fd2e lea r8d, [rdx+4]; count ; +0xc1, 0x18004fd31 call cs:glDrawArrays ; +0xc5, 0x18004fd35 inc cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws ; +0xcb, 0x18004fd3b add rsp, 30h ; +0xd1, 0x18004fd41 pop rbx ; +0xd5, 0x18004fd45 retn ; +0xd6, 0x18004fd46