	.file	"extr_eventfd.c_eventfd_signal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	eventfd_signal
	.type	eventfd_signal, @function
eventfd_signal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	esi, esi
	js	.L10
	lea	r13, 4[rdi]
	mov	rbp, rdi
	mov	ebx, esi
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	r12d, DWORD PTR ULLONG_MAX[rip]
	mov	rdi, r13
	sub	r12d, eax
	cmp	r12d, ebx
	cmovg	r12d, ebx
	add	eax, r12d
	mov	DWORD PTR 0[rbp], eax
	call	waitqueue_active@PLT
	test	rax, rax
	jne	.L11
.L4:
	mov	rdi, r13
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR POLLIN[rip]
	mov	rdi, r13
	call	wake_up_locked_poll@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	eventfd_signal, .-eventfd_signal
	.comm	ULLONG_MAX,4,4
	.comm	POLLIN,4,4
	.comm	EINVAL,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_eventfd.c_eventfd_signal.c"
	.text
	.align	2
	.global	eventfd_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	eventfd_signal, %function
eventfd_signal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r1, #0
	blt	.L10
	mov	r6, r0
	add	r7, r0, #4
	mov	r1, #0
	mov	r0, r7
	bl	spin_lock_irqsave
	ldr	r2, .L12
	ldr	r3, [r6]
	ldr	r4, [r2]
	mov	r0, r7
	sub	r4, r4, r3
	cmp	r4, r5
	movge	r4, r5
	add	r3, r3, r4
	str	r3, [r6]
	bl	waitqueue_active
	cmp	r0, #0
	bne	.L11
.L4:
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L12+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L12+8
	mov	r0, r7
	ldr	r1, [r3]
	bl	wake_up_locked_poll
	b	.L4
.L13:
	.align	2
.L12:
	.word	ULLONG_MAX
	.word	EINVAL
	.word	POLLIN
	.size	eventfd_signal, .-eventfd_signal
	.comm	ULLONG_MAX,4,4
	.comm	POLLIN,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
