	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_xmit
_slic_xmit:                             ## @slic_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_slic_get_free_tx_descs
	movq	_SLIC_MAX_REQ_TX_DESCS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_slic_get_free_tx_descs
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
LBB0_2:
	movq	%r13, %rdi
	callq	_skb_headlen
	movl	%eax, %edx
	movq	(%rbx), %rdi
	movl	(%r13), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_dma_map_single
	movl	%eax, %r12d
	movq	(%rbx), %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_6
LBB0_4:
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,8), %rdi
	movq	%r13, 16(%rcx,%rax,8)
	movq	_map_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %r13
	movl	%r12d, %edx
	callq	_dma_unmap_addr_set
	movq	_map_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_dma_unmap_len_set
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx,%rax,8), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, 24(%r13)
	movl	%r12d, %edi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r13)
	movl	%r12d, %edi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r13)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, (%r13)
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	callq	_slic_next_queue_idx
	movq	%rax, 8(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,8), %edi
	callq	_lower_32_bits
	movl	%eax, %r12d
	orl	$1, %r12d
	xorl	%eax, %eax
	callq	_wmb
	movq	_SLIC_REG_CBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_slic_write
	movq	%r15, %rdi
	callq	_slic_get_free_tx_descs
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rbx
	movq	_SLIC_MAX_REQ_TX_DESCS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_netif_stop_queue
LBB0_6:
	movl	(%rbx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SLIC_MAX_REQ_TX_DESCS,8,3      ## @SLIC_MAX_REQ_TX_DESCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG! not enough tx LEs left: %u\n"

	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"failed to map tx buffer\n"

	.comm	_map_addr,4,2                   ## @map_addr
	.comm	_map_len,4,2                    ## @map_len
	.comm	_SLIC_REG_CBAR,4,2              ## @SLIC_REG_CBAR
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.no_dead_strip	_slic_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_xmit
_slic_xmit:                             ; @slic_xmit
	.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, x1
	mov	x23, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_slic_get_free_tx_descs
Lloh0:
	adrp	x26, _SLIC_MAX_REQ_TX_DESCS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SLIC_MAX_REQ_TX_DESCS@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_slic_get_free_tx_descs
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh4:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x0, x23
	bl	_skb_headlen
	mov	x22, x0
	ldr	x0, [x21]
	ldr	w1, [x23]
Lloh6:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x2, x22
	bl	_dma_map_single
	mov	x25, x0
	ldr	x0, [x21]
	mov	x1, x25
	bl	_dma_mapping_error
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	mov	x0, x23
	bl	_dev_kfree_skb_any
	b	LBB0_6
LBB0_4:
	ldr	x8, [x21, #24]
	ldr	x9, [x21, #8]
	mov	w10, #24
	madd	x24, x9, x10, x8
	str	x23, [x24, #16]
Lloh11:
	adrp	x8, _map_addr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _map_addr@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x25
	bl	_dma_unmap_addr_set
Lloh14:
	adrp	x8, _map_len@GOTPAGE
Lloh15:
	ldr	x8, [x8, _map_len@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x22
	bl	_dma_unmap_len_set
	ldr	x23, [x24, #8]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x23, #24]
	mov	x0, x25
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x23, #16]
	mov	x0, x25
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x23, #8]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x23]
	ldr	x0, [x21, #8]
	ldr	w1, [x21, #16]
	bl	_slic_next_queue_idx
	str	x0, [x21, #8]
	ldr	w0, [x24]
	bl	_lower_32_bits
	orr	w22, w0, #0x1
	bl	_wmb
Lloh17:
	adrp	x8, _SLIC_REG_CBAR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SLIC_REG_CBAR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_slic_write
	mov	x0, x20
	bl	_slic_get_free_tx_descs
	ldr	x8, [x26]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_netif_stop_queue
LBB0_6:
Lloh20:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SLIC_MAX_REQ_TX_DESCS,8,3      ; @SLIC_MAX_REQ_TX_DESCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG! not enough tx LEs left: %u\n"

	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"failed to map tx buffer\n"

	.comm	_map_addr,4,2                   ; @map_addr
	.comm	_map_len,4,2                    ; @map_len
	.comm	_SLIC_REG_CBAR,4,2              ; @SLIC_REG_CBAR
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.no_dead_strip	_slic_xmit
.subsections_via_symbols
