	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max44000_trigger_handler
_max44000_trigger_handler:              ## @max44000_trigger_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	_MAX44000_SCAN_INDEX_ALS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_max44000_read_alsval
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	%eax, -64(%rbp)
	movl	$1, %r15d
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
LBB0_4:
	movq	_MAX44000_SCAN_INDEX_PRX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	4(%r14), %edi
	movq	_MAX44000_REG_PRX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-68(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	-68(%rbp), %eax
	movl	%eax, -64(%rbp,%r15,4)
LBB0_7:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_iio_get_time_ns
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_iio_push_to_buffers_with_timestamp
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	(%rbx), %edi
	callq	_iio_trigger_notify_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX44000_SCAN_INDEX_ALS,4,2    ## @MAX44000_SCAN_INDEX_ALS
	.comm	_MAX44000_SCAN_INDEX_PRX,4,2    ## @MAX44000_SCAN_INDEX_PRX
	.comm	_MAX44000_REG_PRX_DATA,4,2      ## @MAX44000_REG_PRX_DATA
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_max44000_trigger_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max44000_trigger_handler
_max44000_trigger_handler:              ; @max44000_trigger_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x19, [x1]
	mov	x0, x19
	bl	_iio_priv
	mov	x20, x0
	bl	_mutex_lock
Lloh3:
	adrp	x8, _MAX44000_SCAN_INDEX_ALS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX44000_SCAN_INDEX_ALS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_max44000_read_alsval
	tbnz	w0, #31, LBB0_8
; %bb.2:
	str	w0, [sp, #8]
	mov	w21, #1
	b	LBB0_4
LBB0_3:
	mov	x21, #0
LBB0_4:
Lloh6:
	adrp	x8, _MAX44000_SCAN_INDEX_PRX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX44000_SCAN_INDEX_PRX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x20, #4]
Lloh9:
	adrp	x8, _MAX44000_REG_PRX_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX44000_REG_PRX_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_regmap_read
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	w8, [sp, #4]
	add	x9, sp, #8
	str	w8, [x9, x21, lsl #2]
LBB0_7:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_iio_get_time_ns
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_iio_push_to_buffers_with_timestamp
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_9:
	ldr	w0, [x19]
	bl	_iio_trigger_notify_done
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX44000_SCAN_INDEX_ALS,4,2    ; @MAX44000_SCAN_INDEX_ALS
	.comm	_MAX44000_SCAN_INDEX_PRX,4,2    ; @MAX44000_SCAN_INDEX_PRX
	.comm	_MAX44000_REG_PRX_DATA,4,2      ; @MAX44000_REG_PRX_DATA
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_max44000_trigger_handler
.subsections_via_symbols
