// File: romkatv[P]hcproxy/src/parser.cc
// Function: hcproxy::Parser::ParseRequest(int, std::function<void (std::basic_string_view<char, std::char_traits<char>>)>)
void Parser::ParseRequest(int fd, Callback cb) {
  CHECK(fd >= 0);
  CHECK(cb);
  auto* eh = new ParseEventHandler(opt_, fd, std::move(cb));
  event_loop_.ScheduleOrRun([this, eh]() { event_loop_.Add(eh, EPOLLIN); });
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdx, -0xe8(%rbp)
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movl -0xc(%rbp), %eax
movb $0x0, -0x39(%rbp)
cmpl $0x0, %eax
jl 0x19869
jmp 0x198ef
leaq 0xca8ed(%rip), %rsi     # 0xe415d
leaq -0x38(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
movl $0x7e, %edx
movl $0x3, %ecx
callq 0x194b0
movq -0xf8(%rbp), %rdi
movb $0x1, -0x39(%rbp)
callq 0x194e0
movq %rax, -0xf0(%rbp)
jmp 0x198a3
movq -0xf0(%rbp), %rdi
leaq 0xcb6f2(%rip), %rsi     # 0xe4fa3
callq 0x1ae20
movq %rax, -0x100(%rbp)
jmp 0x198bf
movq -0x100(%rbp), %rdi
leaq 0xcfabe(%rip), %rsi     # 0xe938b
callq 0x19450
movq %rax, -0x108(%rbp)
jmp 0x198db
movq -0x108(%rbp), %rsi
leaq -0x4d(%rbp), %rdi
callq 0x194f0
jmp 0x198ed
jmp 0x198ef
testb $0x1, -0x39(%rbp)
jne 0x198f7
jmp 0x1991b
leaq -0x38(%rbp), %rdi
callq 0x19500
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
testb $0x1, -0x39(%rbp)
jne 0x199cd
jmp 0x199d6
movq -0xe8(%rbp), %rdi
callq 0x1ae50
movb $0x0, -0x71(%rbp)
testb $0x1, %al
jne 0x19931
jmp 0x19936
jmp 0x199bc
leaq 0xca820(%rip), %rsi     # 0xe415d
leaq -0x70(%rbp), %rdi
movq %rdi, -0x118(%rbp)
movl $0x7f, %edx
movl $0x3, %ecx
callq 0x194b0
movq -0x118(%rbp), %rdi
movb $0x1, -0x71(%rbp)
callq 0x194e0
movq %rax, -0x110(%rbp)
jmp 0x19970
movq -0x110(%rbp), %rdi
leaq 0xca7ed(%rip), %rsi     # 0xe416b
callq 0x19450
movq %rax, -0x120(%rbp)
jmp 0x1998c
movq -0x120(%rbp), %rdi
leaq 0xcf9f1(%rip), %rsi     # 0xe938b
callq 0x19450
movq %rax, -0x128(%rbp)
jmp 0x199a8
movq -0x128(%rbp), %rsi
leaq -0x72(%rbp), %rdi
callq 0x194f0
jmp 0x199ba
jmp 0x199bc
testb $0x1, -0x71(%rbp)
jne 0x199c4
jmp 0x199f6
leaq -0x70(%rbp), %rdi
callq 0x19500
leaq -0x38(%rbp), %rdi
callq 0x19500
jmp 0x19b39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
testb $0x1, -0x71(%rbp)
jne 0x19ae0
jmp 0x19ae9
movl $0x78, %edi
callq 0x35bb0
movq -0xe8(%rbp), %rsi
movq %rax, -0x140(%rbp)
movq %rax, -0x148(%rbp)
movb $0x1, -0xa1(%rbp)
movl -0xc(%rbp), %eax
movl %eax, -0x134(%rbp)
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x1ae70
movq -0x140(%rbp), %rdi
movq -0xe0(%rbp), %rsi
movl -0x134(%rbp), %edx
movq -0x130(%rbp), %rcx
callq 0x19b50
jmp 0x19a5a
movb $0x0, -0xa1(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x1af00
movq -0x148(%rbp), %rcx
movq -0xe0(%rbp), %rax
movq %rcx, -0x80(%rbp)
movq 0x10(%rax), %rcx
movq %rcx, -0x158(%rbp)
movq %rax, -0xd8(%rbp)
movq -0x80(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq -0xc8(%rbp), %rdi
movq %rdi, -0x150(%rbp)
leaq -0xd8(%rbp), %rsi
callq 0x19c20
movq -0x158(%rbp), %rdi
movq -0x150(%rbp), %rsi
callq 0x33990
jmp 0x19acb
leaq -0xc8(%rbp), %rdi
callq 0x1af20
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
leaq -0x70(%rbp), %rdi
callq 0x19500
jmp 0x19b39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x1af00
testb $0x1, -0xa1(%rbp)
jne 0x19b0e
jmp 0x19b1f
movq -0x148(%rbp), %rdi
movl $0x78, %esi
callq 0x34c20
jmp 0x19b39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x1af20
movq -0x48(%rbp), %rdi
callq 0xe1080
nopw %cs:(%rax,%rax)