// File: /workspace/github_c_makefile_star2_O2/cogbee[P]vmir-latest/src/vmir_vm.c
// Function: function_process
static void
function_process(ir_unit_t *iu, ir_function_t *f)
{
  //  assert(iu->iu_next_value == VECTOR_LEN(&iu->iu_values));
  if(iu->iu_debug_flags_func & VMIR_DBG_DUMP_PARSED_FUNCTION)
    function_print(iu, iu->iu_current_function, "parsed");

  transform_function(iu, f);

  if(iu->iu_debug_flags_func & VMIR_DBG_DUMP_LOWERED_FUNCTION)
    function_print(iu, iu->iu_current_function, "lowered");

  vm_emit_function(iu, f);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
testb $0x1, 0x104(%rdi)
je 0xfd2d
movq 0x1c0(%rbx), %rsi
leaq 0x11595(%rip), %rdx     # 0x212ba
movq %rbx, %rdi
callq 0x10395
movq %rbx, %rdi
movq %r14, %rsi
callq 0x114f1
testb $0x2, 0x104(%rbx)
je 0xfd57
movq 0x1c0(%rbx), %rsi
leaq 0x11572(%rip), %rdx     # 0x212c1
movq %rbx, %rdi
callq 0x10395
movq 0x438(%rbx), %r12
movq %r12, 0x440(%rbx)
andq $0x0, 0x310(%rbx)
andq $0x0, 0x328(%rbx)
andq $0x0, 0x340(%rbx)
andq $0x0, 0x358(%rbx)
leaq 0x48(%r14), %r15
movq %r12, %r13
movq %r14, 0x8(%rsp)
movq (%r15), %r15
subq %r12, %r13
testq %r15, %r15
je 0xfe61
movl %r13d, 0x20(%r15)
testb $0x20, 0x104(%rbx)
je 0xfe40
movq %rbx, %rdi
movl $0x1fd, %esi            # imm = 0x1FD
callq 0x15094
movl 0x118(%rbx), %esi
movq %rbx, %rdi
callq 0x150ac
leaq 0x10(%r15), %rax
pushq $-0x1
popq %r12
movq (%rax), %rax
incl %r12d
testq %rax, %rax
jne 0xfdd4
movl 0x28(%r15), %r13d
movq 0x110(%rbx), %rax
movq 0x118(%rbx), %rbp
leaq 0x1(%rbp), %r14
cmpq 0x120(%rbx), %r14
jbe 0xfe1c
leaq (%r14,%r14), %rcx
movq %rcx, 0x120(%rbx)
imulq $0x30, %r14, %rsi
movq %rax, %rdi
callq 0x33c0
movq %rax, 0x110(%rbx)
movq %r14, 0x118(%rbx)
imulq $0x18, %rbp, %rcx
movq 0x8(%rsp), %r14
movq %r14, (%rax,%rcx)
movl %r13d, 0x8(%rax,%rcx)
movl %r12d, 0xc(%rax,%rcx)
andq $0x0, 0x10(%rax,%rcx)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x150ef
movq 0x438(%rbx), %r12
movq 0x440(%rbx), %r13
jmp 0xfd91
movl %r13d, 0x68(%r14)
cmpb $0x0, 0x2a(%r14)
je 0xfe93
testl %r13d, %r13d
jne 0x100a8
movslq 0x84(%r14), %rax
addq 0x50(%rbx), %rax
movq %rax, 0x70(%r14)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movslq %r13d, %r15
movq %r15, %rdi
callq 0x3380
movq %rax, 0x60(%r14)
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3360
addl %r13d, 0x5f8(%rbx)
movq 0x1c0(%rbx), %r14
movl 0x310(%rbx), %eax
xorl %r15d, %r15d
testl %eax, %eax
cmovlel %r15d, %eax
movq %rax, 0x20(%rsp)
cmpq 0x20(%rsp), %r15
je 0xfe84
movq 0x308(%rbx), %rax
movq %r15, 0x18(%rsp)
movslq (%rax,%r15,4), %rcx
movq 0x60(%r14), %rax
movzwl (%rax,%rcx), %r8d
leal -0x127(%r8), %esi
cmpl $0x53, %esi
ja 0x100c7
movq %r14, %r15
leaq (%rax,%rcx), %rbp
leaq 0xf42c(%rip), %rdx      # 0x1f33c
movslq (%rdx,%rsi,4), %rsi
addq %rdx, %rsi
pushq $0x4
popq %r12
pushq $0x6
popq %r14
pushq $0x2
popq %r13
movq %rcx, 0x8(%rsp)
jmpq *%rsi
pushq $0x2
popq %r12
pushq $0x4
popq %r14
movzwl (%rbp,%r12), %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x198e1
movq 0x8(%rsp), %rcx
movw %ax, (%rbp,%r12)
movq %r14, %r13
movzwl (%rbp,%r13), %edx
movq %rbx, %rdi
movq %r15, %r14
movq %r15, %rsi
callq 0x198e1
movw %ax, (%rbp,%r13)
movq 0x18(%rsp), %r15
movzwl (%rbp), %edi
callq 0xc650
movw %ax, (%rbp)
incq %r15
jmp 0xfed2
pushq $0x8
popq %r12
pushq $0xa
jmp 0xff30
movzwl 0x4(%rbp), %eax
leaq 0x6(,%rax,2), %r12
addq %rbp, %r12
incq %rax
movq %rax, 0x10(%rsp)
xorl %r13d, %r13d
movq %r15, %r14
movq 0x18(%rsp), %r15
cmpq %r13, 0x10(%rsp)
je 0xff70
movzwl (%r12,%r13,2), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x198e1
movq 0x8(%rsp), %rcx
movw %ax, (%r12,%r13,2)
incq %r13
jmp 0xffaf
movzwl 0x4(%rbp), %eax
leaq 0x6(,%rax,4), %r12
addq %rbp, %r12
incq %rax
movq %rax, 0x10(%rsp)
xorl %r13d, %r13d
movq %r15, %r14
movq 0x18(%rsp), %r15
cmpq %r13, 0x10(%rsp)
je 0xff70
movzwl (%r12,%r13,2), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x198e1
movq 0x8(%rsp), %rcx
movw %ax, (%r12,%r13,2)
incq %r13
jmp 0xfff7
movzwl 0x4(%rax,%rcx), %esi
leaq (%rcx,%rsi,8), %rdx
incq %rsi
movq %rsi, 0x10(%rsp)
leaq (%rax,%rdx), %r12
addq $0x6, %r12
xorl %r13d, %r13d
movq %r15, %r14
movq 0x18(%rsp), %r15
cmpq %r13, 0x10(%rsp)
je 0xff70
movzwl (%r12,%r13,2), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x198e1
movq 0x8(%rsp), %rcx
movw %ax, (%r12,%r13,2)
incq %r13
jmp 0x10045
xorl %r12d, %r12d
movq %r15, %r14
movq 0x18(%rsp), %r15
movzwl 0x4(%rbp), %eax
cmpq %rax, %r12
jae 0xff70
movzwl 0x6(%rbp,%r12,2), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x198e1
movq 0x8(%rsp), %rcx
movw %ax, 0x6(%rbp,%r12,2)
incq %r12
jmp 0x1007a
leaq 0x11d34(%rip), %rdi     # 0x21de3
leaq 0x11d45(%rip), %rsi     # 0x21dfb
leaq 0x11d4c(%rip), %rcx     # 0x21e09
movl $0x12de, %edx           # imm = 0x12DE
callq 0x31e0
leaq 0x11d2d(%rip), %rsi     # 0x21dfb
leaq 0x125b0(%rip), %rcx     # 0x22685
movq %rbx, %rdi
movl $0x1296, %edx           # imm = 0x1296
xorl %eax, %eax
callq 0xbed2