; ; cocos2d::CCDrawNode::render from 0x180015570 to 0x18001566e (254 bytes) ; ; 3 xrefs: ; > cocos2d::CCDrawNode::draw @ 0x1800120e1 ; > @ 0x1801438a8 ; > @ 0x1801ae4b8 ; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x180015570 push rdi ; +0x5, 0x180015575 sub rsp, 30h ; +0x6, 0x180015576 cmp byte ptr [rcx+178h], 0 ; +0xa, 0x18001557a mov rbx, rcx ; +0x11, 0x180015581 jz short loc_1800155C9 ; +0x14, 0x180015584 mov edx, [rcx+15Ch] ; +0x16, 0x180015586 mov ecx, 8892h ; +0x1c, 0x18001558c mov rax, cs:__glewBindBuffer ; +0x21, 0x180015591 call qword ptr [rax] ; +0x28, 0x180015598 mov eax, [rbx+160h] ; +0x2a, 0x18001559a mov r9d, 88E0h ; +0x30, 0x1800155a0 mov r8, [rbx+168h] ; +0x36, 0x1800155a6 lea rdx, [rax+rax*4] ; +0x3d, 0x1800155ad mov rax, cs:__glewBufferData ; +0x41, 0x1800155b1 shl rdx, 2 ; +0x48, 0x1800155b8 lea ecx, [r9-4Eh] ; +0x4c, 0x1800155bc call qword ptr [rax] ; +0x50, 0x1800155c0 mov byte ptr [rbx+178h], 0 ; +0x52, 0x1800155c2 mov ecx, 3; this ; +0x59, 0x1800155c9 call ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x5e, 0x1800155ce mov rax, cs:__glewBindBuffer ; +0x63, 0x1800155d3 mov ecx, 8892h ; +0x6a, 0x1800155da mov edx, [rbx+15Ch] ; +0x6f, 0x1800155df call qword ptr [rax] ; +0x75, 0x1800155e5 mov rax, cs:__glewVertexAttribPointer ; +0x77, 0x1800155e7 xor r9d, r9d ; +0x7e, 0x1800155ee mov [rsp+38h+var_10], 0 ; +0x81, 0x1800155f1 xor ecx, ecx ; +0x8a, 0x1800155fa mov r8d, 1406h ; +0x8c, 0x1800155fc mov [rsp+38h+var_18], 14h ; +0x92, 0x180015602 lea edx, [r9+2] ; +0x9a, 0x18001560a call qword ptr [rax] ; +0x9e, 0x18001560e mov rax, cs:__glewVertexAttribPointer ; +0xa0, 0x180015610 mov edx, 4 ; +0xa7, 0x180015617 mov [rsp+38h+var_10], 8 ; +0xac, 0x18001561c mov r9b, 1 ; +0xb5, 0x180015625 mov r8d, 1401h ; +0xb8, 0x180015628 mov [rsp+38h+var_18], 14h ; +0xbe, 0x18001562e lea ecx, [rdx-3] ; +0xc6, 0x180015636 call qword ptr [rax] ; +0xc9, 0x180015639 mov r8d, [rbx+164h]; count ; +0xcb, 0x18001563b xor edx, edx; first ; +0xd2, 0x180015642 lea ecx, [rdx+4]; mode ; +0xd4, 0x180015644 call cs:glDrawArrays ; +0xd7, 0x180015647 mov rax, cs:__glewBindBuffer ; +0xdd, 0x18001564d xor edx, edx ; +0xe4, 0x180015654 mov ecx, 8892h ; +0xe6, 0x180015656 call qword ptr [rax] ; +0xeb, 0x18001565b inc cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws ; +0xed, 0x18001565d mov rbx, [rsp+38h+arg_0] ; +0xf3, 0x180015663 add rsp, 30h ; +0xf8, 0x180015668 pop rdi ; +0xfc, 0x18001566c retn ; +0xfd, 0x18001566d