; ; cocos2d::CCDrawNode::init from 0x1800152c0 to 0x180015427 (359 bytes) ; ; 3 xrefs: ; > @ 0x1800e6758 ; > @ 0x1801438a8 ; > @ 0x1801ae4a0 ; ; 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, 0x1800152c0 push rdi ; +0x5, 0x1800152c5 sub rsp, 30h ; +0x6, 0x1800152c6 mov rbx, [rcx] ; +0xa, 0x1800152ca mov rdi, rcx ; +0xd, 0x1800152cd mov dword ptr [rcx+170h], 1 ; +0x10, 0x1800152d0 mov dword ptr [rcx+174h], 303h ; +0x1a, 0x1800152da call ?sharedShaderCache@CCShaderCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCShaderCache::sharedShaderCache(void) ; +0x24, 0x1800152e4 mov rcx, rax; this ; +0x29, 0x1800152e9 lea rdx, aShaderposition_1; "ShaderPositionColor" ; +0x2c, 0x1800152ec call ?programForKey@CCShaderCache@cocos2d@@QEAAPEAVCCGLProgram@2@PEBD@Z; cocos2d::CCShaderCache::programForKey(char const *) ; +0x33, 0x1800152f3 mov rdx, rax ; +0x38, 0x1800152f8 mov rcx, rdi ; +0x3b, 0x1800152fb call qword ptr [rbx+280h] ; +0x3e, 0x1800152fe mov eax, [rdi+164h] ; +0x44, 0x180015304 mov ecx, 200h ; +0x4a, 0x18001530a mov edx, [rdi+160h] ; +0x4f, 0x18001530f add eax, ecx ; +0x55, 0x180015315 cmp eax, edx ; +0x57, 0x180015317 jbe short loc_180015345 ; +0x59, 0x180015319 cmp edx, ecx ; +0x5b, 0x18001531b cmova ecx, edx ; +0x5d, 0x18001531d lea eax, [rdx+rcx] ; +0x60, 0x180015320 mov rcx, [rdi+168h]; Block ; +0x63, 0x180015323 lea rdx, [rax+rax*4] ; +0x6a, 0x18001532a mov [rdi+160h], eax ; +0x6e, 0x18001532e shl rdx, 2; Size ; +0x74, 0x180015334 call cs:realloc ; +0x78, 0x180015338 mov [rdi+168h], rax ; +0x7e, 0x18001533e mov rax, cs:__glewGenBuffers ; +0x85, 0x180015345 lea rdx, [rdi+15Ch] ; +0x8c, 0x18001534c mov ecx, 1 ; +0x93, 0x180015353 call qword ptr [rax] ; +0x98, 0x180015358 mov rax, cs:__glewBindBuffer ; +0x9a, 0x18001535a mov ecx, 8892h ; +0xa1, 0x180015361 mov edx, [rdi+15Ch] ; +0xa6, 0x180015366 call qword ptr [rax] ; +0xac, 0x18001536c mov eax, [rdi+160h] ; +0xae, 0x18001536e mov r9d, 88E0h ; +0xb4, 0x180015374 mov r8, [rdi+168h] ; +0xba, 0x18001537a lea rdx, [rax+rax*4] ; +0xc1, 0x180015381 mov rax, cs:__glewBufferData ; +0xc5, 0x180015385 shl rdx, 2 ; +0xcc, 0x18001538c lea ecx, [r9-4Eh] ; +0xd0, 0x180015390 call qword ptr [rax] ; +0xd4, 0x180015394 mov rax, cs:__glewEnableVertexAttribArray ; +0xd6, 0x180015396 xor ecx, ecx ; +0xdd, 0x18001539d call qword ptr [rax] ; +0xdf, 0x18001539f mov rax, cs:__glewVertexAttribPointer ; +0xe1, 0x1800153a1 xor r9d, r9d ; +0xe8, 0x1800153a8 mov [rsp+38h+var_10], 0 ; +0xeb, 0x1800153ab xor ecx, ecx ; +0xf4, 0x1800153b4 mov r8d, 1406h ; +0xf6, 0x1800153b6 mov [rsp+38h+var_18], 14h ; +0xfc, 0x1800153bc lea edx, [r9+2] ; +0x104, 0x1800153c4 call qword ptr [rax] ; +0x108, 0x1800153c8 mov rax, cs:__glewEnableVertexAttribArray ; +0x10a, 0x1800153ca mov ecx, 1 ; +0x111, 0x1800153d1 call qword ptr [rax] ; +0x116, 0x1800153d6 mov rax, cs:__glewVertexAttribPointer ; +0x118, 0x1800153d8 mov edx, 4 ; +0x11f, 0x1800153df mov [rsp+38h+var_10], 8 ; +0x124, 0x1800153e4 mov r9b, 1 ; +0x12d, 0x1800153ed mov r8d, 1401h ; +0x130, 0x1800153f0 mov [rsp+38h+var_18], 14h ; +0x136, 0x1800153f6 lea ecx, [rdx-3] ; +0x13e, 0x1800153fe call qword ptr [rax] ; +0x141, 0x180015401 mov rax, cs:__glewBindBuffer ; +0x143, 0x180015403 xor edx, edx ; +0x14a, 0x18001540a mov ecx, 8892h ; +0x14c, 0x18001540c call qword ptr [rax] ; +0x151, 0x180015411 mov rbx, [rsp+38h+arg_0] ; +0x153, 0x180015413 mov al, 1 ; +0x158, 0x180015418 mov byte ptr [rdi+178h], 1 ; +0x15a, 0x18001541a add rsp, 30h ; +0x161, 0x180015421 pop rdi ; +0x165, 0x180015425 retn ; +0x166, 0x180015426