	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_dev_xmit
_xlgmac_dev_xmit:                       ## @xlgmac_dev_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	16(%rdi), %r12
	movl	(%r13), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	80(%r13), %edi
	movq	_TX_PACKET_ATTRIBUTES_CSUM_ENABLE_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_PACKET_ATTRIBUTES_CSUM_ENABLE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XLGMAC_GET_REG_BITS
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	80(%r13), %edi
	movq	_TX_PACKET_ATTRIBUTES_TSO_ENABLE_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_PACKET_ATTRIBUTES_TSO_ENABLE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XLGMAC_GET_REG_BITS
	movl	%eax, %ebx
	movl	80(%r13), %edi
	movq	_TX_PACKET_ATTRIBUTES_VLAN_CTAG_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_PACKET_ATTRIBUTES_VLAN_CTAG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XLGMAC_GET_REG_BITS
	movl	%eax, %edx
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	40(%r13), %rax
	movb	$1, %r15b
	cmpq	16(%r13), %rax
	jne	LBB0_3
LBB0_2:
	xorl	%r15d, %r15d
LBB0_3:
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	movq	48(%r13), %rax
	movb	$1, %bl
	cmpq	24(%r13), %rax
	jne	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movl	56(%r13), %ecx
	movl	4(%r13), %eax
	addl	%ecx, %eax
	movl	%eax, 4(%r13)
	movl	(%r12), %esi
	testl	%esi, %esi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_7
## %bb.8:
	cmpl	%esi, %ecx
	jle	LBB0_10
## %bb.9:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_7:
	movb	$1, %al
	jmp	LBB0_11
LBB0_10:
	cltd
	idivl	%esi
	cmpl	%ecx, %edx
	setge	%al
LBB0_11:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_12:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_XLGMAC_GET_DESC_DATA
	movq	%rax, %r12
	movq	8(%rax), %r14
	movl	%r15d, %eax
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	orb	%dl, %al
	cmpb	$1, %al
	jne	LBB0_13
## %bb.14:
	movl	%edx, %r12d
	testb	%r15b, %r15b
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_16
## %bb.15:
	movq	_tx_queued@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	40(%r13), %r8
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_dbg
	movq	8(%r14), %rdi
	movq	_TX_CONTEXT_DESC2_MSS_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_CONTEXT_DESC2_MSS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	40(%r13), %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, 8(%r14)
	movq	(%r14), %rdi
	movq	_TX_CONTEXT_DESC3_CTXT_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_CONTEXT_DESC3_CTXT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movq	_TX_CONTEXT_DESC3_TCMSSV_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_CONTEXT_DESC3_TCMSSV_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movq	40(%r13), %rax
	movq	%rax, 16(%r13)
LBB0_16:
	testb	%r12b, %r12b
	je	LBB0_18
## %bb.17:
	movq	_tx_queued@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	48(%r13), %r8
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	callq	_netif_dbg
	movq	(%r14), %rdi
	movq	_TX_CONTEXT_DESC3_CTXT_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_CONTEXT_DESC3_CTXT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movq	_TX_CONTEXT_DESC3_VT_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_CONTEXT_DESC3_VT_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	48(%r13), %ecx
	movq	%rax, %rdi
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movq	_TX_CONTEXT_DESC3_VLTV_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_CONTEXT_DESC3_VLTV_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movq	48(%r13), %rax
	movq	%rax, 24(%r13)
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %r15d
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_XLGMAC_GET_DESC_DATA
	movq	%rax, %r12
	movq	8(%rax), %r14
	jmp	LBB0_19
LBB0_13:
	movl	%ebx, %r15d
LBB0_19:
	movl	24(%r12), %edi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r14)
	movl	24(%r12), %edi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14)
	movq	8(%r14), %rdi
	movq	_TX_NORMAL_DESC2_HL_B1L_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_NORMAL_DESC2_HL_B1L_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, 8(%r14)
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_21
## %bb.20:
	movq	_TX_NORMAL_DESC2_VTIR_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC2_VTIR_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_TX_NORMAL_DESC2_VLAN_INSERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, 8(%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	12(%rax)
LBB0_21:
	movl	80(%r13), %edi
	movq	_TX_PACKET_ATTRIBUTES_PTP_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_PACKET_ATTRIBUTES_PTP_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_XLGMAC_GET_REG_BITS
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	8(%r14), %rdi
	movq	_TX_NORMAL_DESC2_TTSE_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_NORMAL_DESC2_TTSE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, 8(%r14)
LBB0_23:
	movq	(%r14), %rdi
	movq	_TX_NORMAL_DESC3_FD_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_NORMAL_DESC3_FD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movq	_TX_NORMAL_DESC3_CTXT_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_CTXT_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movl	%r15d, %ebx
	subl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_25
## %bb.24:
	movq	_TX_NORMAL_DESC3_OWN_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_OWN_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
LBB0_25:
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_27
## %bb.26:
	movq	_TX_NORMAL_DESC3_TSE_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_TSE_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movq	_TX_NORMAL_DESC3_TCPPL_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_TCPPL_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	60(%r13), %ecx
	movq	%rax, %rdi
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movq	_TX_NORMAL_DESC3_TCPHDRLEN_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_TCPHDRLEN_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	64(%r13), %edi
	leal	3(%rdi), %ecx
	testl	%edi, %edi
	cmovnsl	%edi, %ecx
	sarl	$2, %ecx
	movq	%rax, %rdi
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incl	8(%rcx)
	jmp	LBB0_30
LBB0_27:
	movq	_TX_NORMAL_DESC3_CPC_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_CPC_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_29
## %bb.28:
	movq	_TX_NORMAL_DESC3_CIC_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_CIC_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$3, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
LBB0_29:
	movq	_TX_NORMAL_DESC3_FL_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_FL_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	68(%r13), %ecx
	movq	%rax, %rdi
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
LBB0_30:
	incl	%ebx
	cmpl	72(%r13), %ebx
	jge	LBB0_36
## %bb.31:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	negl	%ebx
	incl	%r15d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=1
	movl	%r15d, %ecx
	incl	%r15d
	addl	%ebx, %ecx
	incl	%ecx
	cmpl	72(%r13), %ecx
	jge	LBB0_35
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_XLGMAC_GET_DESC_DATA
	movq	%rax, %r12
	movq	8(%rax), %r14
	movl	24(%rax), %edi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r14)
	movl	24(%r12), %edi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14)
	movq	8(%r14), %rdi
	movq	_TX_NORMAL_DESC2_HL_B1L_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_NORMAL_DESC2_HL_B1L_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, 8(%r14)
	movq	(%r14), %rdi
	movq	_TX_NORMAL_DESC3_OWN_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_NORMAL_DESC3_OWN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	movq	_TX_NORMAL_DESC3_CTXT_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_CTXT_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	_TX_NORMAL_DESC3_CIC_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_CIC_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$3, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	jmp	LBB0_34
