	.file	"extr_af_smc.c_smc_poll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smc_poll, @function
smc_poll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, DWORD PTR EPOLLNVAL[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR [rsi]
	test	rbp, rbp
	je	.L1
	mov	r14, rdi
	mov	rdi, rbp
	mov	r12, rsi
	mov	r13, rdx
	call	smc_sk@PLT
	cmp	QWORD PTR 24[rax], 0
	mov	rbx, rax
	je	.L4
	mov	rsi, QWORD PTR 16[rax]
	mov	rdx, r13
	mov	rdi, r14
	mov	rax, QWORD PTR 8[rsi]
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	mov	rax, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 24[rbp], rax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR SMC_CLOSED[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L27
	xor	r12d, r12d
	cmp	QWORD PTR 24[rbp], 0
	jne	.L28
.L6:
	mov	edx, DWORD PTR 8[rbp]
	cmp	edx, DWORD PTR SHUTDOWN_MASK[rip]
	je	.L7
.L31:
	cmp	QWORD PTR SMC_CLOSED[rip], rax
	je	.L7
.L8:
	cmp	QWORD PTR SMC_LISTEN[rip], rax
	je	.L29
	cmp	QWORD PTR 24[rbx], 0
	jne	.L30
	cmp	QWORD PTR SMC_INIT[rip], rax
	je	.L11
	lea	rdi, 12[rbx]
	call	atomic_read@PLT
	test	rax, rax
	je	.L12
.L14:
	mov	eax, DWORD PTR EPOLLOUT[rip]
	or	eax, DWORD PTR EPOLLWRNORM[rip]
	or	r12d, eax
.L13:
	lea	rdi, 8[rbx]
	call	atomic_read@PLT
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR EPOLLIN[rip]
	or	eax, DWORD PTR EPOLLRDNORM[rip]
	or	r12d, eax
.L15:
	mov	eax, DWORD PTR 8[rbp]
	test	DWORD PTR RCV_SHUTDOWN[rip], eax
	je	.L16
	mov	eax, DWORD PTR EPOLLIN[rip]
	or	eax, DWORD PTR EPOLLRDNORM[rip]
	or	eax, DWORD PTR EPOLLRDHUP[rip]
	or	r12d, eax
.L16:
	mov	rax, QWORD PTR SMC_APPCLOSEWAIT1[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L17
	or	r12d, DWORD PTR EPOLLIN[rip]
.L17:
	mov	rax, QWORD PTR SMC_URG_VALID[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L1
	or	r12d, DWORD PTR EPOLLPRI[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edx, DWORD PTR 8[rbp]
	cmp	edx, DWORD PTR SHUTDOWN_MASK[rip]
	mov	r12d, DWORD PTR EPOLLERR[rip]
	jne	.L31
.L7:
	or	r12d, DWORD PTR EPOLLHUP[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rsi, r12
	mov	rdx, r13
	mov	rdi, r14
	xor	r12d, r12d
	call	sock_poll_wait@PLT
	cmp	QWORD PTR 24[rbp], 0
	mov	rax, QWORD PTR 0[rbp]
	je	.L6
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rsi, QWORD PTR 16[rbx]
	mov	rdx, r13
	mov	rdi, r14
	mov	rax, QWORD PTR 8[rsi]
	call	[QWORD PTR [rax]]
	or	r12d, eax
	mov	rax, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 24[rbp], rax
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[rbp]
.L11:
	test	DWORD PTR SEND_SHUTDOWN[rip], edx
	jne	.L14
	mov	edi, DWORD PTR SOCKWQ_ASYNC_NOSPACE[rip]
	mov	rsi, rbp
	call	sk_set_bit@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR SOCK_NOSPACE[rip]
	call	set_bit@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, rbp
	call	smc_accept_poll@PLT
	or	r12d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	smc_poll, .-smc_poll
	.comm	SOCK_NOSPACE,4,4
	.comm	SOCKWQ_ASYNC_NOSPACE,4,4
	.comm	SMC_URG_VALID,8,8
	.comm	SMC_LISTEN,8,8
	.comm	SMC_INIT,8,8
	.comm	SMC_CLOSED,8,8
	.comm	SMC_APPCLOSEWAIT1,8,8
	.comm	SHUTDOWN_MASK,4,4
	.comm	SEND_SHUTDOWN,4,4
	.comm	RCV_SHUTDOWN,4,4
	.comm	EPOLLWRNORM,4,4
	.comm	EPOLLRDNORM,4,4
	.comm	EPOLLRDHUP,4,4
	.comm	EPOLLPRI,4,4
	.comm	EPOLLOUT,4,4
	.comm	EPOLLNVAL,4,4
	.comm	EPOLLIN,4,4
	.comm	EPOLLHUP,4,4
	.comm	EPOLLERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_af_smc.c_smc_poll.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smc_poll, %function
smc_poll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r1]
	cmp	r4, #0
	beq	.L29
	mov	r7, r0
	mov	r0, r4
	mov	r5, r1
	mov	r8, r2
	bl	smc_sk
	ldr	r3, [r0, #16]
	mov	r6, r0
	cmp	r3, #0
	beq	.L4
	ldr	r1, [r0, #12]
	mov	r2, r8
	ldr	r3, [r1, #4]
	mov	r0, r7
	ldr	r3, [r3]
	blx	r3
	mov	r5, r0
	ldr	r3, [r6, #12]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [r4, #12]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r9, .L33
	ldr	r2, [r4]
	ldr	r3, [r9]
	cmp	r2, r3
	bne	.L30
.L5:
	ldr	r5, [r4, #12]
	ldr	r1, .L33+4
	cmp	r5, #0
	ldrne	r2, .L33+8
	ldr	r1, [r1]
	ldrne	r5, [r2]
	ldr	r2, [r4, #4]
	cmp	r2, r1
	beq	.L7
	ldr	r1, [r9]
	cmp	r1, r3
	beq	.L7
.L8:
	ldr	r1, .L33+12
	ldr	r1, [r1]
	cmp	r1, r3
	beq	.L31
	ldr	r1, [r6, #16]
	cmp	r1, #0
	bne	.L32
	ldr	r1, .L33+16
	ldr	r1, [r1]
	cmp	r1, r3
	beq	.L11
	add	r0, r6, #8
	bl	atomic_read
	cmp	r0, #0
	beq	.L12
.L14:
	ldr	r3, .L33+20
	ldr	r2, .L33+24
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r5, r5, r3
.L13:
	add	r0, r6, #4
	bl	atomic_read
	cmp	r0, #0
	beq	.L15
	ldr	r3, .L33+28
	ldr	r2, .L33+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r5, r5, r3
.L15:
	ldr	r3, .L33+36
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L16
	ldr	r3, .L33+28
	ldr	r1, .L33+32
	ldr	r2, .L33+40
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	orr	r5, r5, r3
.L16:
	ldr	r3, .L33+44
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	ldreq	r3, .L33+28
	ldr	r2, [r6]
	ldreq	r3, [r3]
	orreq	r5, r5, r3
	ldr	r3, .L33+48
	ldr	r3, [r3]
	cmp	r2, r3
	ldreq	r3, .L33+52
	ldreq	r3, [r3]
	orreq	r5, r5, r3
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L29:
	ldr	r3, .L33+56
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L30:
	mov	r1, r5
	mov	r2, r8
	mov	r0, r7
	bl	sock_poll_wait
	ldr	r3, [r4]
	b	.L5
.L32:
	ldr	r1, [r6, #12]
	mov	r2, r8
	ldr	r3, [r1, #4]
	mov	r0, r7
	ldr	r3, [r3]
	blx	r3
	ldr	r3, [r6, #12]
	orr	r5, r5, r0
	ldr	r3, [r3]
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [r4, #12]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r1, .L33+60
	ldr	r1, [r1]
	orr	r5, r5, r1
	b	.L8
.L12:
	ldr	r2, [r4, #4]
.L11:
	ldr	r3, .L33+64
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L14
	ldr	r3, .L33+68
	mov	r1, r4
	ldr	r0, [r3]
	bl	sk_set_bit
	ldr	r3, .L33+72
	ldr	r1, [r4, #8]
	ldr	r0, [r3]
	bl	set_bit
	b	.L13
.L31:
	mov	r0, r4
	bl	smc_accept_poll
	orr	r5, r5, r0
	b	.L1
.L34:
	.align	2
.L33:
	.word	SMC_CLOSED
	.word	SHUTDOWN_MASK
	.word	EPOLLERR
	.word	SMC_LISTEN
	.word	SMC_INIT
	.word	EPOLLOUT
	.word	EPOLLWRNORM
	.word	EPOLLIN
	.word	EPOLLRDNORM
	.word	RCV_SHUTDOWN
	.word	EPOLLRDHUP
	.word	SMC_APPCLOSEWAIT1
	.word	SMC_URG_VALID
	.word	EPOLLPRI
	.word	EPOLLNVAL
	.word	EPOLLHUP
	.word	SEND_SHUTDOWN
	.word	SOCKWQ_ASYNC_NOSPACE
	.word	SOCK_NOSPACE
	.size	smc_poll, .-smc_poll
	.comm	SOCK_NOSPACE,4,4
	.comm	SOCKWQ_ASYNC_NOSPACE,4,4
	.comm	SMC_URG_VALID,4,4
	.comm	SMC_LISTEN,4,4
	.comm	SMC_INIT,4,4
	.comm	SMC_CLOSED,4,4
	.comm	SMC_APPCLOSEWAIT1,4,4
	.comm	SHUTDOWN_MASK,4,4
	.comm	SEND_SHUTDOWN,4,4
	.comm	RCV_SHUTDOWN,4,4
	.comm	EPOLLWRNORM,4,4
	.comm	EPOLLRDNORM,4,4
	.comm	EPOLLRDHUP,4,4
	.comm	EPOLLPRI,4,4
	.comm	EPOLLOUT,4,4
	.comm	EPOLLNVAL,4,4
	.comm	EPOLLIN,4,4
	.comm	EPOLLHUP,4,4
	.comm	EPOLLERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
