	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ace_map_tx_skb
_ace_map_tx_skb:                        ## @ace_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	8(%rdi), %r13d
	movl	4(%rsi), %edi
	callq	_virt_to_page
	movl	%eax, %r14d
	movl	4(%r15), %edi
	callq	_offset_in_page
	movl	(%r15), %ecx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_pci_map_page
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	(%rax), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	leaq	(%rax,%rcx,8), %r14
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_dma_unmap_addr_set
	movq	_maplen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_dma_unmap_len_set
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_maplen,4,2                     ## @maplen
	.no_dead_strip	_ace_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 ace_map_tx_skb
_ace_map_tx_skb:                        ; @ace_map_tx_skb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w23, [x0, #8]
	ldr	w0, [x1, #4]
	bl	_virt_to_page
	mov	x24, x0
	ldr	w0, [x21, #4]
	bl	_offset_in_page
	mov	x2, x0
	ldr	w3, [x21]
Lloh0:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_pci_map_page
	mov	x23, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x19, x8, w19, sxtw #3
	str	x20, [x19]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x23
	bl	_dma_unmap_addr_set
Lloh3:
	adrp	x8, _maplen@GOTPAGE
Lloh4:
	ldr	x8, [x8, _maplen@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_dma_unmap_len_set
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_maplen,4,2                     ; @maplen
	.no_dead_strip	_ace_map_tx_skb
.subsections_via_symbols
