// File: /workspace/github_c_makefile_star2_O1/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 0x2e12
callq 0x31ee
callq 0x325e
movb $0x1, 0x115(%rbx)
cmpb $0x0, (%rbx)
je 0x624c
callq 0x31ee
callq 0x325e
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)
xorl %eax, %eax
leaq 0x14b2(%rip), %r15      # 0x7713
leaq 0x12e9(%rip), %r13      # 0x7551
leaq 0x12eb(%rip), %rbp      # 0x755a
leaq 0x10(%rsp), %r12
xorl %r14d, %r14d
movq %rax, (%rsp)
cmpb $0x1, 0x115(%rbx)
jne 0x6490
cmpb $0x1, 0x114(%rbx)
jne 0x62a2
callq 0x31ee
callq 0x325e
movb $0x0, 0x114(%rbx)
callq 0x31ee
movl $0x1e, %edi
movl $0x2f, %esi
callq 0x3184
movl $0x1, %edi
movl $0x1, %esi
callq 0x320a
movq %r15, %rdi
xorl %eax, %eax
callq 0x2ebb
callq 0x31fc
movl 0x10c(%rbx), %edi
addl $-0x9, %edi
movl $0x1, %esi
callq 0x320a
leaq 0x163f(%rip), %rdi      # 0x792d
movq %r13, %rsi
xorl %eax, %eax
callq 0x2ebb
callq 0x31ee
callq 0x31ee
movl 0x110(%rbx), %esi
decl %esi
movl $0x1, %edi
callq 0x320a
cmpb $0x0, 0x119(%rbx)
je 0x633f
movl $0x1e, %edi
movl $0x2f, %esi
callq 0x3184
leaq 0x15f9(%rip), %rdi      # 0x792c
movq 0x8(%rsp), %rsi
xorl %eax, %eax
callq 0x2ebb
callq 0x31fc
movl 0x110(%rbx), %esi
movl $0x1, %edi
movq %rbp, %rdx
leaq 0x1b30(%rip), %rcx      # 0x7e89
callq 0x43c9
movl 0x110(%rbx), %esi
movl $0x11, %edi
leaq 0x1b1e(%rip), %rdx      # 0x7e8e
leaq 0x1b25(%rip), %rcx      # 0x7e9c
callq 0x43c9
movl 0x110(%rbx), %esi
movl $0x21, %edi
leaq 0x1b03(%rip), %rdx      # 0x7e91
leaq 0x1b12(%rip), %rcx      # 0x7ea7
callq 0x43c9
movl 0x110(%rbx), %esi
movl $0x31, %edi
leaq 0x1ae8(%rip), %rdx      # 0x7e94
leaq 0x1ae4(%rip), %rcx      # 0x7e97
callq 0x43c9
movl 0x110(%rbx), %esi
movl $0x41, %edi
leaq 0x1ad5(%rip), %rdx      # 0x7e9f
leaq 0x1ad1(%rip), %rcx      # 0x7ea2
callq 0x43c9
callq 0x31fc
xorl %r12d, %r12d
cmpl $0x6, 0x110(%rbx)
jl 0x6454
movq %r15, %rbp
leaq 0x38cf(%rip), %rax      # 0x9cc0
leaq (%rax,%r14,8), %r15
xorl %r13d, %r13d
leaq (%r14,%r13), %rax
cmpq $0x24, %rax
ja 0x6440
leaq 0x1(%r13), %r12
leal 0x3(%r13), %esi
movl $0x1, %edi
callq 0x320a
movq (%r15,%r13,8), %rsi
leaq 0x150e(%rip), %rdi      # 0x792d
xorl %eax, %eax
callq 0x2ebb
callq 0x31fc
movslq 0x110(%rbx), %rax
addq $0x6, %r13
cmpq %rax, %r13
movq %r12, %r13
jl 0x63f8
jmp 0x6443
movq %r13, %r12
movq %rbp, %r15
leaq 0x1104(%rip), %r13      # 0x7551
leaq 0x1106(%rip), %rbp      # 0x755a
addl $0x5, %r12d
cmpl 0x110(%rbx), %r12d
jge 0x647f
callq 0x31ee
leal -0x2(%r12), %esi
movl $0x1, %edi
callq 0x320a
callq 0x31fc
incl %r12d
jmp 0x6458
callq 0x2e43
movb $0x0, 0x115(%rbx)
leaq 0x10(%rsp), %r12
movl 0x108(%rbx), %edi
movl $0x40, %edx
movq %r12, %rsi
callq 0x2890
cmpl $0x110001, %eax         # imm = 0x110001
jg 0x64c8
movb $0x1, %cl
leal -0xc(%rax), %edx
cmpl $0xd, %edx
ja 0x6585
leaq 0x1505(%rip), %rsi      # 0x79c4
movslq (%rsi,%rdx,4), %rax
addq %rsi, %rax
jmpq *%rax
leal -0x111002(%rax), %ecx
cmpl $0x7, %ecx
ja 0x6549
leaq 0x1522(%rip), %rdx      # 0x79fc
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
jmpq *%rax
testq %r14, %r14
je 0x657f
decq %r14
jmp 0x655a
movslq 0x110(%rbx), %rax
addq %r14, %rax
addq $-0x5, %rax
cmpq $0x24, %rax
ja 0x657f
incq %r14
jmp 0x655a
movslq 0x110(%rbx), %rax
leaq (%r14,%rax,2), %rcx
addq $-0xa, %rcx
movl $0x2a, %edx
subq %rax, %rdx
cmpq $0x25, %rcx
leaq -0x5(%r14,%rax), %r14
cmovaeq %rdx, %r14
jmp 0x655a
movslq 0x110(%rbx), %rax
addq $-0x5, %rax
subq %rax, %r14
movl $0x0, %eax
cmovbq %rax, %r14
jmp 0x655a
cmpl $0x110002, %eax         # imm = 0x110002
jne 0x657f
callq 0x31ee
callq 0x325e
movq (%rsp), %rax
movl %eax, %ecx
movb $0x1, 0x115(%rbx)
movl %ecx, %eax
cmpb $0x0, (%rbx)
jne 0x622c
testb $0x1, %al
je 0x6277
jmp 0x622c
movq (%rsp), %rax
jmp 0x6569
cmpl $0x3, %eax
movq (%rsp), %rax
je 0x6560
jmp 0x6569