	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hw_atl_a0_hw_ring_tx_xmit
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_hw_atl_a0_hw_ring_tx_xmit:             ## @hw_atl_a0_hw_ring_tx_xmit
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	imulq	$88, %rax, %rdx
	cmpq	$0, 24(%rcx,%rdx)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 80(%rcx,%rdx)
	je	LBB0_3
## %bb.2:
	addq	%rcx, %rdx
	testl	%r14d, %r14d
	jne	LBB0_5
	jmp	LBB0_20
LBB0_3:
	addq	%rcx, %rdx
	addq	$4, %rdx
	testl	%r14d, %r14d
	je	LBB0_20
LBB0_5:
	movl	(%rdx), %r12d
	decl	%r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	imulq	$88, %rax, %rdx
	movq	_HW_ATL_A0_TXD_SIZE@GOTPCREL(%rip), %rdi
	imulq	(%rdi), %rax
	leaq	(%rsi,%rax,4), %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsi,%rax,4)
	cmpq	$0, 72(%rcx,%rdx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rcx,%rdx), %edi
	movl	12(%rcx,%rdx), %esi
	movl	%edi, %ebx
	shll	$31, %ebx
	movl	%edi, %eax
	addl	%esi, %edi
	shll	$24, %esi
	orl	%ebx, %esi
	movq	_HW_ATL_A0_TXD_CTL_CMD_TCP@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	movq	_HW_ATL_A0_TXD_CTL_DESC_TYPE_TXC@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	movl	%esi, (%r13)
	movl	16(%rcx,%rdx), %ebx
	shll	$16, %ebx
	sarl	%eax
	orl	%ebx, %eax
	movl	20(%rcx,%rdx), %ebx
	addl	%ebx, %edi
	shll	$8, %ebx
	orl	%ebx, %eax
	movl	%eax, 4(%r13)
	subl	%edi, %r12d
	cmpq	$0, 64(%rcx,%rdx)
	movl	$1, %ebx
	movq	_HW_ATL_A0_TXD_CTL_CMD_IPV6@GOTPCREL(%rip), %rax
	jne	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rcx,%rdx), %eax
	movq	56(%rcx,%rdx), %rsi
	movq	%rsi, 8(%r13)
	shll	$4, %eax
	movq	_HW_ATL_A0_TXD_CTL_BLEN@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	movl	%eax, (%r13)
	movq	_HW_ATL_A0_TXD_CTL_DESC_TYPE_TXD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
	movl	%r12d, %esi
	shll	$14, %esi
	movq	_HW_ATL_A0_TXD_CTL2_LEN@GOTPCREL(%rip), %rdi
	andl	(%rdi), %esi
	movl	%esi, 4(%r13)
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_HW_ATL_A0_TXD_CTL_CMD_LSO@GOTPCREL(%rip), %rdi
	orl	(%rdi), %eax
	movl	%eax, (%r13)
	movq	_HW_ATL_A0_TXD_CTL2_CTX_EN@GOTPCREL(%rip), %rdi
	orl	(%rdi), %esi
	movl	%esi, 4(%r13)
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 48(%rcx,%rdx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_HW_ATL_A0_TXD_CTL_CMD_IPCSO@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 40(%rcx,%rdx)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 32(%rcx,%rdx)
	je	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_HW_ATL_A0_TXD_CTL_CMD_TUCSO@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%r13)
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%rcx,%rdx), %rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %esi
	movq	_HW_ATL_A0_TXD_CTL_EOP@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, (%r13)
	xorl	%ebx, %ebx
	movq	_HW_ATL_A0_TXD_CTL_CMD_WB@GOTPCREL(%rip), %rax
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	orl	(%rax), %esi
	movl	%esi, (%r13)
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rsi
	movq	%r15, %rdi
	callq	_aq_ring_next_dx
	movq	%rax, (%r15)
	subl	$1, %r14d
	jb	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rcx
	jmp	LBB0_6
