; ; cocos2d::CCDrawNode::init from 0x1800151e0 to 0x180015369 (393 bytes) ; ; 3 xrefs: ; > @ 0x1800ec7a0 ; > @ 0x18014cf68 ; > @ 0x1801b8554 ; ; 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, 0x1800151e0 push rdi ; +0x5, 0x1800151e5 sub rsp, 30h ; +0x6, 0x1800151e6 mov rbx, [rcx] ; +0xa, 0x1800151ea mov rdi, rcx ; +0xd, 0x1800151ed mov dword ptr [rcx+170h], 1 ; +0x10, 0x1800151f0 mov dword ptr [rcx+174h], 303h ; +0x1a, 0x1800151fa call ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x24, 0x180015204 mov rcx, rax; this ; +0x29, 0x180015209 lea rdx, aShaderposition_1; "ShaderPositionColor" ; +0x2c, 0x18001520c call ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x33, 0x180015213 mov rdx, rax ; +0x38, 0x180015218 mov rcx, rdi ; +0x3b, 0x18001521b call qword ptr [rbx+290h] ; +0x3e, 0x18001521e mov eax, [rdi+164h] ; +0x44, 0x180015224 mov ecx, 200h ; +0x4a, 0x18001522a mov edx, [rdi+160h] ; +0x4f, 0x18001522f add eax, ecx ; +0x55, 0x180015235 cmp eax, edx ; +0x57, 0x180015237 jbe short loc_180015265 ; +0x59, 0x180015239 cmp edx, ecx ; +0x5b, 0x18001523b cmova ecx, edx ; +0x5d, 0x18001523d lea eax, [rdx+rcx] ; +0x60, 0x180015240 mov rcx, [rdi+168h]; Block ; +0x63, 0x180015243 lea rdx, [rax+rax*4] ; +0x6a, 0x18001524a mov [rdi+160h], eax ; +0x6e, 0x18001524e shl rdx, 2; Size ; +0x74, 0x180015254 call cs:realloc ; +0x78, 0x180015258 mov [rdi+168h], rax ; +0x7e, 0x18001525e mov rax, cs:__glewGenBuffers ; +0x85, 0x180015265 lea rdx, [rdi+15Ch] ; +0x8c, 0x18001526c mov ecx, 1 ; +0x93, 0x180015273 mov r8, [rax] ; +0x98, 0x180015278 call r8 ; +0x9b, 0x18001527b mov rax, cs:__glewBindBuffer ; +0x9e, 0x18001527e mov ecx, 8892h ; +0xa5, 0x180015285 mov edx, [rdi+15Ch] ; +0xaa, 0x18001528a mov r8, [rax] ; +0xb0, 0x180015290 call r8 ; +0xb3, 0x180015293 mov eax, [rdi+160h] ; +0xb6, 0x180015296 mov r9d, 88E0h ; +0xbc, 0x18001529c mov r8, [rdi+168h] ; +0xc2, 0x1800152a2 mov ecx, 8892h ; +0xc9, 0x1800152a9 lea rdx, [rax+rax*4] ; +0xce, 0x1800152ae mov rax, cs:__glewBufferData ; +0xd2, 0x1800152b2 shl rdx, 2 ; +0xd9, 0x1800152b9 mov r10, [rax] ; +0xdd, 0x1800152bd call r10 ; +0xe0, 0x1800152c0 mov rax, cs:__glewEnableVertexAttribArray ; +0xe3, 0x1800152c3 xor ecx, ecx ; +0xea, 0x1800152ca mov rdx, [rax] ; +0xec, 0x1800152cc call rdx ; +0xef, 0x1800152cf mov rax, cs:__glewVertexAttribPointer ; +0xf1, 0x1800152d1 xor r9d, r9d ; +0xf8, 0x1800152d8 mov [rsp+38h+var_10], 0 ; +0xfb, 0x1800152db mov edx, 2 ; +0x104, 0x1800152e4 xor ecx, ecx ; +0x109, 0x1800152e9 mov [rsp+38h+var_18], 14h ; +0x10b, 0x1800152eb mov r8d, 1406h ; +0x113, 0x1800152f3 mov r10, [rax] ; +0x119, 0x1800152f9 call r10 ; +0x11c, 0x1800152fc mov rax, cs:__glewEnableVertexAttribArray ; +0x11f, 0x1800152ff mov ecx, 1 ; +0x126, 0x180015306 mov rdx, [rax] ; +0x12b, 0x18001530b call rdx ; +0x12e, 0x18001530e mov rax, cs:__glewVertexAttribPointer ; +0x130, 0x180015310 mov r9b, 1 ; +0x137, 0x180015317 mov [rsp+38h+var_10], 8 ; +0x13a, 0x18001531a mov edx, 4 ; +0x143, 0x180015323 mov ecx, 1 ; +0x148, 0x180015328 mov [rsp+38h+var_18], 14h ; +0x14d, 0x18001532d mov r8d, 1401h ; +0x155, 0x180015335 mov r10, [rax] ; +0x15b, 0x18001533b call r10 ; +0x15e, 0x18001533e mov rax, cs:__glewBindBuffer ; +0x161, 0x180015341 xor edx, edx ; +0x168, 0x180015348 mov ecx, 8892h ; +0x16a, 0x18001534a mov r8, [rax] ; +0x16f, 0x18001534f call r8 ; +0x172, 0x180015352 mov rbx, [rsp+38h+arg_0] ; +0x175, 0x180015355 mov al, 1 ; +0x17a, 0x18001535a mov byte ptr [rdi+178h], 1 ; +0x17c, 0x18001535c add rsp, 30h ; +0x183, 0x180015363 pop rdi ; +0x187, 0x180015367 retn ; +0x188, 0x180015368