// File: /workspace/github_cpp_makefile_star2_O2/romkatv[P]hcproxy/src/parser.cc
// Function: hcproxy::(anonymous namespace)::ParseEventHandler::OnEvent(hcproxy::EventLoop*, int)
void OnEvent(EventLoop* loop, int events) override {
    if (HasBits(events, EPOLLERR)) {
      LOG(WARN) << "[" << fd() << "] error reading request data: " << Errno(SockError(fd()));
      Finish(loop, "");
    } else if (HasBits(events, EPOLLIN)) {
      if (std::optional<std::string_view> host_port = Read()) {
        Finish(loop, *host_port);
      }
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, %r14
testb $0x8, %dl
jne 0x18d08
testb $0x1, %dl
je 0x18ebe
movq %rbx, 0x20(%rsp)
movq 0x70(%r14), %r15
movq 0x58(%r14), %rbx
movq 0x60(%r14), %rdx
movq %rdx, %rax
subq %rbx, %rax
cmpq %rax, %r15
jae 0x18fc5
pushq $0x8
popq %r13
addq %rbx, %r15
movl 0x18(%r14), %edi
subq %r15, %rdx
movq %r15, %rsi
callq 0x15250
movq %rax, %rbp
testl %ebp, %ebp
js 0x18d80
movq 0x58(%r14), %rbx
movq 0x70(%r14), %r15
movl %ebp, %r12d
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
cmpq $0x7, %r15
ja 0x18c76
movq %r13, %rdx
subq %r15, %rdx
cmpq %r12, %rdx
cmovaeq %r12, %rdx
leaq (%rbx,%r15), %rdi
leaq 0xb6570(%rip), %rax     # 0xcf1d5
leaq (%rax,%r15), %rsi
callq 0x15500
testl %eax, %eax
jne 0x18e40
addq %r12, %r15
movq %r15, 0x70(%r14)
movq %r15, 0x38(%rsp)
movq %rbx, 0x40(%rsp)
cmpq $0x4, %r15
jb 0x18c9c
cmpl $0xa0d0a0d, -0x4(%rbx,%r15) # imm = 0xA0D0A0D
je 0x18ecd
testl %ebp, %ebp
je 0x18d99
movq 0x60(%r14), %rdx
movq %rdx, %rax
subq %rbx, %rax
cmpq %rax, %r15
jne 0x18c18
leaq 0xb6402(%rip), %rsi     # 0xcf0c0
movq %rsp, %r15
pushq $0x6d
popq %rdx
pushq $0x1
popq %rcx
movq %r15, %rdi
callq 0x1f4c8
movq 0x18(%r15), %rdi
leaq 0xb6469(%rip), %rsi     # 0xcf143
callq 0x8b1d0
movl 0x18(%r14), %esi
movq 0x18(%rsp), %rdi
callq 0x8b570
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %rdi
leaq 0xb64f5(%rip), %rsi     # 0xcf1f3
callq 0x8b1d0
jmp 0x18e8c
leaq 0xb63b1(%rip), %rsi     # 0xcf0c0
movq %rsp, %r15
pushq $0x32
popq %rdx
pushq $0x1
popq %rcx
movq %r15, %rdi
callq 0x1f4c8
movq 0x18(%r15), %rdi
leaq 0xb6418(%rip), %rsi     # 0xcf143
callq 0x8b1d0
movl 0x18(%r14), %esi
movq 0x18(%rsp), %rdi
callq 0x8b570
movq 0x18(%rsp), %rdi
leaq 0xb63fb(%rip), %rsi     # 0xcf145
callq 0x8b1d0
movl 0x18(%r14), %edi
callq 0x1f3fc
movq 0x18(%rsp), %rdi
movl %eax, %esi
callq 0x1f61a
movq %rsp, %rdi
callq 0x193e6
leaq 0xb6ee1(%rip), %rcx     # 0xcfc54
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
jmp 0x18eb9
callq 0x15640
cmpl $0xb, (%rax)
jne 0x18dea
movb $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rbx
jmp 0x18ea3
leaq 0xb6320(%rip), %rsi     # 0xcf0c0
movq %rsp, %r15
pushq $0x69
popq %rdx
pushq $0x1
popq %rcx
movq %r15, %rdi
callq 0x1f4c8
movq 0x18(%r15), %rdi
leaq 0xb6387(%rip), %rsi     # 0xcf143
callq 0x8b1d0
movl 0x18(%r14), %esi
movq 0x18(%rsp), %rdi
callq 0x8b570
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %rdi
leaq 0xb63fe(%rip), %rsi     # 0xcf1de
callq 0x8b1d0
jmp 0x18e8c
leaq 0xb62cf(%rip), %rsi     # 0xcf0c0
movq %rsp, %r15
pushq $0x51
popq %rdx
pushq $0x1
popq %rcx
movq %r15, %rdi
callq 0x1f4c8
movq 0x18(%r15), %rdi
leaq 0xb6336(%rip), %rsi     # 0xcf143
callq 0x8b1d0
movq 0x20(%rsp), %rbx
movl 0x18(%r14), %esi
movq 0x18(%rsp), %rdi
callq 0x8b570
movq 0x18(%rsp), %rdi
leaq 0xb634b(%rip), %rsi     # 0xcf17c
callq 0x8b1d0
movq %rsp, %rdi
callq 0x19465
jmp 0x18e8c
leaq 0xb6279(%rip), %rsi     # 0xcf0c0
movq %rsp, %r15
pushq $0x58
popq %rdx
pushq $0x1
popq %rcx
movq %r15, %rdi
callq 0x1f4c8
movq 0x18(%r15), %rdi
leaq 0xb62e0(%rip), %rsi     # 0xcf143
callq 0x8b1d0
movq 0x20(%rsp), %rbx
movl 0x18(%r14), %esi
movq 0x18(%rsp), %rdi
callq 0x8b570
movq 0x18(%rsp), %rdi
leaq 0xb630f(%rip), %rsi     # 0xcf196
callq 0x8b1d0
movq %rsp, %rdi
callq 0x193e6
leaq 0xb6db9(%rip), %rsi     # 0xcfc54
movq %rsp, %rdi
callq 0x19476
cmpb $0x1, 0x10(%rsp)
jne 0x18ebe
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x19114
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb62db(%rip), %rsi     # 0xcf1af
leaq 0x38(%rsp), %r15
pushq $0x8
popq %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0x194bc
leaq -0x8(%rax), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x19486
movq %rax, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
leaq 0xb61b8(%rip), %rsi     # 0xcf0c0
movq %rsp, %r15
testq %rax, %rax
je 0x18f68
pushq $0x64
popq %rdx
movq %r15, %rdi
xorl %ecx, %ecx
callq 0x1f4c8
movq 0x18(%r15), %rdi
leaq 0xb621b(%rip), %rsi     # 0xcf143
callq 0x8b1d0
movq 0x20(%rsp), %rbx
movl 0x18(%r14), %esi
movq 0x18(%rsp), %rdi
callq 0x8b570
movq 0x18(%rsp), %rdi
leaq 0xb6287(%rip), %rsi     # 0xcf1d3
callq 0x8b1d0
movq %rsp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x194e8
movq %rsp, %rdi
callq 0x19502
jmp 0x18fb2
pushq $0x62
popq %rdx
pushq $0x1
popq %rcx
movq %r15, %rdi
callq 0x1f4c8
movq 0x18(%r15), %rdi
leaq 0xb61c2(%rip), %rsi     # 0xcf143
callq 0x8b1d0
movq 0x20(%rsp), %rbx
movl 0x18(%r14), %esi
movq 0x18(%rsp), %rdi
callq 0x8b570
movq 0x18(%rsp), %rdi
leaq 0xb620d(%rip), %rsi     # 0xcf1b2
callq 0x8b1d0
movq %rsp, %rdi
callq 0x193e6
movups 0x28(%rsp), %xmm0
movaps %xmm0, (%rsp)
movb $0x1, 0x10(%rsp)
jmp 0x18ea3
leaq 0xb60f4(%rip), %rsi     # 0xcf0c0
movq %rsp, %rbx
pushq $0x4c
popq %rdx
pushq $0x3
popq %rcx
movq %rbx, %rdi
callq 0x1f4c8
movq 0x18(%rbx), %rdi
leaq 0xb617c(%rip), %rsi     # 0xcf164
callq 0x8b1d0
movq 0x18(%rsp), %rdi
leaq 0xbb2d2(%rip), %rsi     # 0xd42cb
callq 0x8b1d0
jmp 0x19023
jmp 0x1902f
jmp 0x1900a
jmp 0x1902f
jmp 0x1902f
jmp 0x1902f
movq %rax, %rbx
movq %rsp, %rdi
callq 0x19502
jmp 0x1903a
jmp 0x1902f
jmp 0x1902f
jmp 0x1902f
jmp 0x1902f
jmp 0x1902f
jmp 0x1902f
movq %rsp, %rdi
callq 0x189a6
jmp 0x1902f
jmp 0x1902f
movq %rax, %rbx
movq %rsp, %rdi
callq 0x193e6
movq %rbx, %rdi
callq 0xcc660