// File: romkatv[P]hcproxy/src/event_loop.cc
// Function: hcproxy::EventLoop::Refresh(hcproxy::EventHandler*)
void EventLoop::Refresh(EventHandler* eh) {
  CHECK(eh);
  CHECK(eh->event_loop_ == this);
  CHECK(std::this_thread::get_id() == loop_.get_id());
  eh->deadline_ = Clock::now() + timeout_;
  if (auto* tail = static_cast<EventHandler*>(expire_.tail())) {
    CHECK(eh->deadline_ >= tail->deadline_);
  }
  expire_.Erase(eh);
  expire_.AddTail(eh);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x10(%rbp), %rax
movb $0x0, -0x31(%rbp)
cmpq $0x0, %rax
je 0x33c81
jmp 0x33d07
leaq 0xb1754(%rip), %rsi     # 0xe53dc
leaq -0x30(%rbp), %rdi
movq %rdi, -0x100(%rbp)
movl $0x83, %edx
movl $0x3, %ecx
callq 0x194b0
movq -0x100(%rbp), %rdi
movb $0x1, -0x31(%rbp)
callq 0x194e0
movq %rax, -0xf8(%rbp)
jmp 0x33cbb
movq -0xf8(%rbp), %rdi
leaq 0xb1752(%rip), %rsi     # 0xe541b
callq 0x19450
movq %rax, -0x108(%rbp)
jmp 0x33cd7
movq -0x108(%rbp), %rdi
leaq 0xb56a6(%rip), %rsi     # 0xe938b
callq 0x19450
movq %rax, -0x110(%rbp)
jmp 0x33cf3
movq -0x110(%rbp), %rsi
leaq -0x45(%rbp), %rdi
callq 0x194f0
jmp 0x33d05
jmp 0x33d07
testb $0x1, -0x31(%rbp)
jne 0x33d0f
jmp 0x33d33
leaq -0x30(%rbp), %rdi
callq 0x19500
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
testb $0x1, -0x31(%rbp)
jne 0x33de7
jmp 0x33df0
movq -0xf0(%rbp), %rcx
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movb $0x0, -0x69(%rbp)
cmpq %rcx, %rax
jne 0x33d50
jmp 0x33dd6
leaq 0xb1685(%rip), %rsi     # 0xe53dc
leaq -0x68(%rbp), %rdi
movq %rdi, -0x120(%rbp)
movl $0x84, %edx
movl $0x3, %ecx
callq 0x194b0
movq -0x120(%rbp), %rdi
movb $0x1, -0x69(%rbp)
callq 0x194e0
movq %rax, -0x118(%rbp)
jmp 0x33d8a
movq -0x118(%rbp), %rdi
leaq 0xb16c4(%rip), %rsi     # 0xe545c
callq 0x1bfe0
movq %rax, -0x128(%rbp)
jmp 0x33da6
movq -0x128(%rbp), %rdi
leaq 0xb55d7(%rip), %rsi     # 0xe938b
callq 0x19450
movq %rax, -0x130(%rbp)
jmp 0x33dc2
movq -0x130(%rbp), %rsi
leaq -0x6a(%rbp), %rdi
callq 0x194f0
jmp 0x33dd4
jmp 0x33dd6
testb $0x1, -0x69(%rbp)
jne 0x33dde
jmp 0x33e10
leaq -0x68(%rbp), %rdi
callq 0x19500
leaq -0x30(%rbp), %rdi
callq 0x19500
jmp 0x34165
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
testb $0x1, -0x69(%rbp)
jne 0x33ef2
jmp 0x33efb
callq 0x342e0
movq -0xf0(%rbp), %rdi
movq %rax, -0x78(%rbp)
addq $0x50, %rdi
callq 0x34310
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x27c50
movb $0x0, -0xa1(%rbp)
testb $0x1, %al
jne 0x33e47
jmp 0x33e4c
jmp 0x33edb
leaq 0xb1589(%rip), %rsi     # 0xe53dc
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x140(%rbp)
movl $0x85, %edx
movl $0x3, %ecx
callq 0x194b0
movq -0x140(%rbp), %rdi
movb $0x1, -0xa1(%rbp)
callq 0x194e0
movq %rax, -0x138(%rbp)
jmp 0x33e8c
movq -0x138(%rbp), %rdi
leaq 0xb1595(%rip), %rsi     # 0xe542f
callq 0x34330
movq %rax, -0x148(%rbp)
jmp 0x33ea8
movq -0x148(%rbp), %rdi
leaq 0xb54d5(%rip), %rsi     # 0xe938b
callq 0x19450
movq %rax, -0x150(%rbp)
jmp 0x33ec4
movq -0x150(%rbp), %rsi
leaq -0xa2(%rbp), %rdi
callq 0x194f0
jmp 0x33ed9
jmp 0x33edb
testb $0x1, -0xa1(%rbp)
jne 0x33ee6
jmp 0x33f1e
leaq -0xa0(%rbp), %rdi
callq 0x19500
leaq -0x68(%rbp), %rdi
callq 0x19500
jmp 0x34165
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
testb $0x1, -0xa1(%rbp)
jne 0x3407f
jmp 0x3408b
callq 0x3ef20
movq -0xf0(%rbp), %rsi
movq %rax, -0xb8(%rbp)
addq $0x48, %rsi
leaq -0xb8(%rbp), %rdi
callq 0x217f0
movq -0xf0(%rbp), %rdi
movq %rax, -0xb0(%rbp)
movq -0x10(%rbp), %rax
movq -0xb0(%rbp), %rcx
movq %rcx, 0x20(%rax)
addq $0x38, %rdi
callq 0x34470
movq %rax, -0x158(%rbp)
cmpq $0x0, %rax
je 0x33f88
movq -0x158(%rbp), %rax
addq $-0x8, %rax
movq %rax, -0x160(%rbp)
jmp 0x33f93
xorl %eax, %eax
movq %rax, -0x160(%rbp)
jmp 0x33f93
movq -0x160(%rbp), %rax
movq %rax, -0xc0(%rbp)
cmpq $0x0, -0xc0(%rbp)
je 0x340ba
movq -0x10(%rbp), %rdi
addq $0x20, %rdi
movq -0xc0(%rbp), %rsi
addq $0x20, %rsi
callq 0x34490
movb $0x0, -0xe1(%rbp)
testb $0x1, %al
jne 0x33fd4
jmp 0x33fd9
jmp 0x34068
leaq 0xb13fc(%rip), %rsi     # 0xe53dc
leaq -0xe0(%rbp), %rdi
movq %rdi, -0x170(%rbp)
movl $0x88, %edx
movl $0x3, %ecx
callq 0x194b0
movq -0x170(%rbp), %rdi
movb $0x1, -0xe1(%rbp)
callq 0x194e0
movq %rax, -0x168(%rbp)
jmp 0x34019
movq -0x168(%rbp), %rdi
leaq 0xb14a6(%rip), %rsi     # 0xe54cd
callq 0x1c2b0
movq %rax, -0x178(%rbp)
jmp 0x34035
movq -0x178(%rbp), %rdi
leaq 0xb5348(%rip), %rsi     # 0xe938b
callq 0x19450
movq %rax, -0x180(%rbp)
jmp 0x34051
movq -0x180(%rbp), %rsi
leaq -0xe2(%rbp), %rdi
callq 0x194f0
jmp 0x34066
jmp 0x34068
testb $0x1, -0xe1(%rbp)
jne 0x34073
jmp 0x340a7
leaq -0xe0(%rbp), %rdi
callq 0x19500
leaq -0xa0(%rbp), %rdi
callq 0x19500
jmp 0x34165
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
testb $0x1, -0xe1(%rbp)
jne 0x340a9
jmp 0x340b5
jmp 0x340ba
leaq -0xe0(%rbp), %rdi
callq 0x19500
jmp 0x34165
movq -0xf0(%rbp), %rax
addq $0x38, %rax
movq %rax, -0x198(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x190(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0x188(%rbp)
je 0x340f8
movq -0x190(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x188(%rbp)
movq -0x198(%rbp), %rdi
movq -0x188(%rbp), %rsi
callq 0x18c40
movq -0xf0(%rbp), %rax
addq $0x38, %rax
movq %rax, -0x1b0(%rbp)
movq -0x10(%rbp), %rcx
movq %rcx, -0x1a8(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movq %rax, -0x1a0(%rbp)
je 0x34149
movq -0x1a8(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x1a0(%rbp)
movq -0x1b0(%rbp), %rdi
movq -0x1a0(%rbp), %rsi
callq 0x18560
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbp
retq
movq -0x40(%rbp), %rdi
callq 0xe1080
nop