	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lio_vf_rep_pkt_xmit
_lio_vf_rep_pkt_xmit:                   ## @lio_vf_rep_pkt_xmit
	.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, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %r14
	movq	24(%rax), %rdi
	callq	_GET_LIO
	movq	%rax, %r12
	leaq	16(%rbx), %rdi
	callq	_atomic_read
	movq	_LIO_IFSTATE_RUNNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.1:
	cmpq	$0, (%r15)
	jle	LBB0_14
## %bb.2:
	movq	8(%rbx), %rdi
	movl	(%r12), %esi
	callq	_octnet_iq_is_full
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%r13, %rdi
	callq	_netif_stop_queue
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_octeon_alloc_soft_command
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_skb_shinfo
	cmpq	$0, (%rax)
	movq	(%r14), %rdi
	je	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_5:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_14
LBB0_9:
	movl	8(%r15), %esi
	movq	(%r15), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movq	(%r14), %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	callq	_dev_err
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_13:
	callq	_octeon_free_soft_command
LBB0_14:
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
LBB0_18:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	8(%r15), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 48(%rcx)
	movq	(%r15), %rax
	movq	%rax, (%rcx)
	movq	%r15, 40(%rcx)
	movl	(%r12), %eax
	movl	%eax, 32(%rcx)
	movq	%rcx, %r12
	movq	_OPCODE_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPCODE_NIC_VF_REP_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	movl	$0, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r9d, %r9d
	callq	_octeon_prepare_soft_command
	movq	_ORDERED_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_lio_vf_rep_packet_sent_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r12, 16(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_octeon_send_soft_command
	movq	_IQ_SEND_FAILED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.12:
	movq	(%r14), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %esi
	movq	(%rbx), %rdx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	%r14, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_13
LBB0_15:
	movq	_IQ_SEND_STOP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	callq	_netif_stop_queue
LBB0_17:
	movq	%r13, %rdi
	callq	_netif_trans_update
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_LIO_IFSTATE_RUNNING,4,2        ## @LIO_IFSTATE_RUNNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF rep: Device IQ full\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
L_.str.1:                               ## @.str.1
	.asciz	"VF rep: Soft command alloc failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"VF rep: nr_frags != 0. Dropping packet\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.3:                               ## @.str.3
	.asciz	"VF rep: DMA mapping failed\n"

	.comm	_OPCODE_NIC,4,2                 ## @OPCODE_NIC
	.comm	_OPCODE_NIC_VF_REP_PKT,4,2      ## @OPCODE_NIC_VF_REP_PKT
	.comm	_ORDERED_TAG,4,2                ## @ORDERED_TAG
	.comm	_lio_vf_rep_packet_sent_callback,4,2 ## @lio_vf_rep_packet_sent_callback
	.comm	_IQ_SEND_FAILED,4,2             ## @IQ_SEND_FAILED
	.comm	_IQ_SEND_STOP,4,2               ## @IQ_SEND_STOP
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_lio_vf_rep_pkt_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lio_vf_rep_pkt_xmit
_lio_vf_rep_pkt_xmit:                   ; @lio_vf_rep_pkt_xmit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x23, x0
	ldr	x0, [x0, #24]
	ldr	x20, [x23, #8]
	bl	_GET_LIO
	mov	x24, x0
	add	x0, x23, #16
	bl	_atomic_read
Lloh0:
	adrp	x8, _LIO_IFSTATE_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIO_IFSTATE_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.2:
	ldr	x0, [x23, #8]
	ldr	w1, [x24]
	bl	_octnet_iq_is_full
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x21
	bl	_netif_stop_queue
Lloh5:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	mov	w3, #0
	bl	_octeon_alloc_soft_command
	cbz	x0, LBB0_7
; %bb.5:
	mov	x22, x0
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0]
	ldr	x0, [x20]
	cbz	x8, LBB0_8
; %bb.6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_7:
	ldr	x0, [x20]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_8:
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
Lloh11:
	adrp	x25, _DMA_TO_DEVICE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x25]
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x22, #8]
	ldr	x0, [x20]
	bl	_dma_mapping_error
	cbz	x0, LBB0_15
; %bb.9:
	ldr	x0, [x20]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	bl	_dev_err
LBB0_11:
	mov	x0, x20
	mov	x1, x22
	bl	_octeon_free_soft_command
LBB0_12:
	mov	x0, x19
	bl	_dev_kfree_skb_any
LBB0_13:
Lloh15:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w8, [x19, #8]
	str	w8, [x22, #48]
	ldr	x8, [x19]
	str	x8, [x22]
	str	x19, [x22, #40]
	ldr	w8, [x24]
Lloh17:
	adrp	x9, _OPCODE_NIC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _OPCODE_NIC@GOTPAGEOFF]
	str	w8, [x22, #32]
Lloh19:
	ldr	w2, [x9]
Lloh20:
	adrp	x8, _OPCODE_NIC_VF_REP_PKT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _OPCODE_NIC_VF_REP_PKT@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	ldr	w4, [x23]
	mov	x0, x20
	mov	x1, x22
	mov	w5, #0
	mov	w6, #0
	bl	_octeon_prepare_soft_command
Lloh23:
	adrp	x8, _ORDERED_TAG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ORDERED_TAG@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _lio_vf_rep_packet_sent_callback@GOTPAGE
Lloh27:
	ldr	x9, [x9, _lio_vf_rep_packet_sent_callback@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #24]
	str	x22, [x22, #16]
	mov	x0, x20
	mov	x1, x22
	bl	_octeon_send_soft_command
Lloh29:
	adrp	x8, _IQ_SEND_FAILED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IQ_SEND_FAILED@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.16:
	ldr	x0, [x20]
	ldr	w1, [x22, #8]
	ldr	x2, [x22]
	ldr	w3, [x25]
	bl	_dma_unmap_single
	b	LBB0_11
LBB0_17:
Lloh32:
	adrp	x8, _IQ_SEND_STOP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IQ_SEND_STOP@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x21
	bl	_netif_stop_queue
LBB0_19:
	mov	x0, x21
	bl	_netif_trans_update
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_LIO_IFSTATE_RUNNING,4,2        ; @LIO_IFSTATE_RUNNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF rep: Device IQ full\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
l_.str.1:                               ; @.str.1
	.asciz	"VF rep: Soft command alloc failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"VF rep: nr_frags != 0. Dropping packet\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.3:                               ; @.str.3
	.asciz	"VF rep: DMA mapping failed\n"

	.comm	_OPCODE_NIC,4,2                 ; @OPCODE_NIC
	.comm	_OPCODE_NIC_VF_REP_PKT,4,2      ; @OPCODE_NIC_VF_REP_PKT
	.comm	_ORDERED_TAG,4,2                ; @ORDERED_TAG
	.comm	_lio_vf_rep_packet_sent_callback,4,2 ; @lio_vf_rep_packet_sent_callback
	.comm	_IQ_SEND_FAILED,4,2             ; @IQ_SEND_FAILED
	.comm	_IQ_SEND_STOP,4,2               ; @IQ_SEND_STOP
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_lio_vf_rep_pkt_xmit
.subsections_via_symbols
