	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function greth_start_xmit_gbit
_greth_start_xmit_gbit:                 ## @greth_start_xmit_gbit
	.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	$72, %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, %r12
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	(%rax), %r15d
	movl	40(%r13), %ebx
	xorl	%eax, %eax
	callq	_rmb
	movq	(%r13), %rsi
	movl	%ebx, %edi
	callq	_greth_num_free_bds
	cmpl	%r15d, %eax
	jle	LBB0_5
## %bb.1:
	movq	%r13, %rdi
	callq	_netif_msg_pktdata
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_greth_print_tx_packet
LBB0_3:
	movq	(%r12), %rax
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	incl	(%r14)
	jmp	LBB0_18
LBB0_5:
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	_NETDEV_TX_BUSY@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_7:
	movq	(%r13), %rax
	movq	32(%r13), %rcx
	movq	%r12, (%rcx,%rax,8)
	testq	%r15, %r15
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.8:
	movq	_GRETH_BD_IE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_GRETH_TXBD_MORE@GOTPCREL(%rip), %rax
LBB0_10:
	movq	8(%r12), %rcx
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$0, %ebx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.11:
	movq	_GRETH_TXBD_CSALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_12:
	orl	(%rax), %ebx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_skb_headlen
	movq	_GRETH_BD_LEN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	(%r13), %r15
	movq	16(%r13), %r12
	movq	_GRETH_TXBD_NUM_MASK@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %r15
	jne	LBB0_14
## %bb.13:
	movq	_GRETH_BD_WR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_14:
	orl	%r14d, %eax
	orl	%eax, %ebx
	leaq	(%r12,%r15,8), %rdi
	movl	%ebx, %esi
	callq	_greth_write_bd
	movl	8(%r13), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	16(%rdi), %r14d
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_dma_map_single
	movl	%eax, %ebx
	movl	8(%r13), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_20
LBB0_15:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_17:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_kfree_skb
LBB0_18:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_19:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	(%r12,%r15,8), %rdi
	addq	$4, %rdi
	movl	%ebx, %esi
	callq	_greth_write_bd
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_NEXT_TX
	movl	%eax, %r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_30
