// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
pushq $0x9
popq %rsi
callq 0x110b0
movl %eax, %ebp
testl %eax, %eax
je 0x2ff52
pushq $0x1
popq %r14
movq %rax, 0x8(%rsp)
movq %rax, 0x10(%rsp)
jmp 0x2ff76
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, 0x10(%rsp)
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x11af0
movq %rax, 0x8(%rsp)
pushq $0x3
popq %r14
leal 0x1(%r14), %r15d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x11af0
movq %rax, 0x40(%rsp)
leal 0x2(%r14), %r12d
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11af0
movq %rax, 0x38(%rsp)
leal 0x3(%r14), %r15d
movq %rbx, %rdi
movl %r12d, %esi
callq 0x11af0
movq %rax, 0x28(%rsp)
leal 0x4(%r14), %r12d
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11af0
movq %rax, %r13
leal 0x5(%r14), %r15d
movq %rbx, %rdi
movl %r12d, %esi
callq 0x11af0
movq %rax, 0x30(%rsp)
leal 0x6(%r14), %r12d
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11af0
movq %rax, 0x18(%rsp)
leal 0x7(%r14), %r15d
movq %rbx, %rdi
movl %r12d, %esi
callq 0x11af0
movq %rax, 0x20(%rsp)
leal 0x8(%r14), %r12d
movq %rbx, %rdi
movl %r15d, %esi
callq 0x11af0
movq %rax, %r15
addl $0x9, %r14d
pushq $0x2f
popq %rsi
movq %rbx, %rdi
movl %r12d, %edx
callq 0x11150
movl %eax, %r12d
callq 0x118f0
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
movq %rax, %rcx
callq 0x11b50
testl %ebp, %ebp
je 0x30075
movq 0x25261(%rip), %r10     # 0x552a8
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x28(%rsp), %rdx
movl %r13d, %ecx
movq 0x30(%rsp), %r8
movq 0x18(%rsp), %r9
pushq %r12
pushq %rax
pushq %r15
pushq 0x38(%rsp)
callq *(%r10)
addq $0x20, %rsp
jmp 0x300b0
movq 0x25cb4(%rip), %r10     # 0x55d30
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x38(%rsp), %rcx
movq 0x28(%rsp), %r8
movl %r13d, %r9d
pushq %r12
pushq %rax
pushq %r15
pushq 0x38(%rsp)
pushq 0x38(%rsp)
pushq 0x58(%rsp)
callq *(%r10)
addq $0x30, %rsp
movq %rbx, %rdi
callq 0x11870
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq