	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_op_done
_wait_op_done:                          ## @wait_op_done
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	callq	*(%rax)
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.7:
	leaq	16(%r12), %r15
	movq	%r15, %rdi
	callq	_reinit_completion
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_irq_control
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wait_for_completion_timeout
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	8(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_2:
	movl	$-7999, %ebx                    ## imm = 0xE0C1
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	8(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %ecx
	testl	%ebx, %ebx
	movl	%ecx, %ebx
	jne	LBB0_3
LBB0_5:
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
LBB0_10:
	movl	(%r12), %edi
	callq	_dev_dbg
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %edi
	shrl	$31, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_WARN_ONCE
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout waiting for irq\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"timeout polling for completion\n"

L_.str.2:                               ## @.str.2
	.asciz	"timeout! useirq=%d\n"

	.no_dead_strip	_wait_op_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_op_done
_wait_op_done:                          ; @wait_op_done
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_13
LBB0_2:
	cbz	w19, LBB0_6
; %bb.3:
	add	x21, x20, #16
	mov	x0, x21
	bl	_reinit_completion
	mov	x0, x20
	mov	w1, #1
	bl	_irq_control
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wait_for_completion_timeout
	cbnz	x0, LBB0_9
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cbnz	w0, LBB0_9
; %bb.5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_6:
	mov	w21, #-7999
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cmp	w0, #0
	ccmp	w21, #0, #4, eq
	add	w21, w21, #1
	b.ne	LBB0_7
; %bb.8:
	cbz	w0, LBB0_10
LBB0_9:
	mov	w20, #0
	b	LBB0_12
LBB0_10:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	ldr	w0, [x20]
	bl	_dev_dbg
Lloh7:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	lsr	w0, w20, #31
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_WARN_ONCE
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout waiting for irq\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"timeout polling for completion\n"

l_.str.2:                               ; @.str.2
	.asciz	"timeout! useirq=%d\n"

	.no_dead_strip	_wait_op_done
.subsections_via_symbols
