; ; cocos2d::CCGLProgram::compileShader from 0x180089a00 to 0x180089ae8 (232 bytes) ; ; 6 xrefs: ; > cocos2d::CCGLProgram::initWithVertexShaderByteArray @ 0x180089bc8 ; > cocos2d::CCGLProgram::initWithVertexShaderByteArray @ 0x180089bed ; > @ 0x180145fb8 ; > @ 0x180145fc8 ; > @ 0x18014cf68 ; > @ 0x1801bf9ac ; ; 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:22:05 +0000 ; push rdi ; +0x0, 0x180089a00 sub rsp, 40h ; +0x2, 0x180089a02 mov rdi, rdx ; +0x6, 0x180089a06 test r9, r9 ; +0x9, 0x180089a09 jnz short loc_180089A16 ; +0xc, 0x180089a0c xor al, al ; +0xe, 0x180089a0e add rsp, 40h ; +0x10, 0x180089a10 pop rdi ; +0x14, 0x180089a14 retn ; +0x15, 0x180089a15 lea rax, aUniformMat4CcP; "uniform mat4 CC_PMatrix;\nuniform mat4 "... ; +0x16, 0x180089a16 mov [rsp+48h+var_18], r9 ; +0x1d, 0x180089a1d mov [rsp+48h+var_20], rax ; +0x22, 0x180089a22 mov ecx, r8d ; +0x27, 0x180089a27 mov rax, cs:__glewCreateShader ; +0x2a, 0x180089a2a mov rdx, [rax] ; +0x31, 0x180089a31 call rdx ; +0x34, 0x180089a34 mov [rdi], eax ; +0x36, 0x180089a36 lea r8, [rsp+48h+var_20] ; +0x38, 0x180089a38 mov rcx, cs:__glewShaderSource ; +0x3d, 0x180089a3d xor r9d, r9d ; +0x44, 0x180089a44 mov edx, 2 ; +0x47, 0x180089a47 mov r10, [rcx] ; +0x4c, 0x180089a4c mov ecx, eax ; +0x4f, 0x180089a4f call r10 ; +0x51, 0x180089a51 mov rax, cs:__glewCompileShader ; +0x54, 0x180089a54 mov ecx, [rdi] ; +0x5b, 0x180089a5b mov rdx, [rax] ; +0x5d, 0x180089a5d call rdx ; +0x60, 0x180089a60 mov rax, cs:__glewGetShaderiv ; +0x62, 0x180089a62 lea r8, [rsp+48h+var_28] ; +0x69, 0x180089a69 mov ecx, [rdi] ; +0x6e, 0x180089a6e mov edx, 8B81h ; +0x70, 0x180089a70 mov r9, [rax] ; +0x75, 0x180089a75 call r9 ; +0x78, 0x180089a78 mov eax, [rsp+48h+var_28] ; +0x7b, 0x180089a7b test eax, eax ; +0x7f, 0x180089a7f jnz short loc_180089ADC ; +0x81, 0x180089a81 mov rax, cs:__glewGetShaderiv ; +0x83, 0x180089a83 lea r8, [rsp+48h+arg_18] ; +0x8a, 0x180089a8a mov ecx, [rdi] ; +0x8f, 0x180089a8f mov edx, 8B88h ; +0x91, 0x180089a91 mov [rsp+48h+arg_0], rbx ; +0x96, 0x180089a96 mov r9, [rax] ; +0x9b, 0x180089a9b call r9 ; +0x9e, 0x180089a9e movsxd rcx, [rsp+48h+arg_18]; Size ; +0xa1, 0x180089aa1 call cs:__imp_malloc ; +0xa6, 0x180089aa6 mov rcx, cs:__glewGetShaderSource ; +0xac, 0x180089aac xor r8d, r8d ; +0xb3, 0x180089ab3 mov edx, [rsp+48h+arg_18] ; +0xb6, 0x180089ab6 mov r9, rax ; +0xba, 0x180089aba mov rbx, rax ; +0xbd, 0x180089abd mov r10, [rcx] ; +0xc0, 0x180089ac0 mov ecx, [rdi] ; +0xc3, 0x180089ac3 call r10 ; +0xc5, 0x180089ac5 mov rcx, rbx; Block ; +0xc8, 0x180089ac8 call cs:__imp_free ; +0xcb, 0x180089acb call cs:abort ; +0xd1, 0x180089ad1 mov rbx, [rsp+48h+arg_0] ; +0xd7, 0x180089ad7 cmp eax, 1 ; +0xdc, 0x180089adc setz al ; +0xdf, 0x180089adf add rsp, 40h ; +0xe2, 0x180089ae2 pop rdi ; +0xe6, 0x180089ae6 retn ; +0xe7, 0x180089ae7