// File: shaovie[P]reactor/src/poll_sync_opt.cpp
// Function: poll_sync_opt::push(poll_sync_opt::opt_arg const&)
void poll_sync_opt::push(const poll_sync_opt::opt_arg &arg) {
    this->mtx.lock();
    this->writeq->push_back(arg);
    this->mtx.unlock();

    int expected = 0;
    if (!this->notified.compare_exchange_strong(expected, 1))
        return ;
    int64_t v = 1;
    int ret = 0;
    do {
        ret = ::write(this->efd, (void *)&v, sizeof(v));
    } while (ret == -1 && errno == EINTR);
}

// Assembly:
subq $0x128, %rsp            # imm = 0x128
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
movq 0xe0(%rsp), %rdi
movq %rdi, 0x80(%rsp)
addq $0x38, %rdi
movq %rdi, 0x78(%rsp)
callq 0x15f40
movq 0x80(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0xd8(%rsp), %rsi
callq 0x14090
movq 0x78(%rsp), %rdi
callq 0x157a0
movq 0x80(%rsp), %rax
movl $0x0, 0xd4(%rsp)
addq $0x60, %rax
movq %rax, 0xf8(%rsp)
leaq 0xd4(%rsp), %rax
movq %rax, 0xf0(%rsp)
movl $0x1, 0xec(%rsp)
movl $0x5, 0xe8(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x90(%rsp)
movl 0xec(%rsp), %eax
movl %eax, 0x98(%rsp)
movl 0xe8(%rsp), %edi
movl %edi, 0x9c(%rsp)
callq 0x15bf0
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
movl 0x98(%rsp), %edx
movl 0x9c(%rsp), %ecx
movq %rdi, 0x120(%rsp)
movq %rsi, 0x118(%rsp)
movl %edx, 0x114(%rsp)
movl %ecx, 0x110(%rsp)
movl %eax, 0x10c(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0xa0(%rsp)
movl 0x110(%rsp), %eax
movq 0x118(%rsp), %rcx
movq %rcx, 0xa8(%rsp)
movl 0x114(%rsp), %ecx
movl %ecx, 0x108(%rsp)
movl 0x10c(%rsp), %ecx
movl %ecx, 0xb4(%rsp)
decl %eax
movl %eax, %ecx
movq %rcx, 0xb8(%rsp)
subl $0x4, %eax
ja 0x1bd3d
movq 0xb8(%rsp), %rax
leaq 0x7468(%rip), %rcx      # 0x2319c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0xb4(%rsp), %eax
decl %eax
subl $0x2, %eax
jb 0x1be3a
jmp 0x1bd51
movl 0xb4(%rsp), %eax
subl $0x5, %eax
je 0x1be6a
jmp 0x1be0a
movl 0xb4(%rsp), %eax
decl %eax
subl $0x2, %eax
jb 0x1bf26
jmp 0x1bd7a
movl 0xb4(%rsp), %eax
subl $0x5, %eax
je 0x1bf56
jmp 0x1bef6
movl 0xb4(%rsp), %eax
decl %eax
subl $0x2, %eax
jb 0x1c012
jmp 0x1bda3
movl 0xb4(%rsp), %eax
subl $0x5, %eax
je 0x1c042
jmp 0x1bfe2
movl 0xb4(%rsp), %eax
decl %eax
subl $0x2, %eax
jb 0x1c0fe
jmp 0x1bdcc
movl 0xb4(%rsp), %eax
subl $0x5, %eax
je 0x1c12e
jmp 0x1c0ce
movl 0xb4(%rsp), %eax
decl %eax
subl $0x2, %eax
jb 0x1c1ea
jmp 0x1bdf5
movl 0xb4(%rsp), %eax
subl $0x5, %eax
je 0x1c21a
jmp 0x1c1ba
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x73(%rsp)
movl %ecx, 0x74(%rsp)
testb $0x1, %al
jne 0x1bead
jmp 0x1be9f
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x6b(%rsp)
movl %ecx, 0x6c(%rsp)
testb $0x1, %al
jne 0x1beca
jmp 0x1bebc
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x63(%rsp)
movl %ecx, 0x64(%rsp)
testb $0x1, %al
jne 0x1bee7
jmp 0x1bed9
jmp 0x1c2a3
movq 0xa8(%rsp), %rax
movl 0x74(%rsp), %ecx
movl %ecx, (%rax)
movb 0x73(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1be9a
movq 0xa8(%rsp), %rax
movl 0x6c(%rsp), %ecx
movl %ecx, (%rax)
movb 0x6b(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1be9a
movq 0xa8(%rsp), %rax
movl 0x64(%rsp), %ecx
movl %ecx, (%rax)
movb 0x63(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1be9a
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x5b(%rsp)
movl %ecx, 0x5c(%rsp)
testb $0x1, %al
jne 0x1bf99
jmp 0x1bf8b
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x53(%rsp)
movl %ecx, 0x54(%rsp)
testb $0x1, %al
jne 0x1bfb6
jmp 0x1bfa8
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x4b(%rsp)
movl %ecx, 0x4c(%rsp)
testb $0x1, %al
jne 0x1bfd3
jmp 0x1bfc5
jmp 0x1c2a3
movq 0xa8(%rsp), %rax
movl 0x5c(%rsp), %ecx
movl %ecx, (%rax)
movb 0x5b(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1bf86
movq 0xa8(%rsp), %rax
movl 0x54(%rsp), %ecx
movl %ecx, (%rax)
movb 0x53(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1bf86
movq 0xa8(%rsp), %rax
movl 0x4c(%rsp), %ecx
movl %ecx, (%rax)
movb 0x4b(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1bf86
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x43(%rsp)
movl %ecx, 0x44(%rsp)
testb $0x1, %al
jne 0x1c085
jmp 0x1c077
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x3b(%rsp)
movl %ecx, 0x3c(%rsp)
testb $0x1, %al
jne 0x1c0a2
jmp 0x1c094
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x33(%rsp)
movl %ecx, 0x34(%rsp)
testb $0x1, %al
jne 0x1c0bf
jmp 0x1c0b1
jmp 0x1c2a3
movq 0xa8(%rsp), %rax
movl 0x44(%rsp), %ecx
movl %ecx, (%rax)
movb 0x43(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1c072
movq 0xa8(%rsp), %rax
movl 0x3c(%rsp), %ecx
movl %ecx, (%rax)
movb 0x3b(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1c072
movq 0xa8(%rsp), %rax
movl 0x34(%rsp), %ecx
movl %ecx, (%rax)
movb 0x33(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1c072
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x2b(%rsp)
movl %ecx, 0x2c(%rsp)
testb $0x1, %al
jne 0x1c171
jmp 0x1c163
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x23(%rsp)
movl %ecx, 0x24(%rsp)
testb $0x1, %al
jne 0x1c18e
jmp 0x1c180
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x1b(%rsp)
movl %ecx, 0x1c(%rsp)
testb $0x1, %al
jne 0x1c1ab
jmp 0x1c19d
jmp 0x1c2a3
movq 0xa8(%rsp), %rax
movl 0x2c(%rsp), %ecx
movl %ecx, (%rax)
movb 0x2b(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1c15e
movq 0xa8(%rsp), %rax
movl 0x24(%rsp), %ecx
movl %ecx, (%rax)
movb 0x23(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1c15e
movq 0xa8(%rsp), %rax
movl 0x1c(%rsp), %ecx
movl %ecx, (%rax)
movb 0x1b(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1c15e
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x13(%rsp)
movl %ecx, 0x14(%rsp)
testb $0x1, %al
jne 0x1c25a
jmp 0x1c24c
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0xb(%rsp)
movl %ecx, 0xc(%rsp)
testb $0x1, %al
jne 0x1c277
jmp 0x1c269
movq 0xa0(%rsp), %rcx
movq 0xa8(%rsp), %rax
movl (%rax), %eax
movl 0x108(%rsp), %edx
lock
cmpxchgl %edx, (%rcx)
movl %eax, %ecx
sete %al
movb %al, 0x3(%rsp)
movl %ecx, 0x4(%rsp)
testb $0x1, %al
jne 0x1c294
jmp 0x1c286
jmp 0x1c2a3
movq 0xa8(%rsp), %rax
movl 0x14(%rsp), %ecx
movl %ecx, (%rax)
movb 0x13(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1c24a
movq 0xa8(%rsp), %rax
movl 0xc(%rsp), %ecx
movl %ecx, (%rax)
movb 0xb(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1c24a
movq 0xa8(%rsp), %rax
movl 0x4(%rsp), %ecx
movl %ecx, (%rax)
movb 0x3(%rsp), %al
andb $0x1, %al
movb %al, 0x107(%rsp)
jmp 0x1c24a
testb $0x1, 0x107(%rsp)
jne 0x1c2af
jmp 0x1c311
movq $0x1, 0xc8(%rsp)
movl $0x0, 0xc4(%rsp)
movq 0x80(%rsp), %rax
movl 0x30(%rax), %edi
leaq 0xc8(%rsp), %rsi
movl $0x8, %edx
callq 0x14500
movl %eax, 0xc4(%rsp)
xorl %eax, %eax
cmpl $-0x1, 0xc4(%rsp)
movb %al, 0x2(%rsp)
jne 0x1c309
callq 0x140c0
cmpl $0x4, (%rax)
sete %al
movb %al, 0x2(%rsp)
movb 0x2(%rsp), %al
testb $0x1, %al
jne 0x1c2c6
addq $0x128, %rsp            # imm = 0x128
retq
nopl (%rax)