	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_db_recovery_ring
_qed_db_recovery_ring:                  ## @qed_db_recovery_ring
	.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
	movq	_DB_REC_WIDTH_32B@GOTPCREL(%rip), %r15
	movq	(%rsi), %rax
	movq	8(%rsi), %rdx
	cmpq	(%r15), %rax
	movq	_QED_MSG_SPQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	movl	(%rdx), %r8d
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	callq	_DP_VERBOSE
	movl	(%r14), %edi
	movl	16(%rbx), %esi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	callq	_qed_db_rec_sanity
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_wmb
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	16(%rbx), %edi
	movl	(%rcx), %esi
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.2:
	callq	_DIRECT_REG_WR
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	callq	_DIRECT_REG_WR64
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DB_REC_WIDTH_32B,8,3           ## @DB_REC_WIDTH_32B
	.comm	_QED_MSG_SPQ,4,2                ## @QED_MSG_SPQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ringing doorbell address %p data %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"ringing doorbell address %p data %llx\n"

	.no_dead_strip	_qed_db_recovery_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_db_recovery_ring
_qed_db_recovery_ring:                  ; @qed_db_recovery_ring
	.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
Lloh0:
	adrp	x21, _DB_REC_WIDTH_32B@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DB_REC_WIDTH_32B@GOTPAGEOFF]
Lloh2:
	adrp	x8, _QED_MSG_SPQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QED_MSG_SPQ@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh4:
	ldr	w1, [x8]
	ldr	w3, [x19, #16]
	ldp	x8, x10, [x19]
	ldr	w4, [x10]
Lloh5:
	adrp	x10, l_.str.1@PAGE
Lloh6:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh7:
	adrp	x11, l_.str@PAGE
Lloh8:
	add	x11, x11, l_.str@PAGEOFF
	cmp	x8, x9
	csel	x2, x11, x10, eq
	bl	_DP_VERBOSE
	ldr	w0, [x20]
	ldr	w1, [x19, #16]
	ldp	x2, x3, [x19]
	bl	_qed_db_rec_sanity
	cbz	w0, LBB0_3
; %bb.1:
	bl	_wmb
	ldr	x8, [x21]
	ldr	w0, [x19, #16]
	ldp	x9, x10, [x19]
	ldr	w1, [x10]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.2:
	bl	_DIRECT_REG_WR
	b	LBB0_5
LBB0_3:
	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
LBB0_4:
	bl	_DIRECT_REG_WR64
LBB0_5:
	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
	b	_wmb
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DB_REC_WIDTH_32B,8,3           ; @DB_REC_WIDTH_32B
	.comm	_QED_MSG_SPQ,4,2                ; @QED_MSG_SPQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ringing doorbell address %p data %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"ringing doorbell address %p data %llx\n"

	.no_dead_strip	_qed_db_recovery_ring
.subsections_via_symbols
