	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_proc_cqes
_ehea_proc_cqes:                        ## @ehea_proc_cqes
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	40(%rdi), %r13
	movl	16(%rax), %edi
	movq	%r15, %rcx
	subq	8(%rax), %rcx
	shrq	$4, %rcx
	imull	$-1431655765, %ecx, %esi        ## imm = 0xAAAAAAAB
	callq	_netdev_get_tx_queue
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_ehea_poll_cq
	movq	%rax, %rcx
	testq	%rax, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_14
## %bb.2:
	movl	$1, %eax
	xorl	%ebx, %ebx
	movq	%rcx, %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_ehea_inc_cq
	xorl	%eax, %eax
	callq	_rmb
	movq	(%r14), %rax
	movq	_SWQE_RESTART_CHECK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r14), %esi
	movq	_EHEA_CQE_STAT_ERR_MASK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	16(%r15), %rdi
	callq	_netif_msg_tx_err
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	$16, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_ehea_dump
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_EHEA_CQE_STAT_RESET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	jne	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rdi
	callq	_netif_msg_tx_done
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	$16, %esi
	leaq	L_.str.3(%rip), %rdx
	callq	_ehea_dump
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_EHEA_WR_ID_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_EHEA_BMASK_GET
	xorl	%edi, %edi
	movq	_EHEA_SWQE2_TYPE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_EHEA_WR_ID_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_EHEA_BMASK_GET
	movq	32(%r15), %rcx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, %rbx
	movq	%r12, %r14
	movq	%r13, %r12
	movq	%r15, %r13
	movslq	%eax, %r15
	movq	(%rcx,%r15,8), %rdi
	callq	_dev_consume_skb_any
	movq	32(%r13), %rax
	movq	$0, (%rax,%r15,8)
	movq	%r13, %r15
	movq	%r12, %r13
	movq	%r14, %r12
	movq	%rbx, %r14
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_EHEA_WR_ID_REFILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_EHEA_BMASK_GET
	addl	%eax, %ebx
	movq	%r13, %rdi
	callq	_ehea_poll_cq
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%r12), %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leal	1(%rsi), %eax
	cmpl	$1, %r12d
	movl	%ecx, %r12d
	jg	LBB0_3
	jmp	LBB0_18
LBB0_14:
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	movq	%rcx, %r14
	jmp	LBB0_18
LBB0_15:
	movl	$1, (%r15)
	incl	%ebx
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	16(%r15), %rdi
	callq	_ehea_schedule_port_reset
LBB0_17:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_18:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ehea_update_feca
	leaq	24(%r15), %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_atomic_add
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	movl	$0, %edi
	je	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	cmpq	8(%r15), %rax
	setge	%dil
LBB0_20:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	___netif_tx_lock
	movq	%r14, %rdi
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	%r12, %rdi
	callq	_atomic_read
	cmpq	8(%r15), %rax
	jl	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	callq	_netif_tx_wake_queue
LBB0_24:
	movq	%r14, %rdi
	callq	___netif_tx_unlock
LBB0_25:
	movq	16(%r15), %rdi
	callq	_wake_up
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWQE_RESTART_CHECK,8,3         ## @SWQE_RESTART_CHECK
	.comm	_EHEA_CQE_STAT_ERR_MASK,4,2     ## @EHEA_CQE_STAT_ERR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad send completion status=0x%04X\n"

L_.str.1:                               ## @.str.1
	.asciz	"Send CQE"

	.comm	_EHEA_CQE_STAT_RESET_MASK,4,2   ## @EHEA_CQE_STAT_RESET_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Resetting port\n"

L_.str.3:                               ## @.str.3
	.asciz	"CQE"

	.comm	_EHEA_WR_ID_TYPE,4,2            ## @EHEA_WR_ID_TYPE
	.comm	_EHEA_SWQE2_TYPE,4,2            ## @EHEA_SWQE2_TYPE
	.comm	_EHEA_WR_ID_INDEX,4,2           ## @EHEA_WR_ID_INDEX
	.comm	_EHEA_WR_ID_REFILL,4,2          ## @EHEA_WR_ID_REFILL
	.no_dead_strip	_ehea_proc_cqes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_proc_cqes