LBB0_35:
	decl	%r15d
LBB0_36:
	movq	_TX_NORMAL_DESC3_LD_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TX_NORMAL_DESC3_LD_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%r14)
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_38
## %bb.37:
	movq	8(%r14), %rdi
	movq	_TX_NORMAL_DESC2_IC_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_NORMAL_DESC2_IC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, 8(%r14)
LBB0_38:
	movl	56(%r13), %eax
	movl	%eax, 16(%r12)
	movl	76(%r13), %eax
	movl	%eax, 20(%r12)
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	%r13, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_XLGMAC_GET_DESC_DATA
	movq	8(%rax), %rbx
	movq	(%rbx), %rdi
	movq	_TX_NORMAL_DESC3_OWN_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_NORMAL_DESC3_OWN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS_LE
	movq	%rax, (%rbx)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_netif_msg_tx_queued
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:
	movl	72(%r13), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	$1, %r8d
	callq	_xlgmac_dump_tx_desc
LBB0_40:
	xorl	%eax, %eax
	callq	_smp_wmb
	incl	%r15d
	movl	%r15d, (%r13)
	xorl	%eax, %eax
	callq	_netdev_xmit_more
	testl	%eax, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_42
## %bb.41:
	movl	4(%r12), %edi
	movl	4(%rbx), %esi
	callq	_netdev_get_tx_queue
	movl	%eax, %edi
	callq	_netif_xmit_stopped
	testq	%rax, %rax
	je	LBB0_43
LBB0_42:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_xlgmac_tx_start_xmit
	jmp	LBB0_44
LBB0_43:
	movl	$1, 32(%r13)
LBB0_44:
	movl	(%rbx), %esi
	movl	(%r13), %ecx
	movl	8(%r13), %eax
	decl	%eax
	andl	%eax, %r14d
	decl	%ecx
	andl	%eax, %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XLGMAC_PR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_PACKET_ATTRIBUTES_CSUM_ENABLE_POS,4,2 ## @TX_PACKET_ATTRIBUTES_CSUM_ENABLE_POS
	.comm	_TX_PACKET_ATTRIBUTES_CSUM_ENABLE_LEN,4,2 ## @TX_PACKET_ATTRIBUTES_CSUM_ENABLE_LEN
	.comm	_TX_PACKET_ATTRIBUTES_TSO_ENABLE_POS,4,2 ## @TX_PACKET_ATTRIBUTES_TSO_ENABLE_POS
	.comm	_TX_PACKET_ATTRIBUTES_TSO_ENABLE_LEN,4,2 ## @TX_PACKET_ATTRIBUTES_TSO_ENABLE_LEN
	.comm	_TX_PACKET_ATTRIBUTES_VLAN_CTAG_POS,4,2 ## @TX_PACKET_ATTRIBUTES_VLAN_CTAG_POS
	.comm	_TX_PACKET_ATTRIBUTES_VLAN_CTAG_LEN,4,2 ## @TX_PACKET_ATTRIBUTES_VLAN_CTAG_LEN
	.comm	_tx_queued,4,2                  ## @tx_queued
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TSO context descriptor, mss=%u\n"

	.comm	_TX_CONTEXT_DESC2_MSS_POS,4,2   ## @TX_CONTEXT_DESC2_MSS_POS
	.comm	_TX_CONTEXT_DESC2_MSS_LEN,4,2   ## @TX_CONTEXT_DESC2_MSS_LEN
	.comm	_TX_CONTEXT_DESC3_CTXT_POS,4,2  ## @TX_CONTEXT_DESC3_CTXT_POS
	.comm	_TX_CONTEXT_DESC3_CTXT_LEN,4,2  ## @TX_CONTEXT_DESC3_CTXT_LEN
	.comm	_TX_CONTEXT_DESC3_TCMSSV_POS,4,2 ## @TX_CONTEXT_DESC3_TCMSSV_POS
	.comm	_TX_CONTEXT_DESC3_TCMSSV_LEN,4,2 ## @TX_CONTEXT_DESC3_TCMSSV_LEN
