; ; cocos2d::CCGLProgram::reset from 0x18008a070 to 0x18008a20a (410 bytes) ; ; 12 xrefs: ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c28f ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c30b ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c387 ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c3ee ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c455 ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c4bc ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c538 ; > cocos2d::CCShaderCache::reloadDefaultShaders @ 0x18008c58a ; > @ 0x180145f5c ; > @ 0x180145f6c ; > @ 0x18014cf68 ; > @ 0x1801bfa0c ; ; 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 ; mov [rsp+arg_8], rbx ; +0x0, 0x18008a070 mov [rsp+arg_10], rbp ; +0x5, 0x18008a075 push rdi ; +0xa, 0x18008a07a sub rsp, 20h ; +0xb, 0x18008a07b xor ebp, ebp ; +0xf, 0x18008a07f xorps xmm0, xmm0 ; +0x11, 0x18008a081 mov [rcx+3Ch], rbp ; +0x14, 0x18008a084 mov rbx, rcx ; +0x18, 0x18008a088 movups xmmword ptr [rcx+44h], xmm0 ; +0x1b, 0x18008a08b movups xmmword ptr [rcx+54h], xmm0 ; +0x1f, 0x18008a08f mov rdi, [rcx+68h] ; +0x23, 0x18008a093 mov [rcx+38h], ebp ; +0x27, 0x18008a097 test rdi, rdi ; +0x2a, 0x18008a09a jz loc_18008A1F6 ; +0x2d, 0x18008a09d mov [rsp+28h+arg_0], rsi ; +0x33, 0x18008a0a3 mov rsi, [rdi+20h] ; +0x38, 0x18008a0a8 nop dword ptr [rax+00h] ; +0x3c, 0x18008a0ac mov rdx, [rdi+18h] ; +0x40, 0x18008a0b0 test rdx, rdx ; +0x44, 0x18008a0b4 jnz short loc_18008A0E7 ; +0x47, 0x18008a0b7 cmp [rdi+20h], rbp ; +0x49, 0x18008a0b9 jnz short loc_18008A0E7 ; +0x4d, 0x18008a0bd mov rax, [rbx+68h] ; +0x4f, 0x18008a0bf mov rcx, [rax+10h] ; +0x53, 0x18008a0c3 mov rcx, [rcx]; Block ; +0x57, 0x18008a0c7 call cs:__imp_free ; +0x5a, 0x18008a0ca mov rcx, [rbx+68h] ; +0x60, 0x18008a0d0 mov rcx, [rcx+10h]; Block ; +0x64, 0x18008a0d4 call cs:__imp_free ; +0x68, 0x18008a0d8 mov [rbx+68h], rbp ; +0x6e, 0x18008a0de jmp loc_18008A1BA ; +0x72, 0x18008a0e2 mov r10, [rbx+68h] ; +0x77, 0x18008a0e7 lea r8, [rdi+10h] ; +0x7b, 0x18008a0eb mov r9, [r10+10h] ; +0x7f, 0x18008a0ef mov r11, [r9+20h] ; +0x83, 0x18008a0f3 mov rax, [r9+18h] ; +0x87, 0x18008a0f7 sub rax, r11 ; +0x8b, 0x18008a0fb cmp rdi, rax ; +0x8e, 0x18008a0fe jnz short loc_18008A10F ; +0x91, 0x18008a101 lea rax, [rdx+r11] ; +0x93, 0x18008a103 mov [r9+18h], rax ; +0x97, 0x18008a107 mov r10, [rbx+68h] ; +0x9b, 0x18008a10b mov r9, [rdi+18h] ; +0x9f, 0x18008a10f mov rdx, [rdi+20h] ; +0xa3, 0x18008a113 test r9, r9 ; +0xa7, 0x18008a117 jz short loc_18008A12F ; +0xaa, 0x18008a11a mov rax, [r10+10h] ; +0xac, 0x18008a11c mov rcx, [rax+20h] ; +0xb0, 0x18008a120 mov [rcx+r9+10h], rdx ; +0xb4, 0x18008a124 mov rdx, [rbx+68h] ; +0xb9, 0x18008a129 jmp short loc_18008A133 ; +0xbd, 0x18008a12d mov [rbx+68h], rdx ; +0xbf, 0x18008a12f mov r9, [r8+10h] ; +0xc3, 0x18008a133 test r9, r9 ; +0xc7, 0x18008a137 jz short loc_18008A14D ; +0xca, 0x18008a13a mov rax, [rdx+10h] ; +0xcc, 0x18008a13c mov rcx, [rax+20h] ; +0xd0, 0x18008a140 mov rax, [r8+8] ; +0xd4, 0x18008a144 mov [rcx+r9+8], rax ; +0xd8, 0x18008a148 mov rax, [rbx+68h] ; +0xdd, 0x18008a14d mov rcx, [rax+10h] ; +0xe1, 0x18008a151 mov eax, [r8+34h] ; +0xe5, 0x18008a155 mov r9d, [rcx+8] ; +0xe9, 0x18008a159 dec r9d ; +0xed, 0x18008a15d and r9, rax ; +0xf0, 0x18008a160 mov rax, [rcx] ; +0xf3, 0x18008a163 mov rdx, r9 ; +0xf6, 0x18008a166 shl rdx, 4 ; +0xf9, 0x18008a169 dec dword ptr [rax+rdx+8] ; +0xfd, 0x18008a16d mov rax, [rbx+68h] ; +0x101, 0x18008a171 mov rcx, [rax+10h] ; +0x105, 0x18008a175 mov r10, [rcx] ; +0x109, 0x18008a179 cmp [rdx+r10], r8 ; +0x10c, 0x18008a17c jnz short loc_18008A18D ; +0x110, 0x18008a180 mov rax, [r8+20h] ; +0x112, 0x18008a182 add r9, r9 ; +0x116, 0x18008a186 mov [r10+r9*8], rax ; +0x119, 0x18008a189 mov rcx, [r8+18h] ; +0x11d, 0x18008a18d test rcx, rcx ; +0x121, 0x18008a191 jz short loc_18008A19E ; +0x124, 0x18008a194 mov rax, [r8+20h] ; +0x126, 0x18008a196 mov [rcx+20h], rax ; +0x12a, 0x18008a19a mov rcx, [r8+20h] ; +0x12e, 0x18008a19e test rcx, rcx ; +0x132, 0x18008a1a2 jz short loc_18008A1AF ; +0x135, 0x18008a1a5 mov rax, [r8+18h] ; +0x137, 0x18008a1a7 mov [rcx+18h], rax ; +0x13b, 0x18008a1ab mov rax, [rbx+68h] ; +0x13f, 0x18008a1af mov rdx, [rax+10h] ; +0x143, 0x18008a1b3 dec dword ptr [rdx+10h] ; +0x147, 0x18008a1b7 mov rcx, [rdi]; Block ; +0x14a, 0x18008a1ba call cs:__imp_free ; +0x14d, 0x18008a1bd mov rcx, rdi; Block ; +0x153, 0x18008a1c3 call cs:__imp_free ; +0x156, 0x18008a1c6 mov rdi, rsi ; +0x15c, 0x18008a1cc test rsi, rsi ; +0x15f, 0x18008a1cf jz short loc_18008A1DD ; +0x162, 0x18008a1d2 mov rsi, [rsi+20h] ; +0x164, 0x18008a1d4 jmp loc_18008A0B0 ; +0x168, 0x18008a1d8 mov rsi, [rsp+28h+arg_0] ; +0x16d, 0x18008a1dd mov [rbx+68h], rbp ; +0x172, 0x18008a1e2 mov rbx, [rsp+28h+arg_8] ; +0x176, 0x18008a1e6 mov rbp, [rsp+28h+arg_10] ; +0x17b, 0x18008a1eb add rsp, 20h ; +0x180, 0x18008a1f0 pop rdi ; +0x184, 0x18008a1f4 retn ; +0x185, 0x18008a1f5 mov rbx, [rsp+28h+arg_8] ; +0x186, 0x18008a1f6 mov [rcx+68h], rbp ; +0x18b, 0x18008a1fb mov rbp, [rsp+28h+arg_10] ; +0x18f, 0x18008a1ff add rsp, 20h ; +0x194, 0x18008a204 pop rdi ; +0x198, 0x18008a208 retn ; +0x199, 0x18008a209