	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbevf_tx_map
_ixgbevf_tx_map:                        ## @ixgbevf_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %r15d
	movq	%rsi, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r12d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_skb_headlen
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_min
	testl	%eax, %eax
	je	LBB0_1
## %bb.8:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%rbx, %r14
	movq	8(%rbx), %r13
	movslq	%r12d, %rcx
	leaq	(%rcx,%rcx,2), %r15
	movq	_IXGBE_MAX_DATA_PER_TXD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	callq	_min
	movl	%eax, %ebx
	movl	%eax, (%r13,%r15,8)
	movl	$0, 4(%r13,%r15,8)
	movl	16(%r14), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rsi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	callq	_dma_map_single
	movq	%rax, 8(%r13,%r15,8)
	movl	16(%r14), %edi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	subl	%ebx, %r15d
	addl	%ebx, -48(%rbp)                 ## 4-byte Folded Spill
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	incl	%r12d
	cmpl	4(%r14), %r12d
	movl	$0, %eax
	cmovel	%eax, %r12d
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	subl	%ebx, %eax
	movq	%r14, %rbx
	jne	LBB0_9
## %bb.2:
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_3
	jmp	LBB0_17
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_17
LBB0_3:
	xorl	%r13d, %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	8(%rax), %r14
	movl	(%r14,%r13,8), %edi
	movl	%r15d, %esi
	callq	_min
	testl	%eax, %eax
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ecx
	leaq	(%r14,%r13,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rbx
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %r13
	movq	_IXGBE_MAX_DATA_PER_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %r15d
	movl	%ecx, %edi
	callq	_min
	movl	%eax, %r14d
	movl	%eax, (%rbx,%r13,8)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_skb_frag_dma_map
	movq	%rax, 8(%rbx,%r13,8)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rcx), %edi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	movl	$1, 4(%rbx,%r13,8)
	subl	%r14d, -52(%rbp)                ## 4-byte Folded Spill
	addl	%r14d, -48(%rbp)                ## 4-byte Folded Spill
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	incl	%r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	cmpl	4(%rbx), %r12d
	movl	$0, %eax
	cmovel	%eax, %r12d
	subl	%r14d, %r15d
	movl	%r15d, %ecx
	jne	LBB0_6
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	incq	%r13
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	jne	LBB0_4
LBB0_17:
	testl	%r12d, %r12d
	jne	LBB0_19
## %bb.18:
	movl	4(%rbx), %r12d
LBB0_19:
	decl	%r12d
	movq	8(%rbx), %rax
	movslq	%r12d, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, 16(%rax,%rcx,8)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_24
LBB0_7:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	leaq	(%rbx,%r13,8), %rbx
	jmp	LBB0_11
LBB0_10:
	leaq	(,%r15,8), %rbx
	addq	%r13, %rbx
LBB0_11:
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	$0, 8(%rbx)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	jg	LBB0_20
## %bb.12:
	decl	%ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$3, %rsi
	addq	8(%r14), %rsi
	movq	%r14, %rdi
	callq	_ixgbevf_unmap_and_free_tx_resource
	movl	%r15d, %r12d
	decl	%ebx
	jle	LBB0_23
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %r15d
	testl	%r12d, %r12d
	jg	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	addl	4(%r14), %r15d
	jmp	LBB0_22
LBB0_23:
	movl	$-1, %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_MAX_DATA_PER_TXD,8,3     ## @IXGBE_MAX_DATA_PER_TXD
	.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	_ixgbevf_tx_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbevf_tx_map
_ixgbevf_tx_map:                        ; @ixgbevf_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	x28, x1
	mov	x19, x0
	ldr	w22, [x1]
	mov	x0, x1
	bl	_skb_shinfo
	ldr	w8, [x0]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w27, [x19]
	mov	x0, x28
	bl	_skb_headlen
	mov	x1, x22
	bl	_min
	cbz	w0, LBB0_5