L_.str.1:                               ## @.str.1
	.asciz	"VLAN context descriptor, ctag=%u\n"

	.comm	_TX_CONTEXT_DESC3_VT_POS,4,2    ## @TX_CONTEXT_DESC3_VT_POS
	.comm	_TX_CONTEXT_DESC3_VT_LEN,4,2    ## @TX_CONTEXT_DESC3_VT_LEN
	.comm	_TX_CONTEXT_DESC3_VLTV_POS,4,2  ## @TX_CONTEXT_DESC3_VLTV_POS
	.comm	_TX_CONTEXT_DESC3_VLTV_LEN,4,2  ## @TX_CONTEXT_DESC3_VLTV_LEN
	.comm	_TX_NORMAL_DESC2_HL_B1L_POS,4,2 ## @TX_NORMAL_DESC2_HL_B1L_POS
	.comm	_TX_NORMAL_DESC2_HL_B1L_LEN,4,2 ## @TX_NORMAL_DESC2_HL_B1L_LEN
	.comm	_TX_NORMAL_DESC2_VTIR_POS,4,2   ## @TX_NORMAL_DESC2_VTIR_POS
	.comm	_TX_NORMAL_DESC2_VTIR_LEN,4,2   ## @TX_NORMAL_DESC2_VTIR_LEN
	.comm	_TX_NORMAL_DESC2_VLAN_INSERT,4,2 ## @TX_NORMAL_DESC2_VLAN_INSERT
	.comm	_TX_PACKET_ATTRIBUTES_PTP_POS,4,2 ## @TX_PACKET_ATTRIBUTES_PTP_POS
	.comm	_TX_PACKET_ATTRIBUTES_PTP_LEN,4,2 ## @TX_PACKET_ATTRIBUTES_PTP_LEN
	.comm	_TX_NORMAL_DESC2_TTSE_POS,4,2   ## @TX_NORMAL_DESC2_TTSE_POS
	.comm	_TX_NORMAL_DESC2_TTSE_LEN,4,2   ## @TX_NORMAL_DESC2_TTSE_LEN
	.comm	_TX_NORMAL_DESC3_FD_POS,4,2     ## @TX_NORMAL_DESC3_FD_POS
	.comm	_TX_NORMAL_DESC3_FD_LEN,4,2     ## @TX_NORMAL_DESC3_FD_LEN
	.comm	_TX_NORMAL_DESC3_CTXT_POS,4,2   ## @TX_NORMAL_DESC3_CTXT_POS
	.comm	_TX_NORMAL_DESC3_CTXT_LEN,4,2   ## @TX_NORMAL_DESC3_CTXT_LEN
	.comm	_TX_NORMAL_DESC3_OWN_POS,4,2    ## @TX_NORMAL_DESC3_OWN_POS
	.comm	_TX_NORMAL_DESC3_OWN_LEN,4,2    ## @TX_NORMAL_DESC3_OWN_LEN
	.comm	_TX_NORMAL_DESC3_TSE_POS,4,2    ## @TX_NORMAL_DESC3_TSE_POS
	.comm	_TX_NORMAL_DESC3_TSE_LEN,4,2    ## @TX_NORMAL_DESC3_TSE_LEN
	.comm	_TX_NORMAL_DESC3_TCPPL_POS,4,2  ## @TX_NORMAL_DESC3_TCPPL_POS
	.comm	_TX_NORMAL_DESC3_TCPPL_LEN,4,2  ## @TX_NORMAL_DESC3_TCPPL_LEN
	.comm	_TX_NORMAL_DESC3_TCPHDRLEN_POS,4,2 ## @TX_NORMAL_DESC3_TCPHDRLEN_POS
	.comm	_TX_NORMAL_DESC3_TCPHDRLEN_LEN,4,2 ## @TX_NORMAL_DESC3_TCPHDRLEN_LEN
	.comm	_TX_NORMAL_DESC3_CPC_POS,4,2    ## @TX_NORMAL_DESC3_CPC_POS
	.comm	_TX_NORMAL_DESC3_CPC_LEN,4,2    ## @TX_NORMAL_DESC3_CPC_LEN
	.comm	_TX_NORMAL_DESC3_CIC_POS,4,2    ## @TX_NORMAL_DESC3_CIC_POS
	.comm	_TX_NORMAL_DESC3_CIC_LEN,4,2    ## @TX_NORMAL_DESC3_CIC_LEN
	.comm	_TX_NORMAL_DESC3_FL_POS,4,2     ## @TX_NORMAL_DESC3_FL_POS
	.comm	_TX_NORMAL_DESC3_FL_LEN,4,2     ## @TX_NORMAL_DESC3_FL_LEN
	.comm	_TX_NORMAL_DESC3_LD_POS,4,2     ## @TX_NORMAL_DESC3_LD_POS
	.comm	_TX_NORMAL_DESC3_LD_LEN,4,2     ## @TX_NORMAL_DESC3_LD_LEN
	.comm	_TX_NORMAL_DESC2_IC_POS,4,2     ## @TX_NORMAL_DESC2_IC_POS
	.comm	_TX_NORMAL_DESC2_IC_LEN,4,2     ## @TX_NORMAL_DESC2_IC_LEN
L_.str.2:                               ## @.str.2
	.asciz	"%s: descriptors %u to %u written\n"

	.no_dead_strip	_xlgmac_dev_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_dev_xmit
