	.file	"extr_tcs3472.c_tcs3472_event_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tcs3472_event_handler, @function
tcs3472_event_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	iio_priv@PLT
	mov	esi, DWORD PTR TCS3472_STATUS[rip]
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	i2c_smbus_read_byte_data@PLT
	test	eax, eax
	js	.L2
	test	DWORD PTR TCS3472_STATUS_AINT[rip], eax
	jne	.L8
.L2:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	iio_get_time_ns@PLT
	mov	ecx, DWORD PTR IIO_EV_DIR_EITHER[rip]
	mov	edx, DWORD PTR IIO_EV_TYPE_THRESH[rip]
	xor	esi, esi
	mov	edi, DWORD PTR IIO_INTENSITY[rip]
	mov	r12d, eax
	call	IIO_UNMOD_EVENT_CODE@PLT
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	call	iio_push_event@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR TCS3472_INTR_CLEAR[rip]
	call	i2c_smbus_read_byte_data@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tcs3472_event_handler, .-tcs3472_event_handler
	.comm	TCS3472_STATUS_AINT,4,4
	.comm	TCS3472_STATUS,4,4
	.comm	TCS3472_INTR_CLEAR,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	IIO_INTENSITY,4,4
	.comm	IIO_EV_TYPE_THRESH,4,4
	.comm	IIO_EV_DIR_EITHER,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_tcs3472.c_tcs3472_event_handler.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcs3472_event_handler, %function
tcs3472_event_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r1
	mov	r4, r1
	bl	iio_priv
	ldr	r3, .L9
	mov	r5, r0
	ldr	r1, [r3]
	ldr	r0, [r0]
	bl	i2c_smbus_read_byte_data
	subs	r3, r0, #0
	blt	.L2
	ldr	r2, .L9+4
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L8
.L2:
	ldr	r3, .L9+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r1, .L9+12
	ldr	r3, .L9+16
	ldr	r2, .L9+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [r1]
	mov	r1, #0
	bl	IIO_UNMOD_EVENT_CODE
	mov	r6, r0
	mov	r0, r4
	bl	iio_get_time_ns
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	iio_push_event
	ldr	r3, .L9+24
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	i2c_smbus_read_byte_data
	b	.L2
.L10:
	.align	2
.L9:
	.word	TCS3472_STATUS
	.word	TCS3472_STATUS_AINT
	.word	IRQ_HANDLED
	.word	IIO_INTENSITY
	.word	IIO_EV_DIR_EITHER
	.word	IIO_EV_TYPE_THRESH
	.word	TCS3472_INTR_CLEAR
	.size	tcs3472_event_handler, .-tcs3472_event_handler
	.comm	TCS3472_STATUS_AINT,4,4
	.comm	TCS3472_STATUS,4,4
	.comm	TCS3472_INTR_CLEAR,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	IIO_INTENSITY,4,4
	.comm	IIO_EV_TYPE_THRESH,4,4
	.comm	IIO_EV_DIR_EITHER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
