	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_map_tx_skb
_netxen_map_tx_skb:                     ## @netxen_map_tx_skb
	.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	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r14
	movl	(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_skb_headlen
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_pci_map_single
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_1:
	movq	%r15, (%r14)
	movq	%rbx, %rdi
	callq	_skb_headlen
	movl	%eax, 8(%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	movl	$1, %ecx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_shinfo
	leaq	(,%r14,4), %rbx
	addq	8(%rax), %rbx
	movq	(%r13), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_skb_frag_dma_map
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	%r14, %r12
	shlq	$4, %r12
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax,%r12)
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	%eax, 8(%r13,%r12)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	addq	$16, %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_3
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testl	%r14d, %r14d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rbx
	movq	(%rbx,%r15), %rsi
	movl	8(%rbx,%r15), %edx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_pci_unmap_page
	movq	$0, (%rbx,%r15)
	decq	%r13
	addq	$-16, %r15
	cmpq	$1, %r13
	jg	LBB0_5
LBB0_6:
	movq	(%r14), %rbx
	movq	(%rbx), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_headlen
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_pci_unmap_single
	movq	$0, (%rbx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_netxen_map_tx_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_map_tx_skb
_netxen_map_tx_skb:                     ; @netxen_map_tx_skb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_skb_shinfo
	ldr	w25, [x0]
	ldr	x23, [x21]
	ldr	w22, [x20]
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
Lloh0:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_pci_map_single
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	str	x22, [x23]
	mov	x0, x20
	bl	_skb_headlen
	str	w0, [x23, #8]
	cmp	w25, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x26, #0
	mov	x28, #0
	mov	w27, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x22, x8, x28, lsl #2
	ldr	x24, [x21]
	mov	x0, x22
	bl	_skb_frag_size
	mov	x3, x0
Lloh6:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_skb_frag_dma_map
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_dma_mapping_error
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	add	x24, x24, x28, lsl #4
	str	x23, [x24]
	mov	x0, x22
	bl	_skb_frag_size
	str	w0, [x24, #8]
	add	x27, x27, #1
	add	x26, x26, #16
	cmp	x28, x25
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh9:
	adrp	x23, _PCI_DMA_TODEVICE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	cbz	w28, LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x22, x8, x26
	ldr	x1, [x22]
	ldr	w2, [x22, #8]
	ldr	w3, [x23]
	mov	x0, x19
	bl	_pci_unmap_page
	str	xzr, [x22]
	sub	x27, x27, #1
	sub	x26, x26, #16
	cmp	x27, #1
	b.gt	LBB0_9
LBB0_10:
	ldr	x22, [x21]
	ldr	x21, [x22]
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_pci_unmap_single
	str	xzr, [x22]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_netxen_map_tx_skb
.subsections_via_symbols
