	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltr501_interrupt_handler
_ltr501_interrupt_handler:              ## @ltr501_interrupt_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movl	8(%rax), %edi
	movq	_LTR501_ALS_PS_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-20(%rbp), %eax
	movq	_LTR501_STATUS_ALS_INTR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_IIO_INTENSITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IIO_EV_TYPE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IIO_EV_DIR_EITHER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_IIO_UNMOD_EVENT_CODE
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_iio_get_time_ns
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_iio_push_event
	movl	-20(%rbp), %eax
LBB0_4:
	movq	_LTR501_STATUS_PS_INTR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_IIO_PROXIMITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IIO_EV_TYPE_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IIO_EV_DIR_EITHER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_IIO_UNMOD_EVENT_CODE
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_iio_get_time_ns
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_iio_push_event
	jmp	LBB0_6
LBB0_1:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LTR501_ALS_PS_STATUS,4,2       ## @LTR501_ALS_PS_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq read int reg failed\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_LTR501_STATUS_ALS_INTR,4,2     ## @LTR501_STATUS_ALS_INTR
	.comm	_IIO_INTENSITY,4,2              ## @IIO_INTENSITY
	.comm	_IIO_EV_TYPE_THRESH,4,2         ## @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_EITHER,4,2          ## @IIO_EV_DIR_EITHER
	.comm	_LTR501_STATUS_PS_INTR,4,2      ## @LTR501_STATUS_PS_INTR
	.comm	_IIO_PROXIMITY,4,2              ## @IIO_PROXIMITY
	.no_dead_strip	_ltr501_interrupt_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltr501_interrupt_handler
_ltr501_interrupt_handler:              ; @ltr501_interrupt_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x0, x1
	bl	_iio_priv
	mov	x20, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _LTR501_ALS_PS_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LTR501_ALS_PS_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _LTR501_STATUS_ALS_INTR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LTR501_STATUS_ALS_INTR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x21, _IIO_EV_TYPE_THRESH@GOTPAGE
Lloh7:
	ldr	x21, [x21, _IIO_EV_TYPE_THRESH@GOTPAGEOFF]
Lloh8:
	adrp	x22, _IIO_EV_DIR_EITHER@GOTPAGE
Lloh9:
	ldr	x22, [x22, _IIO_EV_DIR_EITHER@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _IIO_INTENSITY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IIO_INTENSITY@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	w1, #0
	bl	_IIO_UNMOD_EVENT_CODE
	mov	x20, x0
	mov	x0, x19
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_iio_push_event
	ldr	w8, [sp, #12]
LBB0_3:
Lloh13:
	adrp	x9, _LTR501_STATUS_PS_INTR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _LTR501_STATUS_PS_INTR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh16:
	adrp	x8, _IIO_PROXIMITY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IIO_PROXIMITY@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	w1, #0
	bl	_IIO_UNMOD_EVENT_CODE
	mov	x20, x0
	mov	x0, x19
	bl	_iio_get_time_ns
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_iio_push_event
	b	LBB0_6
LBB0_5:
	ldr	x0, [x20]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_6:
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh23:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_LTR501_ALS_PS_STATUS,4,2       ; @LTR501_ALS_PS_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq read int reg failed\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_LTR501_STATUS_ALS_INTR,4,2     ; @LTR501_STATUS_ALS_INTR
	.comm	_IIO_INTENSITY,4,2              ; @IIO_INTENSITY
	.comm	_IIO_EV_TYPE_THRESH,4,2         ; @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_EITHER,4,2          ; @IIO_EV_DIR_EITHER
	.comm	_LTR501_STATUS_PS_INTR,4,2      ; @LTR501_STATUS_PS_INTR
	.comm	_IIO_PROXIMITY,4,2              ; @IIO_PROXIMITY
	.no_dead_strip	_ltr501_interrupt_handler
.subsections_via_symbols
