// File: /workspace/github_c_makefile_star2_O0/stetre[P]moongl/src/pixel.c
// Function: BlitFramebuffer
static int BlitFramebuffer(lua_State *L)
/* blit_framebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, filter [,bit1, ..])
 * blit_framebuffer(readfb, drawfb, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, filter [,bit1, ..])
 */

    {
    GLuint rfb, dfb;
    GLint srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1;
    GLbitfield mask;
    GLenum filter;
    int named, arg = 1;
    if(lua_isstring(L, 9)) /* 'filter' */
        named = 0;
    else
        {
        named = 1;
        rfb = luaL_checkinteger(L, arg++);
        dfb = luaL_checkinteger(L, arg++);
        }
    srcX0 = luaL_checkinteger(L, arg++);
    srcY0 = luaL_checkinteger(L, arg++);
    srcX1 = luaL_checkinteger(L, arg++);
    srcY1 = luaL_checkinteger(L, arg++);
    dstX0 = luaL_checkinteger(L, arg++);
    dstY0 = luaL_checkinteger(L, arg++);
    dstX1 = luaL_checkinteger(L, arg++);
    dstY1 = luaL_checkinteger(L, arg++);
    filter = checkfilter(L, arg++); 
    mask = CheckMask(L, arg, 0);
    if(named==0)
        glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
    else
        glBlitNamedFramebuffer
            (rfb, dfb, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
    CheckError(L);
    return 0;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdi, 0x80(%rsp)
movl $0x1, 0x48(%rsp)
movq 0x80(%rsp), %rdi
movl $0x9, %esi
callq 0x110b0
cmpl $0x0, %eax
je 0x3e2ce
movl $0x0, 0x4c(%rsp)
jmp 0x3e312
movl $0x1, 0x4c(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
callq 0x11af0
movl %eax, 0x7c(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
callq 0x11af0
movl %eax, 0x78(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
callq 0x11af0
movl %eax, 0x74(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
callq 0x11af0
movl %eax, 0x70(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
callq 0x11af0
movl %eax, 0x6c(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
callq 0x11af0
movl %eax, 0x68(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
callq 0x11af0
movl %eax, 0x64(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
callq 0x11af0
movl %eax, 0x60(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
callq 0x11af0
movl %eax, 0x5c(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
callq 0x11af0
movl %eax, 0x58(%rsp)
movq 0x80(%rsp), %rdi
movl 0x48(%rsp), %edx
movl %edx, %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
movl $0x2f, %esi
callq 0x11160
movl %eax, 0x50(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x38(%rsp)
movl 0x48(%rsp), %eax
movl %eax, 0x44(%rsp)
callq 0x11900
movq 0x38(%rsp), %rdi
movl 0x44(%rsp), %esi
movq %rax, %rcx
xorl %edx, %edx
callq 0x11b50
movl %eax, 0x54(%rsp)
cmpl $0x0, 0x4c(%rsp)
jne 0x3e4a8
movq 0x28c84(%rip), %rax     # 0x670e8
movq (%rax), %rax
movl 0x74(%rsp), %edi
movl 0x70(%rsp), %esi
movl 0x6c(%rsp), %edx
movl 0x68(%rsp), %ecx
movl 0x64(%rsp), %r8d
movl 0x60(%rsp), %r9d
movl 0x5c(%rsp), %ebp
movl 0x58(%rsp), %ebx
movl 0x54(%rsp), %r11d
movl 0x50(%rsp), %r10d
movl %ebp, (%rsp)
movl %ebx, 0x8(%rsp)
movl %r11d, 0x10(%rsp)
movl %r10d, 0x18(%rsp)
callq *%rax
jmp 0x3e505
movq 0x29801(%rip), %rax     # 0x67cb0
movq (%rax), %rax
movl 0x7c(%rsp), %edi
movl 0x78(%rsp), %esi
movl 0x74(%rsp), %edx
movl 0x70(%rsp), %ecx
movl 0x6c(%rsp), %r8d
movl 0x68(%rsp), %r9d
movl 0x64(%rsp), %r15d
movl 0x60(%rsp), %r14d
movl 0x5c(%rsp), %ebp
movl 0x58(%rsp), %ebx
movl 0x54(%rsp), %r11d
movl 0x50(%rsp), %r10d
movl %r15d, (%rsp)
movl %r14d, 0x8(%rsp)
movl %ebp, 0x10(%rsp)
movl %ebx, 0x18(%rsp)
movl %r11d, 0x20(%rsp)
movl %r10d, 0x28(%rsp)
callq *%rax
movq 0x80(%rsp), %rdi
callq 0x11880
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)