// File: romkatv[P]hcproxy/src/forwarder.cc
// Function: hcproxy::(anonymous namespace)::LinkEventHandler::ForwardFromOther(hcproxy::EventLoop*)
bool ForwardFromOther(EventLoop* loop) {
    bool res = false;
    while (true) {
      bool io = false;
      if (other_->readable_) {
        switch (out_.WriteFrom(other_->fd())) {
          case IoStatus::kData:
            io = true;
            break;
          case IoStatus::kEof:
            LOG(INFO) << "[" << other_->fd() << "] (" << other_->name_ << ") read EOF";
            io = true;
            other_->CloseForReading(loop);
            break;
          case IoStatus::kError:
            LOG(INFO) << "[" << other_->fd() << "] (" << other_->name_ << ") read error";
            Terminate(loop);
            return false;
          case IoStatus::kNoOp:
            break;
        }
      }
      if (writable_) {
        switch (out_.ReadTo(fd())) {
          case IoStatus::kData:
            io = true;
            break;
          case IoStatus::kEof:
            LOG(INFO) << "[" << fd() << "] (" << name_ << ") write EOF";
            io = true;
            CloseForWriting(loop);
            break;
          case IoStatus::kError:
            LOG(INFO) << "[" << fd() << "] (" << name_ << ") write error";
            Terminate(loop);
            return false;
          case IoStatus::kNoOp:
            break;
        }
      }
      if (io) {
        res = true;
      } else {
        return res;
      }
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1e0, %rsp            # imm = 0x1E0
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
movb $0x0, -0x19(%rbp)
movq -0xd8(%rbp), %rax
movb $0x0, -0x1a(%rbp)
movq 0x58(%rax), %rax
testb $0x1, 0x50(%rax)
je 0x2fab9
movq -0xd8(%rbp), %rax
movq %rax, %rcx
addq $0x40, %rcx
movq %rcx, -0xe8(%rbp)
movq 0x58(%rax), %rdi
callq 0x1bb70
movq -0xe8(%rbp), %rdi
movl %eax, %esi
callq 0x2fff0
movl %eax, %ecx
movq %rcx, -0xe0(%rbp)
subl $0x3, %eax
ja 0x2fab7
movq -0xe0(%rbp), %rax
leaq 0xb56a5(%rip), %rcx     # 0xe4efc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, -0x1a(%rbp)
jmp 0x2fab7
leaq 0xb570c(%rip), %rsi     # 0xe4f7c
leaq -0x40(%rbp), %rdi
movq %rdi, -0xf8(%rbp)
movl $0xdd, %edx
xorl %ecx, %ecx
callq 0x1c360
movq -0xf8(%rbp), %rdi
callq 0x194e0
movq %rax, %rdi
leaq 0xb4943(%rip), %rsi     # 0xe41e0
callq 0x1bb10
movq %rax, -0xf0(%rbp)
jmp 0x2f8ab
movq -0xd8(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x1bb70
movl %eax, -0xfc(%rbp)
jmp 0x2f8c3
movq -0xf0(%rbp), %rdi
movl -0xfc(%rbp), %eax
movl %eax, -0x50(%rbp)
leaq -0x50(%rbp), %rsi
callq 0x1bad0
movq %rax, -0x108(%rbp)
jmp 0x2f8e5
movq -0x108(%rbp), %rdi
leaq 0xb56f7(%rip), %rsi     # 0xe4fea
callq 0x22810
movq %rax, -0x110(%rbp)
jmp 0x2f901
movq -0x110(%rbp), %rdi
movq -0xd8(%rbp), %rax
movq 0x58(%rax), %rsi
addq $0x38, %rsi
callq 0x1db60
movq %rax, -0x118(%rbp)
jmp 0x2f925
movq -0x118(%rbp), %rdi
leaq 0xb56ed(%rip), %rsi     # 0xe5020
callq 0x1c330
movq %rax, -0x120(%rbp)
jmp 0x2f941
movq -0x120(%rbp), %rsi
leaq -0x51(%rbp), %rdi
callq 0x194f0
leaq -0x40(%rbp), %rdi
callq 0x1c390
movq -0xd8(%rbp), %rax
movb $0x1, -0x1a(%rbp)
movq 0x58(%rax), %rdi
movq -0x18(%rbp), %rsi
callq 0x306e0
jmp 0x2fab7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x1c390
jmp 0x2fda7
leaq 0xb55e4(%rip), %rsi     # 0xe4f7c
leaq -0x78(%rbp), %rdi
movq %rdi, -0x130(%rbp)
movl $0xe2, %edx
xorl %ecx, %ecx
callq 0x1c360
movq -0x130(%rbp), %rdi
callq 0x194e0
movq %rax, %rdi
leaq 0xb481b(%rip), %rsi     # 0xe41e0
callq 0x1bb10
movq %rax, -0x128(%rbp)
jmp 0x2f9d3
movq -0xd8(%rbp), %rax
movq 0x58(%rax), %rdi
callq 0x1bb70
movl %eax, -0x134(%rbp)
jmp 0x2f9eb
movq -0x128(%rbp), %rdi
movl -0x134(%rbp), %eax
movl %eax, -0x7c(%rbp)
leaq -0x7c(%rbp), %rsi
callq 0x1bad0
movq %rax, -0x140(%rbp)
jmp 0x2fa0d
movq -0x140(%rbp), %rdi
leaq 0xb55cf(%rip), %rsi     # 0xe4fea
callq 0x22810
movq %rax, -0x148(%rbp)
jmp 0x2fa29
movq -0x148(%rbp), %rdi
movq -0xd8(%rbp), %rax
movq 0x58(%rax), %rsi
addq $0x38, %rsi
callq 0x1db60
movq %rax, -0x150(%rbp)
jmp 0x2fa4d
movq -0x150(%rbp), %rdi
leaq 0xb55d0(%rip), %rsi     # 0xe502b
callq 0x19530
movq %rax, -0x158(%rbp)
jmp 0x2fa69
movq -0x158(%rbp), %rsi
leaq -0x7d(%rbp), %rdi
callq 0x194f0
leaq -0x78(%rbp), %rdi
callq 0x1c390
movq -0xd8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x2f790
movb $0x0, -0x1(%rbp)
jmp 0x2fd99
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x1c390
jmp 0x2fda7
jmp 0x2fab7
jmp 0x2fab9
movq -0xd8(%rbp), %rax
testb $0x1, 0x51(%rax)
je 0x2fd7e
movq -0xd8(%rbp), %rdi
movq %rdi, %rax
addq $0x40, %rax
movq %rax, -0x168(%rbp)
callq 0x1bb70
movq -0x168(%rbp), %rdi
movl %eax, %esi
callq 0x30a10
movl %eax, %ecx
movq %rcx, -0x160(%rbp)
subl $0x3, %eax
ja 0x2fd7c
movq -0x160(%rbp), %rax
leaq 0xb53fa(%rip), %rcx     # 0xe4f0c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, -0x1a(%rbp)
jmp 0x2fd7c
leaq 0xb5451(%rip), %rsi     # 0xe4f7c
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x178(%rbp)
movl $0xef, %edx
xorl %ecx, %ecx
callq 0x1c360
movq -0x178(%rbp), %rdi
callq 0x194e0
movq %rax, %rdi
leaq 0xb4685(%rip), %rsi     # 0xe41e0
callq 0x1bb10
movq %rax, -0x170(%rbp)
jmp 0x2fb69
movq -0xd8(%rbp), %rdi
callq 0x1bb70
movl %eax, -0x17c(%rbp)
jmp 0x2fb7d
movq -0x170(%rbp), %rdi
movl -0x17c(%rbp), %eax
movl %eax, -0xa4(%rbp)
leaq -0xa4(%rbp), %rsi
callq 0x1bad0
movq %rax, -0x188(%rbp)
jmp 0x2fba5
movq -0x188(%rbp), %rdi
leaq 0xb5437(%rip), %rsi     # 0xe4fea
callq 0x22810
movq %rax, -0x190(%rbp)
jmp 0x2fbc1
movq -0x190(%rbp), %rdi
movq -0xd8(%rbp), %rsi
addq $0x38, %rsi
callq 0x1db60
movq %rax, -0x198(%rbp)
jmp 0x2fbe1
movq -0x198(%rbp), %rdi
leaq 0xb5449(%rip), %rsi     # 0xe5038
callq 0x1f0c0
movq %rax, -0x1a0(%rbp)
jmp 0x2fbfd
movq -0x1a0(%rbp), %rsi
leaq -0xa5(%rbp), %rdi
callq 0x194f0
leaq -0xa0(%rbp), %rdi
callq 0x1c390
movq -0xd8(%rbp), %rdi
movb $0x1, -0x1a(%rbp)
movq -0x18(%rbp), %rsi
callq 0x31260
jmp 0x2fd7c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x1c390
jmp 0x2fda7
leaq 0xb5323(%rip), %rsi     # 0xe4f7c
leaq -0xc8(%rbp), %rdi
movq %rdi, -0x1b0(%rbp)
movl $0xf4, %edx
xorl %ecx, %ecx
callq 0x1c360
movq -0x1b0(%rbp), %rdi
callq 0x194e0
movq %rax, %rdi
leaq 0xb4557(%rip), %rsi     # 0xe41e0
callq 0x1bb10
movq %rax, -0x1a8(%rbp)
jmp 0x2fc97
movq -0xd8(%rbp), %rdi
callq 0x1bb70
movl %eax, -0x1b4(%rbp)
jmp 0x2fcab
movq -0x1a8(%rbp), %rdi
movl -0x1b4(%rbp), %eax
movl %eax, -0xcc(%rbp)
leaq -0xcc(%rbp), %rsi
callq 0x1bad0
movq %rax, -0x1c0(%rbp)
jmp 0x2fcd3
movq -0x1c0(%rbp), %rdi
leaq 0xb5309(%rip), %rsi     # 0xe4fea
callq 0x22810
movq %rax, -0x1c8(%rbp)
jmp 0x2fcef
movq -0x1c8(%rbp), %rdi
movq -0xd8(%rbp), %rsi
addq $0x38, %rsi
callq 0x1db60
movq %rax, -0x1d0(%rbp)
jmp 0x2fd0f
movq -0x1d0(%rbp), %rdi
leaq 0xb5327(%rip), %rsi     # 0xe5044
callq 0x19590
movq %rax, -0x1d8(%rbp)
jmp 0x2fd2b
movq -0x1d8(%rbp), %rsi
leaq -0xcd(%rbp), %rdi
callq 0x194f0
leaq -0xc8(%rbp), %rdi
callq 0x1c390
movq -0xd8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x2f790
movb $0x0, -0x1(%rbp)
jmp 0x2fd99
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0xc8(%rbp), %rdi
callq 0x1c390
jmp 0x2fda7
jmp 0x2fd7c
jmp 0x2fd7e
testb $0x1, -0x1a(%rbp)
je 0x2fd8a
movb $0x1, -0x19(%rbp)
jmp 0x2fd94
movb -0x19(%rbp), %al
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x2fd99
jmp 0x2f7f2
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0xe1080