	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ep93xx_tx_complete
_ep93xx_tx_complete:                    ## @ep93xx_tx_complete
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movl	(%rbx), %r12d
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	movslq	%r12d, %r15
	movl	(%rax,%r15,4), %r14d
	movq	_TSTAT0_TXFP@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_16
## %bb.1:
	leaq	(%rax,%r15,4), %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%r13), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	shrl	$16, %r14d
	andl	$31, %r14d
	addl	%r14d, 4(%rdx)
	movslq	%r12d, %rax
	incq	%rax
	movq	_TX_QUEUE_ENTRIES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r15
	decq	%r15
	andq	%rax, %r15
	movl	%r15d, (%rbx)
	movl	4(%rbx), %eax
	cmpl	(%rcx), %eax
	movl	$1, %ecx
	cmovel	%ecx, %r13d
	decl	%eax
	movl	%eax, 4(%rbx)
	movq	16(%rbx), %rax
	movq	8(%rax), %rcx
	leaq	(%rcx,%r15,4), %rax
	movl	(%rcx,%r15,4), %r14d
	movl	%r15d, %r12d
	movq	_TSTAT0_TXFP@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rax)
	movq	_TSTAT0_FA@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_crit
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TSTAT0_BUFFER_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	cmpl	%r12d, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_crit
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TSTAT0_TXWE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %eax
	movl	$4095, %ecx                     ## imm = 0xFFF
	andl	%ecx, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	incl	20(%rdx)
	movq	%rdx, %rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, (%rcx)
	movq	_TSTAT0_OW@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	12(%rdx)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TSTAT0_TXU@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%rdx)
	jmp	LBB0_13
LBB0_14:
	callq	_spin_unlock
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_wake_queue               ## TAILCALL
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSTAT0_TXFP,4,2                ## @TSTAT0_TXFP
	.comm	_TSTAT0_FA,4,2                  ## @TSTAT0_FA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame aborted %.8x\n"

	.comm	_TSTAT0_BUFFER_INDEX,4,2        ## @TSTAT0_BUFFER_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"entry mismatch %.8x\n"

	.comm	_TSTAT0_TXWE,4,2                ## @TSTAT0_TXWE
	.comm	_TSTAT0_OW,4,2                  ## @TSTAT0_OW
	.comm	_TSTAT0_TXU,4,2                 ## @TSTAT0_TXU
	.comm	_TX_QUEUE_ENTRIES,4,2           ## @TX_QUEUE_ENTRIES
	.no_dead_strip	_ep93xx_tx_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ep93xx_tx_complete
_ep93xx_tx_complete:                    ; @ep93xx_tx_complete
	.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, x0
	bl	_netdev_priv
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock
	ldr	w28, [x21]
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #8]
	add	x8, x8, w28, sxtw #2
	ldr	w22, [x8]
Lloh0:
	adrp	x9, _TSTAT0_TXFP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TSTAT0_TXFP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w22
	b.eq	LBB0_16
; %bb.1:
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	w26, #0
	sxtw	x27, w28
Lloh3:
	adrp	x20, _TSTAT0_TXWE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _TSTAT0_TXWE@GOTPAGEOFF]
Lloh5:
	adrp	x23, _TSTAT0_OW@GOTPAGE
Lloh6:
	ldr	x23, [x23, _TSTAT0_OW@GOTPAGEOFF]
Lloh7:
	adrp	x24, _TSTAT0_TXU@GOTPAGE
Lloh8:
	ldr	x24, [x24, _TSTAT0_TXU@GOTPAGEOFF]
	add	x9, x19, #16
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
Lloh9:
	adrp	x25, _TX_QUEUE_ENTRIES@GOTPAGE
Lloh10:
	ldr	x25, [x25, _TX_QUEUE_ENTRIES@GOTPAGEOFF]
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ubfx	w8, w22, #16, #5
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
	sxtw	x8, w28
	add	x8, x8, #1
	ldrsw	x9, [x25]
	sub	x9, x9, #1
	and	x27, x9, x8
	ldr	w8, [x21, #4]
	sub	w9, w8, #1
	stp	w27, w9, [x21]
	ldr	w10, [x25]
	cmp	w8, w10
	csinc	w26, w26, wzr, ne
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #8]
	add	x8, x8, x27, lsl #2
	ldr	w22, [x8]
Lloh11:
	adrp	x9, _TSTAT0_TXFP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TSTAT0_TXFP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mov	x28, x27
	tst	w9, w22
	b.eq	LBB0_14
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x8]
Lloh14:
	adrp	x8, _TSTAT0_FA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TSTAT0_FA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_crit
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh19:
	adrp	x8, _TSTAT0_BUFFER_INDEX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TSTAT0_BUFFER_INDEX@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	and	w8, w8, w22
	cmp	w8, w28
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_pr_crit
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	w8, [x8, x27, lsl #2]
	and	w8, w8, #0xfff
	ldr	w9, [x19, #20]
	add	w9, w9, #1
	str	w9, [x19, #20]
	mov	x9, x19
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_2
LBB0_14:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_spin_unlock
	cbz	w26, LBB0_17
; %bb.15:
	mov	x0, x19
	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	_netif_wake_queue
LBB0_16:
	mov	x0, x20
	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_17:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TSTAT0_TXFP,4,2                ; @TSTAT0_TXFP
	.comm	_TSTAT0_FA,4,2                  ; @TSTAT0_FA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame aborted %.8x\n"

	.comm	_TSTAT0_BUFFER_INDEX,4,2        ; @TSTAT0_BUFFER_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"entry mismatch %.8x\n"

	.comm	_TSTAT0_TXWE,4,2                ; @TSTAT0_TXWE
	.comm	_TSTAT0_OW,4,2                  ; @TSTAT0_OW
	.comm	_TSTAT0_TXU,4,2                 ; @TSTAT0_TXU
	.comm	_TX_QUEUE_ENTRIES,4,2           ; @TX_QUEUE_ENTRIES
	.no_dead_strip	_ep93xx_tx_complete
.subsections_via_symbols