## %bb.21:
	decl	%eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	(,%rbx,4), %rdi
	addq	8(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rax
	movslq	%r13d, %rcx
	movq	%rcx, %r12
	movq	$0, (%rax,%rcx,8)
	movq	8(%r14), %rax
	movl	$0, %r14d
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_GRETH_TXBD_CSALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_24:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r15
	movq	_GRETH_BD_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	callq	_skb_frag_size
	movq	_GRETH_BD_LEN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	$0, %ecx
	movq	_GRETH_TXBD_NUM_MASK@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r13d
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_GRETH_BD_WR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	orl	%ecx, %eax
	orl	%eax, %r14d
	movq	_GRETH_BD_IE@GOTPCREL(%rip), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	jae	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_GRETH_TXBD_MORE@GOTPCREL(%rip), %rax
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=1
	orl	(%rax), %r14d
	leaq	(%r15,%r12,8), %rdi
	movl	%r14d, %esi
	callq	_greth_write_bd
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	8(%r13), %r14d
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r14d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_skb_frag_dma_map
	movl	%eax, %ebx
	movl	8(%r13), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=1
	leaq	(%r15,%r12,8), %rdi
	addq	$4, %rdi
	movl	%ebx, %esi
	callq	_greth_write_bd
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_NEXT_TX
	movl	%eax, %r13d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	cmpq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	jne	LBB0_22
LBB0_30:
	xorl	%eax, %eax
	callq	_wmb
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rbx
	shlq	$3, %rbx
	addq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_greth_read_bd
	movq	_GRETH_BD_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_greth_write_bd
	movq	%r14, %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movslq	%r13d, %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_greth_enable_tx_and_irq
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_31:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rbx
	cmpq	%r12, %rbx
	je	LBB0_15
## %bb.32:
	movq	%r12, %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	shlq	$3, %rbx
	addq	16(%r13), %rbx
	movl	8(%r13), %r14d
	leaq	(%r12,%rbx), %rdi
	addq	$4, %rdi
	addq	%r12, %rbx
	callq	_greth_read_bd
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_greth_read_bd
	movq	_GRETH_BD_LEN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r14d, %edi
	movl	%r13d, %esi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_greth_write_bd
	movq	(%r13), %rbx
	addq	$8, %r12
	decq	%r15
	cmpq	%r15, %rbx
	jne	LBB0_33
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ## @NETDEV_TX_BUSY
	.comm	_MAX_FRAME_SIZE,8,3             ## @MAX_FRAME_SIZE
	.comm	_GRETH_TXBD_MORE,4,2            ## @GRETH_TXBD_MORE
	.comm	_GRETH_BD_IE,4,2                ## @GRETH_BD_IE
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_GRETH_TXBD_CSALL,4,2           ## @GRETH_TXBD_CSALL
	.comm	_GRETH_BD_LEN,4,2               ## @GRETH_BD_LEN
	.comm	_GRETH_TXBD_NUM_MASK,4,2        ## @GRETH_TXBD_NUM_MASK
	.comm	_GRETH_BD_WR,4,2                ## @GRETH_BD_WR
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_GRETH_BD_EN,4,2                ## @GRETH_BD_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not create TX DMA mapping\n"

	.no_dead_strip	_greth_start_xmit_gbit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function greth_start_xmit_gbit
_greth_start_xmit_gbit:                 ; @greth_start_xmit_gbit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w25, [x0]
	ldr	w23, [x19, #40]
	bl	_rmb
	ldr	x1, [x19]
	mov	x0, x23
	bl	_greth_num_free_bds
	cmp	w0, w25
	b.le	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_netif_msg_pktdata
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_greth_print_tx_packet
LBB0_3:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _MAX_FRAME_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	b	LBB0_11
LBB0_5:
	mov	x0, x22
	bl	_netif_stop_queue
Lloh6:
	adrp	x8, _NETDEV_TX_BUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETDEV_TX_BUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_7:
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	str	x21, [x8, x9, lsl #3]
Lloh8:
	adrp	x8, _GRETH_BD_IE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GRETH_BD_IE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _GRETH_TXBD_MORE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GRETH_TXBD_MORE@GOTPAGEOFF]
	cmp	w25, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
Lloh12:
	adrp	x10, _CHECKSUM_PARTIAL@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
Lloh15:
	adrp	x11, _GRETH_TXBD_CSALL@GOTPAGE
Lloh16:
	ldr	x11, [x11, _GRETH_TXBD_CSALL@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w22, w9, w8
	mov	x0, x21
	bl	_skb_headlen
Lloh18:
	adrp	x8, _GRETH_BD_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GRETH_BD_LEN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w8, w8, w0
	orr	w8, w22, w8
	ldr	x9, [x19]
Lloh21:
	adrp	x10, _GRETH_TXBD_NUM_MASK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _GRETH_TXBD_NUM_MASK@GOTPAGEOFF]
Lloh23:
	ldrsw	x10, [x10]
Lloh24:
	adrp	x11, _GRETH_BD_WR@GOTPAGE
Lloh25:
	ldr	x11, [x11, _GRETH_BD_WR@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w10, w11, wzr, eq
	orr	w1, w8, w10
	ldr	x8, [x19, #16]
	add	x22, x8, x9, lsl #3
	mov	x0, x22
	bl	_greth_write_bd
	ldr	w23, [x19, #8]
	ldr	w24, [x21, #16]
	mov	x0, x21
	bl	_skb_headlen
	mov	x2, x0
Lloh27:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh28:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x0, x23
	mov	x1, x24
	bl	_dma_map_single
	mov	x23, x0
	ldr	w0, [x19, #8]
	mov	x1, x23
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_12
LBB0_8:
	bl	_net_ratelimit
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x19, #8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_10:
	mov	x0, x21
	bl	_dev_kfree_skb
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_12:
	add	x0, x22, #4
	mov	x1, x23
	bl	_greth_write_bd
	ldr	w0, [x19]
	bl	_NEXT_TX
	mov	x23, x0
	cmp	w25, #1
	b.lt	LBB0_16
; %bb.13:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	mov	x27, #0
	sub	w8, w25, #1
	stp	x8, x21, [sp, #16]              ; 16-byte Folded Spill
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x21, x25
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x24, x8, x27, lsl #2
	ldr	x8, [x19, #32]
	sxtw	x22, w23
	mov	x26, x28
	sbfiz	x28, x23, #3, #32
	str	xzr, [x8, x28]
	ldr	x25, [x19, #16]
Lloh31:
	adrp	x8, _GRETH_BD_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GRETH_BD_EN@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
Lloh34:
	adrp	x10, _CHECKSUM_PARTIAL@GOTPAGE
Lloh35:
	ldr	x10, [x10, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
Lloh37:
	adrp	x11, _GRETH_TXBD_CSALL@GOTPAGE
Lloh38:
	ldr	x11, [x11, _GRETH_TXBD_CSALL@GOTPAGEOFF]
Lloh39:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w20, w9, w8
	mov	x0, x24
	bl	_skb_frag_size
Lloh40:
	adrp	x8, _GRETH_BD_LEN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _GRETH_BD_LEN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	and	w8, w8, w0
	orr	w8, w20, w8
Lloh43:
	adrp	x9, _GRETH_TXBD_NUM_MASK@GOTPAGE
Lloh44:
	ldr	x9, [x9, _GRETH_TXBD_NUM_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
Lloh46:
	adrp	x10, _GRETH_BD_WR@GOTPAGE
Lloh47:
	ldr	x10, [x10, _GRETH_BD_WR@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	cmp	w23, w9
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x27, x9
Lloh49:
	adrp	x9, _GRETH_BD_IE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _GRETH_BD_IE@GOTPAGEOFF]
Lloh51:
	adrp	x10, _GRETH_TXBD_MORE@GOTPAGE
Lloh52:
	ldr	x10, [x10, _GRETH_TXBD_MORE@GOTPAGEOFF]
	csel	x9, x10, x9, lo
	ldr	w9, [x9]
	orr	w1, w8, w9
	add	x0, x25, x28
	mov	x28, x26
	bl	_greth_write_bd
	ldr	w23, [x19, #8]
	mov	x0, x24
	bl	_skb_frag_size
	mov	x3, x0
	ldr	w4, [x26]
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	bl	_skb_frag_dma_map
	mov	x23, x0
	ldr	w0, [x19, #8]
	mov	x1, x23
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x25, x22, lsl #3
	add	x0, x8, #4
	mov	x1, x23
	bl	_greth_write_bd
	mov	x0, x22
	bl	_NEXT_TX
	mov	x23, x0
	add	x27, x27, #1
	mov	x25, x21
	cmp	x27, x21
	b.ne	LBB0_14
LBB0_16:
	bl	_wmb
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	add	x20, x8, x9, lsl #3
	mov	x0, x20
	bl	_greth_read_bd
Lloh53:
	adrp	x8, _GRETH_BD_EN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _GRETH_BD_EN@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_greth_write_bd
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x8, w23
	str	x8, [x19]
	mov	x0, x19
	bl	_greth_enable_tx_and_irq
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh56:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh57:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_17:
	ldr	x8, [x19]
	cmp	x8, x22
	ldr	w20, [sp, #12]                  ; 4-byte Folded Reload
Lloh58:
	adrp	x27, _GRETH_BD_LEN@GOTPAGE
Lloh59:
	ldr	x27, [x27, _GRETH_BD_LEN@GOTPAGEOFF]
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	b.eq	LBB0_8
; %bb.18:
	mov	x26, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	add	x8, x9, x8, lsl #3
	ldr	w23, [x19, #8]
	add	x24, x8, x26
	add	x0, x24, #4
	bl	_greth_read_bd
	mov	x25, x0
	mov	x0, x24
	bl	_greth_read_bd
	ldr	w8, [x27]
	and	w2, w8, w0
	ldr	w3, [x28]
	mov	x0, x23
	mov	x1, x25
	bl	_dma_unmap_single
	mov	x0, x24
	mov	w1, #0
	bl	_greth_write_bd
	ldr	x8, [x19]
	add	x26, x26, #8
	sub	x22, x22, #1
	cmp	x8, x22
	b.ne	LBB0_19
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_NETDEV_TX_BUSY,4,2             ; @NETDEV_TX_BUSY
	.comm	_MAX_FRAME_SIZE,8,3             ; @MAX_FRAME_SIZE
	.comm	_GRETH_TXBD_MORE,4,2            ; @GRETH_TXBD_MORE
	.comm	_GRETH_BD_IE,4,2                ; @GRETH_BD_IE
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_GRETH_TXBD_CSALL,4,2           ; @GRETH_TXBD_CSALL
	.comm	_GRETH_BD_LEN,4,2               ; @GRETH_BD_LEN
	.comm	_GRETH_TXBD_NUM_MASK,4,2        ; @GRETH_TXBD_NUM_MASK
	.comm	_GRETH_BD_WR,4,2                ; @GRETH_BD_WR
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_GRETH_BD_EN,4,2                ; @GRETH_BD_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not create TX DMA mapping\n"

	.no_dead_strip	_greth_start_xmit_gbit
.subsections_via_symbols
