	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t4_next_hw_cqe
_t4_next_hw_cqe:                        ## @t4_next_hw_cqe
	.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, %r14
	movq	%rdi, %rbx
	movslq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	-1(%rax), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	8(%rbx), %rcx
	decq	%rcx
LBB0_3:
	movq	32(%rbx), %rdx
	movq	(%rdx,%rcx,8), %rcx
	cmpq	16(%rbx), %rcx
	jne	LBB0_4
## %bb.5:
	leaq	(%rdx,%rax,8), %rsi
	movq	%rbx, %rdi
	callq	_t4_valid_cqe
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_udma_from_device_barrier
	movslq	(%rbx), %rax
	shlq	$3, %rax
	addq	32(%rbx), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_4:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_syslog
	movl	$1, 24(%rbx)
	xorl	%edi, %edi
	callq	_assert
	jmp	LBB0_8
LBB0_7:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.comm	_LOG_NOTICE,4,2                 ## @LOG_NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cxgb4 cq overflow cqid %u\n"

	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_t4_next_hw_cqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t4_next_hw_cqe
_t4_next_hw_cqe:                        ; @t4_next_hw_cqe
	.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	x20, x1
	mov	x19, x0
	ldrsw	x8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	sub	x9, x8, #1
	b	LBB0_3
LBB0_2:
	ldr	x9, [x19, #8]
	sub	x9, x9, #1
LBB0_3:
	ldr	x10, [x19, #32]
	ldr	x9, [x10, x9, lsl #3]
	ldr	x11, [x19, #16]
	cmp	x9, x11
	b.ne	LBB0_6
; %bb.4:
	add	x1, x10, x8, lsl #3
	mov	x0, x19
	bl	_t4_valid_cqe
	cbz	x0, LBB0_7
; %bb.5:
	bl	_udma_from_device_barrier
	mov	w21, #0
	ldr	x8, [x19, #32]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #3
	str	x8, [x20]
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
Lloh3:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x19, #40]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
	mov	w8, #1
	str	w8, [x19, #24]
	mov	w0, #0
	bl	_assert
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENODATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.comm	_LOG_NOTICE,4,2                 ; @LOG_NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cxgb4 cq overflow cqid %u\n"

	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_t4_next_hw_cqe
.subsections_via_symbols