LBB0_20:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hw_atl_a0_hw_tx_ring_tail_update
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aq_hw_err_from_flags           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_A0_TXD_SIZE,8,3         ## @HW_ATL_A0_TXD_SIZE
	.comm	_HW_ATL_A0_TXD_CTL_CMD_TCP,4,2  ## @HW_ATL_A0_TXD_CTL_CMD_TCP
	.comm	_HW_ATL_A0_TXD_CTL_DESC_TYPE_TXC,4,2 ## @HW_ATL_A0_TXD_CTL_DESC_TYPE_TXC
	.comm	_HW_ATL_A0_TXD_CTL_CMD_IPV6,4,2 ## @HW_ATL_A0_TXD_CTL_CMD_IPV6
	.comm	_HW_ATL_A0_TXD_CTL_BLEN,4,2     ## @HW_ATL_A0_TXD_CTL_BLEN
	.comm	_HW_ATL_A0_TXD_CTL_DESC_TYPE_TXD,4,2 ## @HW_ATL_A0_TXD_CTL_DESC_TYPE_TXD
	.comm	_HW_ATL_A0_TXD_CTL2_LEN,4,2     ## @HW_ATL_A0_TXD_CTL2_LEN
	.comm	_HW_ATL_A0_TXD_CTL_CMD_LSO,4,2  ## @HW_ATL_A0_TXD_CTL_CMD_LSO
	.comm	_HW_ATL_A0_TXD_CTL2_CTX_EN,4,2  ## @HW_ATL_A0_TXD_CTL2_CTX_EN
	.comm	_HW_ATL_A0_TXD_CTL_CMD_IPCSO,4,2 ## @HW_ATL_A0_TXD_CTL_CMD_IPCSO
	.comm	_HW_ATL_A0_TXD_CTL_CMD_TUCSO,4,2 ## @HW_ATL_A0_TXD_CTL_CMD_TUCSO
	.comm	_HW_ATL_A0_TXD_CTL_EOP,4,2      ## @HW_ATL_A0_TXD_CTL_EOP
	.comm	_HW_ATL_A0_TXD_CTL_CMD_WB,4,2   ## @HW_ATL_A0_TXD_CTL_CMD_WB
	.no_dead_strip	_hw_atl_a0_hw_ring_tx_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_atl_a0_hw_ring_tx_xmit