; %bb.1:
	mov	x23, x0
	mov	w20, #0
	mov	w25, #0
	mov	w26, #24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	smaddl	x21, w27, w26, x8
Lloh0:
	adrp	x8, _IXGBE_MAX_DATA_PER_TXD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_MAX_DATA_PER_TXD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_min
	mov	x24, x0
	stp	w0, wzr, [x21]
	ldr	w0, [x19, #16]
	ldr	x8, [x28, #8]
	add	x1, x8, w25, uxtw
Lloh3:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x2, x24
	bl	_dma_map_single
	mov	x1, x0
	str	x0, [x21, #8]
	ldr	w0, [x19, #16]
	bl	_dma_mapping_error
	cbnz	x0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w22, w22, w24
	add	w25, w24, w25
	add	w20, w20, #1
	add	w8, w27, #1
	ldr	w9, [x19, #4]
	cmp	w8, w9
	csinc	w27, wzr, w27, eq
	sub	w23, w23, w24
	cbnz	w23, LBB0_2
; %bb.4:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbnz	w8, LBB0_6
	b	LBB0_21
LBB0_5:
	mov	w20, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbz	w8, LBB0_21
LBB0_6:
	mov	x21, #0
	str	x28, [sp]                       ; 8-byte Folded Spill
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x0, x28
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x8, x8, x21, lsl #3
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x0, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x22
	bl	_min
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	mov	w25, #0
	mov	w8, #24
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x28, [x19, #8]
	smaddl	x21, w27, w8, x28
Lloh6:
	adrp	x8, _IXGBE_MAX_DATA_PER_TXD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXGBE_MAX_DATA_PER_TXD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x24
	mov	w23, #24
	bl	_min
	mov	x26, x0
	str	w0, [x21]
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x25
	mov	x3, x26
	bl	_skb_frag_dma_map
	mov	x1, x0
	str	x0, [x21, #8]
	ldr	w0, [x19, #16]
	bl	_dma_mapping_error
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	sxtw	x8, w27
	madd	x8, x8, x23, x28
	mov	w9, #1
	str	w9, [x8, #4]
	sub	w22, w22, w26
	add	w25, w26, w25
	add	w20, w20, #1
	add	w8, w27, #1
	ldr	w9, [x19, #4]
	cmp	w8, w9
	csinc	w27, wzr, w27, eq
	sub	w24, w24, w26
	mov	w8, #24
	cbnz	w24, LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w22, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldp	x21, x8, [sp, #8]               ; 16-byte Folded Reload
	add	x21, x21, #1
	cmp	x21, x8
	ldr	x28, [sp]                       ; 8-byte Folded Reload
	b.ne	LBB0_7
	b	LBB0_21
LBB0_13:
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	str	xzr, [x21, #8]
	subs	w8, w20, #1
	b.lt	LBB0_19
; %bb.14:
	mov	w21, #24
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #8]
	smaddl	x1, w22, w21, x8
	mov	x0, x19
	bl	_ixgbevf_unmap_and_free_tx_resource
	sub	w20, w20, #1
	mov	x27, x22
	cmp	w20, #0
	b.le	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	sub	w22, w27, #1
	cmp	w27, #0
	b.gt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #4]
	add	w22, w8, w22
	b	LBB0_15
LBB0_18:
	mov	w20, #-1
	b	LBB0_24
LBB0_19:
	mov	x20, x8
	b	LBB0_24
LBB0_20:
	ldr	x28, [sp]                       ; 8-byte Folded Reload
LBB0_21:
	cbnz	w27, LBB0_23
; %bb.22:
	ldr	w27, [x19, #4]
LBB0_23:
	ldr	x8, [x19, #8]
	mov	w9, #24
	smaddl	x8, w27, w9, x8
	stur	x28, [x8, #-8]
LBB0_24:
	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	_IXGBE_MAX_DATA_PER_TXD,8,3     ; @IXGBE_MAX_DATA_PER_TXD
	.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	_ixgbevf_tx_map
.subsections_via_symbols
