; ; cocos2d::CCGLProgram::reset from 0x180086e90 to 0x180087029 (409 bytes) ; ; 12 xrefs: ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008926f ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x1800892eb ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x180089367 ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x1800893ce ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x180089435 ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008949c ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x180089518 ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008956a ; > @ 0x18013ccd4 ; > @ 0x18013cce4 ; > @ 0x1801438a8 ; > @ 0x1801b573c ; ; 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_8], rbx ; +0x0, 0x180086e90 mov [rsp+arg_10], rbp ; +0x5, 0x180086e95 push rdi ; +0xa, 0x180086e9a sub rsp, 20h ; +0xb, 0x180086e9b xor ebp, ebp ; +0xf, 0x180086e9f xorps xmm0, xmm0 ; +0x11, 0x180086ea1 mov [rcx+3Ch], rbp ; +0x14, 0x180086ea4 mov rbx, rcx ; +0x18, 0x180086ea8 movups xmmword ptr [rcx+44h], xmm0 ; +0x1b, 0x180086eab movups xmmword ptr [rcx+54h], xmm0 ; +0x1f, 0x180086eaf mov rdi, [rcx+68h] ; +0x23, 0x180086eb3 mov [rcx+38h], ebp ; +0x27, 0x180086eb7 test rdi, rdi ; +0x2a, 0x180086eba jz loc_180087015 ; +0x2d, 0x180086ebd mov [rsp+28h+arg_0], rsi ; +0x33, 0x180086ec3 mov rsi, [rdi+20h] ; +0x38, 0x180086ec8 nop dword ptr [rax+00h] ; +0x3c, 0x180086ecc mov rdx, [rdi+18h] ; +0x40, 0x180086ed0 test rdx, rdx ; +0x44, 0x180086ed4 jnz short loc_180086F07 ; +0x47, 0x180086ed7 cmp [rdi+20h], rbp ; +0x49, 0x180086ed9 jnz short loc_180086F07 ; +0x4d, 0x180086edd mov rax, [rbx+68h] ; +0x4f, 0x180086edf mov rcx, [rax+10h] ; +0x53, 0x180086ee3 mov rcx, [rcx]; Block ; +0x57, 0x180086ee7 call cs:__imp_free ; +0x5a, 0x180086eea mov rcx, [rbx+68h] ; +0x60, 0x180086ef0 mov rcx, [rcx+10h]; Block ; +0x64, 0x180086ef4 call cs:__imp_free ; +0x68, 0x180086ef8 mov [rbx+68h], rbp ; +0x6e, 0x180086efe jmp loc_180086FD9 ; +0x72, 0x180086f02 mov r10, [rbx+68h] ; +0x77, 0x180086f07 lea r8, [rdi+10h] ; +0x7b, 0x180086f0b mov r9, [r10+10h] ; +0x7f, 0x180086f0f mov r11, [r9+20h] ; +0x83, 0x180086f13 mov rax, [r9+18h] ; +0x87, 0x180086f17 sub rax, r11 ; +0x8b, 0x180086f1b cmp rdi, rax ; +0x8e, 0x180086f1e jnz short loc_180086F2F ; +0x91, 0x180086f21 lea rax, [r11+rdx] ; +0x93, 0x180086f23 mov [r9+18h], rax ; +0x97, 0x180086f27 mov r10, [rbx+68h] ; +0x9b, 0x180086f2b mov r9, [rdi+18h] ; +0x9f, 0x180086f2f mov rdx, [rdi+20h] ; +0xa3, 0x180086f33 test r9, r9 ; +0xa7, 0x180086f37 jz short loc_180086F4F ; +0xaa, 0x180086f3a mov rax, [r10+10h] ; +0xac, 0x180086f3c mov rcx, [rax+20h] ; +0xb0, 0x180086f40 mov [rcx+r9+10h], rdx ; +0xb4, 0x180086f44 mov rdx, [rbx+68h] ; +0xb9, 0x180086f49 jmp short loc_180086F53 ; +0xbd, 0x180086f4d mov [rbx+68h], rdx ; +0xbf, 0x180086f4f mov r9, [r8+10h] ; +0xc3, 0x180086f53 test r9, r9 ; +0xc7, 0x180086f57 jz short loc_180086F6D ; +0xca, 0x180086f5a mov rax, [rdx+10h] ; +0xcc, 0x180086f5c mov rcx, [rax+20h] ; +0xd0, 0x180086f60 mov rax, [r8+8] ; +0xd4, 0x180086f64 mov [rcx+r9+8], rax ; +0xd8, 0x180086f68 mov rax, [rbx+68h] ; +0xdd, 0x180086f6d mov rcx, [rax+10h] ; +0xe1, 0x180086f71 mov eax, [r8+34h] ; +0xe5, 0x180086f75 mov r9d, [rcx+8] ; +0xe9, 0x180086f79 dec r9d ; +0xed, 0x180086f7d and r9, rax ; +0xf0, 0x180086f80 mov rax, [rcx] ; +0xf3, 0x180086f83 mov rdx, r9 ; +0xf6, 0x180086f86 add rdx, rdx ; +0xf9, 0x180086f89 dec dword ptr [rax+rdx*8+8] ; +0xfc, 0x180086f8c mov rax, [rbx+68h] ; +0x100, 0x180086f90 mov rcx, [rax+10h] ; +0x104, 0x180086f94 mov r10, [rcx] ; +0x108, 0x180086f98 cmp [r10+rdx*8], r8 ; +0x10b, 0x180086f9b jnz short loc_180086FAC ; +0x10f, 0x180086f9f mov rax, [r8+20h] ; +0x111, 0x180086fa1 add r9, r9 ; +0x115, 0x180086fa5 mov [r10+r9*8], rax ; +0x118, 0x180086fa8 mov rcx, [r8+18h] ; +0x11c, 0x180086fac test rcx, rcx ; +0x120, 0x180086fb0 jz short loc_180086FBD ; +0x123, 0x180086fb3 mov rax, [r8+20h] ; +0x125, 0x180086fb5 mov [rcx+20h], rax ; +0x129, 0x180086fb9 mov rcx, [r8+20h] ; +0x12d, 0x180086fbd test rcx, rcx ; +0x131, 0x180086fc1 jz short loc_180086FCE ; +0x134, 0x180086fc4 mov rax, [r8+18h] ; +0x136, 0x180086fc6 mov [rcx+18h], rax ; +0x13a, 0x180086fca mov rax, [rbx+68h] ; +0x13e, 0x180086fce mov rdx, [rax+10h] ; +0x142, 0x180086fd2 dec dword ptr [rdx+10h] ; +0x146, 0x180086fd6 mov rcx, [rdi]; Block ; +0x149, 0x180086fd9 call cs:__imp_free ; +0x14c, 0x180086fdc mov rcx, rdi; Block ; +0x152, 0x180086fe2 call cs:__imp_free ; +0x155, 0x180086fe5 mov rdi, rsi ; +0x15b, 0x180086feb test rsi, rsi ; +0x15e, 0x180086fee jz short loc_180086FFC ; +0x161, 0x180086ff1 mov rsi, [rsi+20h] ; +0x163, 0x180086ff3 jmp loc_180086ED0 ; +0x167, 0x180086ff7 mov rsi, [rsp+28h+arg_0] ; +0x16c, 0x180086ffc mov [rbx+68h], rbp ; +0x171, 0x180087001 mov rbx, [rsp+28h+arg_8] ; +0x175, 0x180087005 mov rbp, [rsp+28h+arg_10] ; +0x17a, 0x18008700a add rsp, 20h ; +0x17f, 0x18008700f pop rdi ; +0x183, 0x180087013 retn ; +0x184, 0x180087014 mov rbx, [rsp+28h+arg_8] ; +0x185, 0x180087015 mov [rcx+68h], rbp ; +0x18a, 0x18008701a mov rbp, [rsp+28h+arg_10] ; +0x18e, 0x18008701e add rsp, 20h ; +0x193, 0x180087023 pop rdi ; +0x197, 0x180087027 retn ; +0x198, 0x180087028