	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_wait_oneshot_completion
_zpa2326_wait_oneshot_completion:       ## @zpa2326_wait_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_zpa2326_dbg
	leaq	8(%rbx), %rdi
	movq	_ZPA2326_CONVERSION_JIFFIES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wait_for_completion_interruptible_timeout
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movl	(%rbx), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%rax, %r15
	movl	4(%rbx), %edi
	movq	_ZPA2326_INT_SOURCE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_zpa2326_warn
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_zpa2326_warn
	movq	_ETIME@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waiting for one shot completion interrupt"

	.comm	_ZPA2326_CONVERSION_JIFFIES,4,2 ## @ZPA2326_CONVERSION_JIFFIES
	.comm	_ZPA2326_INT_SOURCE_REG,4,2     ## @ZPA2326_INT_SOURCE_REG
L_.str.1:                               ## @.str.1
	.asciz	"no one shot interrupt occurred (%ld)"

	.comm	_ETIME,4,2                      ## @ETIME
L_.str.2:                               ## @.str.2
	.asciz	"wait for one shot interrupt cancelled"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_zpa2326_wait_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_wait_oneshot_completion
_zpa2326_wait_oneshot_completion:       ; @zpa2326_wait_oneshot_completion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_zpa2326_dbg
	add	x0, x20, #8
Lloh2:
	adrp	x8, _ZPA2326_CONVERSION_JIFFIES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZPA2326_CONVERSION_JIFFIES@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_wait_for_completion_interruptible_timeout
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x20]
	b	LBB0_6
LBB0_2:
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh5:
	adrp	x8, _ZPA2326_INT_SOURCE_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZPA2326_INT_SOURCE_REG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	x21, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_zpa2326_warn
Lloh10:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	str	xzr, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_zpa2326_warn
Lloh14:
	adrp	x8, _ETIME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waiting for one shot completion interrupt"

	.comm	_ZPA2326_CONVERSION_JIFFIES,4,2 ; @ZPA2326_CONVERSION_JIFFIES
	.comm	_ZPA2326_INT_SOURCE_REG,4,2     ; @ZPA2326_INT_SOURCE_REG
l_.str.1:                               ; @.str.1
	.asciz	"no one shot interrupt occurred (%ld)"

	.comm	_ETIME,4,2                      ; @ETIME
l_.str.2:                               ; @.str.2
	.asciz	"wait for one shot interrupt cancelled"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_zpa2326_wait_oneshot_completion
.subsections_via_symbols
