	.file	"extr_iio_simple_dummy_events.c_iio_simple_dummy_events_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"iio_simple_event"
	.text
	.p2align 4
	.globl	iio_simple_dummy_events_register
	.type	iio_simple_dummy_events_register, @function
iio_simple_dummy_events_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	iio_priv@PLT
	mov	rbx, rax
	xor	eax, eax
	call	iio_dummy_evgen_get_irq@PLT
	mov	DWORD PTR [rbx], eax
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	edi, eax
	call	iio_dummy_evgen_get_regs@PLT
	mov	ecx, DWORD PTR IRQF_ONESHOT[rip]
	mov	edi, DWORD PTR [rbx]
	mov	r9, rbp
	mov	DWORD PTR 4[rbx], eax
	lea	r8, .LC0[rip]
	lea	rdx, iio_simple_dummy_event_handler[rip]
	lea	rsi, iio_simple_dummy_get_timestamp[rip]
	call	request_threaded_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L6
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	iio_dummy_evgen_release_irq@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	iio_simple_dummy_events_register, .-iio_simple_dummy_events_register
	.comm	iio_simple_dummy_get_timestamp,4,4
	.comm	iio_simple_dummy_event_handler,4,4
	.comm	IRQF_ONESHOT,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_iio_simple_dummy_events.c_iio_simple_dummy_events_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"iio_simple_event\000"
	.text
	.align	2
	.global	iio_simple_dummy_events_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	iio_simple_dummy_events_register, %function
iio_simple_dummy_events_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r6, r0
	bl	iio_priv
	mov	r5, r0
	bl	iio_dummy_evgen_get_irq
	subs	r4, r0, #0
	str	r0, [r5]
	blt	.L1
	bl	iio_dummy_evgen_get_regs
	ldr	r1, [r5]
	ldr	r2, .L7
	ldr	r3, .L7+4
	str	r0, [r5, #4]
	ldr	r3, [r3]
	mov	r0, r1
	stm	sp, {r2, r6}
	ldr	r1, .L7+8
	ldr	r2, .L7+12
	bl	request_threaded_irq
	subs	r4, r0, #0
	movge	r4, #0
	blt	.L6
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r0, [r5]
	bl	iio_dummy_evgen_release_irq
	b	.L1
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	IRQF_ONESHOT
	.word	iio_simple_dummy_get_timestamp
	.word	iio_simple_dummy_event_handler
	.size	iio_simple_dummy_events_register, .-iio_simple_dummy_events_register
	.comm	iio_simple_dummy_get_timestamp,4,4
	.comm	iio_simple_dummy_event_handler,4,4
	.comm	IRQF_ONESHOT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
