	.file	"extr_industrialio-core.c_iio_add_event_to_list.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	iio_add_event_to_list
	.type	iio_add_event_to_list, @function
iio_add_event_to_list:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, rsi
	lea	r12, 8[rbx]
	call	to_iio_interrupt@PLT
	mov	rdi, r12
	mov	r13, rax
	call	mutex_lock@PLT
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L5
.L2:
	add	rax, 1
	mov	rdi, r12
	mov	QWORD PTR [rbx], rax
	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
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	r14d, r14d
	mov	rdi, r13
	mov	rsi, r14
	call	spin_lock_irqsave@PLT
	lea	rdi, 12[rbx]
	mov	rsi, rbp
	call	list_add@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR [rbx]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	iio_add_event_to_list, .-iio_add_event_to_list
	.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_industrialio-core.c_iio_add_event_to_list.c"
	.text
	.align	2
	.global	iio_add_event_to_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	iio_add_event_to_list, %function
iio_add_event_to_list:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r5, r1
	bl	to_iio_interrupt
	add	r7, r4, #4
	mov	r6, r0
	mov	r0, r7
	bl	mutex_lock
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L5
.L2:
	add	r3, r3, #1
	mov	r0, r7
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
.L5:
	mov	r8, #0
	mov	r0, r6
	mov	r1, r8
	bl	spin_lock_irqsave
	mov	r1, r5
	add	r0, r4, #8
	bl	list_add
	mov	r1, r8
	mov	r0, r6
	bl	spin_unlock_irqrestore
	ldr	r3, [r4]
	b	.L2
	.size	iio_add_event_to_list, .-iio_add_event_to_list
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
