// File: /workspace/github_c_makefile_star2_O1/Tarsnap[P]kivaloo/liball/../libcperciva/network_ssl/network_ssl.c
// Function: poke
static int
poke(struct network_ssl_ctx * ssl)
{

	/* Should we try to read? */
	if (ssl->read_callback != NULL &&
	    !ssl->read_needs_r && !ssl->read_needs_w) {
		if (doread(ssl))
			goto err0;
	}

	/* Should we try to write? */
	if (ssl->write_callback != NULL &&
	    !ssl->write_needs_r && !ssl->write_needs_w) {
		if (dowrite(ssl))
			goto err0;
	}

	/* Wait for socket readability/writability as needed. */
	if (setupevents(ssl))
		goto err0;

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
je 0xdef4
cmpl $0x0, 0x50(%rbx)
jne 0xdef4
cmpl $0x0, 0x54(%rbx)
je 0xdf33
cmpq $0x0, 0x58(%rbx)
je 0xdf11
cmpl $0x0, 0x88(%rbx)
jne 0xdf11
cmpl $0x0, 0x8c(%rbx)
je 0xdfda
movq %rbx, %rdi
callq 0xdba8
testl %eax, %eax
je 0xdf24
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xdf26
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x3040
movq %rax, %r14
movl $0x0, (%rax)
callq 0x34e0
movl $0x1, %esi
movl $0xd, %edi
callq 0x35d0
cmpq $-0x1, %rax
je 0xe0e0
movq %rax, %r15
leaq 0x8(%rsp), %r12
movq 0x48(%rbx), %rax
movq 0x30(%rbx), %rsi
addq %rax, %rsi
movq 0x8(%rbx), %rdi
movq 0x38(%rbx), %rdx
subq %rax, %rdx
movq %r12, %rcx
callq 0x35a0
testl %eax, %eax
jle 0xe07f
movq 0x48(%rbx), %rax
addq 0x8(%rsp), %rax
movq %rax, 0x48(%rbx)
cmpq 0x38(%rbx), %rax
ja 0xe27b
cmpq 0x40(%rbx), %rax
jb 0xdf67
movl $0xd, %edi
movq %r15, %rsi
callq 0x35d0
cmpq $-0x1, %rax
je 0xe0e0
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rdi
movq 0x48(%rbx), %rsi
movq $0x0, 0x20(%rbx)
jmp 0xe26c
callq 0x34e0
movl $0x1, %esi
movl $0xd, %edi
callq 0x35d0
cmpq $-0x1, %rax
je 0xe162
movq %rax, %r14
leaq 0x8(%rsp), %r15
movq 0x80(%rbx), %rax
movq 0x68(%rbx), %rsi
addq %rax, %rsi
movq 0x8(%rbx), %rdi
movq 0x70(%rbx), %rdx
subq %rax, %rdx
movq %r15, %rcx
callq 0x3650
testl %eax, %eax
jle 0xe104
movq 0x80(%rbx), %rax
addq 0x8(%rsp), %rax
movq %rax, 0x80(%rbx)
cmpq 0x70(%rbx), %rax
ja 0xe29a
cmpq 0x78(%rbx), %rax
jb 0xe000
movl $0xd, %edi
movq %r14, %rsi
callq 0x35d0
cmpq $-0x1, %rax
je 0xe162
movq 0x58(%rbx), %rax
movq 0x60(%rbx), %rdi
movq 0x80(%rbx), %rsi
movq $0x0, 0x58(%rbx)
jmp 0xe1ff
movl %eax, %ebp
movl $0xd, %edi
movq %r15, %rsi
callq 0x35d0
cmpq $-0x1, %rax
je 0xe0e0
movq 0x8(%rbx), %rdi
movl %ebp, %esi
callq 0x3030
leal -0x1(%rax), %ecx
cmpl $0x5, %ecx
ja 0xe20e
leaq 0x50a2(%rip), %rdx      # 0x13154
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
callq 0x34b0
movq %rax, %rdi
xorl %esi, %esi
callq 0x3100
leaq 0x53b0(%rip), %rdi      # 0x13481
movq %rax, %rsi
xorl %eax, %eax
callq 0x58ab
jmp 0xe21e
cmpl $0x0, (%r14)
je 0xe186
leaq 0x5336(%rip), %rdi      # 0x13427
xorl %eax, %eax
callq 0x578c
movl $0x0, (%r14)
jmp 0xe194
movl %eax, %ebp
movl $0xd, %edi
movq %r14, %rsi
callq 0x35d0
cmpq $-0x1, %rax
je 0xe162
movq 0x8(%rbx), %rdi
movl %ebp, %esi
callq 0x3030
leal -0x1(%rax), %ecx
cmpl $0x4, %ecx
ja 0xe1cd
leaq 0x5035(%rip), %rdx      # 0x1316c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
callq 0x34b0
movq %rax, %rdi
xorl %esi, %esi
callq 0x3100
leaq 0x532b(%rip), %rdi      # 0x13481
movq %rax, %rsi
xorl %eax, %eax
callq 0x58ab
jmp 0xe1dd
callq 0x3040
cmpl $0x0, (%rax)
je 0xe19e
movq %rax, %r14
leaq 0x52b1(%rip), %rdi      # 0x13427
xorl %eax, %eax
callq 0x578c
movl $0x0, (%r14)
jmp 0xe1ac
leaq 0x529a(%rip), %rdi      # 0x13427
xorl %eax, %eax
callq 0x58ab
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xe26e
leaq 0x5282(%rip), %rdi      # 0x13427
xorl %eax, %eax
callq 0x58ab
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0xe201
movl $0x1, 0x88(%rbx)
jmp 0xe1c9
movl $0x1, 0x8c(%rbx)
xorl %eax, %eax
jmp 0xe201
leaq 0x52bd(%rip), %rdi      # 0x13491
movl %eax, %esi
xorl %eax, %eax
callq 0x58ab
callq 0x3040
movl $0x0, (%rax)
movq 0x58(%rbx), %rax
movq 0x60(%rbx), %rdi
movq $0x0, 0x58(%rbx)
movq $-0x1, %rsi
callq *%rax
testl %eax, %eax
jne 0xdf1d
jmp 0xdf11
leaq 0x527c(%rip), %rdi      # 0x13491
movl %eax, %esi
xorl %eax, %eax
callq 0x58ab
movl $0x0, (%r14)
jmp 0xe241
movl $0x1, 0x54(%rbx)
jmp 0xe237
movl $0x1, 0x50(%rbx)
xorl %eax, %eax
jmp 0xe26e
cmpl $0x0, (%r14)
je 0xe25a
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rdi
movq $0x0, 0x20(%rbx)
movq $-0x1, %rsi
jmp 0xe26c
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rdi
movq $0x0, 0x20(%rbx)
xorl %esi, %esi
callq *%rax
testl %eax, %eax
jne 0xdf1d
jmp 0xdef4
leaq 0x51b5(%rip), %rdi      # 0x13437
leaq 0x4f3d(%rip), %rsi      # 0x131c6
leaq 0x51cc(%rip), %rcx      # 0x1345c
movl $0x127, %edx            # imm = 0x127
callq 0x3200
leaq 0x5206(%rip), %rdi      # 0x134a7
leaq 0x4f1e(%rip), %rsi      # 0x131c6
leaq 0x521f(%rip), %rcx      # 0x134ce
movl $0x186, %edx            # imm = 0x186
callq 0x3200