// File: /workspace/github_c_makefile_star2_O0/richarddurbin[P]hash10x/utils.c
// Function: fgetword
char *fgetword (FILE *f)
{
  int n = 0 ;
  static char *buf = 0 ;
  int bufSize = 64 ;
  char *cp ;
  if (!buf) buf = (char*) myalloc (bufSize) ;
  cp = buf ;
  while (!feof (f) && (*cp = getc (f)))
    if (isgraph(*cp) && !isspace(*cp))
      { ++cp ; ++n ;
	if (n >= bufSize)
	  { bufSize *= 2 ;
	    if (!(buf = (char*) realloc (buf, bufSize)))
	      die ("fgetword realloc failure requesting %d bytes", bufSize) ;
	  }
      }
    else
      { while ((*cp = getc (f)) && (isspace(*cp) || !isgraph(*cp)) && *cp != '\n' && !feof(f)) ;
	ungetc (*cp, f) ;
	break ;
      }
  *cp = 0 ;
  return buf ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movl $0x40, -0x10(%rbp)
cmpq $0x0, 0x6086(%rip)      # 0xe3b8
jne 0x8344
movslq -0x10(%rbp), %rdi
callq 0x8260
movq %rax, 0x6074(%rip)      # 0xe3b8
movq 0x606d(%rip), %rax      # 0xe3b8
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
callq 0x1130
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x19(%rbp)
jne 0x837f
movq -0x8(%rbp), %rdi
callq 0x1230
movq -0x18(%rbp), %rcx
movb %al, (%rcx)
movsbl %al, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x838b
jmp 0x84d3
callq 0x1240
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
je 0x8425
callq 0x1240
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
jne 0x8425
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpl -0x10(%rbp), %eax
jl 0x8420
movl -0x10(%rbp), %eax
shll %eax
movl %eax, -0x10(%rbp)
movq 0x5fc1(%rip), %rdi      # 0xe3b8
movslq -0x10(%rbp), %rsi
callq 0x1190
movq %rax, 0x5fb1(%rip)      # 0xe3b8
cmpq $0x0, %rax
jne 0x841e
movl -0x10(%rbp), %esi
leaq 0x1cdf(%rip), %rdi      # 0xa0f6
movb $0x0, %al
callq 0x8180
jmp 0x8420
jmp 0x84ce
jmp 0x8427
movq -0x8(%rbp), %rdi
callq 0x1230
movq -0x18(%rbp), %rcx
movb %al, (%rcx)
movsbl %al, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x1a(%rbp)
je 0x84ae
callq 0x1240
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
jne 0x8489
callq 0x1240
movq (%rax), %rax
movq -0x18(%rbp), %rcx
movsbl (%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %ecx
andl $0x8000, %ecx           # imm = 0x8000
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x1a(%rbp)
jne 0x84ae
movq -0x18(%rbp), %rax
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0xa, %ecx
movb %al, -0x1a(%rbp)
je 0x84ae
movq -0x8(%rbp), %rdi
callq 0x1130
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, -0x1a(%rbp)
movb -0x1a(%rbp), %al
testb $0x1, %al
jne 0x84b7
jmp 0x84bc
jmp 0x8427
movq -0x18(%rbp), %rax
movsbl (%rax), %edi
movq -0x8(%rbp), %rsi
callq 0x1180
jmp 0x84d3
jmp 0x834f
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
movq 0x5ed7(%rip), %rax      # 0xe3b8
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)