_xlgmac_dev_xmit:                       ; @xlgmac_dev_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldp	x19, x25, [x0, #8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w23, [x19]
	ldr	w0, [x19, #80]
Lloh0:
	adrp	x8, _TX_PACKET_ATTRIBUTES_CSUM_ENABLE_POS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_PACKET_ATTRIBUTES_CSUM_ENABLE_POS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _TX_PACKET_ATTRIBUTES_CSUM_ENABLE_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_PACKET_ATTRIBUTES_CSUM_ENABLE_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_XLGMAC_GET_REG_BITS
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w0, [x19, #80]
Lloh6:
	adrp	x8, _TX_PACKET_ATTRIBUTES_TSO_ENABLE_POS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_PACKET_ATTRIBUTES_TSO_ENABLE_POS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _TX_PACKET_ATTRIBUTES_TSO_ENABLE_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TX_PACKET_ATTRIBUTES_TSO_ENABLE_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_XLGMAC_GET_REG_BITS
	mov	x24, x0
	ldr	w0, [x19, #80]
Lloh12:
	adrp	x8, _TX_PACKET_ATTRIBUTES_VLAN_CTAG_POS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_PACKET_ATTRIBUTES_VLAN_CTAG_POS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _TX_PACKET_ATTRIBUTES_VLAN_CTAG_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TX_PACKET_ATTRIBUTES_VLAN_CTAG_LEN@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_XLGMAC_GET_REG_BITS
	mov	x27, x0
	cbz	w24, LBB0_2
; %bb.1:
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	w21, #0
	cbnz	w27, LBB0_4
	b	LBB0_5
LBB0_3:
	mov	w21, #1
	cbz	w27, LBB0_5
LBB0_4:
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_5:
	mov	w20, #0
	b	LBB0_7
LBB0_6:
	mov	w20, #1
LBB0_7:
	ldr	w8, [x19, #56]
	ldr	w9, [x19, #4]
	add	w9, w9, w8
	str	w9, [x19, #4]
	ldr	w10, [x25]
	str	w24, [sp, #4]                   ; 4-byte Folded Spill
	cbz	w10, LBB0_10
; %bb.8:
	cmp	w8, w10
	b.le	LBB0_11
; %bb.9:
	str	wzr, [sp]                       ; 4-byte Folded Spill
	b	LBB0_13
LBB0_10:
	mov	w8, #1
	b	LBB0_12
LBB0_11:
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	cmp	w9, w8
	cset	w8, ge
LBB0_12:
	str	w8, [sp]                        ; 4-byte Folded Spill
LBB0_13:
	mov	x0, x19
	mov	x1, x23
	bl	_XLGMAC_GET_DESC_DATA
	ldr	x28, [x0, #8]
	orr	w8, w21, w20
	cmp	w8, #1
	b.ne	LBB0_19
; %bb.14:
	cbz	w21, LBB0_16
; %bb.15:
Lloh18:
	adrp	x8, _tx_queued@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tx_queued@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x25, #4]
	ldr	x4, [x19, #40]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x25
	bl	_netif_dbg
Lloh23:
	adrp	x8, _TX_CONTEXT_DESC2_MSS_POS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TX_CONTEXT_DESC2_MSS_POS@GOTPAGEOFF]
	ldr	x0, [x28, #8]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _TX_CONTEXT_DESC2_MSS_LEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TX_CONTEXT_DESC2_MSS_LEN@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	ldr	w3, [x19, #40]
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28, #8]
	ldr	x0, [x28]
Lloh29:
	adrp	x8, _TX_CONTEXT_DESC3_CTXT_POS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TX_CONTEXT_DESC3_CTXT_POS@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _TX_CONTEXT_DESC3_CTXT_LEN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TX_CONTEXT_DESC3_CTXT_LEN@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
Lloh35:
	adrp	x8, _TX_CONTEXT_DESC3_TCMSSV_POS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TX_CONTEXT_DESC3_TCMSSV_POS@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _TX_CONTEXT_DESC3_TCMSSV_LEN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TX_CONTEXT_DESC3_TCMSSV_LEN@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
	ldr	x8, [x19, #40]
	str	x8, [x19, #16]
LBB0_16:
	cbz	w20, LBB0_18
; %bb.17:
Lloh41:
	adrp	x8, _tx_queued@GOTPAGE
Lloh42:
	ldr	x8, [x8, _tx_queued@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldr	w2, [x25, #4]
	ldr	x4, [x19, #48]
Lloh44:
	adrp	x3, l_.str.1@PAGE
Lloh45:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x25
	bl	_netif_dbg
	ldr	x0, [x28]
Lloh46:
	adrp	x8, _TX_CONTEXT_DESC3_CTXT_POS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TX_CONTEXT_DESC3_CTXT_POS@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x8, _TX_CONTEXT_DESC3_CTXT_LEN@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TX_CONTEXT_DESC3_CTXT_LEN@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
Lloh52:
	adrp	x8, _TX_CONTEXT_DESC3_VT_POS@GOTPAGE
Lloh53:
	ldr	x8, [x8, _TX_CONTEXT_DESC3_VT_POS@GOTPAGEOFF]
	str	x0, [x28]
Lloh54:
	ldr	w1, [x8]
Lloh55:
	adrp	x8, _TX_CONTEXT_DESC3_VT_LEN@GOTPAGE
Lloh56:
	ldr	x8, [x8, _TX_CONTEXT_DESC3_VT_LEN@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	ldr	w3, [x19, #48]
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
Lloh58:
	adrp	x8, _TX_CONTEXT_DESC3_VLTV_POS@GOTPAGE
Lloh59:
	ldr	x8, [x8, _TX_CONTEXT_DESC3_VLTV_POS@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
Lloh61:
	adrp	x8, _TX_CONTEXT_DESC3_VLTV_LEN@GOTPAGE
Lloh62:
	ldr	x8, [x8, _TX_CONTEXT_DESC3_VLTV_LEN@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
	ldr	x8, [x19, #48]
	str	x8, [x19, #24]
LBB0_18:
	add	w22, w23, #1
	mov	x0, x19
	mov	x1, x22
	bl	_XLGMAC_GET_DESC_DATA
	mov	x24, x0
	ldr	x28, [x0, #8]
	b	LBB0_20
LBB0_19:
	mov	x24, x0
	mov	x22, x23
LBB0_20:
	ldr	w0, [x24, #24]
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x28, #24]
	ldr	w0, [x24, #24]
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x28, #16]
Lloh64:
	adrp	x8, _TX_NORMAL_DESC2_HL_B1L_POS@GOTPAGE
Lloh65:
	ldr	x8, [x8, _TX_NORMAL_DESC2_HL_B1L_POS@GOTPAGEOFF]
	ldr	x0, [x28, #8]
Lloh66:
	ldr	w1, [x8]
Lloh67:
	adrp	x8, _TX_NORMAL_DESC2_HL_B1L_LEN@GOTPAGE
Lloh68:
	ldr	x8, [x8, _TX_NORMAL_DESC2_HL_B1L_LEN@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
	ldr	w3, [x24]
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28, #8]
	cbz	w27, LBB0_22
; %bb.21:
Lloh70:
	adrp	x8, _TX_NORMAL_DESC2_VTIR_POS@GOTPAGE
Lloh71:
	ldr	x8, [x8, _TX_NORMAL_DESC2_VTIR_POS@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
Lloh73:
	adrp	x8, _TX_NORMAL_DESC2_VTIR_LEN@GOTPAGE
Lloh74:
	ldr	x8, [x8, _TX_NORMAL_DESC2_VTIR_LEN@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
Lloh76:
	adrp	x8, _TX_NORMAL_DESC2_VLAN_INSERT@GOTPAGE
Lloh77:
	ldr	x8, [x8, _TX_NORMAL_DESC2_VLAN_INSERT@GOTPAGEOFF]
Lloh78:
	ldr	w3, [x8]
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28, #8]
	ldr	w8, [x25, #12]
	add	w8, w8, #1
	str	w8, [x25, #12]
LBB0_22:
	str	x25, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w0, [x19, #80]
Lloh79:
	adrp	x8, _TX_PACKET_ATTRIBUTES_PTP_POS@GOTPAGE
Lloh80:
	ldr	x8, [x8, _TX_PACKET_ATTRIBUTES_PTP_POS@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
Lloh82:
	adrp	x8, _TX_PACKET_ATTRIBUTES_PTP_LEN@GOTPAGE
Lloh83:
	ldr	x8, [x8, _TX_PACKET_ATTRIBUTES_PTP_LEN@GOTPAGEOFF]
Lloh84:
	ldr	w2, [x8]
	bl	_XLGMAC_GET_REG_BITS
	cbz	w0, LBB0_24
; %bb.23:
	ldr	x0, [x28, #8]
Lloh85:
	adrp	x8, _TX_NORMAL_DESC2_TTSE_POS@GOTPAGE
Lloh86:
	ldr	x8, [x8, _TX_NORMAL_DESC2_TTSE_POS@GOTPAGEOFF]
Lloh87:
	ldr	w1, [x8]
Lloh88:
	adrp	x8, _TX_NORMAL_DESC2_TTSE_LEN@GOTPAGE
Lloh89:
	ldr	x8, [x8, _TX_NORMAL_DESC2_TTSE_LEN@GOTPAGEOFF]
Lloh90:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28, #8]
LBB0_24:
	ldr	x0, [x28]
Lloh91:
	adrp	x8, _TX_NORMAL_DESC3_FD_POS@GOTPAGE
Lloh92:
	ldr	x8, [x8, _TX_NORMAL_DESC3_FD_POS@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
Lloh94:
	adrp	x8, _TX_NORMAL_DESC3_FD_LEN@GOTPAGE
Lloh95:
	ldr	x8, [x8, _TX_NORMAL_DESC3_FD_LEN@GOTPAGEOFF]
Lloh96:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
Lloh97:
	adrp	x8, _TX_NORMAL_DESC3_CTXT_POS@GOTPAGE
Lloh98:
	ldr	x8, [x8, _TX_NORMAL_DESC3_CTXT_POS@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
Lloh100:
	adrp	x20, _TX_NORMAL_DESC3_CTXT_LEN@GOTPAGE
Lloh101:
	ldr	x20, [x20, _TX_NORMAL_DESC3_CTXT_LEN@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w3, #0
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
Lloh102:
	adrp	x9, _TX_NORMAL_DESC3_OWN_POS@GOTPAGE
Lloh103:
	ldr	x9, [x9, _TX_NORMAL_DESC3_OWN_POS@GOTPAGEOFF]
Lloh104:
	adrp	x8, _TX_NORMAL_DESC3_OWN_LEN@GOTPAGE
Lloh105:
	ldr	x8, [x8, _TX_NORMAL_DESC3_OWN_LEN@GOTPAGEOFF]
	subs	w25, w22, w23
	b.ne	LBB0_27
; %bb.25:
	mov	x26, x9
	mov	x27, x8
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbz	w8, LBB0_28
LBB0_26:
Lloh106:
	adrp	x8, _TX_NORMAL_DESC3_TSE_POS@GOTPAGE
Lloh107:
	ldr	x8, [x8, _TX_NORMAL_DESC3_TSE_POS@GOTPAGEOFF]
Lloh108:
	ldr	w1, [x8]
Lloh109:
	adrp	x8, _TX_NORMAL_DESC3_TSE_LEN@GOTPAGE
Lloh110:
	ldr	x8, [x8, _TX_NORMAL_DESC3_TSE_LEN@GOTPAGEOFF]
Lloh111:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
Lloh112:
	adrp	x8, _TX_NORMAL_DESC3_TCPPL_POS@GOTPAGE
Lloh113:
	ldr	x8, [x8, _TX_NORMAL_DESC3_TCPPL_POS@GOTPAGEOFF]
	str	x0, [x28]
Lloh114:
	ldr	w1, [x8]
Lloh115:
	adrp	x8, _TX_NORMAL_DESC3_TCPPL_LEN@GOTPAGE
Lloh116:
	ldr	x8, [x8, _TX_NORMAL_DESC3_TCPPL_LEN@GOTPAGEOFF]
Lloh117:
	ldr	w2, [x8]
	ldr	w3, [x19, #60]
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
Lloh118:
	adrp	x8, _TX_NORMAL_DESC3_TCPHDRLEN_POS@GOTPAGE
Lloh119:
	ldr	x8, [x8, _TX_NORMAL_DESC3_TCPHDRLEN_POS@GOTPAGEOFF]
Lloh120:
	ldr	w1, [x8]
Lloh121:
	adrp	x8, _TX_NORMAL_DESC3_TCPHDRLEN_LEN@GOTPAGE
Lloh122:
	ldr	x8, [x8, _TX_NORMAL_DESC3_TCPHDRLEN_LEN@GOTPAGEOFF]
Lloh123:
	ldr	w2, [x8]
	ldr	w8, [x19, #64]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w3, w8, #2
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x9, #8]
	add	w8, w8, #1
	str	w8, [x9, #8]
	b	LBB0_31
LBB0_27:
	mov	x26, x9
	ldr	w1, [x9]
	mov	x27, x8
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbnz	w8, LBB0_26
LBB0_28:
Lloh124:
	adrp	x8, _TX_NORMAL_DESC3_CPC_POS@GOTPAGE
Lloh125:
	ldr	x8, [x8, _TX_NORMAL_DESC3_CPC_POS@GOTPAGEOFF]
Lloh126:
	ldr	w1, [x8]
Lloh127:
	adrp	x8, _TX_NORMAL_DESC3_CPC_LEN@GOTPAGE
Lloh128:
	ldr	x8, [x8, _TX_NORMAL_DESC3_CPC_LEN@GOTPAGEOFF]
Lloh129:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_30
; %bb.29:
Lloh130:
	adrp	x8, _TX_NORMAL_DESC3_CIC_POS@GOTPAGE
Lloh131:
	ldr	x8, [x8, _TX_NORMAL_DESC3_CIC_POS@GOTPAGEOFF]
Lloh132:
	ldr	w1, [x8]
Lloh133:
	adrp	x8, _TX_NORMAL_DESC3_CIC_LEN@GOTPAGE
Lloh134:
	ldr	x8, [x8, _TX_NORMAL_DESC3_CIC_LEN@GOTPAGEOFF]
Lloh135:
	ldr	w2, [x8]
	mov	w3, #3
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
LBB0_30:
Lloh136:
	adrp	x8, _TX_NORMAL_DESC3_FL_POS@GOTPAGE
Lloh137:
	ldr	x8, [x8, _TX_NORMAL_DESC3_FL_POS@GOTPAGEOFF]
Lloh138:
	ldr	w1, [x8]
Lloh139:
	adrp	x8, _TX_NORMAL_DESC3_FL_LEN@GOTPAGE
Lloh140:
	ldr	x8, [x8, _TX_NORMAL_DESC3_FL_LEN@GOTPAGEOFF]
Lloh141:
	ldr	w2, [x8]
	ldr	w3, [x19, #68]
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
LBB0_31:
	add	w8, w25, #1
	ldr	w9, [x19, #72]
	cmp	w8, w9
	b.ge	LBB0_36
; %bb.32:
	str	w23, [sp, #4]                   ; 4-byte Folded Spill
	neg	w21, w23
	add	w25, w22, #1
Lloh142:
	adrp	x23, _TX_NORMAL_DESC3_CIC_POS@GOTPAGE
Lloh143:
	ldr	x23, [x23, _TX_NORMAL_DESC3_CIC_POS@GOTPAGEOFF]
Lloh144:
	adrp	x22, _TX_NORMAL_DESC3_CIC_LEN@GOTPAGE
Lloh145:
	ldr	x22, [x22, _TX_NORMAL_DESC3_CIC_LEN@GOTPAGEOFF]
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=1
	ldr	w8, [x19, #72]
	add	w25, w25, #1
	add	w9, w21, w25
	cmp	w9, w8
	b.ge	LBB0_37
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_XLGMAC_GET_DESC_DATA
	mov	x24, x0
	ldr	x28, [x0, #8]
	ldr	w0, [x0, #24]
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x28, #24]
	ldr	w0, [x24, #24]
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x28, #16]
	ldr	x0, [x28, #8]
Lloh146:
	adrp	x8, _TX_NORMAL_DESC2_HL_B1L_POS@GOTPAGE
Lloh147:
	ldr	x8, [x8, _TX_NORMAL_DESC2_HL_B1L_POS@GOTPAGEOFF]
Lloh148:
	ldr	w1, [x8]
Lloh149:
	adrp	x8, _TX_NORMAL_DESC2_HL_B1L_LEN@GOTPAGE
Lloh150:
	ldr	x8, [x8, _TX_NORMAL_DESC2_HL_B1L_LEN@GOTPAGEOFF]
Lloh151:
	ldr	w2, [x8]
	ldr	w3, [x24]
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28, #8]
	ldr	x0, [x28]
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
Lloh152:
	adrp	x8, _TX_NORMAL_DESC3_CTXT_POS@GOTPAGE
Lloh153:
	ldr	x8, [x8, _TX_NORMAL_DESC3_CTXT_POS@GOTPAGEOFF]
Lloh154:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	w3, #0
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	w1, [x23]
	ldr	w2, [x22]
	mov	w3, #3
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
	b	LBB0_33
LBB0_36:
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_38
LBB0_37:
	sub	w22, w25, #1
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w23, [sp, #4]                   ; 4-byte Folded Reload
LBB0_38:
Lloh155:
	adrp	x8, _TX_NORMAL_DESC3_LD_POS@GOTPAGE
Lloh156:
	ldr	x8, [x8, _TX_NORMAL_DESC3_LD_POS@GOTPAGEOFF]
Lloh157:
	ldr	w1, [x8]
Lloh158:
	adrp	x8, _TX_NORMAL_DESC3_LD_LEN@GOTPAGE
Lloh159:
	ldr	x8, [x8, _TX_NORMAL_DESC3_LD_LEN@GOTPAGEOFF]
Lloh160:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28]
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_40
; %bb.39:
	ldr	x0, [x28, #8]
Lloh161:
	adrp	x8, _TX_NORMAL_DESC2_IC_POS@GOTPAGE
Lloh162:
	ldr	x8, [x8, _TX_NORMAL_DESC2_IC_POS@GOTPAGEOFF]
Lloh163:
	ldr	w1, [x8]
Lloh164:
	adrp	x8, _TX_NORMAL_DESC2_IC_LEN@GOTPAGE
Lloh165:
	ldr	x8, [x8, _TX_NORMAL_DESC2_IC_LEN@GOTPAGEOFF]
Lloh166:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x28, #8]
LBB0_40:
	ldr	w8, [x19, #56]
	ldr	w9, [x19, #76]
	stp	w8, w9, [x24, #16]
	bl	_dma_wmb
	mov	x0, x19
	mov	x1, x23
	bl	_XLGMAC_GET_DESC_DATA
	ldr	x20, [x0, #8]
	ldr	x0, [x20]
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS_LE
	str	x0, [x20]
	mov	x0, x21
	bl	_netif_msg_tx_queued
	cbz	x0, LBB0_42
; %bb.41:
	ldr	w3, [x19, #72]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	w4, #1
	bl	_xlgmac_dump_tx_desc
LBB0_42:
	bl	_smp_wmb
	add	w8, w22, #1
	str	w8, [x19]
	bl	_netdev_xmit_more
	cbz	w0, LBB0_44
; %bb.43:
	ldr	w0, [x21, #4]
	ldr	w1, [x25, #4]
	bl	_netdev_get_tx_queue
	bl	_netif_xmit_stopped
	cbz	x0, LBB0_45
LBB0_44:
	mov	x0, x25
	mov	x1, x19
	bl	_xlgmac_tx_start_xmit
	b	LBB0_46
LBB0_45:
	mov	w8, #1
	str	w8, [x19, #32]
LBB0_46:
	ldr	w1, [x25]
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	and	w2, w8, w23
	ldr	w9, [x19]
	sub	w9, w9, #1
	and	w3, w9, w8
Lloh167:
	adrp	x0, l_.str.2@PAGE
Lloh168:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_XLGMAC_PR
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGot	Lloh144, Lloh145
	.loh AdrpLdrGot	Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh158, Lloh159, Lloh160
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh164, Lloh165, Lloh166
	.loh AdrpLdrGotLdr	Lloh161, Lloh162, Lloh163
	.loh AdrpAdd	Lloh167, Lloh168
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_PACKET_ATTRIBUTES_CSUM_ENABLE_POS,4,2 ; @TX_PACKET_ATTRIBUTES_CSUM_ENABLE_POS
	.comm	_TX_PACKET_ATTRIBUTES_CSUM_ENABLE_LEN,4,2 ; @TX_PACKET_ATTRIBUTES_CSUM_ENABLE_LEN
	.comm	_TX_PACKET_ATTRIBUTES_TSO_ENABLE_POS,4,2 ; @TX_PACKET_ATTRIBUTES_TSO_ENABLE_POS
	.comm	_TX_PACKET_ATTRIBUTES_TSO_ENABLE_LEN,4,2 ; @TX_PACKET_ATTRIBUTES_TSO_ENABLE_LEN
	.comm	_TX_PACKET_ATTRIBUTES_VLAN_CTAG_POS,4,2 ; @TX_PACKET_ATTRIBUTES_VLAN_CTAG_POS
	.comm	_TX_PACKET_ATTRIBUTES_VLAN_CTAG_LEN,4,2 ; @TX_PACKET_ATTRIBUTES_VLAN_CTAG_LEN
	.comm	_tx_queued,4,2                  ; @tx_queued
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TSO context descriptor, mss=%u\n"

	.comm	_TX_CONTEXT_DESC2_MSS_POS,4,2   ; @TX_CONTEXT_DESC2_MSS_POS
	.comm	_TX_CONTEXT_DESC2_MSS_LEN,4,2   ; @TX_CONTEXT_DESC2_MSS_LEN
	.comm	_TX_CONTEXT_DESC3_CTXT_POS,4,2  ; @TX_CONTEXT_DESC3_CTXT_POS
	.comm	_TX_CONTEXT_DESC3_CTXT_LEN,4,2  ; @TX_CONTEXT_DESC3_CTXT_LEN
	.comm	_TX_CONTEXT_DESC3_TCMSSV_POS,4,2 ; @TX_CONTEXT_DESC3_TCMSSV_POS
	.comm	_TX_CONTEXT_DESC3_TCMSSV_LEN,4,2 ; @TX_CONTEXT_DESC3_TCMSSV_LEN
l_.str.1:                               ; @.str.1
	.asciz	"VLAN context descriptor, ctag=%u\n"

	.comm	_TX_CONTEXT_DESC3_VT_POS,4,2    ; @TX_CONTEXT_DESC3_VT_POS
	.comm	_TX_CONTEXT_DESC3_VT_LEN,4,2    ; @TX_CONTEXT_DESC3_VT_LEN
	.comm	_TX_CONTEXT_DESC3_VLTV_POS,4,2  ; @TX_CONTEXT_DESC3_VLTV_POS
	.comm	_TX_CONTEXT_DESC3_VLTV_LEN,4,2  ; @TX_CONTEXT_DESC3_VLTV_LEN
	.comm	_TX_NORMAL_DESC2_HL_B1L_POS,4,2 ; @TX_NORMAL_DESC2_HL_B1L_POS
	.comm	_TX_NORMAL_DESC2_HL_B1L_LEN,4,2 ; @TX_NORMAL_DESC2_HL_B1L_LEN
	.comm	_TX_NORMAL_DESC2_VTIR_POS,4,2   ; @TX_NORMAL_DESC2_VTIR_POS
	.comm	_TX_NORMAL_DESC2_VTIR_LEN,4,2   ; @TX_NORMAL_DESC2_VTIR_LEN
	.comm	_TX_NORMAL_DESC2_VLAN_INSERT,4,2 ; @TX_NORMAL_DESC2_VLAN_INSERT
	.comm	_TX_PACKET_ATTRIBUTES_PTP_POS,4,2 ; @TX_PACKET_ATTRIBUTES_PTP_POS
	.comm	_TX_PACKET_ATTRIBUTES_PTP_LEN,4,2 ; @TX_PACKET_ATTRIBUTES_PTP_LEN
	.comm	_TX_NORMAL_DESC2_TTSE_POS,4,2   ; @TX_NORMAL_DESC2_TTSE_POS
	.comm	_TX_NORMAL_DESC2_TTSE_LEN,4,2   ; @TX_NORMAL_DESC2_TTSE_LEN
	.comm	_TX_NORMAL_DESC3_FD_POS,4,2     ; @TX_NORMAL_DESC3_FD_POS
	.comm	_TX_NORMAL_DESC3_FD_LEN,4,2     ; @TX_NORMAL_DESC3_FD_LEN
	.comm	_TX_NORMAL_DESC3_CTXT_POS,4,2   ; @TX_NORMAL_DESC3_CTXT_POS
	.comm	_TX_NORMAL_DESC3_CTXT_LEN,4,2   ; @TX_NORMAL_DESC3_CTXT_LEN
	.comm	_TX_NORMAL_DESC3_OWN_POS,4,2    ; @TX_NORMAL_DESC3_OWN_POS
	.comm	_TX_NORMAL_DESC3_OWN_LEN,4,2    ; @TX_NORMAL_DESC3_OWN_LEN
	.comm	_TX_NORMAL_DESC3_TSE_POS,4,2    ; @TX_NORMAL_DESC3_TSE_POS
	.comm	_TX_NORMAL_DESC3_TSE_LEN,4,2    ; @TX_NORMAL_DESC3_TSE_LEN
	.comm	_TX_NORMAL_DESC3_TCPPL_POS,4,2  ; @TX_NORMAL_DESC3_TCPPL_POS
	.comm	_TX_NORMAL_DESC3_TCPPL_LEN,4,2  ; @TX_NORMAL_DESC3_TCPPL_LEN
	.comm	_TX_NORMAL_DESC3_TCPHDRLEN_POS,4,2 ; @TX_NORMAL_DESC3_TCPHDRLEN_POS
	.comm	_TX_NORMAL_DESC3_TCPHDRLEN_LEN,4,2 ; @TX_NORMAL_DESC3_TCPHDRLEN_LEN
	.comm	_TX_NORMAL_DESC3_CPC_POS,4,2    ; @TX_NORMAL_DESC3_CPC_POS
	.comm	_TX_NORMAL_DESC3_CPC_LEN,4,2    ; @TX_NORMAL_DESC3_CPC_LEN
	.comm	_TX_NORMAL_DESC3_CIC_POS,4,2    ; @TX_NORMAL_DESC3_CIC_POS
	.comm	_TX_NORMAL_DESC3_CIC_LEN,4,2    ; @TX_NORMAL_DESC3_CIC_LEN
	.comm	_TX_NORMAL_DESC3_FL_POS,4,2     ; @TX_NORMAL_DESC3_FL_POS
	.comm	_TX_NORMAL_DESC3_FL_LEN,4,2     ; @TX_NORMAL_DESC3_FL_LEN
	.comm	_TX_NORMAL_DESC3_LD_POS,4,2     ; @TX_NORMAL_DESC3_LD_POS
	.comm	_TX_NORMAL_DESC3_LD_LEN,4,2     ; @TX_NORMAL_DESC3_LD_LEN
	.comm	_TX_NORMAL_DESC2_IC_POS,4,2     ; @TX_NORMAL_DESC2_IC_POS
	.comm	_TX_NORMAL_DESC2_IC_LEN,4,2     ; @TX_NORMAL_DESC2_IC_LEN
l_.str.2:                               ; @.str.2
	.asciz	"%s: descriptors %u to %u written\n"

	.no_dead_strip	_xlgmac_dev_xmit
.subsections_via_symbols
