	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_tx
_fec_enet_tx:                           ## @fec_enet_tx
	.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	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	16(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	24(%rbx), %r13
	movzwl	(%r13), %r12d
	movq	_BD_ENET_TX_READY@GOTPCREL(%rip), %rax
	testw	%r12w, (%rax)
	je	LBB0_1
LBB0_26:
	movq	%r13, 24(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_1:
	leaq	32(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movzwl	(%r13), %r12d
	movq	_BD_ENET_TX_READY@GOTPCREL(%rip), %rax
	testw	%r12w, (%rax)
	jne	LBB0_26
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	48(%rbx), %r13
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_26
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rsi
	movq	_FEC_ENET_TX_FRSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_unmap_single
	movq	$0, 8(%r13)
	movq	8(%rbx), %rax
	movq	40(%rbx), %rcx
	movq	(%rcx,%rax,8), %r14
	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), %ecx
	movq	_BD_ENET_TX_UN@GOTPCREL(%rip), %rdx
	movzwl	(%rdx), %r9d
	movl	%ecx, %edx
	orl	%r9d, %edx
	orl	%eax, %edx
	movq	_BD_ENET_TX_CSL@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r8d
	orl	%r8d, %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testw	%r12w, %dx
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	28(%r15)
	testw	%r12w, %di
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	24(%r15)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testw	%r12w, %si
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	20(%r15)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testw	%r12w, %cx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r15)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testw	%r12w, %r9w
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	12(%r15)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testw	%r12w, %r8w
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	(%rax)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_BD_ENET_TX_READY@GOTPCREL(%rip), %rax
	testw	%r12w, (%rax)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_BD_ENET_TX_DEF@GOTPCREL(%rip), %rax
	testw	%r12w, (%rax)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	(%r15)
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_dev_kfree_skb_any
	movq	8(%rbx), %rax
	movq	40(%rbx), %rcx
	movq	$0, (%rcx,%rax,8)
	incq	%rax
	movq	_TX_RING_MOD_MASK@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	andq	%rax, %rcx
	movq	%rcx, 8(%rbx)
	movq	_BD_ENET_TX_WRAP@GOTPCREL(%rip), %rax
	testw	%r12w, (%rax)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %r13
	cmpq	$0, (%rbx)
	jne	LBB0_23
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %r13
	cmpq	$0, (%rbx)
	je	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rbx)
	movq	%r15, %rdi
	callq	_netif_queue_stopped
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_netif_wake_queue
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_BD_ENET_TX_READY,2,1           ## @BD_ENET_TX_READY
	.comm	_FEC_ENET_TX_FRSIZE,4,2         ## @FEC_ENET_TX_FRSIZE
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEY! Enet xmit interrupt and TX_READY.\n"

	.comm	_BD_ENET_TX_DEF,2,1             ## @BD_ENET_TX_DEF
	.comm	_TX_RING_MOD_MASK,4,2           ## @TX_RING_MOD_MASK
	.comm	_BD_ENET_TX_WRAP,2,1            ## @BD_ENET_TX_WRAP
	.no_dead_strip	_fec_enet_tx
.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
_fec_enet_tx:                           ; @fec_enet_tx
	.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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	add	x0, x0, #16
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_spin_lock
	ldr	x25, [x19, #24]
	ldrh	w20, [x25]
Lloh0:
	adrp	x26, _BD_ENET_TX_READY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _BD_ENET_TX_READY@GOTPAGEOFF]
	ldrh	w8, [x26]
	tst	w8, w20
	b.eq	LBB0_2
LBB0_1:
	str	x25, [x19, #24]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	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
	b	_spin_unlock
LBB0_2:
	add	x22, x21, #32
	add	x27, x21, #8
	add	x28, x21, #4
Lloh2:
	adrp	x23, _BD_ENET_TX_WRAP@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BD_ENET_TX_WRAP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w20, [x25]
	ldrh	w8, [x26]
	tst	w8, w20
	b.ne	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	cmp	x25, x8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x25, #8]
Lloh4:
	adrp	x8, _FEC_ENET_TX_FRSIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FEC_ENET_TX_FRSIZE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_dma_unmap_single
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	ldr	x24, [x8, x9, lsl #3]
	str	xzr, [x25, #8]
Lloh10:
	adrp	x8, _BD_ENET_TX_HB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BD_ENET_TX_HB@GOTPAGEOFF]
	ldrh	w12, [x8]
Lloh12:
	adrp	x8, _BD_ENET_TX_LC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BD_ENET_TX_LC@GOTPAGEOFF]
	ldrh	w11, [x8]
	orr	w8, w11, w12
Lloh14:
	adrp	x9, _BD_ENET_TX_RL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BD_ENET_TX_RL@GOTPAGEOFF]
	ldrh	w10, [x9]
	orr	w8, w8, w10
Lloh16:
	adrp	x9, _BD_ENET_TX_UN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BD_ENET_TX_UN@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w13, w8, w9
Lloh18:
	adrp	x8, _BD_ENET_TX_CSL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BD_ENET_TX_CSL@GOTPAGEOFF]
	ldrh	w8, [x8]
	orr	w14, w13, w8
	mov	x13, x28
	tst	w14, w20
	b.eq	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w13, [x21, #28]
	add	w13, w13, #1
	str	w13, [x21, #28]
	tst	w12, w20
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x21, #24]
	add	w12, w12, #1
	str	w12, [x21, #24]
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	tst	w11, w20
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x21, #20]
	add	w11, w11, #1
	str	w11, [x21, #20]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	tst	w10, w20
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x21, #16]
	add	w10, w10, #1
	str	w10, [x21, #16]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	tst	w9, w20
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x21, #12]
	add	w9, w9, #1
	str	w9, [x21, #12]
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x13, x27
	tst	w8, w20
	b.eq	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x13]
	add	w8, w8, #1
	str	w8, [x13]
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [x26]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh22:
	adrp	x8, _BD_ENET_TX_DEF@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BD_ENET_TX_DEF@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_dev_kfree_skb_any
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #8]
	str	xzr, [x8, x9, lsl #3]
	add	x8, x9, #1
Lloh24:
	adrp	x9, _TX_RING_MOD_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TX_RING_MOD_MASK@GOTPAGEOFF]
Lloh26:
	ldrsw	x9, [x9]
	and	x8, x8, x9
	str	x8, [x19, #8]
	ldrh	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x25, [x19, #32]
	ldr	x8, [x19]
	cbnz	x8, LBB0_24
	b	LBB0_3
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #16
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x19]
	mov	x0, x21
	bl	_netif_queue_stopped
	cbz	x0, LBB0_3
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_netif_wake_queue
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BD_ENET_TX_READY,2,1           ; @BD_ENET_TX_READY
	.comm	_FEC_ENET_TX_FRSIZE,4,2         ; @FEC_ENET_TX_FRSIZE
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEY! Enet xmit interrupt and TX_READY.\n"

	.comm	_BD_ENET_TX_DEF,2,1             ; @BD_ENET_TX_DEF
	.comm	_TX_RING_MOD_MASK,4,2           ; @TX_RING_MOD_MASK
	.comm	_BD_ENET_TX_WRAP,2,1            ; @BD_ENET_TX_WRAP
	.no_dead_strip	_fec_enet_tx
.subsections_via_symbols
