	.file	"extr_mrsas.c_mrsas_poll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mrsas_poll, @function
mrsas_poll:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR POLLIN[rip]
	or	eax, DWORD PTR POLLRDNORM[rip]
	and	eax, esi
	je	.L7
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR [rdi]
	cmp	QWORD PTR 16[rbx], 0
	je	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	r12, 4[rbx]
	mov	rbp, rdx
	mov	rdi, r12
	call	mtx_lock@PLT
	mov	DWORD PTR [rbx], 1
	lea	rsi, 8[rbx]
	mov	rdi, rbp
	call	selrecord@PLT
	mov	rdi, r12
	call	mtx_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	mrsas_poll, .-mrsas_poll
	.comm	POLLRDNORM,4,4
	.comm	POLLIN,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_mrsas.c_mrsas_poll.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrsas_poll, %function
mrsas_poll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L8
	ldr	r3, .L8+4
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	lr, [ip]
	mov	ip, r0
	orr	r3, r3, lr
	ands	r0, r3, r1
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r5, [ip]
	ldr	r6, [r5, #12]
	cmp	r6, #0
	popne	{r4, r5, r6, r7, r8, pc}
	add	r7, r5, #4
	mov	r0, r7
	mov	r4, r2
	bl	mtx_lock
	mov	r1, r5
	mov	r3, #1
	mov	r0, r4
	str	r3, [r1], #8
	bl	selrecord
	mov	r0, r7
	bl	mtx_unlock
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	POLLRDNORM
	.word	POLLIN
	.size	mrsas_poll, .-mrsas_poll
	.comm	POLLRDNORM,4,4
	.comm	POLLIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
