	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function us5182d_irq_thread_handler
_us5182d_irq_thread_handler:            ## @us5182d_irq_thread_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	(%rax), %rdi
	movq	_US5182D_REG_CFG0@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movq	_US5182D_CFG0_PROX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	jne	LBB0_2
## %bb.3:
	movq	_IIO_EV_DIR_FALLING@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ecx
	movq	_IIO_PROXIMITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IIO_EV_TYPE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	callq	_IIO_UNMOD_EVENT_CODE
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_iio_get_time_ns
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_iio_push_event
	movq	(%r14), %rdi
	movl	(%r13), %esi
	movq	_US5182D_CFG0_PX_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jns	LBB0_6
LBB0_5:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_US5182D_REG_CFG0,4,2           ## @US5182D_REG_CFG0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c transfer error in irq\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_US5182D_CFG0_PROX,4,2          ## @US5182D_CFG0_PROX
	.comm	_IIO_EV_DIR_RISING,4,2          ## @IIO_EV_DIR_RISING
	.comm	_IIO_EV_DIR_FALLING,4,2         ## @IIO_EV_DIR_FALLING
	.comm	_IIO_PROXIMITY,4,2              ## @IIO_PROXIMITY
	.comm	_IIO_EV_TYPE_THRESH,4,2         ## @IIO_EV_TYPE_THRESH
	.comm	_US5182D_CFG0_PX_IRQ,4,2        ## @US5182D_CFG0_PX_IRQ
	.no_dead_strip	_us5182d_irq_thread_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function us5182d_irq_thread_handler
_us5182d_irq_thread_handler:            ; @us5182d_irq_thread_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x0, x1
	bl	_iio_priv
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x23, _US5182D_REG_CFG0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _US5182D_REG_CFG0@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x8, _US5182D_CFG0_PROX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _US5182D_CFG0_PROX@GOTPAGEOFF]
Lloh4:
	adrp	x9, _IIO_EV_DIR_RISING@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IIO_EV_DIR_RISING@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x10, _IIO_EV_DIR_FALLING@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IIO_EV_DIR_FALLING@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _IIO_PROXIMITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_PROXIMITY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _IIO_EV_TYPE_THRESH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IIO_EV_TYPE_THRESH@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w1, #1
	bl	_IIO_UNMOD_EVENT_CODE
	mov	x22, x0
	mov	x0, x20
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_iio_push_event
	ldr	x0, [x19]
	ldr	w1, [x23]
Lloh15:
	adrp	x8, _US5182D_CFG0_PX_IRQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _US5182D_CFG0_PX_IRQ@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bic	w2, w21, w8
	bl	_i2c_smbus_write_byte_data
	tbz	w0, #31, LBB0_3
LBB0_2:
	ldr	x0, [x19]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_US5182D_REG_CFG0,4,2           ; @US5182D_REG_CFG0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c transfer error in irq\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_US5182D_CFG0_PROX,4,2          ; @US5182D_CFG0_PROX
	.comm	_IIO_EV_DIR_RISING,4,2          ; @IIO_EV_DIR_RISING
	.comm	_IIO_EV_DIR_FALLING,4,2         ; @IIO_EV_DIR_FALLING
	.comm	_IIO_PROXIMITY,4,2              ; @IIO_PROXIMITY
	.comm	_IIO_EV_TYPE_THRESH,4,2         ; @IIO_EV_TYPE_THRESH
	.comm	_US5182D_CFG0_PX_IRQ,4,2        ; @US5182D_CFG0_PX_IRQ
	.no_dead_strip	_us5182d_irq_thread_handler
.subsections_via_symbols
