	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nd_namespace_pmem_create
_nd_namespace_pmem_create:              ## @nd_namespace_pmem_create
	.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, %r14
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_is_memory
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r12
	movq	_namespace_pmem_device_type@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	%rbx, 24(%r12)
	movq	%rbx, %rdi
	callq	_dev_name
	movl	%eax, 12(%r12)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	leaq	4(%r14), %rdi
	movl	(%r15), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movq	%rax, (%r12)
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:
	movq	%r12, %r15
	addq	$16, %r15
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rcx
	callq	_dev_set_name
	movq	_nd_namespace_attribute_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_nd_namespace_pmem_set_resource
	jmp	LBB0_8
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_namespace_pmem_device_type,4,2 ## @namespace_pmem_device_type
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"namespace%d.%d"

	.comm	_nd_namespace_attribute_groups,4,2 ## @nd_namespace_attribute_groups
	.no_dead_strip	_nd_namespace_pmem_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nd_namespace_pmem_create
_nd_namespace_pmem_create:              ; @nd_namespace_pmem_create
	.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
	add	x21, x0, #8
	mov	x0, x21
	bl	_is_memory
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x8, _namespace_pmem_device_type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _namespace_pmem_device_type@GOTPAGEOFF]
	stp	x21, x8, [x0, #24]
	mov	x0, x21
	bl	_dev_name
Lloh4:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #8]
	add	x0, x19, #4
	ldr	w3, [x22]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	str	x0, [x20]
	tbnz	x0, #63, LBB0_4
; %bb.3:
	mov	x3, x0
	add	x21, x20, #16
	ldr	w2, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_set_name
Lloh9:
	adrp	x8, _nd_namespace_attribute_groups@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nd_namespace_attribute_groups@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_nd_namespace_pmem_set_resource
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_kfree
LBB0_5:
	mov	x21, #0
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_namespace_pmem_device_type,4,2 ; @namespace_pmem_device_type
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"namespace%d.%d"

	.comm	_nd_namespace_attribute_groups,4,2 ; @nd_namespace_attribute_groups
	.no_dead_strip	_nd_namespace_pmem_create
.subsections_via_symbols
