// File: /workspace/github_c_makefile_star2_O3/stetre[P]moonfreetype/src/outline.c
// Function: moonfreetype_pushoutlinedata
int pushoutlinedata(lua_State *L, FT_Outline outline)
    {
    short i;
    lua_newtable(L);
#if 0
    lua_pushinteger(L, outline.n_contours); // #contours
    lua_setfield(L, -2, "n_contours");
    lua_pushinteger(L, outline.n_points); // #points
    lua_setfield(L, -2, "n_points");
#endif
    /* points */
    lua_newtable(L);
    for(i = 0; i < outline.n_points; i++)
        {
        pushvector(L, outline.points[i]);
        lua_seti(L, -2, i+1);
        }
    lua_setfield(L, -2, "points");
    /* tags */
    lua_newtable(L);
    for(i = 0; i < outline.n_points; i++)
        {
        lua_pushinteger(L, outline.tags[i]);
        lua_seti(L, -2, i+1);
        }
    lua_setfield(L, -2, "tags");
    lua_newtable(L);
    for(i = 0; i < outline.n_points; i++)
        {
        pushpointtype(L,  outline.tags[i]);
        lua_seti(L, -2, i+1);
        }
    lua_setfield(L, -2, "type");
    lua_newtable(L);
    for(i = 0; i < outline.n_points; i++)
        {
        pushscanmode(L,  outline.tags[i]);
        lua_seti(L, -2, i+1);
        }
    lua_setfield(L, -2, "scanmode");
    /* contours */
    lua_newtable(L);
    for(i = 0; i < outline.n_contours; i++)
        {
        pushindex(L, outline.contours[i]);
        lua_seti(L, -2, i+1);
        }
    lua_setfield(L, -2, "contours");
    pushflags(L, outline.flags); // outlineflags
    lua_setfield(L, -2, "flags");
    return 1;   
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x40(%rsp), %r12
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
movswq 0x2(%r12), %r13
testq %r13, %r13
movq %r13, (%rsp)
jle 0xe74b
movq 0x8(%r12), %r15
addq $0x8, %r15
negq %r13
movl $0x1, %r14d
movq -0x8(%r15), %rsi
movq (%r15), %rdx
movq %rbx, %rdi
callq 0x7b90
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
callq 0x76a0
addq $0x10, %r15
leaq (%r14,%r13), %rax
incq %rax
incq %r14
cmpq $0x1, %rax
jne 0xe6b2
leaq 0x5c45(%rip), %rdx      # 0x14331
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x74e0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
cmpw $0x0, (%rsp)
jle 0xe81a
movq 0x10(%r12), %r15
movl $0x1, %r14d
movsbq -0x1(%r15,%r14), %rsi
movq %rbx, %rdi
callq 0x7530
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
callq 0x76a0
leaq (%r14,%r13), %rax
incq %rax
incq %r14
cmpq $0x1, %rax
jne 0xe71b
jmp 0xe76b
leaq 0x5bdf(%rip), %rdx      # 0x14331
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x74e0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
leaq 0x5bc6(%rip), %rdx      # 0x14338
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x74e0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
movq (%rsp), %r13
testw %r13w, %r13w
jle 0xe7f5
movq 0x10(%r12), %r15
negq %r13
movl $0x1, %r14d
leaq 0x5bc0(%rip), %rbp      # 0x1436a
leaq 0x57ce(%rip), %r12      # 0x13f7f
movzbl -0x1(%r15,%r14), %eax
movq %rbp, %rsi
testb $0x2, %al
je 0xe7c5
leaq 0x5b9f(%rip), %rsi      # 0x14364
testb $0x1, %al
cmovneq %r12, %rsi
movq %rbx, %rdi
callq 0x7c90
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
callq 0x76a0
leaq (%r14,%r13), %rax
incq %rax
incq %r14
cmpq $0x1, %rax
jne 0xe7b1
jmp 0xe83a
leaq 0x6127(%rip), %rdx      # 0x14923
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x74e0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
jmp 0xe8d6
leaq 0x5b17(%rip), %rdx      # 0x14338
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x74e0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
leaq 0x60e2(%rip), %rdx      # 0x14923
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x74e0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
movq (%rsp), %r12
testw %r12w, %r12w
jle 0xe8d6
leaq 0x40(%rsp), %rax
movq 0x10(%rax), %r13
negq %r12
movl $0x1, %r14d
leaq 0x3da9(%rip), %rbp      # 0x12626
leaq 0x5aec(%rip), %r15      # 0x14370
movzbl -0x1(%r13,%r14), %eax
movq %rbp, %rsi
testb $0x4, %al
je 0xe8ae
andl $0x18, %eax
leaq 0x5add(%rip), %rsi      # 0x14378
cmpl $0x10, %eax
je 0xe8a7
leaq 0x5ad9(%rip), %rsi      # 0x14380
cmpl $0x8, %eax
cmoveq %r15, %rsi
movq %rbx, %rdi
callq 0x7c90
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
callq 0x76a0
leaq (%r12,%r14), %rax
incq %rax
incq %r14
cmpq $0x1, %rax
jne 0xe884
leaq 0x5a60(%rip), %rdx      # 0x1433d
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x74e0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
leaq 0x40(%rsp), %r13
movswq (%r13), %r15
testq %r15, %r15
jle 0xe940
movq 0x18(%r13), %r12
negq %r15
movl $0x1, %r14d
movswl -0x2(%r12,%r14,2), %esi
movq %rbx, %rdi
callq 0x7cc0
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movq %r14, %rdx
callq 0x76a0
leaq (%r15,%r14), %rax
incq %rax
incq %r14
cmpq $0x1, %rax
jne 0xe912
leaq 0x59ff(%rip), %rdx      # 0x14346
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x74e0
movslq 0x20(%r13), %rsi
movq %rbx, %rdi
callq 0x7530
leaq 0x4eda(%rip), %rdx      # 0x13841
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x74e0
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq