// File: /workspace/github_c_makefile_star2_O0/cogbee[P]vmir-latest/src/vmir_bitcode_parser.c
// Function: constants_rec_handler
static void
constants_rec_handler(ir_unit_t *iu, int op,
                      unsigned int argc, const int64_t *argv)
{
  ir_value_t *iv;
  ir_constexpr_t *ic;

  if(op == CST_CODE_SETTYPE) {
    if(argc < 1)
      parser_error(iu, "Bad # of args for CST_CODE_SETTYPE");
    assert(argc > 0);
    iu->iu_current_type = argv[0];
    return;
  }

  iv = value_append_and_get(iu);
  iv->iv_type = iu->iu_current_type;

  switch(op) {

  case CST_CODE_UNDEF:
  case CST_CODE_NULL:
    switch(type_get(iu, iv->iv_type)->it_code) {
    case IR_TYPE_INT1:
    case IR_TYPE_INT8:
    case IR_TYPE_INT16:
    case IR_TYPE_INT32:
    case IR_TYPE_POINTER:
    case IR_TYPE_DOUBLE:
    case IR_TYPE_INT64:
    case IR_TYPE_FLOAT:
    case IR_TYPE_INTx:
      iv->iv_class = IR_VC_CONSTANT;
      iv->iv_u64 = 0;
      break;
    case IR_TYPE_ARRAY:
    case IR_TYPE_STRUCT:
      iv->iv_class = IR_VC_ZERO_INITIALIZER;
      break;
    default:
      parser_error(iu, "Bad type (%s) for NULL integer constant",
                   type_str_index(iu, iu->iu_current_type));
    }
    break;

  case CST_CODE_INTEGER:
    assert(argc > 0);
    iv->iv_class = IR_VC_CONSTANT;
    switch(type_get(iu, iv->iv_type)->it_code) {
    case IR_TYPE_INT1:
    case IR_TYPE_INT8:
    case IR_TYPE_INT16:
    case IR_TYPE_INT32:
      iv->iv_u32 = read_sign_rotated(argv);
      break;

    case IR_TYPE_INT64:
    case IR_TYPE_INTx:
      iv->iv_u64 = read_sign_rotated(argv);
      break;
    default:
      parser_error(iu, "Bad type (%s) for integer constant",
                          type_str_index(iu, iu->iu_current_type));
    }

    break;


  case CST_CODE_FLOAT:
    assert(argc > 0);
    iv->iv_class = IR_VC_CONSTANT;
    switch(type_get(iu, iv->iv_type)->it_code) {
    case IR_TYPE_FLOAT:
      iv->iv_u32 = argv[0]; // iv_u32 is union with iv_float
      break;
    case IR_TYPE_DOUBLE:
      iv->iv_u64 = argv[0]; // iv_u64 is union with iv_double
      break;
    default:
      parser_error(iu, "Bad type (%s) for float constant",
                          type_str_index(iu, iu->iu_current_type));
    }

    break;


  case CST_CODE_AGGREGATE:
    iv->iv_class = IR_VC_AGGREGATE;
    iv->iv_num_values = argc;
    ir_valuetype_t *values = malloc(sizeof(ir_valuetype_t) * iv->iv_num_values);
    iv->iv_data = values;
    for(int i = 0; i < iv->iv_num_values; i++) {
      ir_value_t *ivx = value_get(iu, argv[i]);
      values[i].value = argv[i];
      values[i].type = ivx->iv_type;
    }
    break;

  case CST_CODE_DATA:
    {
      iv->iv_class = IR_VC_DATA;
      ir_type_t *ty = type_get(iu, iu->iu_current_type);

      switch(ty->it_code) {
      case IR_TYPE_ARRAY:
        switch(type_get(iu, ty->it_array.element_type)->it_code) {

        case IR_TYPE_INT64:
        case IR_TYPE_DOUBLE:
          iv->iv_data = malloc(sizeof(uint64_t) * argc);
          for(int i = 0; i < argc; i++)
            host_wr64(iv->iv_data + i * sizeof(uint64_t), argv[i]);
          return;

        case IR_TYPE_INT32:
        case IR_TYPE_FLOAT:
          iv->iv_data = malloc(sizeof(uint32_t) * argc);
          for(int i = 0; i < argc; i++)
            host_wr32(iv->iv_data + i * sizeof(uint32_t), argv[i]);
          return;

        case IR_TYPE_INT16:
          iv->iv_data = malloc(sizeof(uint16_t) * argc);
          for(int i = 0; i < argc; i++)
            host_wr16(iv->iv_data + i * sizeof(uint16_t), argv[i]);
          return;

        default:
          break;
        }
      default:
        break;
      }
      parser_error(iu, "Can't parse constant data for type %s",
                   type_str_index(iu, iu->iu_current_type));
    }
    break;

  case CST_CODE_CSTRING:
  case CST_CODE_STRING:
    iv->iv_class = IR_VC_DATA;
    iv->iv_data = read_str_from_argv(argc, argv);
    break;

  case CST_CODE_CE_CAST:
    iv->iv_class = IR_VC_CE;
    ic = iv->iv_ce = malloc(sizeof(ir_constexpr_t));
    ic->ic_code = op;
    ic->ic_cast.op  = argv[0];
    ic->ic_cast.src = argv[2];
    break;

  case CST_CODE_CE_GEP:
  case CST_CODE_CE_INBOUNDS_GEP:
    iv->iv_class = IR_VC_CE;
    ic = iv->iv_ce = malloc(sizeof(ir_constexpr_t));
    ic->ic_code = op;
    if(argc & 1) {
      // explicit return type
      argc--;
      argv++;
    }
    ic->ic_gep.num_values = argc / 2;
    ic->ic_gep.values = malloc(iv->iv_ce->ic_gep.num_values * sizeof(int));
    for(int i = 0; i < ic->ic_gep.num_values; i++)
      ic->ic_gep.values[i] = argv[1 + i * 2];
    break;

  case CST_CODE_CE_BINOP:
    iv->iv_class = IR_VC_CE;
    if(argc < 3)
      parser_error(iu, "CST_CODE_CE_BINOP with invalid number of args %d", argc);
    ic = iv->iv_ce = malloc(sizeof(ir_constexpr_t));
    ic->ic_code = op;
    ic->ic_binop.op  = argv[0];
    ic->ic_binop.lhs = argv[1];
    ic->ic_binop.rhs = argv[2];
    break;

  case CST_CODE_CE_CMP:
    iv->iv_class = IR_VC_CE;
    if(argc < 4)
      parser_error(iu, "CST_CODE_CE_CMP with invalid number of args %d", argc);
    ic = iv->iv_ce = malloc(sizeof(ir_constexpr_t));
    ic->ic_code = op;
    ic->ic_cmp.opty = argv[0];
    ic->ic_cmp.lhs  = argv[1];
    ic->ic_cmp.rhs  = argv[2];
    ic->ic_cmp.pred = argv[3];
    break;

  case CST_CODE_BLOCKADDRESS:
    parser_error(iu, "CST_CODE_BLOCKADDRESS (computed goto) is not supported");

  case CST_CODE_INLINEASM:
  case CST_CODE_INLINEASM_OLD:
    parser_error(iu, "Inline asm not supported");

  default:
    parser_error(iu, "Unknown op %d in constant block curty=%s",
                 op, type_str_index(iu, iu->iu_current_type));
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
cmpl $0x1, -0xc(%rbp)
jne 0x34422
cmpl $0x1, -0x10(%rbp)
jae 0x343e3
movq -0x8(%rbp), %rdi
leaq 0xc494(%rip), %rsi      # 0x40864
movl $0x1fd, %edx            # imm = 0x1FD
leaq 0xc700(%rip), %rcx      # 0x40adc
movb $0x0, %al
callq 0x18220
cmpl $0x0, -0x10(%rbp)
jbe 0x343eb
jmp 0x3440a
leaq 0xc70d(%rip), %rdi      # 0x40aff
leaq 0xc46b(%rip), %rsi      # 0x40864
movl $0x1fe, %edx            # imm = 0x1FE
leaq 0xc703(%rip), %rcx      # 0x40b08
callq 0x31c0
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x1b8(%rax)
jmp 0x34be3
movq -0x8(%rbp), %rdi
callq 0x223d0
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movl 0x1b8(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x24(%rax)
movl -0xc(%rbp), %eax
addl $-0x2, %eax
movl %eax, %ecx
movq %rcx, -0x60(%rbp)
subl $0x15, %eax
ja 0x34b91
movq -0x60(%rbp), %rax
leaq 0x9918(%rip), %rcx      # 0x3dd78
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movl 0x24(%rax), %esi
callq 0x1ee20
movl (%rax), %eax
movl %eax, -0x64(%rbp)
testl %eax, %eax
je 0x344bd
jmp 0x34484
movl -0x64(%rbp), %eax
addl $-0x2, %eax
subl $0x8, %eax
jb 0x344a5
jmp 0x34491
movl -0x64(%rbp), %eax
subl $0xa, %eax
je 0x344bd
jmp 0x3449b
movl -0x64(%rbp), %eax
subl $0xb, %eax
jne 0x344c9
jmp 0x344a5
movq -0x20(%rbp), %rax
movl $0x3, (%rax)
movq -0x20(%rbp), %rax
movq $0x0, 0x30(%rax)
jmp 0x34505
movq -0x20(%rbp), %rax
movl $0xb, (%rax)
jmp 0x34505
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1b8(%rax), %esi
callq 0x22560
movq -0x70(%rbp), %rdi
movq %rax, %r8
leaq 0xc372(%rip), %rsi      # 0x40864
movl $0x21d, %edx            # imm = 0x21D
leaq 0xc656(%rip), %rcx      # 0x40b54
movb $0x0, %al
callq 0x18220
jmp 0x34be3
cmpl $0x0, -0x10(%rbp)
jbe 0x34512
jmp 0x34531
leaq 0xc5e6(%rip), %rdi      # 0x40aff
leaq 0xc344(%rip), %rsi      # 0x40864
movl $0x222, %edx            # imm = 0x222
leaq 0xc5dc(%rip), %rcx      # 0x40b08
callq 0x31c0
movq -0x20(%rbp), %rax
movl $0x3, (%rax)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movl 0x24(%rax), %esi
callq 0x1ee20
movl (%rax), %eax
movl %eax, -0x74(%rbp)
addl $-0x2, %eax
subl $0x4, %eax
jb 0x34567
jmp 0x3455a
movl -0x74(%rbp), %eax
addl $-0x6, %eax
subl $0x2, %eax
jb 0x3457b
jmp 0x34591
movq -0x18(%rbp), %rdi
callq 0x35f90
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x30(%rax)
jmp 0x345cd
movq -0x18(%rbp), %rdi
callq 0x35f90
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x30(%rax)
jmp 0x345cd
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1b8(%rax), %esi
callq 0x22560
movq -0x80(%rbp), %rdi
movq %rax, %r8
leaq 0xc2aa(%rip), %rsi      # 0x40864
movl $0x232, %edx            # imm = 0x232
leaq 0xc5b6(%rip), %rcx      # 0x40b7c
movb $0x0, %al
callq 0x18220
jmp 0x34be3
cmpl $0x0, -0x10(%rbp)
jbe 0x345da
jmp 0x345f9
leaq 0xc51e(%rip), %rdi      # 0x40aff
leaq 0xc27c(%rip), %rsi      # 0x40864
movl $0x239, %edx            # imm = 0x239
leaq 0xc514(%rip), %rcx      # 0x40b08
callq 0x31c0
movq -0x20(%rbp), %rax
movl $0x3, (%rax)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rax
movl 0x24(%rax), %esi
callq 0x1ee20
movl (%rax), %eax
movl %eax, -0x84(%rbp)
subl $0x8, %eax
je 0x3462f
jmp 0x34622
movl -0x84(%rbp), %eax
subl $0x9, %eax
je 0x34641
jmp 0x34652
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x30(%rax)
jmp 0x34694
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x30(%rax)
jmp 0x34694
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1b8(%rax), %esi
callq 0x22560
movq -0x90(%rbp), %rdi
movq %rax, %r8
leaq 0xc1e3(%rip), %rsi      # 0x40864
movl $0x244, %edx            # imm = 0x244
leaq 0xc512(%rip), %rcx      # 0x40b9f
movb $0x0, %al
callq 0x18220
jmp 0x34be3
movq -0x20(%rbp), %rax
movl $0x9, (%rax)
movl -0x10(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x20(%rbp), %rax
movslq 0x30(%rax), %rdi
shlq $0x3, %rdi
callq 0x3360
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x20(%rbp), %rcx
cmpl 0x30(%rcx), %eax
jge 0x34733
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %esi
callq 0x20ee0
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movslq -0x34(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %edx
movq -0x30(%rbp), %rax
movslq -0x34(%rbp), %rcx
movl %edx, (%rax,%rcx,8)
movq -0x40(%rbp), %rax
movl 0x24(%rax), %edx
movq -0x30(%rbp), %rax
movslq -0x34(%rbp), %rcx
movl %edx, 0x4(%rax,%rcx,8)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x346d5
jmp 0x34be3
movq -0x20(%rbp), %rax
movl $0x7, (%rax)
movq -0x8(%rbp), %rdi
movl 0x1b8(%rdi), %esi
callq 0x1ee20
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movl (%rax), %eax
subl $0xa, %eax
jne 0x348bf
jmp 0x34766
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rax
movl 0xc(%rax), %esi
callq 0x1ee20
movl (%rax), %eax
addl $-0x4, %eax
movl %eax, %ecx
movq %rcx, -0x98(%rbp)
subl $0x5, %eax
ja 0x348bb
movq -0x98(%rbp), %rax
leaq 0x9635(%rip), %rcx      # 0x3ddd0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl -0x10(%rbp), %eax
movl %eax, %edi
shlq $0x3, %rdi
callq 0x3360
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0x10(%rbp), %eax
jae 0x347fb
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdi
movslq -0x4c(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
movslq -0x4c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x35ff0
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x347c4
jmp 0x34be3
movl -0x10(%rbp), %eax
movl %eax, %edi
shlq $0x2, %rdi
callq 0x3360
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, -0x50(%rbp)
movl -0x50(%rbp), %eax
cmpl -0x10(%rbp), %eax
jae 0x34859
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdi
movslq -0x50(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
movslq -0x50(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %esi
callq 0x36010
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0x34820
jmp 0x34be3
movl -0x10(%rbp), %eax
movl %eax, %edi
shlq %rdi
callq 0x3360
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x18(%rax)
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x10(%rbp), %eax
jae 0x348b6
movq -0x20(%rbp), %rax
movq 0x18(%rax), %rdi
movslq -0x54(%rbp), %rax
shlq %rax
addq %rax, %rdi
movq -0x18(%rbp), %rax
movslq -0x54(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movzwl %ax, %esi
callq 0x36030
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x3487d
jmp 0x34be3
jmp 0x348bd
jmp 0x348bf
jmp 0x348c1
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1b8(%rax), %esi
callq 0x22560
movq -0xa0(%rbp), %rdi
movq %rax, %r8
leaq 0xbf74(%rip), %rsi      # 0x40864
movl $0x27a, %edx            # imm = 0x27A
leaq 0xc2c4(%rip), %rcx      # 0x40bc0
movb $0x0, %al
callq 0x18220
movq -0x20(%rbp), %rax
movl $0x7, (%rax)
movl -0x10(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x35860
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x18(%rax)
jmp 0x34be3
movq -0x20(%rbp), %rax
movl $0x8, (%rax)
movl $0x18, %edi
callq 0x3360
movq -0x20(%rbp), %rcx
movq %rax, 0x30(%rcx)
movq %rax, -0x28(%rbp)
movl -0xc(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0xc(%rax)
jmp 0x34be3
movq -0x20(%rbp), %rax
movl $0x8, (%rax)
movl $0x18, %edi
callq 0x3360
movq -0x20(%rbp), %rcx
movq %rax, 0x30(%rcx)
movq %rax, -0x28(%rbp)
movl -0xc(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movl -0x10(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x349c1
movl -0x10(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x10(%rbp)
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movl -0x10(%rbp), %ecx
shrl %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movq 0x30(%rax), %rax
movslq 0x8(%rax), %rdi
shlq $0x2, %rdi
callq 0x3360
movq %rax, %rcx
movq -0x28(%rbp), %rax
movq %rcx, 0x10(%rax)
movl $0x0, -0x58(%rbp)
movl -0x58(%rbp), %eax
movq -0x28(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x34a2f
movq -0x18(%rbp), %rax
movl -0x58(%rbp), %ecx
shll %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %edx
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x58(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movl -0x58(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0x349f4
jmp 0x34be3
movq -0x20(%rbp), %rax
movl $0x8, (%rax)
cmpl $0x3, -0x10(%rbp)
jae 0x34a66
movq -0x8(%rbp), %rdi
movl -0x10(%rbp), %r8d
leaq 0xbe11(%rip), %rsi      # 0x40864
movl $0x29f, %edx            # imm = 0x29F
leaq 0xc187(%rip), %rcx      # 0x40be6
movb $0x0, %al
callq 0x18220
movl $0x18, %edi
callq 0x3360
movq -0x20(%rbp), %rcx
movq %rax, 0x30(%rcx)
movq %rax, -0x28(%rbp)
movl -0xc(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x10(%rax)
jmp 0x34be3
movq -0x20(%rbp), %rax
movl $0x8, (%rax)
cmpl $0x4, -0x10(%rbp)
jae 0x34aee
movq -0x8(%rbp), %rdi
movl -0x10(%rbp), %r8d
leaq 0xbd89(%rip), %rsi      # 0x40864
movl $0x2aa, %edx            # imm = 0x2AA
leaq 0xc130(%rip), %rcx      # 0x40c17
movb $0x0, %al
callq 0x18220
movl $0x18, %edi
callq 0x3360
movq -0x20(%rbp), %rcx
movq %rax, 0x30(%rcx)
movq %rax, -0x28(%rbp)
movl -0xc(%rbp), %ecx
movq -0x28(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x18(%rbp), %rax
movq 0x18(%rax), %rax
movl %eax, %ecx
movq -0x28(%rbp), %rax
movl %ecx, 0x14(%rax)
jmp 0x34be3
movq -0x8(%rbp), %rdi
leaq 0xbd04(%rip), %rsi      # 0x40864
movl $0x2b4, %edx            # imm = 0x2B4
leaq 0xc0da(%rip), %rcx      # 0x40c46
movb $0x0, %al
callq 0x18220
movq -0x8(%rbp), %rdi
leaq 0xbce6(%rip), %rsi      # 0x40864
movl $0x2b8, %edx            # imm = 0x2B8
leaq 0xc0f3(%rip), %rcx      # 0x40c7d
movb $0x0, %al
callq 0x18220
movq -0x8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0xa4(%rbp)
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1b8(%rax), %esi
callq 0x22560
movq -0xb0(%rbp), %rdi
movl -0xa4(%rbp), %r8d
movq %rax, %r9
leaq 0xbc94(%rip), %rsi      # 0x40864
movl $0x2bc, %edx            # imm = 0x2BC
leaq 0xc0ba(%rip), %rcx      # 0x40c96
movb $0x0, %al
callq 0x18220
addq $0xb0, %rsp
popq %rbp
retq
nopl (%rax)