	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recover_lost_dbs
_recover_lost_dbs:                      ## @recover_lost_dbs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rsi)
	jle	LBB0_8
## %bb.1:
	xorl	%ecx, %ecx
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%rsi), %rax
	cmpq	%rax, %rcx
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%rsi), %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %r12
	movq	(%r12), %rdi
	addq	$8, %rdi
	callq	_xa_lock_irq
	leaq	8(%r12), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	16(%r12), %rbx
	movl	40(%r12), %r13d
	movq	%rbx, %rdi
	callq	_t4_sq_host_wq_pidx
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_t4_sq_wq_size
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_cxgb4_sync_txq_pidx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 32(%r12)
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	24(%r12), %r15d
	movq	%rbx, %rdi
	callq	_t4_rq_host_wq_pidx
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_t4_rq_wq_size
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_cxgb4_sync_txq_pidx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 16(%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	(%r12), %rdi
	addq	$8, %rdi
	callq	_xa_unlock_irq
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_cxgb4_dbfifo_count
	testq	%rax, %rax
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r14), %edi
	callq	_set_current_state
	movl	$10, %edi
	callq	_usecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout
	jmp	LBB0_6
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	40(%r12), %r14
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_11
LBB0_9:
	leaq	24(%r12), %r14
	leaq	L_.str.1(%rip), %rbx
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_pci_name
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	(%r12), %rdi
	addq	$8, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xa_unlock_irq                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Fatal error - DB overflow recovery failed - error syncing SQ qid %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Fatal error - DB overflow recovery failed - error syncing RQ qid %u\n"

	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_recover_lost_dbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recover_lost_dbs
_recover_lost_dbs:                      ; @recover_lost_dbs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x1]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x27, #0
Lloh0:
	adrp	x28, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x20]
	cmp	x27, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x20, #8]
	ldr	x26, [x8, x27, lsl #3]
	ldr	x8, [x26]
	add	x0, x8, #8
	bl	_xa_lock_irq
	add	x21, x26, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	w23, [x8]
	add	x22, x26, #16
	ldr	w24, [x26, #40]
	mov	x0, x22
	bl	_t4_sq_host_wq_pidx
	mov	x25, x0
	mov	x0, x22
	bl	_t4_sq_wq_size
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_cxgb4_sync_txq_pidx
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x26, #32]
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	w23, [x8]
	ldr	w24, [x26, #24]
	mov	x0, x22
	bl	_t4_rq_host_wq_pidx
	mov	x25, x0
	mov	x0, x22
	bl	_t4_rq_wq_size
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_cxgb4_sync_txq_pidx
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x26, #16]
	mov	x0, x21
	bl	_spin_unlock
	ldr	x8, [x26]
	add	x0, x8, #8
	bl	_xa_unlock_irq
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_cxgb4_dbfifo_count
	cmp	x0, #1
	b.lt	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x28]
	bl	_set_current_state
	mov	w0, #10
	bl	_usecs_to_jiffies
	bl	_schedule_timeout
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_cxgb4_dbfifo_count
	cmp	x0, #0
	b.gt	LBB0_6
	b	LBB0_2
LBB0_7:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x22, x26, #40
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
	add	x22, x26, #24
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_10:
	ldr	w0, [x19]
	bl	_pci_name
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x20
	bl	_pr_err
	mov	x0, x21
	bl	_spin_unlock
	ldr	x8, [x26]
	add	x0, x8, #8
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_xa_unlock_irq
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Fatal error - DB overflow recovery failed - error syncing SQ qid %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Fatal error - DB overflow recovery failed - error syncing RQ qid %u\n"

	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_recover_lost_dbs
.subsections_via_symbols
