	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmem_should_map_pages          ## -- Begin function pmem_should_map_pages
	.p2align	4, 0x90
_pmem_should_map_pages:                 ## @pmem_should_map_pages
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_nd_region
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_ndns
	movq	%rax, %r15
	movq	_CONFIG_ZONE_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_ND_REGION_PAGEMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	callq	_is_nd_pfn
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_is_nd_btt
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	cmpq	$0, (%r15)
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_to_nd_namespace_io
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movq	_IORESOURCE_SYSTEM_RAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IORES_DESC_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_region_intersects
	movq	_REGION_MIXED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_ARCH_MEMREMAP_PMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MEMREMAP_WB@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	%r14b
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_ZONE_DEVICE,4,2         ## @CONFIG_ZONE_DEVICE
	.comm	_ND_REGION_PAGEMAP,4,2          ## @ND_REGION_PAGEMAP
	.comm	_IORESOURCE_SYSTEM_RAM,4,2      ## @IORESOURCE_SYSTEM_RAM
	.comm	_IORES_DESC_NONE,4,2            ## @IORES_DESC_NONE
	.comm	_REGION_MIXED,8,3               ## @REGION_MIXED
	.comm	_ARCH_MEMREMAP_PMEM,8,3         ## @ARCH_MEMREMAP_PMEM
	.comm	_MEMREMAP_WB,8,3                ## @MEMREMAP_WB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmem_should_map_pages          ; -- Begin function pmem_should_map_pages
	.p2align	2
_pmem_should_map_pages:                 ; @pmem_should_map_pages
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	w0, [x0]
	bl	_to_nd_region
	mov	x21, x0
	mov	x0, x19
	bl	_to_ndns
	mov	x20, x0
Lloh0:
	adrp	x8, _CONFIG_ZONE_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_ZONE_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _ND_REGION_PAGEMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ND_REGION_PAGEMAP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x19
	bl	_is_nd_pfn
	cbnz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_is_nd_btt
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_to_nd_namespace_io
	ldr	w19, [x0]
	bl	_resource_size
	mov	x1, x0
Lloh6:
	adrp	x8, _IORESOURCE_SYSTEM_RAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IORESOURCE_SYSTEM_RAM@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _IORES_DESC_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IORES_DESC_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_region_intersects
Lloh12:
	adrp	x8, _REGION_MIXED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REGION_MIXED@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh15:
	adrp	x8, _ARCH_MEMREMAP_PMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ARCH_MEMREMAP_PMEM@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _MEMREMAP_WB@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MEMREMAP_WB@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_ZONE_DEVICE,4,2         ; @CONFIG_ZONE_DEVICE
	.comm	_ND_REGION_PAGEMAP,4,2          ; @ND_REGION_PAGEMAP
	.comm	_IORESOURCE_SYSTEM_RAM,4,2      ; @IORESOURCE_SYSTEM_RAM
	.comm	_IORES_DESC_NONE,4,2            ; @IORES_DESC_NONE
	.comm	_REGION_MIXED,8,3               ; @REGION_MIXED
	.comm	_ARCH_MEMREMAP_PMEM,8,3         ; @ARCH_MEMREMAP_PMEM
	.comm	_MEMREMAP_WB,8,3                ; @MEMREMAP_WB
.subsections_via_symbols
