	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_hard_start_xmit
_ftgmac100_hard_start_xmit:             ## @ftgmac100_hard_start_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_eth_skb_pad
	testq	%rax, %rax
	jne	LBB0_29
## %bb.1:
	movq	(%r14), %rax
	movq	_MAX_PKT_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_28
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_dbg
	jmp	LBB0_28
LBB0_4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	(%rax), %ebx
	movl	$0, -44(%rbp)
	movq	8(%r14), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ftgmac100_prep_tx_csum
	testl	%eax, %eax
	je	LBB0_28
LBB0_6:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_skb_vlan_tag_present
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_FTGMAC100_TXDES1_INS_VLANTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
	movq	%r14, %rdi
	callq	_skb_vlan_tag_get
	movzwl	%ax, %eax
	orl	%eax, -44(%rbp)
LBB0_8:
	movq	%r14, %rdi
	callq	_skb_headlen
	movl	%eax, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	32(%rbx), %edi
	movl	16(%r14), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edx
	callq	_dma_map_single
	movl	%eax, %r15d
	movl	32(%rbx), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_28
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
LBB0_28:
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
LBB0_29:
	incl	(%r12)
LBB0_30:
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	movq	8(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rsi,2), %r12
	movq	24(%rbx), %rax
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, (%rax,%rsi,8)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ftgmac100_base_tx_ctlstat
	movl	%eax, %ebx
	movq	_FTGMAC100_TXDES0_TXDMA_OWN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_FTGMAC100_TXDES0_TXBUF_SIZE
	orl	%ebx, %eax
	movq	_FTGMAC100_TXDES0_FTS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%ecx, %ecx
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_13
## %bb.12:
	movq	_FTGMAC100_TXDES0_LTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:
	orl	%ecx, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 8(%r14,%r12,8)
	movl	-44(%rbp), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14,%r12,8)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ftgmac100_next_tx_pointer
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	(%r14,%r12,8), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.15:
	leal	-1(%rbx), %eax
	shlq	$2, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	shlq	$2, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	orl	%ecx, %eax
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rcx,2), %r14
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	%rax, (%rbx,%r14,8)
	movq	$0, 16(%rbx,%r14,8)
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx,%r14,8)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_ftgmac100_next_tx_pointer
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	addq	$4, %r13
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	cmpq	%r13, %rbx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_20
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	%eax, %r14d
	movl	32(%r12), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_skb_frag_dma_map
	movq	%r12, %rbx
	movl	%eax, %r12d
	movl	32(%rbx), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	24(%rbx), %rax
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %ecx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%r15, (%rax,%rcx,8)
	movq	8(%rbx), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ftgmac100_base_tx_ctlstat
	movl	%eax, %r15d
	movq	_FTGMAC100_TXDES0_TXDMA_OWN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_FTGMAC100_TXDES0_TXBUF_SIZE
	orl	%r15d, %eax
	xorl	%ecx, %ecx
	cmpq	%r13, -120(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_FTGMAC100_TXDES0_LTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_19
LBB0_14:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_20:
	xorl	%eax, %eax
	callq	_dma_wmb
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_ftgmac100_tx_buf_avail
	movq	_TX_THRESHOLD@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_23
## %bb.21:
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r12, %rdi
	callq	_ftgmac100_tx_buf_avail
	cmpq	(%r14), %rax
	jl	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	callq	_netif_wake_queue
LBB0_23:
	movq	_FTGMAC100_OFFSET_NPTXPD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	movl	$1, %edi
	callq	_iowrite32
	jmp	LBB0_30
LBB0_24:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	movq	-104(%rbp), %r12                ## 8-byte Reload
	je	LBB0_26
## %bb.25:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_err
LBB0_26:
	movq	%rbx, %r13
	movl	(%rbx), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_ftgmac100_free_tx_packet
	andl	4(%r13), %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ftgmac100_next_tx_pointer
	movl	%eax, %r15d
	movq	8(%r14), %r12
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %r13
	leaq	(%r12,%r13,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12,%r13,8), %rdi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	callq	_ftgmac100_free_tx_packet
	andl	4(%r14), %ebx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r12,%r13,8)
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movq	-104(%rbp), %r12                ## 8-byte Reload
	decl	%eax
	jne	LBB0_27
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDEV_TX_OK,4,2               ## @NETDEV_TX_OK
	.comm	_MAX_PKT_SIZE,8,3               ## @MAX_PKT_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx packet too big\n"

	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_FTGMAC100_TXDES1_INS_VLANTAG,4,2 ## @FTGMAC100_TXDES1_INS_VLANTAG
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"map tx packet head failed\n"

	.comm	_FTGMAC100_TXDES0_TXDMA_OWN,4,2 ## @FTGMAC100_TXDES0_TXDMA_OWN
	.comm	_FTGMAC100_TXDES0_FTS,4,2       ## @FTGMAC100_TXDES0_FTS
	.comm	_FTGMAC100_TXDES0_LTS,4,2       ## @FTGMAC100_TXDES0_LTS
	.comm	_TX_THRESHOLD,8,3               ## @TX_THRESHOLD
	.comm	_FTGMAC100_OFFSET_NPTXPD,8,3    ## @FTGMAC100_OFFSET_NPTXPD
