	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_mgmt_receive_one
_octeon_mgmt_receive_one:               ## @octeon_mgmt_receive_one
	.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	%rdi, %r12
	movq	16(%rdi), %r15
	leaq	-48(%rbp), %rsi
	callq	_octeon_mgmt_dequeue_rx_buffer
	movq	%rax, %rbx
	movq	_RING_ENTRY_CODE_DONE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi
	callq	_skb_put
LBB0_2:
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rdi
	movq	16(%rdi), %rax
	movl	(%rax), %r15d
	callq	_skb_hwtstamps
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_ns_to_ktime
	movl	%eax, (%rbx)
	movq	-48(%rbp), %rdi
	movl	$8, %esi
	callq	___skb_pull
LBB0_4:
	movq	-48(%rbp), %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_eth_type_trans
	movq	-48(%rbp), %rdi
	movl	%eax, 8(%rdi)
	incl	8(%rbx)
	movl	(%rdi), %eax
	addl	%eax, 4(%rbx)
	callq	_netif_receive_skb
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_5:
	movq	_RING_ENTRY_CODE_MORE@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %rdi
	cmpq	%rbx, (%r14)
	jne	LBB0_12
## %bb.6:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	callq	_skb_put
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	callq	_octeon_mgmt_dequeue_rx_buffer
	movq	%rax, %r13
	cmpq	%rax, (%r14)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_RING_ENTRY_CODE_DONE@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rdi
	callq	_skb_put
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rax
	movq	(%rax), %rdx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_skb_copy_expand
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	-56(%rbp), %r15
	movq	%rax, %rdi
	callq	_skb_tail_pointer
	movq	-56(%rbp), %rcx
	movq	(%rcx), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_skb_copy_bits
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_skb_put
	movq	-48(%rbp), %rdi
	callq	_dev_kfree_skb_any
	movq	-56(%rbp), %rdi
	callq	_dev_kfree_skb_any
	movq	%rbx, -48(%rbp)
	cmpq	%r13, (%r14)
	je	LBB0_7
	jmp	LBB0_2
LBB0_12:
	callq	_dev_kfree_skb_any
	jmp	LBB0_17
LBB0_13:
	movq	-48(%rbp), %rdi
	callq	_dev_kfree_skb_any
	movq	-56(%rbp), %rdi
	callq	_dev_kfree_skb_any
	cmpq	%r13, (%r14)
	jne	LBB0_16
## %bb.14:
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_octeon_mgmt_dequeue_rx_buffer
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	callq	_dev_kfree_skb_any
	cmpq	%rbx, (%r14)
	je	LBB0_15
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_17:
	movl	$1, %ebx
LBB0_18:
	movq	_MIX_IRCNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	movl	$1, %esi
	callq	_cvmx_write_csr
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_ENTRY_CODE_DONE,8,3       ## @RING_ENTRY_CODE_DONE
	.comm	_RING_ENTRY_CODE_MORE,8,3       ## @RING_ENTRY_CODE_MORE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_MIX_IRCNT,8,3                  ## @MIX_IRCNT
	.no_dead_strip	_octeon_mgmt_receive_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_mgmt_receive_one
_octeon_mgmt_receive_one:               ; @octeon_mgmt_receive_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	add	x1, sp, #8
	bl	_octeon_mgmt_dequeue_rx_buffer
	mov	x21, x0
Lloh0:
	adrp	x25, _RING_ENTRY_CODE_DONE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RING_ENTRY_CODE_DONE@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, x0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_skb_put
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [sp, #8]
	ldr	x8, [x0, #16]
	ldr	w21, [x8]
	bl	_skb_hwtstamps
	mov	x22, x0
	mov	x0, x21
	bl	_ns_to_ktime
	str	w0, [x22]
	ldr	x0, [sp, #8]
	mov	w1, #8
	bl	___skb_pull
LBB0_4:
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_eth_type_trans
	ldr	x8, [sp, #8]
	str	w0, [x8, #8]
	ldur	d0, [x20, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	stur	d0, [x20, #4]
	mov	x0, x8
	bl	_netif_receive_skb
	mov	w20, #0
	b	LBB0_17
LBB0_5:
Lloh2:
	adrp	x24, _RING_ENTRY_CODE_MORE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _RING_ENTRY_CODE_MORE@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x0, [sp, #8]
	cmp	x8, x21
	b.ne	LBB0_11
; %bb.6:
	bl	_skb_put
Lloh4:
	adrp	x26, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x26, [x26, _GFP_ATOMIC@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_octeon_mgmt_dequeue_rx_buffer
	mov	x21, x0
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x0
	ccmp	x9, x0, #4, ne
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp]
	bl	_skb_put
	ldp	x8, x0, [sp]
	ldr	x2, [x8]
	ldr	w3, [x26]
	mov	w1, #0
	bl	_skb_copy_expand
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	ldr	x23, [sp]
	bl	_skb_tail_pointer
	mov	x2, x0
	ldr	x8, [sp]
	ldr	x3, [x8]
	mov	x0, x23
	mov	w1, #0
	bl	_skb_copy_bits
	cbnz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp]
	ldr	x1, [x8]
	mov	x0, x22
	bl	_skb_put
	ldr	x0, [sp, #8]
	bl	_dev_kfree_skb_any
	ldr	x0, [sp]
	bl	_dev_kfree_skb_any
	str	x22, [sp, #8]
	ldr	x8, [x24]
	cmp	x8, x21
	b.eq	LBB0_7
	b	LBB0_2
LBB0_11:
	bl	_dev_kfree_skb_any
	b	LBB0_16
LBB0_12:
	ldr	x0, [sp, #8]
	bl	_dev_kfree_skb_any
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp]
	bl	_dev_kfree_skb_any
	ldr	x8, [x24]
	cmp	x8, x21
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_octeon_mgmt_dequeue_rx_buffer
	mov	x21, x0
	b	LBB0_13
LBB0_15:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_16:
	mov	w20, #1
LBB0_17:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _MIX_IRCNT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIX_IRCNT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #1
	bl	_cvmx_write_csr
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_ENTRY_CODE_DONE,8,3       ; @RING_ENTRY_CODE_DONE
	.comm	_RING_ENTRY_CODE_MORE,8,3       ; @RING_ENTRY_CODE_MORE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_MIX_IRCNT,8,3                  ; @MIX_IRCNT
	.no_dead_strip	_octeon_mgmt_receive_one
.subsections_via_symbols
