	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_trigger_handler
_zpa2326_trigger_handler:               ## @zpa2326_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_iio_trigger_using_own
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_1
## %bb.9:
	movq	%r14, %rsi
	callq	_zpa2326_fill_sample_buffer
	jmp	LBB0_8
LBB0_1:
	callq	_zpa2326_start_oneshot
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	callq	_zpa2326_sleep
LBB0_8:
	movl	(%rbx), %edi
	callq	_iio_trigger_notify_done
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, (%r14)
	jle	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_zpa2326_wait_oneshot_completion
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_zpa2326_poll_oneshot_completion
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_iio_get_time_ns
	movl	%eax, 8(%r14)
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_zpa2326_fill_sample_buffer
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_zpa2326_trigger_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_trigger_handler
_zpa2326_trigger_handler:               ; @zpa2326_trigger_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
	ldr	x19, [x1]
	mov	x0, x19
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x19
	bl	_iio_trigger_using_own
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_zpa2326_fill_sample_buffer
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_zpa2326_start_oneshot
	cbz	x0, LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_zpa2326_sleep
LBB0_4:
	ldr	w0, [x19]
	bl	_iio_trigger_notify_done
Lloh0:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x20]
	mov	x0, x19
	cmp	x8, #0
	b.le	LBB0_7
; %bb.6:
	mov	x1, x20
	bl	_zpa2326_wait_oneshot_completion
	cbnz	x0, LBB0_3
	b	LBB0_9
LBB0_7:
	bl	_zpa2326_poll_oneshot_completion
	cbnz	x0, LBB0_3
; %bb.8:
	mov	x0, x19
	bl	_iio_get_time_ns
	str	w0, [x20, #8]
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_zpa2326_fill_sample_buffer
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_zpa2326_trigger_handler
.subsections_via_symbols
