; ; cocos2d::CCDrawNode::render from 0x1800154b0 to 0x1800155cc (284 bytes) ; ; 3 xrefs: ; > cocos2d::CCDrawNode::draw @ 0x1800122c1 ; > @ 0x18014cf68 ; > @ 0x1801b856c ; ; 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:23 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x1800154b0 push rdi ; +0x5, 0x1800154b5 sub rsp, 30h ; +0x6, 0x1800154b6 cmp byte ptr [rcx+178h], 0 ; +0xa, 0x1800154ba mov rbx, rcx ; +0x11, 0x1800154c1 jz short loc_180015512 ; +0x14, 0x1800154c4 mov rax, cs:__glewBindBuffer ; +0x16, 0x1800154c6 mov edx, [rcx+15Ch] ; +0x1d, 0x1800154cd mov ecx, 8892h ; +0x23, 0x1800154d3 mov r8, [rax] ; +0x28, 0x1800154d8 call r8 ; +0x2b, 0x1800154db mov eax, [rbx+160h] ; +0x2e, 0x1800154de mov r9d, 88E0h ; +0x34, 0x1800154e4 mov r8, [rbx+168h] ; +0x3a, 0x1800154ea mov ecx, 8892h ; +0x41, 0x1800154f1 lea rdx, [rax+rax*4] ; +0x46, 0x1800154f6 mov rax, cs:__glewBufferData ; +0x4a, 0x1800154fa shl rdx, 2 ; +0x51, 0x180015501 mov r10, [rax] ; +0x55, 0x180015505 call r10 ; +0x58, 0x180015508 mov byte ptr [rbx+178h], 0 ; +0x5b, 0x18001550b mov ecx, 3; this ; +0x62, 0x180015512 call ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x67, 0x180015517 mov rax, cs:__glewBindBuffer ; +0x6c, 0x18001551c mov ecx, 8892h ; +0x73, 0x180015523 mov edx, [rbx+15Ch] ; +0x78, 0x180015528 mov r8, [rax] ; +0x7e, 0x18001552e call r8 ; +0x81, 0x180015531 mov rax, cs:__glewVertexAttribPointer ; +0x84, 0x180015534 xor r9d, r9d ; +0x8b, 0x18001553b mov [rsp+38h+var_10], 0 ; +0x8e, 0x18001553e mov edx, 2 ; +0x97, 0x180015547 xor ecx, ecx ; +0x9c, 0x18001554c mov [rsp+38h+var_18], 14h ; +0x9e, 0x18001554e mov r8d, 1406h ; +0xa6, 0x180015556 mov r10, [rax] ; +0xac, 0x18001555c call r10 ; +0xaf, 0x18001555f mov rax, cs:__glewVertexAttribPointer ; +0xb2, 0x180015562 mov r9b, 1 ; +0xb9, 0x180015569 mov [rsp+38h+var_10], 8 ; +0xbc, 0x18001556c mov edx, 4 ; +0xc5, 0x180015575 mov ecx, 1 ; +0xca, 0x18001557a mov [rsp+38h+var_18], 14h ; +0xcf, 0x18001557f mov r8d, 1401h ; +0xd7, 0x180015587 mov r10, [rax] ; +0xdd, 0x18001558d call r10 ; +0xe0, 0x180015590 mov r8d, [rbx+164h]; count ; +0xe3, 0x180015593 xor edx, edx; first ; +0xea, 0x18001559a mov ecx, 4; mode ; +0xec, 0x18001559c call cs:glDrawArrays ; +0xf1, 0x1800155a1 mov rax, cs:__glewBindBuffer ; +0xf7, 0x1800155a7 xor edx, edx ; +0xfe, 0x1800155ae mov ecx, 8892h ; +0x100, 0x1800155b0 mov r8, [rax] ; +0x105, 0x1800155b5 call r8 ; +0x108, 0x1800155b8 inc cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws ; +0x10b, 0x1800155bb mov rbx, [rsp+38h+arg_0] ; +0x111, 0x1800155c1 add rsp, 30h ; +0x116, 0x1800155c6 pop rdi ; +0x11a, 0x1800155ca retn ; +0x11b, 0x1800155cb