	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_tx_map
_e1000_tx_map:                          ## @e1000_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_skb_headlen
	movl	(%r15), %r12d
	testl	%eax, %eax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	je	LBB0_1
## %bb.9:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	movl	%r12d, %ecx
	leaq	(%rcx,%rcx,2), %r13
	shlq	$4, %r13
	movl	%eax, %r15d
	movl	%eax, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%eax, %ebx
	movl	%eax, (%r14,%r13)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14,%r13)
	movl	%r12d, 4(%r14,%r13)
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rsi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_dma_map_single
	movq	%rax, 24(%r14,%r13)
	movl	$0, 8(%r14,%r13)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	subl	%ebx, %r15d
	je	LBB0_2
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %eax
	addl	%ebx, -56(%rbp)                 ## 4-byte Folded Spill
	incl	%r12d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	cmpl	4(%r15), %r12d
	movl	$0, %ecx
	cmovel	%ecx, %r12d
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_11:
	addq	%r13, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_2:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
LBB0_3:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_21
## %bb.4:
	movl	%ebx, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	incq	%rbx
	cmpq	-104(%rbp), %rbx                ## 8-byte Folded Reload
	je	LBB0_21
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	leaq	(,%rbx,4), %rdi
	addq	8(%rax), %rdi
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	callq	_skb_frag_size
	testl	%eax, %eax
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	je	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r12d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incl	%ebx
	cmpl	4(%r15), %ebx
	movl	$0, %eax
	cmovel	%eax, %ebx
	movq	8(%r15), %r14
	leaq	(%rbx,%rbx,2), %r15
	shlq	$4, %r15
	movl	%r12d, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%eax, %r13d
	movl	%eax, (%r14,%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14,%r15)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, 4(%r14,%r15)
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_skb_frag_dma_map
	movq	%rax, 24(%r14,%r15)
	movl	$1, 8(%r14,%r15)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_8
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=2
	addl	%r13d, -48(%rbp)                ## 4-byte Folded Spill
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	subl	%r13d, %r12d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_7
	jmp	LBB0_20
LBB0_8:
	addq	%r15, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	$0, 24(%r14)
	xorl	%r14d, %r14d
	cmpl	$2, %ebx
	jb	LBB0_22
## %bb.13:
	decl	%ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	decl	%r12d
	leaq	(%r12,%r12,2), %rsi
	shlq	$4, %rsi
	addq	8(%r15), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_e1000_put_txbuf
	testl	%ebx, %ebx
	je	LBB0_22
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	testl	%r12d, %r12d
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	4(%r15), %r12d
	jmp	LBB0_16
LBB0_21:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rax
	testq	%rax, %rax
	movl	%r14d, %r12d
	movl	$1, %ebx
	cmovnel	%eax, %ebx
	leal	-1(%rbx), %r14d
	movq	%r13, %rdi
	callq	_skb_headlen
	imull	%r14d, %eax
	addl	(%r13), %eax
	movq	8(%r15), %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%esi, %edx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movq	%r13, 32(%rcx,%rdx)
	movl	%ebx, 12(%rcx,%rdx)
	movl	%eax, 16(%rcx,%rdx)
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	leaq	(%rax,%rax,2), %rax
	shlq	$4, %rax
	movl	%esi, 4(%rcx,%rax)
	movl	%r12d, %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tx DMA map failed\n"

	.no_dead_strip	_e1000_tx_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_tx_map
_e1000_tx_map:                          ; @e1000_tx_map
	.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
	mov	x25, x4
	mov	x24, x3
	mov	x20, x2
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x23, [x8]
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x1
	bl	_skb_headlen
	ldr	w21, [x19]
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	cbz	w0, LBB0_5
; %bb.1:
	mov	x26, x0
	str	w25, [sp, #16]                  ; 4-byte Folded Spill
	mov	w20, #0
	mov	w28, #0
	mov	w25, #48
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	umaddl	x22, w21, w25, x8
	mov	x0, x26
	mov	x1, x24
	bl	_min
	mov	x27, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x22, #40]
	stp	w0, w21, [x22]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x1, x8, w28, uxtw
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x2, x27
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x22, #24]
	str	wzr, [x22, #8]
	mov	x0, x23
	bl	_dma_mapping_error
	cbnz	x0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w26, w26, w27
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w28, w27, w28
	add	w8, w21, #1
	ldr	w9, [x19, #4]
	cmp	w8, w9
	csinc	w21, wzr, w21, eq
	add	w20, w20, #1
	b	LBB0_2
LBB0_5:
	mov	w20, #0
	cbnz	w25, LBB0_7
	b	LBB0_19
LBB0_6:
	add	w20, w20, #1
	ldr	w25, [sp, #16]                  ; 4-byte Folded Reload
	cbz	w25, LBB0_19
LBB0_7:
	mov	x22, #0
	mov	w8, w25
	str	x8, [sp]                        ; 8-byte Folded Spill
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	add	x22, x22, #1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x22, x8
	b.eq	LBB0_19
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x25, x8, x22, lsl #2
	mov	x0, x25
	bl	_skb_frag_size
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	cbz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x26, x0
	mov	w27, #0
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w21, #1
	ldr	w9, [x19, #4]
	cmp	w8, w9
	csinc	w21, wzr, w21, eq
	ldr	x8, [x19, #8]
	mov	w9, #48
	umaddl	x22, w21, w9, x8
	mov	x0, x26
	mov	x1, x24
	bl	_min
	mov	x28, x0
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x22, #40]
	stp	w0, w21, [x22]
Lloh9:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x27
	mov	x3, x28
	bl	_skb_frag_dma_map
	mov	x1, x0
	str	x0, [x22, #24]
	mov	w8, #1
	str	w8, [x22, #8]
	mov	x0, x23
	bl	_dma_mapping_error
	cbnz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	w27, w28, w27
	add	w20, w20, #1
	subs	w26, w26, w28
	b.ne	LBB0_11
	b	LBB0_8
LBB0_13:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_err
	str	xzr, [x22, #24]
	cmp	w20, #2
	b.hs	LBB0_15
; %bb.14:
	mov	w20, #0
	b	LBB0_20
LBB0_15:
	sub	w20, w20, #1
	mov	w22, #48
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	sub	w21, w21, #1
	ldr	x8, [x19, #8]
	umaddl	x1, w21, w22, x8
	mov	x0, x19
	mov	w2, #1
	bl	_e1000_put_txbuf
	cbz	w20, LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	cbnz	w21, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w21, [x19, #4]
	b	LBB0_16
LBB0_19:
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	mov	x0, x24
	bl	_skb_shinfo
	ldr	x8, [x0]
	cmp	x8, #0
	csinc	w22, w8, wzr, ne
	sub	w23, w22, #1
	mov	x0, x24
	bl	_skb_headlen
	ldr	w8, [x24]
	madd	w8, w23, w0, w8
	ldr	x9, [x19, #8]
	mov	w10, #48
	umaddl	x11, w21, w10, x9
	str	x24, [x11, #32]
	stp	w22, w8, [x11, #12]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	umaddl	x8, w8, w10, x9
	str	w21, [x8, #4]
LBB0_20:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tx DMA map failed\n"

	.no_dead_strip	_e1000_tx_map
.subsections_via_symbols
