// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/gff3_linesorted_out_stream.c
// Function: gt_linesorted_gff3_next_token_pair
static inline void gt_linesorted_gff3_next_token_pair(const char **s1,
                                                      const char **s2,
                                                      char *buf1, size_t len1,
                                                      char *buf2, size_t len2,
                                                      char sep)
{
  const char *tokend1, *tokend2;
  size_t idlength1, idlength2;

  tokend1 = strchr(*s1, sep);
  gt_assert(tokend1 && tokend1 > *s1);
  tokend2 = strchr(*s2, sep);
  gt_assert(tokend2 && tokend2 > *s2);
  idlength1 = GT_MIN((tokend1 - *s1), len1 - 1);
  gt_assert(idlength1 > 0);
  idlength2 = GT_MIN((tokend2 - *s2), len2 - 1);
  gt_assert(idlength2 > 0);
  (void) strncpy(buf1, *s1, idlength1);
  (void) strncpy(buf2, *s2, idlength2);
  buf1[idlength1] = '\0';
  buf2[idlength2] = '\0';
  *s1 = tokend1 + 1;
  *s2 = tokend2 + 1;
}

// Assembly:
subq $0x68, %rsp
movb 0x70(%rsp), %al
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x38(%rsp)
movq 0x60(%rsp), %rax
movq (%rax), %rdi
movsbl 0x70(%rsp), %esi
callq 0x19240
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x176524
movq 0x30(%rsp), %rax
movq 0x60(%rsp), %rcx
cmpq (%rcx), %rax
ja 0x17655c
movq 0x4c5a75(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39fade(%rip), %rsi    # 0x516013
leaq 0x3db868(%rip), %rdx    # 0x551da4
leaq 0x3db87a(%rip), %rcx    # 0x551dbd
leaq 0x3db761(%rip), %r8     # 0x551cab
movl $0x46, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x17655e
movq 0x58(%rsp), %rax
movq (%rax), %rdi
movsbl 0x70(%rsp), %esi
callq 0x19240
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x17658c
movq 0x28(%rsp), %rax
movq 0x58(%rsp), %rcx
cmpq (%rcx), %rax
ja 0x1765c4
movq 0x4c5a0d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39fa76(%rip), %rsi    # 0x516013
leaq 0x3db83c(%rip), %rdx    # 0x551de0
leaq 0x3db812(%rip), %rcx    # 0x551dbd
leaq 0x3db6f9(%rip), %r8     # 0x551cab
movl $0x48, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1765c6
movq 0x30(%rsp), %rax
movq 0x60(%rsp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movq 0x48(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x1765fb
movq 0x30(%rsp), %rax
movq 0x60(%rsp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movq %rax, 0x10(%rsp)
jmp 0x176609
movq 0x48(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
ja 0x176653
movq 0x4c597e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39f9e7(%rip), %rsi    # 0x516013
leaq 0x3db7c6(%rip), %rdx    # 0x551df9
leaq 0x3db783(%rip), %rcx    # 0x551dbd
leaq 0x3db66a(%rip), %r8     # 0x551cab
movl $0x4a, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x176655
movq 0x28(%rsp), %rax
movq 0x58(%rsp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movq 0x38(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x17668a
movq 0x28(%rsp), %rax
movq 0x58(%rsp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movq %rax, 0x8(%rsp)
jmp 0x176698
movq 0x38(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
ja 0x1766e2
movq 0x4c58ef(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39f958(%rip), %rsi    # 0x516013
leaq 0x3db745(%rip), %rdx    # 0x551e07
leaq 0x3db6f4(%rip), %rcx    # 0x551dbd
leaq 0x3db5db(%rip), %r8     # 0x551cab
movl $0x4c, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1766e4
movq 0x50(%rsp), %rdi
movq 0x60(%rsp), %rax
movq (%rax), %rsi
movq 0x20(%rsp), %rdx
callq 0x19330
movq 0x40(%rsp), %rdi
movq 0x58(%rsp), %rax
movq (%rax), %rsi
movq 0x18(%rsp), %rdx
callq 0x19330
movq 0x50(%rsp), %rax
movq 0x20(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x40(%rsp), %rax
movq 0x18(%rsp), %rcx
movb $0x0, (%rax,%rcx)
movq 0x30(%rsp), %rcx
addq $0x1, %rcx
movq 0x60(%rsp), %rax
movq %rcx, (%rax)
movq 0x28(%rsp), %rcx
addq $0x1, %rcx
movq 0x58(%rsp), %rax
movq %rcx, (%rax)
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
nop