_ehea_proc_cqes:                        ; @ehea_proc_cqes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x24, x1
	mov	x19, x0
	ldr	x22, [x0, #40]
	ldr	x8, [x0, #16]
	ldr	w0, [x8, #16]
	ldr	x8, [x8, #8]
	sub	x8, x19, x8
	lsr	x8, x8, #4
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	w1, w8, w9
	bl	_netdev_get_tx_queue
	mov	x20, x0
	mov	x0, x22
	bl	_ehea_poll_cq
	mov	x21, x0
	cmp	x0, #0
	ccmp	w24, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	w1, #0
	mov	w23, #0
	b	LBB0_18
LBB0_2:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	w8, #0
	mov	w23, #0
Lloh0:
	adrp	x27, _SWQE_RESTART_CHECK@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SWQE_RESTART_CHECK@GOTPAGEOFF]
Lloh2:
	adrp	x25, _EHEA_CQE_STAT_ERR_MASK@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EHEA_CQE_STAT_ERR_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x26, _EHEA_WR_ID_REFILL@GOTPAGE
Lloh5:
	ldr	x26, [x26, _EHEA_WR_ID_REFILL@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	mov	x0, x22
	bl	_ehea_inc_cq
	bl	_rmb
	ldr	x8, [x21]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	x0, [x19, #16]
	bl	_netif_msg_tx_err
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	w1, #16
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_ehea_dump
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, #8]
Lloh10:
	adrp	x9, _EHEA_CQE_STAT_RESET_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EHEA_CQE_STAT_RESET_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #16]
	bl	_netif_msg_tx_done
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	w1, #16
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_ehea_dump
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x8, _EHEA_WR_ID_TYPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EHEA_WR_ID_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x1, [x21]
	bl	_EHEA_BMASK_GET
Lloh18:
	adrp	x8, _EHEA_SWQE2_TYPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EHEA_SWQE2_TYPE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh21:
	adrp	x8, _EHEA_WR_ID_INDEX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EHEA_WR_ID_INDEX@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x1, [x21]
	bl	_EHEA_BMASK_GET
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #32]
	sbfiz	x20, x0, #3, #32
	ldr	x0, [x8, x20]
	bl	_dev_consume_skb_any
	ldr	x8, [x19, #32]
	str	xzr, [x8, x20]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
	ldr	x1, [x21]
	bl	_EHEA_BMASK_GET
	add	w23, w0, w23
	mov	x0, x22
	bl	_ehea_poll_cq
	mov	x21, x0
	cbz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w24, w28
	sub	w8, w28, #1
	cmp	w9, #1
	b.gt	LBB0_3
	b	LBB0_16
LBB0_14:
	mov	w8, #1
	str	w8, [x19]
	add	w23, w23, #1
	b	LBB0_17
LBB0_15:
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	ldr	x0, [x19, #16]
	bl	_ehea_schedule_port_reset
LBB0_16:
	mov	w8, #1
LBB0_17:
	sub	w1, w8, w28
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
LBB0_18:
	mov	x0, x22
	bl	_ehea_update_feca
	add	x22, x19, #24
	mov	x0, x23
	mov	x1, x22
	bl	_atomic_add
	mov	x0, x20
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x22
	bl	_atomic_read
	ldr	x8, [x19, #8]
	cmp	x0, x8
	cset	w0, ge
LBB0_20:
	bl	_unlikely
	cbz	x0, LBB0_25
; %bb.21:
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x20
	bl	___netif_tx_lock
	mov	x0, x20
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_24
; %bb.22:
	mov	x0, x22
	bl	_atomic_read
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.lt	LBB0_24
; %bb.23:
	mov	x0, x20
	bl	_netif_tx_wake_queue
LBB0_24:
	mov	x0, x20
	bl	___netif_tx_unlock
LBB0_25:
	ldr	x0, [x19, #16]
	bl	_wake_up
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SWQE_RESTART_CHECK,8,3         ; @SWQE_RESTART_CHECK
	.comm	_EHEA_CQE_STAT_ERR_MASK,4,2     ; @EHEA_CQE_STAT_ERR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad send completion status=0x%04X\n"

l_.str.1:                               ; @.str.1
	.asciz	"Send CQE"

	.comm	_EHEA_CQE_STAT_RESET_MASK,4,2   ; @EHEA_CQE_STAT_RESET_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Resetting port\n"

l_.str.3:                               ; @.str.3
	.asciz	"CQE"

	.comm	_EHEA_WR_ID_TYPE,4,2            ; @EHEA_WR_ID_TYPE
	.comm	_EHEA_SWQE2_TYPE,4,2            ; @EHEA_SWQE2_TYPE
	.comm	_EHEA_WR_ID_INDEX,4,2           ; @EHEA_WR_ID_INDEX
	.comm	_EHEA_WR_ID_REFILL,4,2          ; @EHEA_WR_ID_REFILL
	.no_dead_strip	_ehea_proc_cqes
.subsections_via_symbols
