// File: /workspace/github_c_makefile_star2_O3/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 $0x58, %rsp
movq %rdi, %rbx
callq 0x2db2
callq 0x318e
callq 0x31fe
movb $0x1, 0x115(%rbx)
cmpb $0x0, (%rbx)
je 0x6088
callq 0x318e
callq 0x31fe
movb $0x1, 0x115(%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x119(%rbx), %rax
movq %rax, 0x8(%rsp)
leaq 0x1698(%rip), %r15      # 0x7733
leaq 0x18ad(%rip), %r12      # 0x794f
leaq 0x14cb(%rip), %r13      # 0x7574
leaq 0x14cd(%rip), %rbp      # 0x757d
leaq 0x10(%rsp), %r14
movq $0x0, (%rsp)
cmpb $0x1, 0x115(%rbx)
jne 0x62d7
cmpb $0x1, 0x114(%rbx)
jne 0x60e4
callq 0x318e
callq 0x31fe
movb $0x0, 0x114(%rbx)
callq 0x318e
movl $0x1e, %edi
movl $0x2f, %esi
callq 0x3124
movl $0x1, %edi
movl $0x1, %esi
callq 0x31aa
movq %r15, %rdi
xorl %eax, %eax
callq 0x2e58
callq 0x319c
movl 0x10c(%rbx), %edi
addl $-0x9, %edi
movl $0x1, %esi
callq 0x31aa
movq %r12, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x2e58
callq 0x318e
callq 0x318e
movl 0x110(%rbx), %esi
decl %esi
movl $0x1, %edi
callq 0x31aa
cmpb $0x0, 0x119(%rbx)
je 0x617d
movl $0x1e, %edi
movl $0x2f, %esi
callq 0x3124
leaq 0x17dd(%rip), %rdi      # 0x794e
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x2e58
callq 0x319c
movl 0x110(%rbx), %esi
movl $0x1, %edi
movq %rbp, %rdx
leaq 0x1d12(%rip), %rcx      # 0x7ea9
callq 0x42cb
movl 0x110(%rbx), %esi
movl $0x11, %edi
leaq 0x1d00(%rip), %rdx      # 0x7eae
leaq 0x1d07(%rip), %rcx      # 0x7ebc
callq 0x42cb
movl 0x110(%rbx), %esi
movl $0x21, %edi
leaq 0x1ce5(%rip), %rdx      # 0x7eb1
leaq 0x1cf4(%rip), %rcx      # 0x7ec7
callq 0x42cb
movl 0x110(%rbx), %esi
movl $0x31, %edi
leaq 0x1cca(%rip), %rdx      # 0x7eb4
leaq 0x1cc6(%rip), %rcx      # 0x7eb7
callq 0x42cb
movl 0x110(%rbx), %esi
movl $0x41, %edi
leaq 0x1cb7(%rip), %rdx      # 0x7ebf
leaq 0x1cb3(%rip), %rcx      # 0x7ec2
callq 0x42cb
callq 0x319c
movl 0x110(%rbx), %eax
xorl %r14d, %r14d
cmpl $0x6, %eax
jl 0x6299
cmpq $0x24, (%rsp)
ja 0x6299
leaq 0x3a8b(%rip), %rax      # 0x9cc0
movq (%rsp), %rcx
leaq (%rax,%rcx,8), %r13
leaq 0x1(%rcx), %r15
xorl %ebp, %ebp
leaq 0x1(%rbp), %r14
leal 0x3(%rbp), %esi
movl $0x1, %edi
callq 0x31aa
movq (%r13,%rbp,8), %rsi
movq %r12, %rdi
xorl %eax, %eax
callq 0x2e58
callq 0x319c
leaq 0x6(%rbp), %rcx
movslq 0x110(%rbx), %rax
cmpq %rax, %rcx
jge 0x6284
addq %r15, %rbp
cmpq $0x25, %rbp
movq %r14, %rbp
jb 0x6243
leaq 0x14a8(%rip), %r15      # 0x7733
leaq 0x12e2(%rip), %r13      # 0x7574
leaq 0x12e4(%rip), %rbp      # 0x757d
addl $0x5, %r14d
cmpl %eax, %r14d
jge 0x62c6
callq 0x318e
leal -0x2(%r14), %esi
movl $0x1, %edi
callq 0x31aa
callq 0x319c
incl %r14d
cmpl 0x110(%rbx), %r14d
jl 0x62a2
callq 0x2de3
movb $0x0, 0x115(%rbx)
leaq 0x10(%rsp), %r14
movl 0x108(%rbx), %edi
movl $0x40, %edx
movq %r14, %rsi
callq 0x2898
cmpl $0x110001, %eax         # imm = 0x110001
jg 0x630d
leal -0xc(%rax), %ecx
cmpl $0xd, %ecx
ja 0x63de
leaq 0x16e0(%rip), %rdx      # 0x79e4
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
leal -0x111002(%rax), %ecx
cmpl $0x7, %ecx
ja 0x63ae
leaq 0x16f9(%rip), %rdx      # 0x7a1c
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
movq (%rsp), %rax
testq %rax, %rax
je 0x63d4
decq %rax
movq %rax, (%rsp)
jmp 0x63bf
movslq 0x110(%rbx), %rax
movq (%rsp), %rcx
addq %rcx, %rax
addq $-0x5, %rax
cmpq $0x24, %rax
ja 0x63c6
incq %rcx
jmp 0x63a8
movslq 0x110(%rbx), %rax
movq (%rsp), %rsi
leaq (%rsi,%rax,2), %rcx
addq $-0xa, %rcx
movl $0x2a, %edx
subq %rax, %rdx
cmpq $0x25, %rcx
leaq -0x5(%rsi,%rax), %rsi
cmovaeq %rdx, %rsi
movq %rsi, (%rsp)
jmp 0x63bf
movslq 0x110(%rbx), %rax
addq $-0x5, %rax
movq (%rsp), %rcx
subq %rax, %rcx
movl $0x0, %eax
cmovbq %rax, %rcx
movq %rcx, (%rsp)
jmp 0x63bf
cmpl $0x110002, %eax         # imm = 0x110002
jne 0x63c6
callq 0x318e
callq 0x31fe
movb $0x1, 0x115(%rbx)
cmpb $0x1, (%rbx)
jne 0x60bd
jmp 0x6068
movq $0x0, (%rsp)
jmp 0x63c6
cmpl $0x3, %eax
jne 0x63c6
movb $0x1, 0x115(%rbx)
jmp 0x6068
nop