	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_rxq_drop_pkts
_mvpp2_rxq_drop_pkts:                   ## @mvpp2_rxq_drop_pkts
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rsi), %esi
	callq	_mvpp2_rxq_received
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	jle	LBB0_4
## %bb.2:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_mvpp2_rxq_next_desc_get
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_mvpp2_rxdesc_status_get
	movl	%eax, %ebx
	movq	_MVPP2_RXD_BM_POOL_ID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_MVPP2_RXD_BM_POOL_ID_OFFS@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %ebx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mvpp2_rxdesc_dma_addr_get
	movl	%eax, %r15d
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mvpp2_rxdesc_cookie_get
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_mvpp2_bm_pool_put
	decl	%r14d
	jne	LBB0_3
LBB0_4:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mvpp2_rxq_status_update        ## TAILCALL
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_RXD_BM_POOL_ID_MASK,4,2  ## @MVPP2_RXD_BM_POOL_ID_MASK
	.comm	_MVPP2_RXD_BM_POOL_ID_OFFS,4,2  ## @MVPP2_RXD_BM_POOL_ID_OFFS
	.no_dead_strip	_mvpp2_rxq_drop_pkts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_rxq_drop_pkts
_mvpp2_rxq_drop_pkts:                   ; @mvpp2_rxq_drop_pkts
	.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	x20, x1
	mov	x19, x0
	ldr	w1, [x1]
	bl	_mvpp2_rxq_received
	cbz	w0, LBB0_5
; %bb.1:
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
Lloh0:
	adrp	x25, _MVPP2_RXD_BM_POOL_ID_MASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MVPP2_RXD_BM_POOL_ID_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x26, _MVPP2_RXD_BM_POOL_ID_OFFS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MVPP2_RXD_BM_POOL_ID_OFFS@GOTPAGEOFF]
	mov	x27, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_mvpp2_rxq_next_desc_get
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_mvpp2_rxdesc_status_get
	ldr	w8, [x25]
	and	w8, w8, w0
	ldr	w9, [x26]
	asr	w23, w8, w9
	mov	x0, x19
	mov	x1, x22
	bl	_mvpp2_rxdesc_dma_addr_get
	mov	x24, x0
	mov	x0, x19
	mov	x1, x22
	bl	_mvpp2_rxdesc_cookie_get
	mov	x3, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_mvpp2_bm_pool_put
	subs	w27, w27, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	w1, [x20]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x21
	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
	b	_mvpp2_rxq_status_update
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_RXD_BM_POOL_ID_MASK,4,2  ; @MVPP2_RXD_BM_POOL_ID_MASK
	.comm	_MVPP2_RXD_BM_POOL_ID_OFFS,4,2  ; @MVPP2_RXD_BM_POOL_ID_OFFS
	.no_dead_strip	_mvpp2_rxq_drop_pkts
.subsections_via_symbols
