	.file	"extr_stk3310.c_stk3310_irq_event_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"register read failed\n"
.LC1:
	.string	"failed to reset interrupts\n"
	.text
	.p2align 4
	.type	stk3310_irq_event_handler, @function
stk3310_irq_event_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdi, rsi
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	iio_priv@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	mutex_lock@PLT
	mov	edi, DWORD PTR 24[rbp]
	lea	rsi, 4[rsp]
	call	regmap_field_read@PLT
	test	eax, eax
	js	.L10
	mov	eax, DWORD PTR 4[rsp]
	mov	ecx, DWORD PTR IIO_EV_DIR_RISING[rip]
	test	eax, eax
	jne	.L11
.L5:
	mov	edx, DWORD PTR IIO_EV_TYPE_THRESH[rip]
	mov	edi, DWORD PTR IIO_PROXIMITY[rip]
	mov	esi, 1
	call	IIO_UNMOD_EVENT_CODE@PLT
	mov	edx, DWORD PTR 20[rbp]
	mov	rdi, r13
	mov	esi, eax
	call	iio_push_event@PLT
	mov	edi, DWORD PTR 16[rbp]
	xor	esi, esi
	call	regmap_field_write@PLT
	test	eax, eax
	js	.L12
.L6:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	r12d, DWORD PTR IRQ_HANDLED[rip]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	mov	ecx, DWORD PTR IIO_EV_DIR_FALLING[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	call	dev_err@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stk3310_irq_event_handler, .-stk3310_irq_event_handler
	.comm	IRQ_HANDLED,4,4
	.comm	IIO_PROXIMITY,4,4
	.comm	IIO_EV_TYPE_THRESH,4,4
	.comm	IIO_EV_DIR_RISING,4,4
	.comm	IIO_EV_DIR_FALLING,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_stk3310.c_stk3310_irq_event_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"register read failed\012\000"
	.align	2
.LC1:
	.ascii	"failed to reset interrupts\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stk3310_irq_event_handler, %function
stk3310_irq_event_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L13
	sub	sp, sp, #8
	mov	r0, r1
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	iio_priv
	mov	r4, r0
	bl	mutex_lock
	mov	r1, sp
	ldr	r0, [r4, #16]
	bl	regmap_field_read
	subs	r5, r0, #0
	blt	.L10
	ldr	r1, [sp]
	ldr	r3, .L13+4
	ldr	r2, .L13+8
	cmp	r1, #0
	ldr	r0, [r2]
	ldr	r2, [r3]
	ldrne	r3, .L13+12
	ldreq	r3, .L13+16
	mov	r1, #1
	ldr	r3, [r3]
	bl	IIO_UNMOD_EVENT_CODE
	ldr	r2, [r4, #12]
	mov	r1, r0
	mov	r0, r6
	bl	iio_push_event
	mov	r1, #0
	ldr	r0, [r4, #8]
	bl	regmap_field_write
	cmp	r0, #0
	blt	.L11
.L6:
	mov	r0, r4
	bl	mutex_unlock
	ldr	r3, .L13+20
	ldr	r5, [r3]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r1, .L13+24
	ldr	r0, [r4, #4]
	bl	dev_err
	b	.L6
.L10:
	ldr	r1, .L13+28
	ldr	r0, [r4, #4]
	bl	dev_err
	mov	r0, r4
	bl	mutex_unlock
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	IIO_EV_TYPE_THRESH
	.word	IIO_PROXIMITY
	.word	IIO_EV_DIR_FALLING
	.word	IIO_EV_DIR_RISING
	.word	IRQ_HANDLED
	.word	.LC1
	.word	.LC0
	.size	stk3310_irq_event_handler, .-stk3310_irq_event_handler
	.comm	IRQ_HANDLED,4,4
	.comm	IIO_PROXIMITY,4,4
	.comm	IIO_EV_TYPE_THRESH,4,4
	.comm	IIO_EV_DIR_RISING,4,4
	.comm	IIO_EV_DIR_FALLING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
