	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_config_oneshot
_zpa2326_config_oneshot:                ## @zpa2326_config_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
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_iio_priv
	movq	(%rax), %r13
	xorl	%eax, %eax
	callq	_zpa2326_highest_frequency
	movq	%rax, %r15
	movq	_ZPA2326_CTRL_REG3_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movq	%r13, %rdi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_4
## %bb.2:
	movq	_ZPA2326_CTRL_REG1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ZPA2326_CTRL_REG1_MASK_DATA_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	%r13, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_4:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_zpa2326_dbg
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPA2326_CTRL_REG3_REG,4,2      ## @ZPA2326_CTRL_REG3_REG
	.comm	_ZPA2326_CTRL_REG1_REG,4,2      ## @ZPA2326_CTRL_REG1_REG
	.comm	_ZPA2326_CTRL_REG1_MASK_DATA_READY,8,3 ## @ZPA2326_CTRL_REG1_MASK_DATA_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to setup one shot mode (%d)"

L_.str.1:                               ## @.str.1
	.asciz	"one shot mode setup @%dHz"

	.no_dead_strip	_zpa2326_config_oneshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_config_oneshot
_zpa2326_config_oneshot:                ; @zpa2326_config_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	x22, x1
	mov	x19, x0
	bl	_iio_priv
	ldr	x21, [x0]
	bl	_zpa2326_highest_frequency
	mov	x20, x0
Lloh0:
	adrp	x8, _ZPA2326_CTRL_REG3_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPA2326_CTRL_REG3_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x0, #4]
	mov	x0, x21
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.1:
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ZPA2326_CTRL_REG1_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZPA2326_CTRL_REG1_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ZPA2326_CTRL_REG1_MASK_DATA_READY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZPA2326_CTRL_REG1_MASK_DATA_READY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x21
	bl	_regmap_write
	cbz	w0, LBB0_4
; %bb.3:
	mov	x23, x0
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	ldr	w2, [x20]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_zpa2326_dbg
	mov	w23, #0
LBB0_5:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPA2326_CTRL_REG3_REG,4,2      ; @ZPA2326_CTRL_REG3_REG
	.comm	_ZPA2326_CTRL_REG1_REG,4,2      ; @ZPA2326_CTRL_REG1_REG
	.comm	_ZPA2326_CTRL_REG1_MASK_DATA_READY,8,3 ; @ZPA2326_CTRL_REG1_MASK_DATA_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to setup one shot mode (%d)"

l_.str.1:                               ; @.str.1
	.asciz	"one shot mode setup @%dHz"

	.no_dead_strip	_zpa2326_config_oneshot
.subsections_via_symbols
