	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_sample_oneshot
_zpa2326_sample_oneshot:                ## @zpa2326_sample_oneshot
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_iio_device_claim_direct_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	%r12, %rdi
	callq	_zpa2326_resume
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.2:
	movq	%r12, %rdi
	callq	_iio_priv
	movq	%rax, %r13
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	movq	_IIO_PRESSURE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_zpa2326_clear_fifo
	jmp	LBB0_6
LBB0_5:
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_zpa2326_config_oneshot
LBB0_6:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
LBB0_7:
	movq	%r12, %rdi
	callq	_zpa2326_start_oneshot
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	cmpq	$0, (%r13)
	jle	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_zpa2326_wait_oneshot_completion
	jmp	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	callq	_zpa2326_poll_oneshot_completion
LBB0_11:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_zpa2326_fetch_raw_sample
	movl	%eax, %ebx
LBB0_13:
	movq	%r12, %rdi
	callq	_zpa2326_suspend
LBB0_14:
	movq	%r12, %rdi
	callq	_iio_device_release_direct_mode
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IIO_PRESSURE,4,2               ## @IIO_PRESSURE
	.no_dead_strip	_zpa2326_sample_oneshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_sample_oneshot
_zpa2326_sample_oneshot:                ; @zpa2326_sample_oneshot
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_iio_device_claim_direct_mode
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.1:
	mov	x0, x19
	bl	_zpa2326_resume
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.2:
	mov	x0, x19
	bl	_iio_priv
	mov	x23, x0
	cbz	w22, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _IIO_PRESSURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IIO_PRESSURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_zpa2326_clear_fifo
	mov	x22, x0
	cbnz	w0, LBB0_10
	b	LBB0_6
LBB0_5:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_zpa2326_config_oneshot
	mov	x22, x0
	cbnz	w0, LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_zpa2326_start_oneshot
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.7:
	ldr	x8, [x23]
	mov	x0, x19
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x1, x23
	bl	_zpa2326_wait_oneshot_completion
	mov	x22, x0
	cbnz	w0, LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_zpa2326_fetch_raw_sample
	mov	x22, x0
LBB0_10:
	mov	x0, x19
	bl	_zpa2326_suspend
LBB0_11:
	mov	x0, x19
	bl	_iio_device_release_direct_mode
LBB0_12:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	_zpa2326_poll_oneshot_completion
	mov	x22, x0
	cbnz	w0, LBB0_10
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IIO_PRESSURE,4,2               ; @IIO_PRESSURE
	.no_dead_strip	_zpa2326_sample_oneshot
.subsections_via_symbols
