	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_droq_drop_packets
_octeon_droq_drop_packets:              ## @octeon_droq_drop_packets
	.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
	testq	%rdx, %rdx
	jle	LBB0_6
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	_OCTNET_FRM_LENGTH_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	$1, %ebx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	movl	16(%r13), %edx
	movq	%rbx, %rsi
	callq	_incr_index
	movq	%rax, (%r13)
	addq	%rbx, 8(%r13)
	decq	%r14
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rcx
	movq	(%rcx,%rax,8), %rbx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_octeon_swap_8B_data
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	(%r12), %rsi
	movq	%rsi, (%rbx)
	addl	%esi, 24(%r13)
	movl	20(%r13), %edi
	callq	_octeon_droq_get_bufcount
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCTNET_FRM_LENGTH_SIZE,8,3     ## @OCTNET_FRM_LENGTH_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DROQ: In drop: pkt with len 0\n"

	.no_dead_strip	_octeon_droq_drop_packets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_droq_drop_packets
_octeon_droq_drop_packets:              ; @octeon_droq_drop_packets
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	x2, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x1]
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x24, _OCTNET_FRM_LENGTH_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _OCTNET_FRM_LENGTH_SIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x21]
	mov	x1, x22
	bl	_dev_err
	mov	w23, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20]
	ldr	w2, [x20, #16]
	mov	x1, x23
	bl	_incr_index
	ldr	x8, [x20, #8]
	add	x8, x8, x23
	stp	x0, x8, [x20]
	subs	x19, x19, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #32]
	ldr	x23, [x8, x0, lsl #3]
	mov	x0, x23
	mov	w1, #2
	bl	_octeon_swap_8B_data
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x24]
	ldp	w0, w10, [x20, #20]
	add	x1, x9, x8
	add	w8, w10, w1
	str	x1, [x23]
	str	w8, [x20, #24]
	bl	_octeon_droq_get_bufcount
	mov	x23, x0
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OCTNET_FRM_LENGTH_SIZE,8,3     ; @OCTNET_FRM_LENGTH_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DROQ: In drop: pkt with len 0\n"

	.no_dead_strip	_octeon_droq_drop_packets
.subsections_via_symbols
