// File: /workspace/github_c_makefile_star2_O1/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), %r13
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x73c0
movswq 0x2(%r13), %rcx
movq %rcx, (%rsp)
testq %rcx, %rcx
jle 0xe68b
movq 0x8(%r13), %r15
addq $0x8, %r15
movq (%rsp), %r12
negq %r12
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 (%r12,%r14), %rax
incq %rax
incq %r14
cmpq $0x1, %rax
jne 0xe658
leaq 0x5c9f(%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 0xe6f1
movq 0x10(%r13), %r15
movq (%rsp), %r12
negq %r12
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 (%r12,%r14), %rax
incq %rax
incq %r14
cmpq $0x1, %rax
jne 0xe6c3
leaq 0x5c40(%rip), %rdx      # 0x14338
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 0xe77e
leaq 0x40(%rsp), %rax
movq 0x10(%rax), %r15
movq (%rsp), %r13
negq %r13
movl $0x1, %r14d
leaq 0x5c35(%rip), %rbp      # 0x1436a
leaq 0x5843(%rip), %r12      # 0x13f7f
movzbl -0x1(%r15,%r14), %eax
movq %rbp, %rsi
testb $0x2, %al
je 0xe750
leaq 0x5c14(%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 0xe73c
leaq 0x619e(%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 0xe81a
leaq 0x40(%rsp), %rax
movq 0x10(%rax), %r13
negq %r12
movl $0x1, %r14d
leaq 0x3e65(%rip), %rbp      # 0x12626
leaq 0x5ba8(%rip), %r15      # 0x14370
movzbl -0x1(%r13,%r14), %eax
movq %rbp, %rsi
testb $0x4, %al
je 0xe7f2
andl $0x18, %eax
leaq 0x5b99(%rip), %rsi      # 0x14378
cmpl $0x10, %eax
je 0xe7eb
leaq 0x5b95(%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 0xe7c8
leaq 0x5b1c(%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 0xe884
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 0xe856
leaq 0x5abb(%rip), %rdx      # 0x14346
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x74e0
movslq 0x20(%r13), %rsi
movq %rbx, %rdi
callq 0x7530
leaq 0x4f96(%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