	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_tx_map
_atl1c_tx_map:                          ## @atl1c_tx_map
	.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
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_skb_headlen
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movl	(%r13), %edx
	movq	_TPD_LSO_EN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	(%rax), %r14
	movq	_TPD_LSO_EN_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_transport_offset
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_tcp_hdrlen
	movq	%r13, %rsi
	movq	%rax, %r13
	addq	%r12, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_atl1c_get_tx_buffer
	movq	%rax, %r12
	movq	%r13, (%rax)
	movq	(%r15), %rdi
	movq	(%rbx), %rsi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdx
	callq	_pci_map_single
	movq	%rax, 8(%r12)
	movq	(%r15), %rdi
	movq	%rax, %rsi
	callq	_pci_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_16
## %bb.2:
	movq	_ATL1C_BUFFER_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ATL1C_SET_BUFFER_STATE
	movq	_ATL1C_PCIMAP_SINGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATL1C_PCIMAP_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ATL1C_SET_PCIMAP_TYPE
	movq	8(%r12), %rdi
	callq	_cpu_to_le64
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movq	(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	jle	LBB0_11
## %bb.3:
	testq	%r13, %r13
	je	LBB0_4
## %bb.7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_atl1c_get_tpd
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$24, %edx
	callq	_memcpy
	movq	%r15, %rax
	jmp	LBB0_8
LBB0_5:
	movq	%r13, %rax
	xorl	%r15d, %r15d
	movl	$0, %r13d
	testq	%r12, %r12
	jg	LBB0_9
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_4:
	xorl	%r13d, %r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
LBB0_8:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_9:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_atl1c_get_tx_buffer
	movq	%r12, %rdx
	movq	%rax, %r12
	subq	%r13, %rdx
	movq	%rdx, (%rax)
	movq	(%r15), %rdi
	addq	(%rbx), %r13
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	callq	_pci_map_single
	movq	%rax, 8(%r12)
	movq	(%r15), %rdi
	movq	%rax, %rsi
	callq	_pci_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
LBB0_16:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movl	$-1, %eax
	jmp	LBB0_17
LBB0_10:
	movq	_ATL1C_BUFFER_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ATL1C_SET_BUFFER_STATE
	movq	_ATL1C_PCIMAP_SINGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATL1C_PCIMAP_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ATL1C_SET_PCIMAP_TYPE
	movq	8(%r12), %rdi
	callq	_cpu_to_le64
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movq	(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
LBB0_11:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	jle	LBB0_15
## %bb.12:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	%r13, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_atl1c_get_tpd
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$24, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_atl1c_get_tx_buffer
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	%rax, (%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	_skb_frag_dma_map
	movq	%rax, 8(%r12)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_ATL1C_BUFFER_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ATL1C_SET_BUFFER_STATE
	movq	_ATL1C_PCIMAP_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATL1C_PCIMAP_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_ATL1C_SET_PCIMAP_TYPE
	movq	8(%r12), %rdi
	callq	_cpu_to_le64
	movq	%rax, 16(%r15)
	movq	(%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	addq	$4, %r13
	decq	%r14
	jne	LBB0_13
LBB0_15:
	movq	_TPD_EOP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	xorl	%eax, %eax
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TPD_LSO_EN_SHIFT,4,2           ## @TPD_LSO_EN_SHIFT
	.comm	_TPD_LSO_EN_MASK,4,2            ## @TPD_LSO_EN_MASK
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_ATL1C_BUFFER_BUSY,4,2          ## @ATL1C_BUFFER_BUSY
	.comm	_ATL1C_PCIMAP_SINGLE,4,2        ## @ATL1C_PCIMAP_SINGLE
	.comm	_ATL1C_PCIMAP_TODEVICE,4,2      ## @ATL1C_PCIMAP_TODEVICE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ATL1C_PCIMAP_PAGE,4,2          ## @ATL1C_PCIMAP_PAGE
	.comm	_TPD_EOP_SHIFT,4,2              ## @TPD_EOP_SHIFT
	.no_dead_strip	_atl1c_tx_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1c_tx_map
_atl1c_tx_map:                          ; @atl1c_tx_map
	.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
	str	w3, [sp, #12]                   ; 4-byte Folded Spill
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	bl	_skb_headlen
	mov	x25, x0
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x27, [x0]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _TPD_LSO_EN_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TPD_LSO_EN_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh3:
	adrp	x9, _TPD_LSO_EN_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TPD_LSO_EN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_skb_transport_offset
	mov	x23, x0
	mov	x0, x19
	bl	_tcp_hdrlen
	add	x26, x0, x23
	mov	x0, x22
	mov	x1, x21
	bl	_atl1c_get_tx_buffer
	mov	x23, x0
	str	x26, [x0]
	ldr	x0, [x22]
	ldr	x1, [x19]
Lloh6:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x2, x26
	bl	_pci_map_single
	mov	x1, x0
	str	x0, [x23, #8]
	ldr	x0, [x22]
	bl	_pci_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.2:
Lloh9:
	adrp	x8, _ATL1C_BUFFER_BUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATL1C_BUFFER_BUSY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_ATL1C_SET_BUFFER_STATE
Lloh12:
	adrp	x8, _ATL1C_PCIMAP_SINGLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATL1C_PCIMAP_SINGLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _ATL1C_PCIMAP_TODEVICE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATL1C_PCIMAP_TODEVICE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_ATL1C_SET_PCIMAP_TYPE
	ldr	x0, [x23, #8]
	bl	_cpu_to_le64
	str	x0, [x21, #16]
	ldr	x0, [x23]
	bl	_cpu_to_le16
	str	x0, [x21, #8]
	mov	x24, x21
	cmp	x25, x26
	b.le	LBB0_9
; %bb.3:
	cbz	x26, LBB0_16
; %bb.4:
	mov	x0, x22
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_atl1c_get_tpd
	mov	x24, x0
	mov	x1, x21
	mov	w2, #24
	bl	_memcpy
	b	LBB0_6
LBB0_5:
	mov	x26, #0
	mov	x24, x21
	cmp	x25, #0
	b.le	LBB0_8
LBB0_6:
	mov	x0, x22
	mov	x1, x24
	bl	_atl1c_get_tx_buffer
	mov	x23, x0
	sub	x2, x25, x26
	str	x2, [x0]
	ldr	x0, [x22]
	ldr	x8, [x19]
	add	x1, x8, x26
Lloh18:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	bl	_pci_map_single
	mov	x1, x0
	str	x0, [x23, #8]
	ldr	x0, [x22]
	bl	_pci_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_10
LBB0_7:
	stp	xzr, xzr, [x23]
	mov	w0, #-1
	b	LBB0_15
LBB0_8:
	mov	x23, #0
	mov	x24, #0
LBB0_9:
	cmp	x27, #1
	b.ge	LBB0_11
	b	LBB0_14
LBB0_10:
Lloh21:
	adrp	x8, _ATL1C_BUFFER_BUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ATL1C_BUFFER_BUSY@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_ATL1C_SET_BUFFER_STATE
Lloh24:
	adrp	x8, _ATL1C_PCIMAP_SINGLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ATL1C_PCIMAP_SINGLE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _ATL1C_PCIMAP_TODEVICE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ATL1C_PCIMAP_TODEVICE@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_ATL1C_SET_PCIMAP_TYPE
	ldr	x0, [x23, #8]
	bl	_cpu_to_le64
	str	x0, [x24, #16]
	ldr	x0, [x23]
	bl	_cpu_to_le16
	str	x0, [x24, #8]
	cmp	x27, #1
	b.lt	LBB0_14
LBB0_11:
	mov	x26, #0
Lloh30:
	adrp	x28, _DMA_TO_DEVICE@GOTPAGE
Lloh31:
	ldr	x28, [x28, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh32:
	adrp	x20, _ATL1C_PCIMAP_TODEVICE@GOTPAGE
Lloh33:
	ldr	x20, [x20, _ATL1C_PCIMAP_TODEVICE@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x25, x8, x26
	mov	x0, x22
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_atl1c_get_tpd
	mov	x24, x0
	mov	x1, x21
	mov	w2, #24
	bl	_memcpy
	mov	x0, x22
	mov	x1, x24
	bl	_atl1c_get_tx_buffer
	mov	x23, x0
	mov	x0, x25
	bl	_skb_frag_size
	mov	x3, x0
	str	x0, [x23]
	ldr	x0, [x22]
	ldr	w4, [x28]
	mov	x1, x25
	mov	w2, #0
	bl	_skb_frag_dma_map
	mov	x1, x0
	str	x0, [x23, #8]
	ldr	x0, [x22]
	bl	_dma_mapping_error
	cbnz	x0, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh34:
	adrp	x8, _ATL1C_BUFFER_BUSY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ATL1C_BUFFER_BUSY@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_ATL1C_SET_BUFFER_STATE
Lloh37:
	adrp	x8, _ATL1C_PCIMAP_PAGE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ATL1C_PCIMAP_PAGE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x23
	bl	_ATL1C_SET_PCIMAP_TYPE
	ldr	x0, [x23, #8]
	bl	_cpu_to_le64
	str	x0, [x24, #16]
	ldr	x0, [x23]
	bl	_cpu_to_le16
	str	x0, [x24, #8]
	add	x26, x26, #4
	subs	x27, x27, #1
	b.ne	LBB0_12
LBB0_14:
	mov	w0, #0
Lloh40:
	adrp	x8, _TPD_EOP_SHIFT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TPD_EOP_SHIFT@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
	str	x19, [x23, #16]
LBB0_15:
	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
LBB0_16:
	mov	x24, x21
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_TPD_LSO_EN_SHIFT,4,2           ; @TPD_LSO_EN_SHIFT
	.comm	_TPD_LSO_EN_MASK,4,2            ; @TPD_LSO_EN_MASK
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_ATL1C_BUFFER_BUSY,4,2          ; @ATL1C_BUFFER_BUSY
	.comm	_ATL1C_PCIMAP_SINGLE,4,2        ; @ATL1C_PCIMAP_SINGLE
	.comm	_ATL1C_PCIMAP_TODEVICE,4,2      ; @ATL1C_PCIMAP_TODEVICE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ATL1C_PCIMAP_PAGE,4,2          ; @ATL1C_PCIMAP_PAGE
	.comm	_TPD_EOP_SHIFT,4,2              ; @TPD_EOP_SHIFT
	.no_dead_strip	_atl1c_tx_map
.subsections_via_symbols
