	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_tx_queue
_fec_enet_tx_queue:                     ## @fec_enet_tx_queue
	.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	$56, %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, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_FEC_ENET_GET_QUQUE
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rcx
	movq	(%rcx,%rax,8), %rcx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rcx, %rbx
	movq	%rax, %rsi
	callq	_netdev_get_tx_queue
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rdi
	leaq	8(%rbx), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_fec_enet_get_nextdesc
	movq	%rax, %r12
	movq	16(%rbx), %rdi
	callq	_READ_ONCE
	cmpq	%rax, %r12
	je	LBB0_28
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rdi
	callq	_READ_ONCE
	cmpq	%rax, %r12
	je	LBB0_28
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rmb
	movq	16(%r12), %rdi
	callq	_READ_ONCE
	movq	%rax, %rdi
	callq	_fec16_to_cpu
	movl	%eax, %r13d
	movq	_BD_ENET_TX_READY@GOTPCREL(%rip), %rax
	testw	%r13w, (%rax)
	jne	LBB0_28
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_fec_enet_get_bd_index
	movq	32(%rbx), %rcx
	cltq
	movq	(%rcx,%rax,8), %r14
	movq	$0, (%rcx,%rax,8)
	movl	(%r12), %edi
	callq	_fec32_to_cpu
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_IS_TSO_HEADER
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movl	(%r12), %edi
	callq	_fec32_to_cpu
	movl	%eax, %r15d
	movq	8(%r12), %rdi
	callq	_fec16_to_cpu
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movzwl	%ax, %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_dma_unmap_single
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_cpu_to_fec32
	movl	%eax, (%r12)
	testq	%r14, %r14
	je	LBB0_24
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BD_ENET_TX_HB@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edi
	movq	_BD_ENET_TX_LC@GOTPCREL(%rip), %rax
	movzwl	(%rax), %esi
	movl	%esi, %eax
	orl	%edi, %eax
	movq	_BD_ENET_TX_RL@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ebx
	movq	_BD_ENET_TX_UN@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	movl	%ebx, %edx
	orl	%ecx, %edx
	orl	%eax, %edx
	movq	_BD_ENET_TX_CSL@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	orl	%eax, %edx
	testw	%r13w, %dx
	je	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	incl	32(%rdx)
	testw	%r13w, %di
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	28(%rdx)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testw	%r13w, %si
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	24(%rdx)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testw	%r13w, %bx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	20(%rdx)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	testw	%r13w, %cx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%rdx)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	testw	%r13w, %ax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	12(%rdx)
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incl	8(%rcx)
	movl	(%r14), %eax
	addl	%eax, 4(%rcx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	_SKBTX_IN_PROGRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	andl	(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	callq	_fec32_to_cpu
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	leaq	-88(%rbp), %r15
	movq	%r15, %rdx
	callq	_fec_enet_hwtstamp
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_skb_tstamp_tx
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_BD_ENET_TX_DEF@GOTPCREL(%rip), %rax
	testw	%r13w, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	(%rax)
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_wmb
	movq	%r12, 24(%rbx)
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_fec_enet_get_nextdesc
	movq	%rax, %r12
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_tx_queue_stopped
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_fec_enet_get_free_txdesc_num
	cmpl	(%rbx), %eax
	jl	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_tx_wake_queue
	jmp	LBB0_27
LBB0_28:
	cmpq	16(%rbx), %r12
	je	LBB0_31
## %bb.29:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_readl
	testq	%rax, %rax
	jne	LBB0_31
## %bb.30:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_writel
LBB0_31:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BD_ENET_TX_READY,2,1           ## @BD_ENET_TX_READY
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_BD_ENET_TX_HB,2,1              ## @BD_ENET_TX_HB
	.comm	_BD_ENET_TX_LC,2,1              ## @BD_ENET_TX_LC
	.comm	_BD_ENET_TX_RL,2,1              ## @BD_ENET_TX_RL
	.comm	_BD_ENET_TX_UN,2,1              ## @BD_ENET_TX_UN
	.comm	_BD_ENET_TX_CSL,2,1             ## @BD_ENET_TX_CSL
	.comm	_SKBTX_IN_PROGRESS,4,2          ## @SKBTX_IN_PROGRESS
	.comm	_BD_ENET_TX_DEF,2,1             ## @BD_ENET_TX_DEF
	.no_dead_strip	_fec_enet_tx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_tx_queue
_fec_enet_tx_queue:                     ; @fec_enet_tx_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	bl	_netdev_priv
	mov	x23, x0
	mov	x0, x19
	bl	_FEC_ENET_GET_QUQUE
	mov	x1, x0
	ldr	x8, [x23, #16]
	ldr	x21, [x8, x0, lsl #3]
	mov	x0, x20
	bl	_netdev_get_tx_queue
	mov	x22, x0
	ldr	x0, [x21, #24]
	add	x19, x21, #8
	mov	x1, x19
	bl	_fec_enet_get_nextdesc
	mov	x24, x0
	ldr	x0, [x21, #16]
	bl	_READ_ONCE
	cmp	x24, x0
	b.eq	LBB0_28
; %bb.1:
Lloh0:
	adrp	x27, _BD_ENET_TX_READY@GOTPAGE
Lloh1:
	ldr	x27, [x27, _BD_ENET_TX_READY@GOTPAGEOFF]
	str	x20, [sp]                       ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x21, #16]
	bl	_READ_ONCE
	cmp	x24, x0
	b.eq	LBB0_28
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rmb
	ldr	x0, [x24, #16]
	bl	_READ_ONCE
	bl	_fec16_to_cpu
	ldrh	w8, [x27]
	tst	w8, w0
	b.ne	LBB0_28
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	mov	x0, x24
	mov	x1, x19
	bl	_fec_enet_get_bd_index
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21, #32]
	sbfiz	x9, x0, #3, #32
	ldr	x26, [x8, x9]
	str	xzr, [x8, x9]
	ldr	w0, [x24]
	bl	_fec32_to_cpu
	mov	x1, x0
	mov	x0, x21
	bl	_IS_TSO_HEADER
	cbnz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x19
	mov	x19, x22
	mov	x22, x27
	ldr	x27, [x23, #8]
	ldr	w0, [x24]
	bl	_fec32_to_cpu
	mov	x28, x0
	ldr	x0, [x24, #8]
	bl	_fec16_to_cpu
	mov	x2, x0
Lloh2:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x27
	mov	x27, x22
	mov	x22, x19
	mov	x19, x20
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	mov	x1, x28
	bl	_dma_unmap_single
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	bl	_cpu_to_fec32
	str	w0, [x24]
	cbz	x26, LBB0_25
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh5:
	adrp	x8, _BD_ENET_TX_HB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BD_ENET_TX_HB@GOTPAGEOFF]
	ldrh	w12, [x8]
Lloh7:
	adrp	x8, _BD_ENET_TX_LC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BD_ENET_TX_LC@GOTPAGEOFF]
	ldrh	w11, [x8]
	orr	w8, w11, w12
Lloh9:
	adrp	x9, _BD_ENET_TX_RL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BD_ENET_TX_RL@GOTPAGEOFF]
	ldrh	w10, [x9]
	orr	w8, w8, w10
Lloh11:
	adrp	x9, _BD_ENET_TX_UN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BD_ENET_TX_UN@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w13, w8, w9
Lloh13:
	adrp	x8, _BD_ENET_TX_CSL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BD_ENET_TX_CSL@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w13, w13, w8
	tst	w13, w25
	b.eq	LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x20, #32]
	add	w13, w13, #1
	str	w13, [x20, #32]
	tst	w12, w25
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x20, #28]
	add	w12, w12, #1
	str	w12, [x20, #28]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	tst	w11, w25
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x20, #24]
	add	w11, w11, #1
	str	w11, [x20, #24]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	tst	w10, w25
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x20, #20]
	add	w10, w10, #1
	str	w10, [x20, #20]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	tst	w9, w25
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x20, #16]
	add	w9, w9, #1
	str	w9, [x20, #16]
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	tst	w8, w25
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	d0, [x20, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x26]
	add.2s	v0, v0, v1
	stur	d0, [x20, #4]
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_skb_shinfo
	ldr	w8, [x0]
Lloh15:
	adrp	x9, _SKBTX_IN_PROGRESS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SKBTX_IN_PROGRESS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	cbz	x8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	bl	_fec32_to_cpu
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x23
	bl	_fec_enet_hwtstamp
	add	x1, sp, #8
	mov	x0, x26
	bl	_skb_tstamp_tx
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x8, _BD_ENET_TX_DEF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BD_ENET_TX_DEF@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_24:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_dev_kfree_skb_any
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_wmb
	str	x24, [x21, #24]
	mov	x0, x24
	mov	x1, x19
	bl	_fec_enet_get_nextdesc
	mov	x24, x0
	mov	x0, x22
	bl	_netif_tx_queue_stopped
	cbz	x0, LBB0_2
; %bb.26:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_fec_enet_get_free_txdesc_num
	ldr	w8, [x21]
	cmp	w0, w8
	b.lt	LBB0_2
; %bb.27:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_netif_tx_wake_queue
	b	LBB0_2
LBB0_28:
	ldr	x8, [x21, #16]
	cmp	x24, x8
	b.eq	LBB0_31
; %bb.29:
	ldr	w0, [x19]
	bl	_readl
	cbnz	x0, LBB0_31
; %bb.30:
	ldr	w1, [x19]
	bl	_writel
LBB0_31:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BD_ENET_TX_READY,2,1           ; @BD_ENET_TX_READY
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_BD_ENET_TX_HB,2,1              ; @BD_ENET_TX_HB
	.comm	_BD_ENET_TX_LC,2,1              ; @BD_ENET_TX_LC
	.comm	_BD_ENET_TX_RL,2,1              ; @BD_ENET_TX_RL
	.comm	_BD_ENET_TX_UN,2,1              ; @BD_ENET_TX_UN
	.comm	_BD_ENET_TX_CSL,2,1             ; @BD_ENET_TX_CSL
	.comm	_SKBTX_IN_PROGRESS,4,2          ; @SKBTX_IN_PROGRESS
	.comm	_BD_ENET_TX_DEF,2,1             ; @BD_ENET_TX_DEF
	.no_dead_strip	_fec_enet_tx_queue
.subsections_via_symbols