L_.str.2:                               ## @.str.2
	.asciz	"map tx fragment failed\n"

	.no_dead_strip	_ftgmac100_hard_start_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftgmac100_hard_start_xmit
_ftgmac100_hard_start_xmit:             ; @ftgmac100_hard_start_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x21
	bl	_eth_skb_pad
	cbnz	x0, LBB0_12
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _MAX_PKT_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_PKT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	bl	_net_ratelimit
	cbz	x0, LBB0_11
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	b	LBB0_11
LBB0_4:
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w26, [x0]
	str	wzr, [sp, #44]
	ldr	x8, [x21, #8]
Lloh5:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	add	x1, sp, #44
	mov	x0, x21
	bl	_ftgmac100_prep_tx_csum
	cbz	w0, LBB0_11
LBB0_6:
	mov	x0, x21
	bl	_skb_vlan_tag_present
	cbz	x0, LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _FTGMAC100_TXDES1_INS_VLANTAG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FTGMAC100_TXDES1_INS_VLANTAG@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [sp, #44]
	orr	w8, w9, w8
	str	w8, [sp, #44]
	mov	x0, x21
	bl	_skb_vlan_tag_get
	and	w8, w0, #0xffff
	ldr	w9, [sp, #44]
	orr	w8, w9, w8
	str	w8, [sp, #44]
LBB0_8:
	mov	x0, x21
	bl	_skb_headlen
	mov	x23, x0
	ldr	w0, [x20, #32]
	ldr	w1, [x21, #16]
Lloh11:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x2, x23
	bl	_dma_map_single
	mov	x24, x0
	ldr	w0, [x20, #32]
	mov	x1, x24
	bl	_dma_mapping_error
	cbz	x0, LBB0_14
; %bb.9:
	bl	_net_ratelimit
	cbz	x0, LBB0_11
; %bb.10:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_11:
	mov	x0, x21
	bl	_dev_kfree_skb_any
LBB0_12:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_13:
Lloh16:
	adrp	x8, _NETDEV_TX_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	ldr	w25, [x20]
	ldr	x8, [x20, #8]
	mov	w9, #24
	madd	x27, x25, x9, x8
	ldr	x8, [x20, #24]
	str	x21, [x8, x25, lsl #3]
	mov	x0, x20
	mov	x1, x25
	bl	_ftgmac100_base_tx_ctlstat
Lloh19:
	adrp	x8, _FTGMAC100_TXDES0_TXDMA_OWN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FTGMAC100_TXDES0_TXDMA_OWN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w22, w8, w0
	mov	x0, x23
	bl	_FTGMAC100_TXDES0_TXBUF_SIZE
	orr	w8, w22, w0
Lloh22:
	adrp	x9, _FTGMAC100_TXDES0_FTS@GOTPAGE
Lloh23:
	ldr	x9, [x9, _FTGMAC100_TXDES0_FTS@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _FTGMAC100_TXDES0_LTS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _FTGMAC100_TXDES0_LTS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w26, #0
	csel	w9, w9, wzr, eq
	orr	w8, w8, w9
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x24
	bl	_cpu_to_le32
	str	x0, [x27, #8]
	ldr	w0, [sp, #44]
	bl	_cpu_to_le32
	str	x27, [sp, #16]                  ; 8-byte Folded Spill
	str	x0, [x27, #16]
	mov	x0, x20
	mov	x1, x25
	bl	_ftgmac100_next_tx_pointer
	mov	x24, x0
	cbz	w26, LBB0_18
; %bb.15:
	mov	x22, #0
	mov	w28, #0
	sub	w8, w26, #1
	lsl	x9, x8, #2
	lsl	x8, x26, #2
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x25, x8, x22
	mov	x0, x25
	bl	_skb_frag_size
	mov	x26, x0
	ldr	w0, [x20, #32]
Lloh28:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
	mov	x1, x25
	mov	w2, #0
	mov	x3, x26
	bl	_skb_frag_dma_map
	mov	x25, x0
	ldr	w0, [x20, #32]
	mov	x1, x25
	bl	_dma_mapping_error
	cbnz	x0, LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x20, #24]
	str	x21, [x8, w24, uxtw #3]
	ldr	x27, [x20, #8]
	mov	x0, x20
	mov	x1, x24
	bl	_ftgmac100_base_tx_ctlstat
Lloh31:
	adrp	x8, _FTGMAC100_TXDES0_TXDMA_OWN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FTGMAC100_TXDES0_TXDMA_OWN@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w23, w8, w0
	mov	x0, x26
	bl	_FTGMAC100_TXDES0_TXBUF_SIZE
	orr	w8, w23, w0
Lloh34:
	adrp	x9, _FTGMAC100_TXDES0_LTS@GOTPAGE
Lloh35:
	ldr	x9, [x9, _FTGMAC100_TXDES0_LTS@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	cmp	x10, x22
	csel	w9, w9, wzr, eq
	orr	w0, w8, w9
	bl	_cpu_to_le32
	mov	w8, #24
	umaddl	x23, w24, w8, x27
	str	x0, [x23]
	str	xzr, [x23, #16]
	mov	x0, x25
	bl	_cpu_to_le32
	str	x0, [x23, #8]
	mov	x0, x20
	mov	x1, x24
	bl	_ftgmac100_next_tx_pointer
	mov	x24, x0
	add	w28, w28, #1
	add	x22, x22, #4
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, x22
	b.ne	LBB0_16
LBB0_18:
	bl	_dma_wmb
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_cpu_to_le32
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x0, [x8]
	str	w24, [x20]
	mov	x0, x20
	bl	_ftgmac100_tx_buf_avail
Lloh37:
	adrp	x21, _TX_THRESHOLD@GOTPAGE
Lloh38:
	ldr	x21, [x21, _TX_THRESHOLD@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x19
	bl	_netif_stop_queue
	bl	_smp_mb
	mov	x0, x20
	bl	_ftgmac100_tx_buf_avail
	ldr	x8, [x21]
	cmp	x0, x8
	b.lt	LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_netif_wake_queue
LBB0_21:
	ldr	x8, [x20, #16]
Lloh39:
	adrp	x9, _FTGMAC100_OFFSET_NPTXPD@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FTGMAC100_OFFSET_NPTXPD@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_iowrite32
	b	LBB0_13
LBB0_22:
	bl	_net_ratelimit
	cbz	x0, LBB0_24
; %bb.23:
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_24:
	ldr	w24, [x20]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	mov	x3, x22
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
	mov	x4, x23
	bl	_ftgmac100_free_tx_packet
	ldr	w8, [x20, #4]
	and	w0, w8, w23
	bl	_cpu_to_le32
	str	x0, [x22]
	cbz	w28, LBB0_11
; %bb.25:
	mov	w25, #24
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_ftgmac100_next_tx_pointer
	mov	x24, x0
	ldr	x8, [x20, #8]
	umaddl	x22, w0, w25, x8
	ldr	x0, [x22]
	bl	_le32_to_cpu
	mov	x23, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	bl	_ftgmac100_free_tx_packet
	ldr	w8, [x20, #4]
	and	w0, w8, w23
	bl	_cpu_to_le32
	str	x0, [x22]
	subs	w28, w28, #1
	b.ne	LBB0_26
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDEV_TX_OK,4,2               ; @NETDEV_TX_OK
	.comm	_MAX_PKT_SIZE,8,3               ; @MAX_PKT_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx packet too big\n"

	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_FTGMAC100_TXDES1_INS_VLANTAG,4,2 ; @FTGMAC100_TXDES1_INS_VLANTAG
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"map tx packet head failed\n"

	.comm	_FTGMAC100_TXDES0_TXDMA_OWN,4,2 ; @FTGMAC100_TXDES0_TXDMA_OWN
	.comm	_FTGMAC100_TXDES0_FTS,4,2       ; @FTGMAC100_TXDES0_FTS
	.comm	_FTGMAC100_TXDES0_LTS,4,2       ; @FTGMAC100_TXDES0_LTS
	.comm	_TX_THRESHOLD,8,3               ; @TX_THRESHOLD
	.comm	_FTGMAC100_OFFSET_NPTXPD,8,3    ; @FTGMAC100_OFFSET_NPTXPD
l_.str.2:                               ; @.str.2
	.asciz	"map tx fragment failed\n"

	.no_dead_strip	_ftgmac100_hard_start_xmit
.subsections_via_symbols
