	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_l2_completion
_cnic_l2_completion:                    ## @cnic_l2_completion
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rsi
	movq	24(%rdi), %rax
	movq	_CNIC_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r15
	addq	%r15, %r15
	addq	(%rax), %r15
	movq	_CNIC_F_BNX2X_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	(%rbx), %rax
	movq	8(%rbx), %rbx
	movq	(%rax), %r12
	movq	_BNX2X_MAX_RCQ_DESC_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, %rcx
	notq	%rcx
	andq	%rax, %rcx
	cmpq	$1, %rcx
	adcq	$0, %r12
	cmpq	%r12, %rbx
	jne	LBB0_2
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r14d, %r14d
	movq	_ETH_FAST_PATH_RX_CQE_TYPE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	andq	%rbx, %rax
	movl	(%r15,%rax,4), %edi
	testl	%edi, (%r13)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_le32_to_cpu
	movq	_COMMON_RAMROD_ETH_RX_CQE_CMD_ID_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	sarl	%cl, %eax
	movq	_RAMROD_CMD_ID_ETH_CLIENT_SETUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	%cl
	movq	_RAMROD_CMD_ID_ETH_HALT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %eax
	addl	%eax, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_BNX2X_NEXT_RCQE
	cmpq	%r12, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	_BNX2X_MAX_RCQ_DESC_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_CNIC_PAGE_SIZE,4,2             ## @CNIC_PAGE_SIZE
	.comm	_CNIC_F_BNX2X_CLASS,4,2         ## @CNIC_F_BNX2X_CLASS
	.comm	_BNX2X_MAX_RCQ_DESC_CNT,8,3     ## @BNX2X_MAX_RCQ_DESC_CNT
	.comm	_ETH_FAST_PATH_RX_CQE_TYPE,4,2  ## @ETH_FAST_PATH_RX_CQE_TYPE
	.comm	_COMMON_RAMROD_ETH_RX_CQE_CMD_ID_SHIFT,4,2 ## @COMMON_RAMROD_ETH_RX_CQE_CMD_ID_SHIFT
	.comm	_RAMROD_CMD_ID_ETH_CLIENT_SETUP,4,2 ## @RAMROD_CMD_ID_ETH_CLIENT_SETUP
	.comm	_RAMROD_CMD_ID_ETH_HALT,4,2     ## @RAMROD_CMD_ID_ETH_HALT
	.no_dead_strip	_cnic_l2_completion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_l2_completion
_cnic_l2_completion:                    ; @cnic_l2_completion
	.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
	mov	x19, x0
	ldp	x1, x8, [x0, #16]
	ldr	x26, [x8]
Lloh0:
	adrp	x8, _CNIC_PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CNIC_PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x27, [x8]
Lloh3:
	adrp	x8, _CNIC_F_BNX2X_CLASS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CNIC_F_BNX2X_CLASS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x8, x20, [x19]
	ldr	x9, [x8]
Lloh6:
	adrp	x21, _BNX2X_MAX_RCQ_DESC_CNT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _BNX2X_MAX_RCQ_DESC_CNT@GOTPAGEOFF]
	ldr	x8, [x21]
	bics	xzr, x8, x9
	cinc	x22, x9, eq
	cmp	x20, x22
	b.ne	LBB0_4
LBB0_2:
	mov	w19, #0
LBB0_3:
	mov	x0, x19
	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_4:
	mov	w19, #0
Lloh8:
	adrp	x23, _ETH_FAST_PATH_RX_CQE_TYPE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ETH_FAST_PATH_RX_CQE_TYPE@GOTPAGEOFF]
Lloh10:
	adrp	x24, _COMMON_RAMROD_ETH_RX_CQE_CMD_ID_SHIFT@GOTPAGE
Lloh11:
	ldr	x24, [x24, _COMMON_RAMROD_ETH_RX_CQE_CMD_ID_SHIFT@GOTPAGEOFF]
Lloh12:
	adrp	x25, _RAMROD_CMD_ID_ETH_CLIENT_SETUP@GOTPAGE
Lloh13:
	ldr	x25, [x25, _RAMROD_CMD_ID_ETH_CLIENT_SETUP@GOTPAGEOFF]
	add	x26, x26, x27, lsl #1
Lloh14:
	adrp	x27, _RAMROD_CMD_ID_ETH_HALT@GOTPAGE
Lloh15:
	ldr	x27, [x27, _RAMROD_CMD_ID_ETH_HALT@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	x8, x8, x20
	ldr	w0, [x26, x8, lsl #2]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_le32_to_cpu
	ldr	w8, [x24]
	asr	w8, w0, w8
	ldr	w9, [x25]
	cmp	w8, w9
	ldr	w9, [x27]
	ccmp	w8, w9, #4, ne
	cinc	w19, w19, eq
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_BNX2X_NEXT_RCQE
	cmp	x0, x22
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	ldr	x8, [x21]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CNIC_PAGE_SIZE,4,2             ; @CNIC_PAGE_SIZE
	.comm	_CNIC_F_BNX2X_CLASS,4,2         ; @CNIC_F_BNX2X_CLASS
	.comm	_BNX2X_MAX_RCQ_DESC_CNT,8,3     ; @BNX2X_MAX_RCQ_DESC_CNT
	.comm	_ETH_FAST_PATH_RX_CQE_TYPE,4,2  ; @ETH_FAST_PATH_RX_CQE_TYPE
	.comm	_COMMON_RAMROD_ETH_RX_CQE_CMD_ID_SHIFT,4,2 ; @COMMON_RAMROD_ETH_RX_CQE_CMD_ID_SHIFT
	.comm	_RAMROD_CMD_ID_ETH_CLIENT_SETUP,4,2 ; @RAMROD_CMD_ID_ETH_CLIENT_SETUP
	.comm	_RAMROD_CMD_ID_ETH_HALT,4,2     ; @RAMROD_CMD_ID_ETH_HALT
	.no_dead_strip	_cnic_l2_completion
.subsections_via_symbols
