// File: romkatv[P]hcproxy/src/connector.cc
// Function: hcproxy::(anonymous namespace)::ConnectEventHandler::Finish(hcproxy::EventLoop*, int)
void Finish(EventLoop* loop, int err) {
    loop->Remove(this);
    if (err == 0) {
      LOG(INFO) << "[" << fd() << "] connected";
      cb_(fd());
    } else {
      LOG(WARN) << "[" << fd() << "] unable to connect: " << Errno(err);
      CHECK(close(fd()) == 0) << Errno();
      cb_(-1);
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0xb0(%rbp)
movq -0x10(%rbp), %rdi
callq 0x32fb0
cmpl $0x0, -0x14(%rbp)
jne 0x1e9fa
leaq 0xc5d8e(%rip), %rsi     # 0xe4699
leaq -0x38(%rbp), %rdi
movq %rdi, -0xc0(%rbp)
movl $0x44, %edx
xorl %ecx, %ecx
callq 0x1c360
movq -0xc0(%rbp), %rdi
callq 0x194e0
movq %rax, %rdi
leaq 0xc58a8(%rip), %rsi     # 0xe41e0
callq 0x1bb10
movq %rax, -0xb8(%rbp)
jmp 0x1e946
movq -0xb0(%rbp), %rdi
callq 0x1bb70
movl %eax, -0xc4(%rbp)
jmp 0x1e95a
movq -0xb8(%rbp), %rdi
movl -0xc4(%rbp), %eax
movl %eax, -0x48(%rbp)
leaq -0x48(%rbp), %rsi
callq 0x1bad0
movq %rax, -0xd0(%rbp)
jmp 0x1e97c
movq -0xd0(%rbp), %rdi
leaq 0xc5da8(%rip), %rsi     # 0xe4732
callq 0x1f0c0
movq %rax, -0xd8(%rbp)
jmp 0x1e998
movq -0xd8(%rbp), %rsi
leaq -0x49(%rbp), %rdi
callq 0x194f0
jmp 0x1e9aa
leaq -0x38(%rbp), %rdi
callq 0x1c390
movq -0xb0(%rbp), %rdi
movq %rdi, %rax
addq $0x38, %rax
movq %rax, -0xe0(%rbp)
callq 0x1bb70
movq -0xe0(%rbp), %rdi
movl %eax, %esi
callq 0x1efa0
jmp 0x1ec08
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x1c390
jmp 0x1ec11
leaq 0xc5c98(%rip), %rsi     # 0xe4699
leaq -0x70(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
movl $0x47, %edx
movl $0x1, %ecx
callq 0x1bb40
movq -0xf0(%rbp), %rdi
callq 0x194e0
movq %rax, %rdi
leaq 0xc57af(%rip), %rsi     # 0xe41e0
callq 0x1bb10
movq %rax, -0xe8(%rbp)
jmp 0x1ea3f
movq -0xb0(%rbp), %rdi
callq 0x1bb70
movl %eax, -0xf4(%rbp)
jmp 0x1ea53
movq -0xe8(%rbp), %rdi
movl -0xf4(%rbp), %eax
movl %eax, -0x74(%rbp)
leaq -0x74(%rbp), %rsi
callq 0x1bad0
movq %rax, -0x100(%rbp)
jmp 0x1ea75
movq -0x100(%rbp), %rdi
leaq 0xc5cbb(%rip), %rsi     # 0xe473e
callq 0x1f0f0
movq %rax, -0x108(%rbp)
jmp 0x1ea91
movl -0x14(%rbp), %edi
callq 0x1bb90
movl %eax, -0x10c(%rbp)
jmp 0x1eaa1
movq -0x108(%rbp), %rdi
movl -0x10c(%rbp), %eax
movl %eax, -0x78(%rbp)
leaq -0x78(%rbp), %rsi
callq 0x1ba60
movq %rax, -0x118(%rbp)
jmp 0x1eac3
movq -0x118(%rbp), %rsi
leaq -0x79(%rbp), %rdi
callq 0x194f0
jmp 0x1ead5
leaq -0x70(%rbp), %rdi
callq 0x1bbb0
movq -0xb0(%rbp), %rdi
callq 0x1bb70
movl %eax, %edi
callq 0x15140
movb $0x0, -0xa1(%rbp)
cmpl $0x0, %eax
jne 0x1eb02
jmp 0x1eb9e
leaq 0xc5b90(%rip), %rsi     # 0xe4699
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x128(%rbp)
movl $0x48, %edx
movl $0x3, %ecx
callq 0x194b0
movq -0x128(%rbp), %rdi
movb $0x1, -0xa1(%rbp)
callq 0x194e0
movq %rax, %rdi
leaq 0xc5c11(%rip), %rsi     # 0xe4754
callq 0x19650
movq %rax, -0x120(%rbp)
jmp 0x1eb51
movq -0x120(%rbp), %rdi
leaq 0xca82c(%rip), %rsi     # 0xe938b
callq 0x19450
movq %rax, -0x130(%rbp)
jmp 0x1eb6d
callq 0x1c0c0
movq -0x130(%rbp), %rdi
callq 0x1c050
movq %rax, -0x138(%rbp)
jmp 0x1eb87
movq -0x138(%rbp), %rsi
leaq -0xa4(%rbp), %rdi
callq 0x194f0
jmp 0x1eb9c
jmp 0x1eb9e
testb $0x1, -0xa1(%rbp)
jne 0x1eba9
jmp 0x1ebe3
leaq -0xa0(%rbp), %rdi
callq 0x19500
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x1bbb0
jmp 0x1ec11
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
testb $0x1, -0xa1(%rbp)
jne 0x1ebfa
jmp 0x1ec06
movq -0xb0(%rbp), %rdi
addq $0x38, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x1efa0
jmp 0x1ec08
leaq -0xa0(%rbp), %rdi
callq 0x19500
jmp 0x1ec11
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0xe1080
nopw (%rax,%rax)