	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ring_kernel_db
_ring_kernel_db:                        ## @ring_kernel_db
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_db_delay_usecs@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%rdi), %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	16(%rax), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_cxgb4_dbfifo_count
	movq	(%r12), %rcx
	movl	8(%rcx), %ecx
	shll	$5, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_3
## %bb.1:
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_set_current_state
	movl	%ebx, %edi
	callq	_usecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout
	addl	%ebx, %ebx
	movl	%ebx, %edi
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_min
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	16(%rax), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_cxgb4_dbfifo_count
	movq	(%r12), %rcx
	movl	8(%rcx), %ecx
	shll	$5, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_2
LBB0_3:
	movl	%r15d, %edi
	callq	_V_QID
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_V_PIDX
	orl	%eax, %ebx
	movl	8(%r12), %esi
	movl	%ebx, %edi
	callq	_writel
	movq	(%r12), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_db_delay_usecs,4,2             ## @db_delay_usecs
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_ring_kernel_db
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ring_kernel_db
_ring_kernel_db:                        ; @ring_kernel_db
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _db_delay_usecs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _db_delay_usecs@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x0, [x0]
	bl	_mutex_lock
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_cxgb4_dbfifo_count
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	cmp	w0, w8, lsl #5
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x23, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_set_current_state
	mov	x0, x22
	bl	_usecs_to_jiffies
	bl	_schedule_timeout
	lsl	w0, w22, #1
	mov	w1, #2000
	bl	_min
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_cxgb4_dbfifo_count
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	cmp	w0, w8, lsl #5
	b.ge	LBB0_2
LBB0_3:
	mov	x0, x21
	bl	_V_QID
	mov	x21, x0
	mov	x0, x20
	bl	_V_PIDX
	orr	w0, w0, w21
	ldr	w1, [x19, #8]
	bl	_writel
	ldr	x0, [x19]
	bl	_mutex_unlock
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_db_delay_usecs,4,2             ; @db_delay_usecs
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_ring_kernel_db
.subsections_via_symbols
