// File: /workspace/github_c_makefile_star2_O1/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
movl $0x9, %esi
callq 0x110b0
movl %eax, %ebp
testl %eax, %eax
je 0x32794
movl $0x1, %r14d
movq %rax, 0x8(%rsp)
movq %rax, 0x10(%rsp)
jmp 0x327be
movq %rbx, %rdi
movl $0x1, %esi
callq 0x11af0
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x11af0
movq %rax, 0x8(%rsp)
movl $0x3, %r14d
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
movq %rbx, %rdi
movl $0x2f, %esi
movl %r12d, %edx
callq 0x11160
movl %eax, %r12d
callq 0x11900
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
movq %rax, %rcx
callq 0x11b50
testl %ebp, %ebp
je 0x328bf
movq 0x23a17(%rip), %r10     # 0x562a8
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 0x328fa
movq 0x2446a(%rip), %r10     # 0x56d30
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 0x11880
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq