	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iomap_create_wc                ## -- Begin function iomap_create_wc
	.p2align	4, 0x90
_iomap_create_wc:                       ## @iomap_create_wc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	__PAGE_CACHE_WC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_is_io_mapping_possible
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	addq	%r15, %rbx
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_io_reserve_memtype
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	___PAGE_KERNEL@GOTPCREL(%rip), %rax
	movq	-32(%rbp), %rdi
	orq	(%rax), %rdi
	callq	___pgprot
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PAGE_CACHE_WC,8,3             ## @_PAGE_CACHE_WC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	___PAGE_KERNEL,8,3              ## @__PAGE_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iomap_create_wc                ; -- Begin function iomap_create_wc
	.p2align	2
_iomap_create_wc:                       ; @iomap_create_wc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, __PAGE_CACHE_WC@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PAGE_CACHE_WC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_is_io_mapping_possible
	cbz	w0, LBB0_3
; %bb.1:
	add	x1, x21, x20
	add	x2, sp, #8
	mov	x0, x20
	bl	_io_reserve_memtype
	cbnz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, ___PAGE_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___PAGE_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	orr	x0, x9, x8
	bl	___pgprot
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	__PAGE_CACHE_WC,8,3             ; @_PAGE_CACHE_WC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	___PAGE_KERNEL,8,3              ; @__PAGE_KERNEL
.subsections_via_symbols
