// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
movq %rcx, %r14
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %rbx
leal -0x1(%r15), %eax
cmpl $0xf, %eax
ja 0x19cee
leaq 0x5da0(%rip), %rcx      # 0x1f870
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x7, %ebp
jbe 0x19d18
movl 0x10(%r14), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0xe719
cmpl $0xb, (%rax)
jne 0x19b01
movl 0x8(%rax), %ebp
pushq $0x1
popq %rdi
movl $0x90, %esi
callq 0x32f0
movq %rax, %r15
addq $0x48, %rax
movq %rax, 0x50(%r15)
cmpq $0x0, 0x20(%r14)
setne 0x28(%r15)
movl %ebp, 0x10(%r15)
movdqu (%r14), %xmm0
pshufd $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3]
movq %xmm0, 0x14(%r15)
jne 0x19b4e
movq 0x1b0(%rbx), %rax
movq %rax, 0x8(%r15)
movq %r15, (%rax)
movq %r15, 0x1b0(%rbx)
movq 0x2e0(%rbx), %r14
movl %r14d, 0x34(%r15)
leaq 0x1(%r14), %r12
movq 0x2d8(%rbx), %rax
cmpq 0x2e8(%rbx), %r12
jbe 0x19b8e
leaq (%r12,%r12), %rcx
movq %rcx, 0x2e8(%rbx)
movq %r12, %rsi
shlq $0x4, %rsi
movq %rax, %rdi
callq 0x33c0
movq %rax, 0x2d8(%rbx)
movq %r12, 0x2e0(%rbx)
movq %r15, (%rax,%r14,8)
movq %rbx, %rdi
callq 0x1051a
movl $0x1, (%rax)
movl %ebp, 0x24(%rax)
movq %r15, 0x30(%rax)
jmp 0x19ad9
movl (%r14), %eax
movl %eax, 0x130(%rbx)
jmp 0x19ad9
cmpl $0x5, %ebp
jbe 0x19d30
testb $0x2, 0x18(%r14)
movl 0x10(%r14), %ebp
movq %rbx, %rdi
movl %ebp, %esi
jne 0x19c46
callq 0x14b6e
movl %eax, %esi
jmp 0x19c5a
movq 0x128(%rbx), %rdi
callq 0x3030
movl %ebp, %edi
movq %r14, %rsi
callq 0x1b56c
movq %rax, 0x128(%rbx)
jmp 0x19ad9
cmpl $0x3, %ebp
jbe 0x19d46
movq %rbx, %rdi
callq 0x1051a
movl $0xa, (%rax)
movl 0x10(%r14), %ecx
movl %ecx, 0x24(%rax)
movl 0x18(%r14), %ecx
movl %ecx, 0x30(%rax)
jmp 0x19ad9
cmpl $0x1, %ebp
jne 0x19d5e
movl (%r14), %eax
movl %eax, 0x578(%rbx)
jmp 0x19ad9
xorl %edx, %edx
callq 0xe37f
cmpl $-0x1, %eax
je 0x19d7b
movl %ebp, %esi
movl %eax, %ebp
movl 0x30(%r14), %ecx
testl %ecx, %ecx
je 0x19c75
movl $0x100, %eax            # imm = 0x100
cmpl $0x9, %ecx
jg 0x19c78
pushq $0x1
popq %rax
shll %cl, %eax
shrl %eax
jmp 0x19c78
pushq $0x4
popq %rax
movl (%r14), %r8d
movl 0x8(%r14), %r9d
movq %rbx, %rdi
movl %ebp, %edx
movl %eax, %ecx
callq 0xe425
movl 0x20(%r14), %r14d
testl %r14d, %r14d
je 0x19ad9
movl %eax, %ebp
decl %r14d
movq 0x2f0(%rbx), %rax
movq 0x2f8(%rbx), %r15
leaq 0x1(%r15), %r12
cmpq 0x300(%rbx), %r12
jbe 0x19cd9
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 0x19ad9
movq %r14, %rdi
movl %ebp, %esi
callq 0x1b5a2
leaq 0x8a41(%rip), %rsi      # 0x22740
leaq 0x8b69(%rip), %rcx      # 0x2286f
movq %rbx, %rdi
movl $0x103, %edx            # imm = 0x103
movl %r15d, %r8d
xorl %eax, %eax
callq 0xbed2
leaq 0x8a21(%rip), %rsi      # 0x22740
leaq 0x8ba7(%rip), %rcx      # 0x228cd
movq %rbx, %rdi
movl $0x9f, %edx
jmp 0x19d74
leaq 0x8a09(%rip), %rsi      # 0x22740
leaq 0x8b48(%rip), %rcx      # 0x22886
pushq $0x76
popq %rdx
movq %rbx, %rdi
jmp 0x19d74
leaq 0x89f3(%rip), %rsi      # 0x22740
leaq 0x8b79(%rip), %rcx      # 0x228cd
movq %rbx, %rdi
movl $0xc7, %edx
jmp 0x19d74
leaq 0x89db(%rip), %rsi      # 0x22740
leaq 0x8b61(%rip), %rcx      # 0x228cd
movq %rbx, %rdi
movl $0xd7, %edx
xorl %eax, %eax
callq 0xbed2
movq %rbx, %rdi
movl %ebp, %esi
callq 0x105cd
leaq 0x89b4(%rip), %rsi      # 0x22740
leaq 0x8b19(%rip), %rcx      # 0x228ac
movq %rbx, %rdi
movl $0x81, %edx
movq %rax, %r8
xorl %eax, %eax
callq 0xbed2