_hw_atl_a0_hw_ring_tx_xmit:             ; @hw_atl_a0_hw_ring_tx_xmit
	.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	x20, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldp	x0, x8, [x1]
	mov	w9, #88
	madd	x9, x0, x9, x8
	ldr	x9, [x9, #24]
	cbz	x9, LBB0_3
; %bb.1:
	mov	w9, #88
	madd	x9, x0, x9, x8
	ldr	x9, [x9, #80]
	cbz	x9, LBB0_3
; %bb.2:
	mov	w9, #88
	madd	x9, x0, x9, x8
	cbnz	w2, LBB0_4
	b	LBB0_20
LBB0_3:
	mov	w9, #88
	madd	x9, x0, x9, x8
	add	x9, x9, #4
	cbz	w2, LBB0_20
LBB0_4:
	mov	w26, #0
	ldr	w21, [x9]
	sub	w22, w2, #1
Lloh0:
	adrp	x23, _HW_ATL_A0_TXD_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HW_ATL_A0_TXD_SIZE@GOTPAGEOFF]
	mov	w24, #88
Lloh2:
	adrp	x19, _HW_ATL_A0_TXD_CTL_CMD_TCP@GOTPAGE
Lloh3:
	ldr	x19, [x19, _HW_ATL_A0_TXD_CTL_CMD_TCP@GOTPAGEOFF]
Lloh4:
	adrp	x28, _HW_ATL_A0_TXD_CTL_DESC_TYPE_TXC@GOTPAGE
Lloh5:
	ldr	x28, [x28, _HW_ATL_A0_TXD_CTL_DESC_TYPE_TXC@GOTPAGEOFF]
Lloh6:
	adrp	x25, _HW_ATL_A0_TXD_CTL_CMD_IPV6@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HW_ATL_A0_TXD_CTL_CMD_IPV6@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	x10, [x23]
	mul	x10, x10, x0
	add	x27, x9, x10, lsl #2
	madd	x9, x0, x24, x8
	stp	xzr, xzr, [x27]
	ldr	x9, [x9, #72]
	cbz	x9, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x9, x0, x24, x8
	ldp	w10, w11, [x9, #8]
	lsl	w8, w11, #24
	orr	w8, w8, w10, lsl #31
	ldr	w12, [x19]
	orr	w8, w8, w12
	ldr	w12, [x28]
	orr	w8, w8, w12
	ldp	w12, w13, [x9, #16]
	lsl	w12, w12, #16
	orr	w12, w12, w10, asr #1
	orr	w12, w12, w13, lsl #8
	stp	w8, w12, [x27]
	add	w10, w10, w11
	add	w10, w10, w13
	sub	w21, w21, w10
	ldr	x9, [x9, #64]
	mov	w26, #1
	cbz	x9, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x25
	b	LBB0_17
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	x9, x0, x24, x8
	ldr	w10, [x9]
	ldr	x9, [x9, #56]
	str	x9, [x27, #8]
Lloh8:
	adrp	x9, _HW_ATL_A0_TXD_CTL_BLEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HW_ATL_A0_TXD_CTL_BLEN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w9, w9, w10, lsl #4
	str	w9, [x27]
Lloh11:
	adrp	x10, _HW_ATL_A0_TXD_CTL_DESC_TYPE_TXD@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HW_ATL_A0_TXD_CTL_DESC_TYPE_TXD@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x27]
Lloh14:
	adrp	x10, _HW_ATL_A0_TXD_CTL2_LEN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _HW_ATL_A0_TXD_CTL2_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	and	w10, w10, w21, lsl #14
	str	w10, [x27, #4]
	cbz	w26, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh17:
	adrp	x11, _HW_ATL_A0_TXD_CTL_CMD_LSO@GOTPAGE
Lloh18:
	ldr	x11, [x11, _HW_ATL_A0_TXD_CTL_CMD_LSO@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	orr	w9, w11, w9
	str	w9, [x27]
Lloh20:
	adrp	x11, _HW_ATL_A0_TXD_CTL2_CTX_EN@GOTPAGE
Lloh21:
	ldr	x11, [x11, _HW_ATL_A0_TXD_CTL2_CTX_EN@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	orr	w10, w11, w10
	str	w10, [x27, #4]
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x10, x0, x24, x8
	ldr	x10, [x10, #48]
	cbz	x10, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh23:
	adrp	x10, _HW_ATL_A0_TXD_CTL_CMD_IPCSO@GOTPAGE
Lloh24:
	ldr	x10, [x10, _HW_ATL_A0_TXD_CTL_CMD_IPCSO@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x27]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x10, x0, x24, x8
	ldr	x10, [x10, #40]
	cbnz	x10, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x10, x0, x24, x8
	ldr	x10, [x10, #32]
	cbz	x10, LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh26:
	adrp	x10, _HW_ATL_A0_TXD_CTL_CMD_TUCSO@GOTPAGE
Lloh27:
	ldr	x10, [x10, _HW_ATL_A0_TXD_CTL_CMD_TUCSO@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x27]
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x0, x24, x8
	ldr	x0, [x8, #24]
	bl	_unlikely
	cbz	x0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #0
Lloh29:
	adrp	x8, _HW_ATL_A0_TXD_CTL_EOP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HW_ATL_A0_TXD_CTL_EOP@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x27]
	orr	w8, w9, w8
	str	w8, [x27]
Lloh32:
	adrp	x9, _HW_ATL_A0_TXD_CTL_CMD_WB@GOTPAGE
Lloh33:
	ldr	x9, [x9, _HW_ATL_A0_TXD_CTL_CMD_WB@GOTPAGEOFF]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x27]
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x20]
	mov	x0, x20
	bl	_aq_ring_next_dx
	str	x0, [x20]
	cbz	w22, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	sub	w22, w22, #1
	b	LBB0_5
LBB0_20:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, x20
	bl	_hw_atl_a0_hw_tx_ring_tail_update
	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	_aq_hw_err_from_flags
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_A0_TXD_SIZE,8,3         ; @HW_ATL_A0_TXD_SIZE
	.comm	_HW_ATL_A0_TXD_CTL_CMD_TCP,4,2  ; @HW_ATL_A0_TXD_CTL_CMD_TCP
	.comm	_HW_ATL_A0_TXD_CTL_DESC_TYPE_TXC,4,2 ; @HW_ATL_A0_TXD_CTL_DESC_TYPE_TXC
	.comm	_HW_ATL_A0_TXD_CTL_CMD_IPV6,4,2 ; @HW_ATL_A0_TXD_CTL_CMD_IPV6
	.comm	_HW_ATL_A0_TXD_CTL_BLEN,4,2     ; @HW_ATL_A0_TXD_CTL_BLEN
	.comm	_HW_ATL_A0_TXD_CTL_DESC_TYPE_TXD,4,2 ; @HW_ATL_A0_TXD_CTL_DESC_TYPE_TXD
	.comm	_HW_ATL_A0_TXD_CTL2_LEN,4,2     ; @HW_ATL_A0_TXD_CTL2_LEN
	.comm	_HW_ATL_A0_TXD_CTL_CMD_LSO,4,2  ; @HW_ATL_A0_TXD_CTL_CMD_LSO
	.comm	_HW_ATL_A0_TXD_CTL2_CTX_EN,4,2  ; @HW_ATL_A0_TXD_CTL2_CTX_EN
	.comm	_HW_ATL_A0_TXD_CTL_CMD_IPCSO,4,2 ; @HW_ATL_A0_TXD_CTL_CMD_IPCSO
	.comm	_HW_ATL_A0_TXD_CTL_CMD_TUCSO,4,2 ; @HW_ATL_A0_TXD_CTL_CMD_TUCSO
	.comm	_HW_ATL_A0_TXD_CTL_EOP,4,2      ; @HW_ATL_A0_TXD_CTL_EOP
	.comm	_HW_ATL_A0_TXD_CTL_CMD_WB,4,2   ; @HW_ATL_A0_TXD_CTL_CMD_WB
	.no_dead_strip	_hw_atl_a0_hw_ring_tx_xmit
.subsections_via_symbols
