	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_done_irq
_tx_done_irq:                           ## @tx_done_irq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_TX_DESC_FLAGS_OFFSET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	(%rdi), %edx
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atmel_rmem8
	movq	_TX_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	$-1, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atmel_rmem8
	movq	_TX_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r13d
	cmpl	24(%rbx), %r13d
	jge	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TX_DESC_STATUS_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atmel_rmem8
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_TX_DESC_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atmel_rmem16
	movq	%rax, %r15
	movq	_TX_DESC_PACKET_TYPE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atmel_rmem8
	movq	%rax, %r12
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_atmel_tx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atmel_wmem8
	addl	%r15d, 52(%rbx)
	incl	48(%rbx)
	addq	8(%rbx), %r15
	movq	40(%rbx), %rax
	addq	32(%rbx), %rax
	cmpq	%rax, %r15
	movl	$0, %eax
	cmovleq	%r15, %rax
	movq	%rax, 8(%rbx)
	movl	(%rbx), %eax
	movl	24(%rbx), %ecx
	decl	%ecx
	leal	1(%rax), %edx
	cmpl	%ecx, %eax
	movl	$0, %eax
	cmovgel	%eax, %edx
	movl	%edx, (%rbx)
	movq	_TX_PACKET_TYPE_DATA@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	_TX_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rcx), %rdx
	sete	%al
	movq	16(%rbx), %rdi
	incl	(%rdi,%rax,4)
	callq	_netif_wake_queue
	movl	(%rbx), %edx
	jmp	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_DESC_FLAGS_OFFSET,4,2       ## @TX_DESC_FLAGS_OFFSET
	.comm	_TX_DONE,8,3                    ## @TX_DONE
	.comm	_TX_DESC_STATUS_OFFSET,4,2      ## @TX_DESC_STATUS_OFFSET
	.comm	_TX_DESC_SIZE_OFFSET,4,2        ## @TX_DESC_SIZE_OFFSET
	.comm	_TX_DESC_PACKET_TYPE_OFFSET,4,2 ## @TX_DESC_PACKET_TYPE_OFFSET
	.comm	_TX_PACKET_TYPE_DATA,8,3        ## @TX_PACKET_TYPE_DATA
	.comm	_TX_STATUS_SUCCESS,8,3          ## @TX_STATUS_SUCCESS
	.no_dead_strip	_tx_done_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_done_irq
_tx_done_irq:                           ; @tx_done_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x23, _TX_DESC_FLAGS_OFFSET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TX_DESC_FLAGS_OFFSET@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x0]
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	bl	_atmel_rmem8
Lloh2:
	adrp	x24, _TX_DONE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TX_DONE@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	mov	w25, #-1
Lloh4:
	adrp	x27, _TX_DESC_SIZE_OFFSET@GOTPAGE
Lloh5:
	ldr	x27, [x27, _TX_DESC_SIZE_OFFSET@GOTPAGEOFF]
Lloh6:
	adrp	x28, _TX_DESC_PACKET_TYPE_OFFSET@GOTPAGE
Lloh7:
	ldr	x28, [x28, _TX_DESC_PACKET_TYPE_OFFSET@GOTPAGEOFF]
Lloh8:
	adrp	x26, _TX_PACKET_TYPE_DATA@GOTPAGE
Lloh9:
	ldr	x26, [x26, _TX_PACKET_TYPE_DATA@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	bl	_atmel_rmem8
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #24]
	add	w25, w25, #1
	cmp	w25, w8
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x8, _TX_DESC_STATUS_OFFSET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TX_DESC_STATUS_OFFSET@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	bl	_atmel_rmem8
	mov	x20, x0
	ldr	w1, [x27]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	bl	_atmel_rmem16
	mov	x21, x0
	ldr	w1, [x28]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	bl	_atmel_rmem8
	mov	x22, x0
	ldr	w1, [x23]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_atmel_tx
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_atmel_wmem8
	ldp	w9, w8, [x19, #48]
	add	w8, w8, w21
	add	w9, w9, #1
	stp	w9, w8, [x19, #48]
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	ldp	x9, x10, [x19, #32]
	add	x9, x10, x9
	cmp	x8, x9
	csel	x8, xzr, x8, gt
	str	x8, [x19, #8]
	ldr	w8, [x19]
	ldr	w9, [x19, #24]
	sub	w9, w9, #1
	cmp	w8, w9
	csinc	w2, wzr, w8, ge
	str	w2, [x19]
	ldr	x8, [x26]
	cmp	x22, x8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh13:
	adrp	x8, _TX_STATUS_SUCCESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TX_STATUS_SUCCESS@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x20, x8
	cset	w8, eq
	ldr	x0, [x19, #16]
	lsl	x8, x8, #2
	ldr	w9, [x0, x8]
	add	w9, w9, #1
	str	w9, [x0, x8]
	bl	_netif_wake_queue
	ldr	w2, [x19]
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_DESC_FLAGS_OFFSET,4,2       ; @TX_DESC_FLAGS_OFFSET
	.comm	_TX_DONE,8,3                    ; @TX_DONE
	.comm	_TX_DESC_STATUS_OFFSET,4,2      ; @TX_DESC_STATUS_OFFSET
	.comm	_TX_DESC_SIZE_OFFSET,4,2        ; @TX_DESC_SIZE_OFFSET
	.comm	_TX_DESC_PACKET_TYPE_OFFSET,4,2 ; @TX_DESC_PACKET_TYPE_OFFSET
	.comm	_TX_PACKET_TYPE_DATA,8,3        ; @TX_PACKET_TYPE_DATA
	.comm	_TX_STATUS_SUCCESS,8,3          ; @TX_STATUS_SUCCESS
	.no_dead_strip	_tx_done_irq
.subsections_via_symbols
