// File: /workspace/github_c_makefile_star2_O2/moefh[P]hed/src/help.c
// Function: hed_display_help
void hed_display_help(struct hed_editor *editor)
{
  clear_msg();

  struct hed_screen *scr = &editor->screen;
  struct help_state help;
  init_help_state(&help, editor);
  
  reset_color();
  clear_screen();
  scr->redraw_needed = true;
  while (! editor->quit && ! help.quit) {
    if (scr->redraw_needed)
      draw_main_screen(&help);
    process_input(&help);
  }

  reset_color();
  clear_screen();
  scr->redraw_needed = true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
callq 0x2c91
leaq 0x8(%rsp), %rcx
movq %rbx, (%rcx)
movb $0x0, 0x8(%rcx)
andq $0x0, 0x10(%rcx)
leaq 0x543f(%rip), %rax      # 0xb170
movq %rax, 0x18(%rcx)
movq $0x25, 0x20(%rcx)
callq 0x305c
callq 0x30ca
movb $0x1, 0x115(%rbx)
xorl %eax, %eax
pushq $0x1e
popq %rbp
pushq $0x2f
popq %r14
pushq $0x1
popq %r12
leaq 0x40(%rsp), %r15
movq %rbx, 0x30(%rsp)
cmpb $0x0, (%rbx)
jne 0x6062
testb $0x1, %al
jne 0x6062
movq 0x8(%rsp), %r13
cmpb $0x1, 0x115(%rbx)
jne 0x5f9d
cmpb $0x1, 0x114(%r13)
jne 0x5da4
callq 0x305c
callq 0x30ca
movb $0x0, 0x114(%r13)
callq 0x305c
movl %ebp, %edi
movl %r14d, %esi
callq 0x2ff2
movl %r12d, %edi
movl %r12d, %esi
callq 0x3078
leaq 0x196e(%rip), %rdi      # 0x7733
xorl %eax, %eax
callq 0x2d2c
callq 0x306a
movl 0x10c(%r13), %edi
addl $-0x9, %edi
movl %r12d, %esi
callq 0x3078
leaq 0x1b65(%rip), %rdi      # 0x794f
leaq 0x1783(%rip), %rsi      # 0x7574
xorl %eax, %eax
callq 0x2d2c
callq 0x305c
callq 0x305c
movl 0x110(%r13), %esi
decl %esi
movl %r12d, %edi
callq 0x3078
cmpb $0x0, 0x119(%r13)
je 0x5e3f
leaq 0x119(%r13), %r15
movl %ebp, %edi
movl %r14d, %esi
callq 0x2ff2
leaq 0x1b19(%rip), %rdi      # 0x794e
movq %r15, %rsi
xorl %eax, %eax
callq 0x2d2c
callq 0x306a
movl 0x110(%r13), %esi
movl %r12d, %edi
leaq 0x1728(%rip), %rdx      # 0x757d
leaq 0x204d(%rip), %rcx      # 0x7ea9
callq 0x40c5
movl 0x110(%r13), %esi
pushq $0x11
popq %rdi
leaq 0x203c(%rip), %rdx      # 0x7eae
leaq 0x2043(%rip), %rcx      # 0x7ebc
callq 0x40c5
movl 0x110(%r13), %esi
pushq $0x21
popq %rdi
leaq 0x2022(%rip), %rdx      # 0x7eb1
leaq 0x2031(%rip), %rcx      # 0x7ec7
callq 0x40c5
movl 0x110(%r13), %esi
pushq $0x31
popq %rdi
leaq 0x2008(%rip), %rdx      # 0x7eb4
leaq 0x2004(%rip), %rcx      # 0x7eb7
callq 0x40c5
movl 0x110(%r13), %esi
pushq $0x41
popq %rdi
leaq 0x1ff6(%rip), %rdx      # 0x7ebf
leaq 0x1ff2(%rip), %rcx      # 0x7ec2
callq 0x40c5
callq 0x306a
movq 0x18(%rsp), %rbp
movq 0x28(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq (,%rbp,8), %r14
addq 0x20(%rsp), %r14
pushq $0x3
popq %rax
movl %eax, %r15d
xorl %r12d, %r12d
leaq 0x5(%r12), %rcx
movslq 0x110(%r13), %rax
cmpq %rax, %rcx
jge 0x5f52
leaq (%r12,%rbp), %rcx
cmpq 0x38(%rsp), %rcx
jae 0x5f52
movq %r13, %rbx
leaq 0x1(%r12), %r13
leal 0x3(%r12), %esi
pushq $0x1
popq %rdi
callq 0x3078
movq (%r14,%r12,8), %rsi
leaq 0x1a14(%rip), %rdi      # 0x794f
xorl %eax, %eax
callq 0x2d2c
callq 0x306a
incl %r15d
movq %r13, %r12
movq %rbx, %r13
jmp 0x5eff
movq 0x30(%rsp), %rbx
pushq $0x1e
popq %rbp
pushq $0x2f
popq %r14
pushq $0x1
popq %r12
leal 0x2(%r15), %ecx
cmpl %eax, %ecx
jge 0x5f8b
callq 0x305c
movl %r12d, %edi
movl %r15d, %esi
callq 0x3078
callq 0x306a
movl 0x110(%r13), %eax
incl %r15d
jmp 0x5f62
callq 0x2cbb
movb $0x0, 0x115(%r13)
leaq 0x40(%rsp), %r15
movl 0x108(%r13), %edi
movq %r15, %rsi
pushq $0x40
popq %rdx
callq 0x278c
leal -0xc(%rax), %ecx
cmpl $0xd, %ecx
ja 0x5fc7
leaq 0x1a26(%rip), %rdx      # 0x79e4
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
leal -0x111002(%rax), %ecx
cmpl $0x7, %ecx
ja 0x5ff1
leaq 0x1a43(%rip), %rdx      # 0x7a1c
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movq 0x18(%rsp), %rax
testq %rax, %rax
je 0x6059
decq %rax
jmp 0x603d
cmpl $0x3, %eax
je 0x604c
cmpl $0x110002, %eax         # imm = 0x110002
jne 0x6059
callq 0x305c
callq 0x30ca
jmp 0x6042
leaq 0x8(%rsp), %rdi
callq 0x6085
jmp 0x6059
leaq 0x8(%rsp), %rdi
callq 0x60af
jmp 0x6059
movslq 0x110(%r13), %rax
addq $-0x5, %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
movl $0x0, %eax
cmovaeq %rcx, %rax
movq %rax, 0x18(%rsp)
movb $0x1, 0x115(%r13)
jmp 0x6059
movb $0x1, %al
movb %al, 0x115(%r13)
movb %al, 0x10(%rsp)
movb 0x10(%rsp), %al
jmp 0x5d65
callq 0x305c
callq 0x30ca
movb $0x1, 0x115(%rbx)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq