	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_p2m_dma                   ## -- Begin function solo_p2m_dma
	.p2align	4, 0x90
_solo_p2m_dma:                          ## @solo_p2m_dma
	.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	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	%r13d, %edi
	andl	$3, %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	movl	%r15d, %eax
	testl	%r15d, %r15d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jne	LBB0_5
## %bb.6:
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_pci_map_single
	movl	%eax, %r14d
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_9:
	movl	16(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movq	%r12, %rbx
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_solo_p2m_dma_t
	movl	%eax, %r12d
	movl	(%rbx), %edi
	testl	%r15d, %r15d
	jne	LBB0_10
## %bb.11:
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ecx
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_pci_unmap_single
	movl	%r12d, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_p2m_dma                   ; -- Begin function solo_p2m_dma
	.p2align	2
_solo_p2m_dma:                          ; @solo_p2m_dma
	.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, x6
	mov	x23, x5
	mov	x19, x4
	mov	x24, x3
	mov	x25, x2
	mov	x20, x1
	mov	x22, x0
	and	w0, w25, #0x3
	bl	_WARN_ON_ONCE
	cbnz	x0, LBB0_2
; %bb.1:
	cmp	w19, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
Lloh2:
	adrp	x26, _PCI_DMA_TODEVICE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh4:
	adrp	x27, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x27, x26, eq
	ldr	w3, [x8]
	mov	x1, x25
	mov	x2, x19
	bl	_pci_map_single
	mov	x25, x0
	ldr	w0, [x22]
	mov	x1, x25
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_7:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x25
	mov	x3, x24
	mov	x4, x19
	mov	x5, x23
	mov	x6, x21
	bl	_solo_p2m_dma_t
	mov	x21, x0
	ldr	w0, [x22]
	cmp	w20, #0
	csel	x8, x27, x26, eq
	ldr	w3, [x8]
	mov	x1, x25
	mov	x2, x19
	bl	_pci_unmap_single
	mov	x0, x21
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
