	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_mmap_page_range            ## -- Begin function pci_mmap_page_range
	.p2align	4, 0x90
_pci_mmap_page_range:                   ## @pci_mmap_page_range
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pci_mmap_io@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_1
## %bb.3:
	movl	%ecx, %ebx
	movq	%rsi, %r14
	movl	8(%rsi), %edi
	callq	_pgprot_val
	movq	_pat_enabled@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	testq	%rcx, %rcx
	jne	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.6:
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movq	__PAGE_CACHE_WC@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_8:
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.9:
	movq	_boot_cpu_data@GOTPCREL(%rip), %rcx
	cmpl	$4, (%rcx)
	jl	LBB0_12
LBB0_10:
	movq	__PAGE_CACHE_UC_MINUS@GOTPCREL(%rip), %rcx
LBB0_11:
	orq	(%rcx), %rax
LBB0_12:
	movq	%rax, %rdi
	callq	___pgprot
	movl	%eax, 8(%r14)
	movl	32(%r14), %edx
	movq	16(%r14), %rsi
	movq	24(%r14), %rcx
	subq	%rsi, %rcx
	movq	%r14, %rdi
	movl	%eax, %r8d
	callq	_io_remap_pfn_range
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_14:
	movq	_pci_mmap_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_pci_mmap_io,4,2                ## @pci_mmap_io
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pat_enabled,8,3                ## @pat_enabled
	.comm	__PAGE_CACHE_WC,8,3             ## @_PAGE_CACHE_WC
	.comm	_boot_cpu_data,4,2              ## @boot_cpu_data
	.comm	__PAGE_CACHE_UC_MINUS,8,3       ## @_PAGE_CACHE_UC_MINUS
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_pci_mmap_ops,4,2               ## @pci_mmap_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_mmap_page_range            ; -- Begin function pci_mmap_page_range
	.p2align	2
_pci_mmap_page_range:                   ; @pci_mmap_page_range
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _pci_mmap_io@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pci_mmap_io@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x3
	mov	x19, x1
	ldr	w0, [x1, #8]
	bl	_pgprot_val
Lloh3:
	adrp	x8, _pat_enabled@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pat_enabled@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	w20, LBB0_6
; %bb.2:
	cbnz	x8, LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	cbz	w20, LBB0_9
; %bb.7:
	cbz	x8, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, __PAGE_CACHE_WC@GOTPAGE
Lloh9:
	ldr	x8, [x8, __PAGE_CACHE_WC@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x9, _boot_cpu_data@GOTPAGE
Lloh11:
	ldr	x9, [x9, _boot_cpu_data@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #4, #0, eq
	b.lt	LBB0_12
; %bb.10:
Lloh13:
	adrp	x8, __PAGE_CACHE_UC_MINUS@GOTPAGE
Lloh14:
	ldr	x8, [x8, __PAGE_CACHE_UC_MINUS@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	orr	x0, x8, x0
LBB0_12:
	bl	___pgprot
	mov	x4, x0
	str	w0, [x19, #8]
	ldr	w2, [x19, #32]
	ldp	x1, x8, [x19, #16]
	sub	x3, x8, x1
	mov	x0, x19
	bl	_io_remap_pfn_range
	cbz	x0, LBB0_14
; %bb.13:
Lloh15:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
Lloh17:
	adrp	x8, _pci_mmap_ops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _pci_mmap_ops@GOTPAGEOFF]
	str	x8, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_pci_mmap_io,4,2                ; @pci_mmap_io
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pat_enabled,8,3                ; @pat_enabled
	.comm	__PAGE_CACHE_WC,8,3             ; @_PAGE_CACHE_WC
	.comm	_boot_cpu_data,4,2              ; @boot_cpu_data
	.comm	__PAGE_CACHE_UC_MINUS,8,3       ; @_PAGE_CACHE_UC_MINUS
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_pci_mmap_ops,4,2               ; @pci_mmap_ops
.subsections_via_symbols
