// File: /workspace/github_c_makefile_star2_O0/ThomasMadappattu[P]Sandmacs/basic.c
// Function: gotoeop
int gotoeop (int f, int n)
{
  int suc;			/* success of last backchar */

  if (n < 0)			/* the other way.. */
    return (gotobop (f, -n));

  while (n-- > 0)
    {				/* for each one asked for */
      /* first scan forward until we are in a word */
      suc = forwchar (FALSE, 1);
      while (!inword () && suc)
	suc = forwchar (FALSE, 1);
      curwp->w_doto = 0;	/* and go to the B-O-Line */
      if (suc)			/* of next line if not at EOF */
	curwp->w_dotp = lforw (curwp->w_dotp);

      /* and scan forword until hit a <NL><NL> or <NL><TAB> or a <NL><SPACE> */
      while (curwp->w_dotp != curbp->b_linep)
	{
	  if (llength (curwp->w_dotp) != 0 &&
	      lgetc (curwp->w_dotp, curwp->w_doto) != TAB &&
	      lgetc (curwp->w_dotp, curwp->w_doto) != ' ')
	    curwp->w_dotp = lforw (curwp->w_dotp);
	  else
	    break;
	}

      /* and then backward until we are in a word */
      suc = backchar (FALSE, 1);
      while (suc && !inword ())
	{
	  suc = backchar (FALSE, 1);
	}
      curwp->w_doto = llength (curwp->w_dotp); /* and to the EOL */
    }
  curwp->w_flag |= WFMOVE;	/* force screen update */
  return (TRUE);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
jge 0x2b29
movl -0x8(%rbp), %edi
xorl %esi, %esi
subl -0xc(%rbp), %esi
callq 0x2940
movl %eax, -0x4(%rbp)
jmp 0x2cf8
jmp 0x2b2b
movl -0xc(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0xc(%rbp)
cmpl $0x0, %eax
jle 0x2cdd
xorl %edi, %edi
movl $0x1, %esi
callq 0x24f0
movl %eax, -0x10(%rbp)
movb $0x0, %al
callq 0xbe70
movl %eax, %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x11(%rbp)
jne 0x2b6b
cmpl $0x0, -0x10(%rbp)
setne %al
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
testb $0x1, %al
jne 0x2b74
jmp 0x2b85
xorl %edi, %edi
movl $0x1, %esi
callq 0x24f0
movl %eax, -0x10(%rbp)
jmp 0x2b4e
leaq 0xecec(%rip), %rax      # 0x11878
movq (%rax), %rax
movq $0x0, 0x20(%rax)
cmpl $0x0, -0x10(%rbp)
je 0x2bbc
leaq 0xecd4(%rip), %rax      # 0x11878
movq (%rax), %rax
movq 0x18(%rax), %rax
movq (%rax), %rcx
leaq 0xecc3(%rip), %rax      # 0x11878
movq (%rax), %rax
movq %rcx, 0x18(%rax)
jmp 0x2bbe
leaq 0xecb3(%rip), %rax      # 0x11878
movq (%rax), %rax
movq 0x18(%rax), %rax
leaq 0xec95(%rip), %rcx      # 0x11868
movq (%rcx), %rcx
cmpq 0x28(%rcx), %rax
je 0x2c72
leaq 0xec91(%rip), %rax      # 0x11878
movq (%rax), %rax
movq 0x18(%rax), %rax
cmpl $0x0, 0x14(%rax)
je 0x2c6b
leaq 0xec7d(%rip), %rax      # 0x11878
movq (%rax), %rax
movq 0x18(%rax), %rax
leaq 0xec6f(%rip), %rcx      # 0x11878
movq (%rcx), %rcx
movq 0x20(%rcx), %rcx
movsbl 0x18(%rax,%rcx), %eax
andl $0xff, %eax
cmpl $0x9, %eax
je 0x2c6b
leaq 0xec52(%rip), %rax      # 0x11878
movq (%rax), %rax
movq 0x18(%rax), %rax
leaq 0xec44(%rip), %rcx      # 0x11878
movq (%rcx), %rcx
movq 0x20(%rcx), %rcx
movsbl 0x18(%rax,%rcx), %eax
andl $0xff, %eax
cmpl $0x20, %eax
je 0x2c6b
leaq 0xec27(%rip), %rax      # 0x11878
movq (%rax), %rax
movq 0x18(%rax), %rax
movq (%rax), %rcx
leaq 0xec16(%rip), %rax      # 0x11878
movq (%rax), %rax
movq %rcx, 0x18(%rax)
jmp 0x2c6d
jmp 0x2c72
jmp 0x2bbe
xorl %edi, %edi
movl $0x1, %esi
callq 0x2400
movl %eax, -0x10(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x10(%rbp)
movb %al, -0x12(%rbp)
je 0x2c9e
movb $0x0, %al
callq 0xbe70
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
movb %al, -0x12(%rbp)
movb -0x12(%rbp), %al
testb $0x1, %al
jne 0x2ca7
jmp 0x2cb8
xorl %edi, %edi
movl $0x1, %esi
callq 0x2400
movl %eax, -0x10(%rbp)
jmp 0x2c81
leaq 0xebb9(%rip), %rax      # 0x11878
movq (%rax), %rax
movq 0x18(%rax), %rax
movslq 0x14(%rax), %rcx
leaq 0xeba7(%rip), %rax      # 0x11878
movq (%rax), %rax
movq %rcx, 0x20(%rax)
jmp 0x2b2b
leaq 0xeb94(%rip), %rax      # 0x11878
movq (%rax), %rax
movsbl 0x3b(%rax), %ecx
orl $0x2, %ecx
movb %cl, 0x3b(%rax)
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)