	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_rx_cq_clean
_be_rx_cq_clean:                        ## @be_rx_cq_clean
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_be_rx_compl_get
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_be_rx_compl_discard
	movl	36(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_be_cq_notify
	cmpq	$0, (%rbx)
	jne	LBB0_1
	jmp	LBB0_8
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_lancer_chip
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$10, %r15d
	ja	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_be_hw_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	movl	36(%r12), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_be_cq_notify
	movl	$1, %edi
	callq	_mdelay
	jmp	LBB0_1
LBB0_5:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_8:
	movl	36(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_be_cq_notify
	movq	48(%r12), %rbx
	addq	40(%r12), %rbx
	leaq	64(%r12), %r14
	movq	%r14, %rdi
	callq	_atomic_read
	subq	%rax, %rbx
	movq	48(%r12), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %rbx
	jmp	LBB0_11
LBB0_9:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
LBB0_11:
	movq	%rbx, -40(%rbp)
	movq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_15
## %bb.12:
	leaq	-40(%rbp), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_get_rx_page_info
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_put_page
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	48(%r12), %rsi
	movq	%r15, %rdi
	callq	_index_inc
	movq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-40(%rbp), %rbx
	jmp	LBB0_13
LBB0_15:
	movq	%r14, %rdi
	callq	_atomic_read
	movq	%rax, %rdi
	callq	_BUG_ON
	movq	$0, 40(%r12)
	movq	$0, 56(%r12)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"did not receive flush compl\n"

	.no_dead_strip	_be_rx_cq_clean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_rx_cq_clean
_be_rx_cq_clean:                        ; @be_rx_cq_clean
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	w22, #0
	ldr	x20, [x0]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_be_rx_compl_get
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_be_rx_compl_discard
	ldr	w1, [x19, #36]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	bl	_be_cq_notify
	ldr	x8, [x21]
	cbnz	x8, LBB0_1
	b	LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_lancer_chip
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w22, #10
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_be_hw_error
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w22, w22, #1
	ldr	w1, [x19, #36]
	mov	x0, x20
	mov	w2, #1
	mov	w3, #0
	bl	_be_cq_notify
	mov	w0, #1
	bl	_mdelay
	b	LBB0_1
LBB0_7:
	ldr	x0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_8:
	ldr	w1, [x19, #36]
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	bl	_be_cq_notify
	ldp	x8, x9, [x19, #40]
	add	x21, x9, x8
	add	x20, x19, #64
	mov	x0, x20
	bl	_atomic_read
	sub	x8, x21, x0
	ldr	x9, [x19, #48]
	sdiv	x10, x8, x9
	msub	x21, x10, x9, x8
	str	x21, [sp, #8]
	mov	x0, x20
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_get_rx_page_info
	mov	x21, x0
	ldr	w0, [x0]
	bl	_put_page
	mov	x0, x21
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x1, [x19, #48]
	add	x0, sp, #8
	bl	_index_inc
	mov	x0, x20
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x21, [sp, #8]
	b	LBB0_9
LBB0_11:
	mov	x0, x20
	bl	_atomic_read
	bl	_BUG_ON
	str	xzr, [x19, #40]
	str	xzr, [x19, #56]
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"did not receive flush compl\n"

	.no_dead_strip	_be_rx_cq_clean
.subsections_via_symbols
