	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1_tx_queue
_atl1_tx_queue:                         ## @atl1_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	movslq	%eax, %r14
	testq	%r13, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_15
## %bb.1:
	movq	16(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ATL1_TPD_DESC
	movq	%rax, %rbx
	cmpq	%r12, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$12, %edx
	callq	_memcpy
LBB0_3:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	decq	%r13
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	4(%r12,%r14,8), %edi
	callq	_cpu_to_le64
	movl	%eax, 8(%rbx)
	movq	_TPD_BUFLEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TPD_BUFLEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	notl	%eax
	andl	%eax, (%rbx)
	movl	(%r12,%r14,8), %edi
	callq	_cpu_to_le16
	movq	_TPD_BUFLEN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_TPD_BUFLEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, (%rbx)
	movl	4(%rbx), %eax
	movq	_TPD_SEGMENT_EN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	movq	_TPD_SEGMENT_EN_MASK@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_TPD_HDRFLAG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movl	%eax, 4(%rbx)
LBB0_5:
	testq	%r13, %r13
	je	LBB0_6
## %bb.7:
	incq	%r14
	xorl	%eax, %eax
	cmpq	(%r15), %r14
	cmoveq	%rax, %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	cmpq	(%r15), %r14
	movl	$0, %eax
	cmoveq	%rax, %r14
	decq	%r13
	je	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ATL1_TPD_DESC
	movq	%rax, %rbx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_memcpy
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%r12,%r14,8), %edi
	callq	_cpu_to_le64
	movl	%eax, 8(%rbx)
	movq	_TPD_BUFLEN_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_TPD_BUFLEN_SHIFT@GOTPCREL(%rip), %r13
	movzbl	(%r13), %ecx
	shll	%cl, %eax
	notl	%eax
	andl	%eax, (%rbx)
	movl	(%r12,%r14,8), %edi
	callq	_cpu_to_le16
	andl	(%r15), %eax
	movzbl	(%r13), %ecx
	shll	%cl, %eax
	orl	%eax, (%rbx)
	movl	4(%rbx), %eax
	movq	_TPD_SEGMENT_EN_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	movl	%eax, %edx
	sarl	%cl, %edx
	movq	_TPD_SEGMENT_EN_MASK@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_TPD_HDRFLAG_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	btrl	%ecx, %eax
	movl	%eax, 4(%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	$1, %r13
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_TPD_EOP_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	btsl	%ecx, %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_14
LBB0_6:
	movq	_TPD_EOP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movl	%eax, 4(%rbx)
	incq	%r14
	xorl	%eax, %eax
	cmpq	(%r15), %r14
	cmoveq	%rax, %r14
LBB0_15:
	xorl	%eax, %eax
	callq	_wmb
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_set                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TPD_BUFLEN_MASK,4,2            ## @TPD_BUFLEN_MASK
	.comm	_TPD_BUFLEN_SHIFT,4,2           ## @TPD_BUFLEN_SHIFT
	.comm	_TPD_SEGMENT_EN_SHIFT,4,2       ## @TPD_SEGMENT_EN_SHIFT
	.comm	_TPD_SEGMENT_EN_MASK,4,2        ## @TPD_SEGMENT_EN_MASK
	.comm	_TPD_HDRFLAG_SHIFT,4,2          ## @TPD_HDRFLAG_SHIFT
	.comm	_TPD_EOP_SHIFT,4,2              ## @TPD_EOP_SHIFT
	.no_dead_strip	_atl1_tx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1_tx_queue
_atl1_tx_queue:                         ; @atl1_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	x22, x2
	mov	x23, x1
	mov	x21, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_atomic_read
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	subs	x24, x23, #1
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_15
; %bb.1:
	ldr	x19, [x21, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_ATL1_TPD_DESC
	mov	x23, x0
	cmp	x0, x22
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x23
	mov	x1, x22
	mov	w2, #12
	bl	_memcpy
LBB0_3:
	add	x19, x19, x20, lsl #3
	ldr	w0, [x19, #4]
	bl	_cpu_to_le64
	str	w0, [x23, #8]
Lloh0:
	adrp	x25, _TPD_BUFLEN_MASK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TPD_BUFLEN_MASK@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh2:
	adrp	x26, _TPD_BUFLEN_SHIFT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TPD_BUFLEN_SHIFT@GOTPAGEOFF]
	ldr	w9, [x26]
	lsl	w8, w8, w9
	ldr	w9, [x23]
	bic	w8, w9, w8
	str	w8, [x23]
	ldr	w0, [x19]
	bl	_cpu_to_le16
	ldr	w8, [x25]
	and	w8, w8, w0
	ldr	w9, [x26]
	lsl	w9, w8, w9
	ldp	w10, w8, [x23]
	orr	w9, w10, w9
	str	w9, [x23]
Lloh4:
	adrp	x9, _TPD_SEGMENT_EN_SHIFT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TPD_SEGMENT_EN_SHIFT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	asr	w9, w8, w9
Lloh7:
	adrp	x28, _TPD_SEGMENT_EN_MASK@GOTPAGE
Lloh8:
	ldr	x28, [x28, _TPD_SEGMENT_EN_MASK@GOTPAGEOFF]
	ldr	w10, [x28]
Lloh9:
	adrp	x11, _TPD_HDRFLAG_SHIFT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _TPD_HDRFLAG_SHIFT@GOTPAGEOFF]
	tst	w9, w10
	b.eq	LBB0_5
; %bb.4:
	ldr	w9, [x11]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x23, #4]
LBB0_5:
	cbz	x24, LBB0_14
; %bb.6:
	add	x8, x20, #1
	ldr	x9, [x21]
	cmp	x8, x9
	csinc	x20, xzr, x20, eq
	mov	w19, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x20, #1
	ldr	x9, [x21]
	cmp	x8, x9
	csinc	x20, xzr, x20, eq
	subs	x24, x24, #1
	b.eq	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x21, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_ATL1_TPD_DESC
	mov	x23, x0
	cmp	x0, x22
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	w2, #12
	bl	_memcpy
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x27, x27, x20, lsl #3
	ldr	w0, [x27, #4]
	bl	_cpu_to_le64
	str	w0, [x23, #8]
	ldr	w8, [x25]
	ldr	w9, [x26]
	lsl	w8, w8, w9
	ldr	w9, [x23]
	bic	w8, w9, w8
	str	w8, [x23]
	ldr	w0, [x27]
	bl	_cpu_to_le16
	ldr	w8, [x25]
	and	w8, w8, w0
	ldr	w9, [x26]
	lsl	w9, w8, w9
	ldp	w10, w8, [x23]
	orr	w9, w10, w9
	str	w9, [x23]
Lloh11:
	adrp	x9, _TPD_SEGMENT_EN_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TPD_SEGMENT_EN_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	asr	w9, w8, w9
	ldr	w10, [x28]
	tst	w9, w10
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh14:
	adrp	x9, _TPD_HDRFLAG_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TPD_HDRFLAG_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	bic	w8, w8, w9
	str	w8, [x23, #4]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x24, #1
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh17:
	adrp	x9, _TPD_EOP_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TPD_EOP_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w8, w8, w9
	str	w8, [x23, #4]
	b	LBB0_7
LBB0_14:
Lloh20:
	adrp	x9, _TPD_EOP_SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TPD_EOP_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w8, w8, w9
	str	w8, [x23, #4]
	add	x8, x20, #1
	ldr	x9, [x21]
	cmp	x8, x9
	csinc	x20, xzr, x20, eq
LBB0_15:
	bl	_wmb
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, 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	_atomic_set
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TPD_BUFLEN_MASK,4,2            ; @TPD_BUFLEN_MASK
	.comm	_TPD_BUFLEN_SHIFT,4,2           ; @TPD_BUFLEN_SHIFT
	.comm	_TPD_SEGMENT_EN_SHIFT,4,2       ; @TPD_SEGMENT_EN_SHIFT
	.comm	_TPD_SEGMENT_EN_MASK,4,2        ; @TPD_SEGMENT_EN_MASK
	.comm	_TPD_HDRFLAG_SHIFT,4,2          ; @TPD_HDRFLAG_SHIFT
	.comm	_TPD_EOP_SHIFT,4,2              ; @TPD_EOP_SHIFT
	.no_dead_strip	_atl1_tx_queue
.subsections_via_symbols
