	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_db_rec_flush_queue
_qed_db_rec_flush_queue:                ## @qed_db_rec_flush_queue
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_QED_DB_REC_COUNT@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_DORQ_REG_DPM_FORCE_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %r13d
	movl	$1, %ecx
	callq	_qed_wr
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	decl	%ebx
	movq	_QED_DB_REC_INTERVAL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DORQ_REG_PF_USAGE_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_rd
	movl	%eax, %r13d
	movl	(%r12), %edi
	callq	_udelay
	addl	$-1, %ebx
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_2
LBB0_4:
	testl	%r13d, %r13d
	movq	_QED_DB_REC_COUNT@GOTPCREL(%rip), %r12
	je	LBB0_5
LBB0_6:
	movl	(%r14), %edi
	movq	_QED_DB_REC_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%r12), %edx
	imull	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	callq	_DP_NOTICE
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_DB_REC_COUNT,4,2           ## @QED_DB_REC_COUNT
	.comm	_DORQ_REG_DPM_FORCE_ABORT,4,2   ## @DORQ_REG_DPM_FORCE_ABORT
	.comm	_DORQ_REG_PF_USAGE_CNT,4,2      ## @DORQ_REG_PF_USAGE_CNT
	.comm	_QED_DB_REC_INTERVAL,4,2        ## @QED_DB_REC_INTERVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DB recovery: doorbell usage failed to zero after %d usec. usage was %x\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_qed_db_rec_flush_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_db_rec_flush_queue
_qed_db_rec_flush_queue:                ; @qed_db_rec_flush_queue
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _QED_DB_REC_COUNT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _QED_DB_REC_COUNT@GOTPAGEOFF]
	ldr	w24, [x22]
Lloh2:
	adrp	x8, _DORQ_REG_DPM_FORCE_ABORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DORQ_REG_DPM_FORCE_ABORT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w21, #1
	mov	w3, #1
	bl	_qed_wr
Lloh5:
	adrp	x23, _QED_DB_REC_INTERVAL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _QED_DB_REC_INTERVAL@GOTPAGEOFF]
	cbz	w24, LBB0_5
; %bb.1:
	sub	w24, w24, #1
Lloh7:
	adrp	x25, _DORQ_REG_PF_USAGE_CNT@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DORQ_REG_PF_USAGE_CNT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_rd
	mov	x21, x0
	ldr	w0, [x23]
	bl	_udelay
	subs	w24, w24, #1
	b.lo	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w21, LBB0_2
LBB0_4:
	cbz	w21, LBB0_6
LBB0_5:
	ldr	w0, [x19]
	ldr	w8, [x23]
	ldr	w9, [x22]
	mul	w2, w9, w8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_DP_NOTICE
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_DB_REC_COUNT,4,2           ; @QED_DB_REC_COUNT
	.comm	_DORQ_REG_DPM_FORCE_ABORT,4,2   ; @DORQ_REG_DPM_FORCE_ABORT
	.comm	_DORQ_REG_PF_USAGE_CNT,4,2      ; @DORQ_REG_PF_USAGE_CNT
	.comm	_QED_DB_REC_INTERVAL,4,2        ; @QED_DB_REC_INTERVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DB recovery: doorbell usage failed to zero after %d usec. usage was %x\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_qed_db_rec_flush_queue
.subsections_via_symbols
