	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm3605_prox_irq
_cm3605_prox_irq:                       ## @cm3605_prox_irq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	_IIO_PROXIMITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM3605_PROX_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IIO_EV_TYPE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rcx
	callq	_IIO_UNMOD_EVENT_CODE
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_iio_get_time_ns
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_iio_push_event
	movq	_IIO_EV_DIR_RISING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_IIO_EV_DIR_FALLING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_2:
	movq	%rax, (%r14)
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_PROXIMITY,4,2              ## @IIO_PROXIMITY
	.comm	_CM3605_PROX_CHANNEL,4,2        ## @CM3605_PROX_CHANNEL
	.comm	_IIO_EV_TYPE_THRESH,4,2         ## @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_RISING,8,3          ## @IIO_EV_DIR_RISING
	.comm	_IIO_EV_DIR_FALLING,8,3         ## @IIO_EV_DIR_FALLING
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_cm3605_prox_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm3605_prox_irq
_cm3605_prox_irq:                       ; @cm3605_prox_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x0, x1
	bl	_iio_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _IIO_PROXIMITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_PROXIMITY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CM3605_PROX_CHANNEL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CM3605_PROX_CHANNEL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x8, _IIO_EV_TYPE_THRESH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_EV_TYPE_THRESH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	x3, [x20]
	bl	_IIO_UNMOD_EVENT_CODE
	mov	x21, x0
	mov	x0, x19
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_iio_push_event
Lloh9:
	adrp	x8, _IIO_EV_DIR_RISING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_EV_DIR_RISING@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x10, _IIO_EV_DIR_FALLING@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IIO_EV_DIR_FALLING@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x8
	csel	x8, x10, x8, eq
	str	x8, [x20]
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_PROXIMITY,4,2              ; @IIO_PROXIMITY
	.comm	_CM3605_PROX_CHANNEL,4,2        ; @CM3605_PROX_CHANNEL
	.comm	_IIO_EV_TYPE_THRESH,4,2         ; @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_RISING,8,3          ; @IIO_EV_DIR_RISING
	.comm	_IIO_EV_DIR_FALLING,8,3         ; @IIO_EV_DIR_FALLING
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_cm3605_prox_irq
.subsections_via_symbols
