	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_clear_fifo
_zpa2326_clear_fifo:                    ## @zpa2326_clear_fifo
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_iio_priv
	movq	(%rax), %r15
	testl	%r13d, %r13d
	je	LBB0_1
LBB0_5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r12
	movq	_ZPA2326_STATUS_FIFO_E@GOTPCREL(%rip), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	decl	%r13d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ZPA2326_PRESS_OUT_H_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_ZPA2326_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_regmap_read
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jns	LBB0_11
LBB0_7:
	movl	%eax, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_1:
	movq	_ZPA2326_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movq	_ZPA2326_STATUS_FIFO_E@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, -44(%rbp)
	jne	LBB0_13
	jmp	LBB0_5
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_zpa2326_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_2:
	movl	%eax, %ebx
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_zpa2326_err
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPA2326_STATUS_REG,4,2         ## @ZPA2326_STATUS_REG
	.comm	_ZPA2326_STATUS_FIFO_E,4,2      ## @ZPA2326_STATUS_FIFO_E
	.comm	_ZPA2326_PRESS_OUT_H_REG,4,2    ## @ZPA2326_PRESS_OUT_H_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FIFO cleared"

L_.str.1:                               ## @.str.1
	.asciz	"failed to clear FIFO (%d)"

	.no_dead_strip	_zpa2326_clear_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_clear_fifo
_zpa2326_clear_fifo:                    ; @zpa2326_clear_fifo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	bl	_iio_priv
	ldr	x20, [x0]
Lloh0:
	adrp	x23, _ZPA2326_STATUS_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ZPA2326_STATUS_REG@GOTPAGEOFF]
	cbz	w21, LBB0_8
LBB0_1:
Lloh2:
	adrp	x24, _ZPA2326_PRESS_OUT_H_REG@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ZPA2326_PRESS_OUT_H_REG@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ZPA2326_STATUS_FIFO_E@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ZPA2326_STATUS_FIFO_E@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w21, w21, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w21, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	b	LBB0_3
LBB0_8:
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.9:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _ZPA2326_STATUS_FIFO_E@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ZPA2326_STATUS_FIFO_E@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
	b	LBB0_1
LBB0_10:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_zpa2326_err
	b	LBB0_13
LBB0_11:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_zpa2326_dbg
LBB0_12:
	mov	w22, #0
LBB0_13:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPA2326_STATUS_REG,4,2         ; @ZPA2326_STATUS_REG
	.comm	_ZPA2326_STATUS_FIFO_E,4,2      ; @ZPA2326_STATUS_FIFO_E
	.comm	_ZPA2326_PRESS_OUT_H_REG,4,2    ; @ZPA2326_PRESS_OUT_H_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FIFO cleared"

l_.str.1:                               ; @.str.1
	.asciz	"failed to clear FIFO (%d)"

	.no_dead_strip	_zpa2326_clear_fifo
.subsections_via_symbols
