; ; cocos2d::CCGrid3D::blit from 0x180022c00 to 0x180022cc4 (196 bytes) ; ; 3 xrefs: ; > @ 0x1800ed2d8 ; > @ 0x18014cf68 ; > @ 0x1801b9058 ; ; 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:28 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x180022c00 push rdi ; +0x5, 0x180022c05 sub rsp, 30h ; +0x6, 0x180022c06 movss xmm0, dword ptr [rcx+44h] ; +0xa, 0x180022c0a mov rdi, rcx ; +0xf, 0x180022c0f mulss xmm0, dword ptr [rcx+40h] ; +0x12, 0x180022c12 mov ecx, 5; this ; +0x17, 0x180022c17 cvttss2si ebx, xmm0 ; +0x1c, 0x180022c1c call ?ccGLEnableVertexAttribs@cocos2d@@YAXI@Z; cocos2d::ccGLEnableVertexAttribs(uint) ; +0x20, 0x180022c20 mov rcx, [rdi+68h]; this ; +0x25, 0x180022c25 call ?use@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::use(void) ; +0x29, 0x180022c29 mov rcx, [rdi+68h]; this ; +0x2e, 0x180022c2e call ?setUniformsForBuiltins@CCGLProgram@cocos2d@@QEAAXXZ; cocos2d::CCGLProgram::setUniformsForBuiltins(void) ; +0x32, 0x180022c32 mov rax, cs:__glewVertexAttribPointer ; +0x37, 0x180022c37 xor r9d, r9d ; +0x3e, 0x180022c3e mov edx, 3 ; +0x41, 0x180022c41 xor ecx, ecx ; +0x46, 0x180022c46 mov r8d, 1406h ; +0x48, 0x180022c48 mov r10, [rax] ; +0x4e, 0x180022c4e mov rax, [rdi+80h] ; +0x51, 0x180022c51 mov [rsp+38h+var_10], rax ; +0x58, 0x180022c58 mov [rsp+38h+var_18], 0 ; +0x5d, 0x180022c5d call r10 ; +0x65, 0x180022c65 mov rax, cs:__glewVertexAttribPointer ; +0x68, 0x180022c68 mov edx, 2 ; +0x6f, 0x180022c6f xor r9d, r9d ; +0x74, 0x180022c74 mov ecx, edx ; +0x77, 0x180022c77 mov r8d, 1406h ; +0x79, 0x180022c79 mov r10, [rax] ; +0x7f, 0x180022c7f mov rax, [rdi+78h] ; +0x82, 0x180022c82 mov [rsp+38h+var_10], rax ; +0x86, 0x180022c86 mov [rsp+38h+var_18], 0 ; +0x8b, 0x180022c8b call r10 ; +0x93, 0x180022c93 mov r9, [rdi+90h]; indices ; +0x96, 0x180022c96 lea edx, [rbx+rbx*2] ; +0x9d, 0x180022c9d add edx, edx; count ; +0xa0, 0x180022ca0 mov ecx, 4; mode ; +0xa2, 0x180022ca2 mov r8d, 1403h; type ; +0xa7, 0x180022ca7 call cs:glDrawElements ; +0xad, 0x180022cad inc cs:?g_uNumberOfDraws@@3IA; uint g_uNumberOfDraws ; +0xb3, 0x180022cb3 mov rbx, [rsp+38h+arg_0] ; +0xb9, 0x180022cb9 add rsp, 30h ; +0xbe, 0x180022cbe pop rdi ; +0xc2, 0x180022cc2 retn ; +0xc3, 0x180022cc3