// File: /workspace/github_c_makefile_star2_O3/cogbee[P]vmir-latest/src/vmir_bitcode_parser.c
// Function: module_rec_handler
static void
module_rec_handler(ir_unit_t *iu, int op,
                   unsigned int argc, const int64_t *argv)
{
  switch(op) {
  case MODULE_CODE_VERSION:
    iu->iu_version = argv[0];
    break;

  case MODULE_CODE_TRIPLE:
    free(iu->iu_triple);
    iu->iu_triple = read_str_from_argv(argc, argv);
    break;

  case MODULE_CODE_DATALAYOUT:
    break;

  case MODULE_CODE_GLOBALVAR:
    return module_globalvar(iu, argc, argv);

  case MODULE_CODE_FUNCTION:
    return module_function(iu, argc, argv);

  case MODULE_CODE_ALIAS:
    return module_alias(iu, argc, argv);

  case MODULE_CODE_VSTOFFSET:
    return module_vstoffset(iu, argc, argv);

  case MODULE_CODE_COMDAT:
  case MODULE_CODE_METADATA_VALUES_UNUSED:
  case MODULE_CODE_SOURCE_FILENAME:
    break;

  default:
    printargs(argv, argc);
    parser_error(iu, "Unknown module code %d", op);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %r15d
movl %esi, %r12d
movq %rdi, %rbx
leal -0x1(%r12), %eax
cmpl $0xf, %eax
ja 0x1e0b7
leaq 0x6928(%rip), %rcx      # 0x246fc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x7, %r15d
jbe 0x1e0dd
movq 0x10(%r14), %r15
movl %r15d, %eax
cmpq %rax, 0x170(%rbx)
jbe 0x1e142
movq 0x168(%rbx), %rcx
leaq (%rax,%rax,4), %rax
cmpl $0xb, (%rcx,%rax,8)
jne 0x1de23
leaq (%rcx,%rax,8), %rax
movl 0x8(%rax), %r15d
movl $0x1, %edi
movl $0x90, %esi
callq 0x32f0
movq %rax, %r12
addq $0x48, %rax
movq %rax, 0x50(%r12)
cmpq $0x0, 0x20(%r14)
setne 0x28(%r12)
movl %r15d, 0x10(%r12)
movdqu (%r14), %xmm0
pshufd $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3]
movq %xmm0, 0x14(%r12)
jne 0x1de77
movq 0x1b0(%rbx), %rax
movq %rax, 0x8(%r12)
movq %r12, (%rax)
movq %r12, 0x1b0(%rbx)
movq 0x2e0(%rbx), %r14
movl %r14d, 0x34(%r12)
leaq 0x1(%r14), %r13
movq 0x2d8(%rbx), %rax
cmpq 0x2e8(%rbx), %r13
jbe 0x1debc
leaq (,%r13,2), %rcx
movq %rcx, 0x2e8(%rbx)
movq %r13, %rsi
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x33c0
movq %rax, 0x2d8(%rbx)
movq %r13, 0x2e0(%rbx)
movq %r12, (%rax,%r14,8)
movq %rbx, %rdi
callq 0xf50d
movq 0x180(%rbx), %rcx
cltq
movq (%rcx,%rax,8), %rax
movl $0x1, (%rax)
movl %r15d, 0x24(%rax)
movq %r12, 0x30(%rax)
jmp 0x1dddd
movl (%r14), %eax
movl %eax, 0x130(%rbx)
jmp 0x1dddd
cmpl $0x5, %r15d
jbe 0x1e0f5
testb $0x2, 0x18(%r14)
movl 0x10(%r14), %ebp
jne 0x1dfb6
movq %rbx, %rdi
movl %ebp, %esi
callq 0x17764
movl %eax, %esi
jmp 0x1e01f
movq 0x128(%rbx), %rdi
callq 0x3030
leal 0x1(%r15), %edi
callq 0x3380
movl %r15d, %ecx
movb $0x0, (%rax,%rcx)
testl %r15d, %r15d
je 0x1df5a
xorl %edx, %edx
movb (%r14,%rdx,8), %sil
movb %sil, (%rax,%rdx)
incq %rdx
cmpq %rdx, %rcx
jne 0x1df4a
movq %rax, 0x128(%rbx)
jmp 0x1dddd
cmpl $0x3, %r15d
jbe 0x1e10d
movq %rbx, %rdi
callq 0xf50d
movq 0x180(%rbx), %rcx
cltq
movq (%rcx,%rax,8), %rax
movl $0xa, (%rax)
movl 0x10(%r14), %ecx
movl %ecx, 0x24(%rax)
movl 0x18(%r14), %ecx
movl %ecx, 0x30(%rax)
jmp 0x1dddd
cmpl $0x1, %r15d
jne 0x1e125
movl (%r14), %eax
movl %eax, 0x578(%rbx)
jmp 0x1dddd
movq 0x170(%rbx), %rax
testq %rax, %rax
je 0x1dfe8
movq 0x168(%rbx), %rdx
negq %rax
addq $0x8, %rdx
xorl %ecx, %ecx
cmpl $0xb, -0x8(%rdx)
jne 0x1dfdc
cmpl %ebp, (%rdx)
je 0x1e012
decq %rcx
addq $0x28, %rdx
cmpq %rcx, %rax
jne 0x1dfd2
movq %rbx, %rdi
movl %ebp, %esi
callq 0x120fa
leaq 0x95dc(%rip), %rsi      # 0x275d5
leaq 0x9741(%rip), %rcx      # 0x27741
movq %rbx, %rdi
movl $0x81, %edx
movq %rax, %r8
xorl %eax, %eax
callq 0xca98
cmpq $0x1, %rcx
je 0x1dfe8
negq %rcx
movl %ebp, %esi
movl %ecx, %ebp
movl 0x30(%r14), %ecx
testl %ecx, %ecx
je 0x1e03c
movl $0x100, %eax            # imm = 0x100
cmpl $0x9, %ecx
jg 0x1e041
movl $0x1, %eax
shll %cl, %eax
shrl %eax
jmp 0x1e041
movl $0x4, %eax
movl (%r14), %r8d
movl 0x8(%r14), %r9d
movq %rbx, %rdi
movl %ebp, %edx
movl %eax, %ecx
callq 0xf348
movl 0x20(%r14), %r14d
testl %r14d, %r14d
je 0x1dddd
movl %eax, %ebp
decl %r14d
movq 0x2f0(%rbx), %rax
movq 0x2f8(%rbx), %r15
leaq 0x1(%r15), %r12
cmpq 0x300(%rbx), %r12
jbe 0x1e0a2
leaq (%r12,%r12), %rcx
movq %rcx, 0x300(%rbx)
movq %r12, %rsi
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x33c0
movq %rax, 0x2f0(%rbx)
movq %r12, 0x2f8(%rbx)
movl %ebp, (%rax,%r15,8)
movl %r14d, 0x4(%rax,%r15,8)
jmp 0x1dddd
movq %r14, %rdi
movl %r15d, %esi
callq 0x200c8
leaq 0x950c(%rip), %rsi      # 0x275d5
leaq 0x9634(%rip), %rcx      # 0x27704
movq %rbx, %rdi
movl $0x103, %edx            # imm = 0x103
movl %r12d, %r8d
jmp 0x1e15b
leaq 0x94f1(%rip), %rsi      # 0x275d5
leaq 0x9677(%rip), %rcx      # 0x27762
movq %rbx, %rdi
movl $0x9f, %edx
jmp 0x1e13b
leaq 0x94d9(%rip), %rsi      # 0x275d5
leaq 0x9618(%rip), %rcx      # 0x2771b
movq %rbx, %rdi
movl $0x76, %edx
jmp 0x1e13b
leaq 0x94c1(%rip), %rsi      # 0x275d5
leaq 0x9647(%rip), %rcx      # 0x27762
movq %rbx, %rdi
movl $0xc7, %edx
jmp 0x1e13b
leaq 0x94a9(%rip), %rsi      # 0x275d5
leaq 0x962f(%rip), %rcx      # 0x27762
movq %rbx, %rdi
movl $0xd7, %edx
xorl %eax, %eax
callq 0xca98
leaq 0x7973(%rip), %rsi      # 0x25abc
leaq 0x79a5(%rip), %rcx      # 0x25af5
movq %rbx, %rdi
movl $0x7c, %edx
movl %r15d, %r8d
xorl %eax, %eax
callq 0xca98