	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_poll_oneshot_completion
_zpa2326_poll_oneshot_completion:       ## @zpa2326_poll_oneshot_completion
	.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
	movq	%rdi, %r14
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_ZPA2326_CONVERSION_JIFFIES@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	addq	(%rcx), %r12
	callq	_iio_priv
	movq	(%rax), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_zpa2326_dbg
	movl	$100, %edi
	callq	_msleep_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_2:
	movq	_ZPA2326_CTRL_REG0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_ZPA2326_CTRL_REG0_ONE_SHOT@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movq	_ZPA2326_CTRL_REG0_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jns	LBB0_4
## %bb.7:
	movl	%eax, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_9:
	movq	_ZPA2326_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	js	LBB0_13
## %bb.10:
	movq	_ZPA2326_STATUS_P_DA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, -44(%rbp)
	jne	LBB0_15
## %bb.11:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_12:
	movq	_ETIME@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_zpa2326_warn
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ZPA2326_CONVERSION_JIFFIES,8,3 ## @ZPA2326_CONVERSION_JIFFIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"polling for one shot completion"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_ZPA2326_CTRL_REG0_REG,4,2      ## @ZPA2326_CTRL_REG0_REG
	.comm	_ZPA2326_CTRL_REG0_ONE_SHOT,4,2 ## @ZPA2326_CTRL_REG0_ONE_SHOT
	.comm	_ETIME,4,2                      ## @ETIME
	.comm	_ZPA2326_STATUS_REG,4,2         ## @ZPA2326_STATUS_REG
	.comm	_ZPA2326_STATUS_P_DA,4,2        ## @ZPA2326_STATUS_P_DA
	.comm	_ENODATA,4,2                    ## @ENODATA
L_.str.1:                               ## @.str.1
	.asciz	"failed to poll one shot completion (%d)"

	.no_dead_strip	_zpa2326_poll_oneshot_completion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_poll_oneshot_completion
_zpa2326_poll_oneshot_completion:       ; @zpa2326_poll_oneshot_completion
	.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	x19, x0
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x22, [x23]
Lloh2:
	adrp	x8, _ZPA2326_CONVERSION_JIFFIES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZPA2326_CONVERSION_JIFFIES@GOTPAGEOFF]
Lloh4:
	ldr	x25, [x8]
	bl	_iio_priv
	ldr	x20, [x0]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_zpa2326_dbg
	mov	w0, #100
	bl	_msleep_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_2:
Lloh10:
	adrp	x24, _ZPA2326_CTRL_REG0_REG@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ZPA2326_CTRL_REG0_REG@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.3:
	add	x22, x25, x22
Lloh12:
	adrp	x25, _ZPA2326_CTRL_REG0_ONE_SHOT@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ZPA2326_CTRL_REG0_ONE_SHOT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_after
	cbnz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	tbz	w0, #31, LBB0_4
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _ZPA2326_STATUS_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZPA2326_STATUS_REG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_regmap_read
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	w8, [sp, #12]
Lloh17:
	adrp	x9, _ZPA2326_STATUS_P_DA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ZPA2326_STATUS_P_DA@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	mov	w21, #0
	b	LBB0_15
LBB0_10:
	mov	x21, x0
	b	LBB0_14
LBB0_11:
Lloh20:
	adrp	x8, _ETIME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh22:
	adrp	x8, _ENODATA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_zpa2326_warn
LBB0_15:
	mov	x0, x21
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ZPA2326_CONVERSION_JIFFIES,8,3 ; @ZPA2326_CONVERSION_JIFFIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"polling for one shot completion"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_ZPA2326_CTRL_REG0_REG,4,2      ; @ZPA2326_CTRL_REG0_REG
	.comm	_ZPA2326_CTRL_REG0_ONE_SHOT,4,2 ; @ZPA2326_CTRL_REG0_ONE_SHOT
	.comm	_ETIME,4,2                      ; @ETIME
	.comm	_ZPA2326_STATUS_REG,4,2         ; @ZPA2326_STATUS_REG
	.comm	_ZPA2326_STATUS_P_DA,4,2        ; @ZPA2326_STATUS_P_DA
	.comm	_ENODATA,4,2                    ; @ENODATA
l_.str.1:                               ; @.str.1
	.asciz	"failed to poll one shot completion (%d)"

	.no_dead_strip	_zpa2326_poll_oneshot_completion
.subsections_via_symbols
