// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/id_to_md5_visitor.c
// Function: i2m_change_seqid
static int i2m_change_seqid(GtFeatureNode *fn, void *data, GtError *err)
{
  I2MChangeSeqidInfo *info = (I2MChangeSeqidInfo*) data;
  const char *target;
  gt_error_check(err);
  gt_assert(fn && info);
  gt_genome_node_change_seqid((GtGenomeNode*) fn, info->new_seqid);
  if (info->offset) {
    GtRange old_range, new_range;
    old_range = gt_genome_node_get_range((GtGenomeNode*) fn);
    new_range = gt_range_offset(&old_range, -info->offset);
    gt_genome_node_set_range((GtGenomeNode*) fn, &new_range);
  }
  if ((target = gt_feature_node_get_attribute(fn, GT_GFF_TARGET)) &&
      info->substitute_target_ids) {
    return i2m_change_target_seqids(fn, target, info->region_mapping, err);
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r13
testq %rdx, %rdx
je 0x15dbdf
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0x15de73
testq %r13, %r13
je 0x15de69
testq %r15, %r15
je 0x15de69
movq (%r15), %rsi
movq %r13, %rdi
callq 0x14b96f
cmpq $0x0, 0x18(%r15)
je 0x15dc36
movq %r13, %rdi
callq 0x14b8df
leaq 0x38(%rsp), %rdi
movq %rax, (%rdi)
movq %rdx, 0x8(%rdi)
xorl %esi, %esi
subq 0x18(%r15), %rsi
callq 0x117950
leaq 0x48(%rsp), %rsi
movq %rax, (%rsi)
movq %rdx, 0x8(%rsi)
movq %r13, %rdi
callq 0x14b940
leaq 0x1f7d08(%rip), %rsi    # 0x355945
movq %r13, %rdi
callq 0x14918c
xorl %ebp, %ebp
testq %rax, %rax
je 0x15de58
cmpb $0x1, 0x10(%r15)
jne 0x15de58
movq %rax, %r12
movq 0x8(%r15), %rax
movq %rax, 0x20(%rsp)
testq %r14, %r14
je 0x15dc7c
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0x15de7d
cmpq $0x0, 0x20(%rsp)
je 0x15de78
callq 0x1208f8
movq %rax, %r15
callq 0x121b54
movq %rax, %rbx
movl $0x10, %edi
callq 0xd46fc
movq %rax, %rbp
movl $0x4, %edi
callq 0xd46fc
leaq 0x275bda(%rip), %r9     # 0x3d3890
movq %r12, %rdi
movq %rax, %r12
xorl %esi, %esi
movq %rbx, %rdx
movq %rbp, 0x10(%rsp)
movq %rbp, %rcx
movq %rax, %r8
pushq %r14
pushq $0x0
callq 0x14ea2a
addq $0x10, %rsp
movl %eax, %ebp
testl %eax, %eax
jne 0x15de36
movq %rbx, 0x18(%rsp)
movq %rbx, %rdi
callq 0x121e78
testq %rax, %rax
je 0x15dde5
movq %r12, 0x8(%rsp)
movq %r13, 0x28(%rsp)
movq %r14, 0x30(%rsp)
xorl %ebp, %ebp
movq 0x18(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x121d35
movq %rax, %r14
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0xd47ba
movq %rax, %r12
movq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %rax, %rdx
leaq 0x38(%rsp), %rcx
movq 0x30(%rsp), %r8
callq 0x176724
movq %rax, %r13
testq %rax, %rax
je 0x15de29
movq %r15, %rdi
leaq 0x2176ec(%rip), %rsi    # 0x375449
callq 0x1209e4
movq %r15, %rdi
movq %r13, %rsi
callq 0x12097f
movq %r15, %rdi
movl $0x3a, %esi
callq 0x120ba5
movq %r15, %rdi
movq %r14, %rsi
callq 0x120a43
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x121db1
movq 0x38(%rsp), %rax
testq %rax, %rax
je 0x15de6e
movl $0x1, %esi
subq %rax, %rsi
movq %r12, %rdi
callq 0x117950
movq %rax, (%r12)
movq %rdx, 0x8(%r12)
testq %r13, %r13
je 0x15de29
incq %rbp
movq %rbx, %rdi
callq 0x121e78
cmpq %rax, %rbp
jb 0x15dd0f
xorl %ebp, %ebp
cmpq $0x1, %r13
sbbl %ebp, %ebp
movq 0x28(%rsp), %r13
movq 0x8(%rsp), %r12
callq 0x1208f8
movq %rax, %r14
movq %rax, %rdi
movq 0x18(%rsp), %rbx
movq %rbx, %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rcx
callq 0x14ea62
movq %r14, %rdi
callq 0x120d23
leaq 0x1f7b31(%rip), %rsi    # 0x355945
movq %r13, %rdi
movq %rax, %rdx
callq 0x149c3c
movq %r14, %rdi
callq 0x121b03
jmp 0x15de36
xorl %ebp, %ebp
cmpq $0x1, %r13
sbbl %ebp, %ebp
movq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0xd4ef4
movq 0x10(%rsp), %rdi
callq 0xd4ef4
movq %rbx, %rdi
callq 0x121e8b
movq %r15, %rdi
callq 0x121b03
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4a3f5
callq 0x4a463
callq 0x4a3be
callq 0x4a49a
callq 0x4a42c
nop