	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_discard_rx
_bnxt_discard_rx:                       ## @bnxt_discard_rx
	.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	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdx), %r13d
	movl	%r13d, -44(%rbp)
	movq	%rcx, %rdi
	callq	_RX_CMP_TYPE
	movq	_CMP_TYPE_RX_L2_CMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	movq	_RX_CMP_AGG_BUFS@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_RX_CMP_AGG_BUFS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarq	%cl, %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_bnxt_agg_bufs_valid
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	-44(%rbp), %r13d
	jmp	LBB0_8
LBB0_2:
	movq	_CMP_TYPE_RX_L2_TPA_END_CMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%r15)
	jne	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	callq	_TPA_END_AGG_BUFS
	testq	%rax, %rax
	jne	LBB0_6
LBB0_8:
	movl	%r13d, (%r12)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_CMP_TYPE_RX_L2_CMP,8,3         ## @CMP_TYPE_RX_L2_CMP
	.comm	_RX_CMP_AGG_BUFS,8,3            ## @RX_CMP_AGG_BUFS
	.comm	_RX_CMP_AGG_BUFS_SHIFT,8,3      ## @RX_CMP_AGG_BUFS_SHIFT
	.comm	_CMP_TYPE_RX_L2_TPA_END_CMP,8,3 ## @CMP_TYPE_RX_L2_TPA_END_CMP
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_bnxt_discard_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_discard_rx
_bnxt_discard_rx:                       ; @bnxt_discard_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w23, [x2]
	str	w23, [sp, #12]
	mov	x0, x3
	bl	_RX_CMP_TYPE
Lloh0:
	adrp	x8, _CMP_TYPE_RX_L2_CMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMP_TYPE_RX_L2_CMP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x22]
	bl	_le32_to_cpu
Lloh3:
	adrp	x8, _RX_CMP_AGG_BUFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_CMP_AGG_BUFS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh6:
	adrp	x9, _RX_CMP_AGG_BUFS_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RX_CMP_AGG_BUFS_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	asr	x2, x8, x9
	cbz	x2, LBB0_9
LBB0_2:
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_bnxt_agg_bufs_valid
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w23, [sp, #12]
	b	LBB0_9
LBB0_4:
Lloh9:
	adrp	x8, _CMP_TYPE_RX_L2_TPA_END_CMP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMP_TYPE_RX_L2_TPA_END_CMP@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x21]
Lloh12:
	adrp	x9, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	mov	x0, x22
	bl	_TPA_END_AGG_BUFS
	mov	x2, x0
	cbnz	x2, LBB0_2
LBB0_9:
	mov	w0, #0
	str	w23, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CMP_TYPE_RX_L2_CMP,8,3         ; @CMP_TYPE_RX_L2_CMP
	.comm	_RX_CMP_AGG_BUFS,8,3            ; @RX_CMP_AGG_BUFS
	.comm	_RX_CMP_AGG_BUFS_SHIFT,8,3      ; @RX_CMP_AGG_BUFS_SHIFT
	.comm	_CMP_TYPE_RX_L2_TPA_END_CMP,8,3 ; @CMP_TYPE_RX_L2_TPA_END_CMP
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_bnxt_discard_rx
.subsections_via_symbols
