	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max44009_threaded_irq_handler
_max44009_threaded_irq_handler:         ## @max44009_threaded_irq_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_iio_priv
	movl	(%rax), %edi
	movq	_MAX44009_REG_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_IIO_LIGHT@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, %r14d
	movq	%rbx, %rdi
	callq	_iio_get_time_ns
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_iio_push_event
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX44009_REG_INT_STATUS,4,2    ## @MAX44009_REG_INT_STATUS
	.comm	_IIO_LIGHT,4,2                  ## @IIO_LIGHT
	.comm	_IIO_EV_TYPE_THRESH,4,2         ## @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_EITHER,4,2          ## @IIO_EV_DIR_EITHER
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_max44009_threaded_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max44009_threaded_irq_handler
_max44009_threaded_irq_handler:         ; @max44009_threaded_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x0, x1
	bl	_iio_priv
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _MAX44009_REG_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX44009_REG_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IIO_LIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IIO_LIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _IIO_EV_TYPE_THRESH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_EV_TYPE_THRESH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _IIO_EV_DIR_EITHER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIO_EV_DIR_EITHER@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	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
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX44009_REG_INT_STATUS,4,2    ; @MAX44009_REG_INT_STATUS
	.comm	_IIO_LIGHT,4,2                  ; @IIO_LIGHT
	.comm	_IIO_EV_TYPE_THRESH,4,2         ; @IIO_EV_TYPE_THRESH
	.comm	_IIO_EV_DIR_EITHER,4,2          ; @IIO_EV_DIR_EITHER
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_max44009_threaded_irq_handler
.subsections_via_symbols
