// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/typecheck_info.c
// Function: gt_typecheck_info_create_type_checker
GtTypeChecker* gt_typecheck_info_create_type_checker(const GtTypecheckInfo *tci,
                                                     GtError *err)
{
  GtTypeChecker *type_checker = NULL;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(tci);
  if (tci->typecheck_built_in)
    type_checker = gt_type_checker_builtin_new();
  else {
    GtStr *obo_file;
    gt_assert(gt_option_is_set(tci->typecheck_option));
    if (!gt_str_length(tci->typecheck)) {
      /* a. */
      if (!(obo_file = get_obo_path(err)))
        had_err = -1;
      if (!had_err)
        gt_str_append_cstr(obo_file, "sofa.obo");
    }
    else if (gt_file_exists(gt_str_get(tci->typecheck))) {
      /* b. */
      obo_file = gt_str_new_cstr(gt_str_get(tci->typecheck));
    }
    else {
      /* c. */
      if (!(obo_file = get_obo_path(err)))
        had_err = -1;
      if (!had_err) {
        gt_str_append_str(obo_file, tci->typecheck);
        gt_str_append_cstr(obo_file, ".obo");
      }
    }

    if (!had_err)
      type_checker = gt_type_checker_obo_new(gt_str_get(obo_file), err);

    gt_str_delete(obo_file);
  }
  return type_checker;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x1f4b3f
movq 0x18(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1f4b07
jmp 0x1f4b3f
movq 0x447492(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3214fb(%rip), %rsi    # 0x516013
leaq 0x3216a0(%rip), %rdx    # 0x5161bf
leaq 0x375673(%rip), %rcx    # 0x56a199
leaq 0x37540d(%rip), %r8     # 0x569f3a
movl $0x74, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1f4b41
jmp 0x1f4b43
cmpq $0x0, 0x20(%rsp)
jne 0x1f4b83
movq 0x44744e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3214b7(%rip), %rsi    # 0x516013
leaq 0x37565c(%rip), %rdx    # 0x56a1bf
leaq 0x37562f(%rip), %rcx    # 0x56a199
leaq 0x3753c9(%rip), %r8     # 0x569f3a
movl $0x75, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1f4b85
movq 0x20(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0x1f4ba1
movb $0x0, %al
callq 0x1f4710
movq %rax, 0x10(%rsp)
jmp 0x1f4ce0
jmp 0x1f4ba3
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0xf74a0
testb $0x1, %al
jne 0x1f4bed
movq 0x4473e4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x32144d(%rip), %rsi    # 0x516013
leaq 0x3755f6(%rip), %rdx    # 0x56a1c3
leaq 0x3755c5(%rip), %rcx    # 0x56a199
leaq 0x37535f(%rip), %r8     # 0x569f3a
movl $0x7a, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1f4bef
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jne 0x1f4c37
movq 0x18(%rsp), %rdi
callq 0x1f4cf0
movq %rax, (%rsp)
cmpq $0x0, %rax
jne 0x1f4c1e
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x0, 0xc(%rsp)
jne 0x1f4c35
movq (%rsp), %rdi
leaq 0x3755bb(%rip), %rsi    # 0x56a1eb
callq 0x11d550
jmp 0x1f4cb5
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0xde820
testb $0x1, %al
jne 0x1f4c52
jmp 0x1f4c6d
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0x11d510
movq %rax, (%rsp)
jmp 0x1f4cb3
movq 0x18(%rsp), %rdi
callq 0x1f4cf0
movq %rax, (%rsp)
cmpq $0x0, %rax
jne 0x1f4c89
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x0, 0xc(%rsp)
jne 0x1f4cb1
movq (%rsp), %rdi
movq 0x20(%rsp), %rax
movq (%rax), %rsi
callq 0x11d750
movq (%rsp), %rdi
leaq 0x375543(%rip), %rsi    # 0x56a1ef
callq 0x11d550
jmp 0x1f4cb3
jmp 0x1f4cb5
cmpl $0x0, 0xc(%rsp)
jne 0x1f4cd7
movq (%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x18(%rsp), %rsi
callq 0x498f30
movq %rax, 0x10(%rsp)
movq (%rsp), %rdi
callq 0x11f560
movq 0x10(%rsp), %rax
addq $0x28, %rsp
retq
nopw (%rax,%rax)