	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_namespace_blk
_create_namespace_blk:                  ## @create_namespace_blk
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r15
	movq	16(%rdi), %rdi
	callq	_to_ndd
	movq	%rax, %rbx
	movq	_NSLABEL_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_type_guid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_namespace_label_has
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	leaq	8(%r15), %rbx
	leaq	40(%r13), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_guid_equal
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	movq	(%r13), %rbx
	movq	(%r15), %rdi
	callq	___cpu_to_le64
	cmpq	%rax, %rbx
	jne	LBB0_7
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r14
	movq	%rax, %rbx
	movq	_namespace_blk_device_type@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	movq	%r12, 32(%r14)
	movl	$-1, (%r14)
	movq	8(%r13), %rdi
	callq	___le64_to_cpu
	movq	%rax, 48(%r14)
	movq	16(%r13), %rdi
	movq	_NSLABEL_UUID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_kmemdup
	movq	%rax, 16(%r14)
	movq	_abstraction_guid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_namespace_label_has
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	leaq	36(%r13), %rdi
	callq	_to_nvdimm_cclass
	movl	%eax, 24(%rbx)
LBB0_13:
	addq	$32, %r14
	cmpq	$0, 16(%rbx)
	je	LBB0_18
## %bb.14:
	movl	32(%r13), %esi
	movq	_NSLABEL_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_memcpy
	cmpb	$0, (%r15)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	je	LBB0_16
## %bb.15:
	movq	_NSLABEL_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rcx), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_kmemdup
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_18
LBB0_16:
	movq	24(%r13), %rdi
	callq	___le64_to_cpu
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_nsblk_add_resource
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_nd_dbg_dpa
	jmp	LBB0_19
LBB0_18:
	movq	%r14, %rdi
	callq	_namespace_blk_release
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.20:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	jmp	LBB0_3
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ebx
	movq	(%r15), %r14
	movq	(%r13), %rdi
	callq	___le64_to_cpu
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
LBB0_3:
	callq	_dev_dbg
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%edi, %edi
	subl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.5:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NSLABEL_NAME_LEN,4,2           ## @NSLABEL_NAME_LEN
	.comm	_type_guid,4,2                  ## @type_guid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expect type_guid %pUb got %pUb\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"expect cookie %#llx got %#llx\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_namespace_blk_device_type,4,2  ## @namespace_blk_device_type
	.comm	_NSLABEL_UUID_LEN,4,2           ## @NSLABEL_UUID_LEN
	.comm	_abstraction_guid,4,2           ## @abstraction_guid
L_.str.2:                               ## @.str.2
	.asciz	"%d: assign\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_create_namespace_blk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_namespace_blk
_create_namespace_blk:                  ; @create_namespace_blk
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x0, [x0, #16]
	ldr	x27, [x20, #8]
	bl	_to_ndd
	mov	x21, x0
Lloh3:
	adrp	x26, _NSLABEL_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _NSLABEL_NAME_LEN@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh7:
	adrp	x8, _type_guid@GOTPAGE
Lloh8:
	ldr	x8, [x8, _type_guid@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_namespace_label_has
	cbz	x0, LBB0_3
; %bb.1:
	add	x23, x27, #8
	add	x25, x22, #40
	mov	x0, x23
	mov	x1, x25
	bl	_guid_equal
	cbz	w0, LBB0_14
; %bb.2:
	ldr	x23, [x22]
	ldr	x0, [x27]
	bl	___cpu_to_le64
	cmp	x23, x0
	b.ne	LBB0_16
LBB0_3:
Lloh10:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.4:
	mov	x25, x0
	mov	x23, x0
	str	x20, [x23, #32]!
Lloh12:
	adrp	x8, _namespace_blk_device_type@GOTPAGE
Lloh13:
	ldr	x8, [x8, _namespace_blk_device_type@GOTPAGEOFF]
	str	x8, [x0, #40]
	mov	w8, #-1
	str	w8, [x0]
	ldr	x0, [x22, #8]
	bl	___le64_to_cpu
	str	x0, [x25, #48]
	ldr	x0, [x22, #16]
Lloh14:
	adrp	x8, _NSLABEL_UUID_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NSLABEL_UUID_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x27]
	bl	_kmemdup
	str	x0, [x25, #16]
Lloh17:
	adrp	x8, _abstraction_guid@GOTPAGE
Lloh18:
	ldr	x8, [x8, _abstraction_guid@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_namespace_label_has
	cbz	x0, LBB0_6
; %bb.5:
	add	x0, x22, #36
	bl	_to_nvdimm_cclass
	str	w0, [x25, #24]
LBB0_6:
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	w1, [x22, #32]
	ldr	w2, [x26]
	mov	x0, x24
	bl	_memcpy
	ldrb	w8, [x24]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x24
	bl	_kmemdup
	str	x0, [x25, #8]
	cbz	x0, LBB0_11
LBB0_9:
	ldr	x0, [x22, #24]
	bl	___le64_to_cpu
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	bl	_nsblk_add_resource
	cbz	x0, LBB0_11
; %bb.10:
	mov	x2, x0
Lloh20:
	adrp	x3, l_.str.2@PAGE
Lloh21:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x4, x19
	bl	_nd_dbg_dpa
	b	LBB0_12
LBB0_11:
	mov	x0, x23
	bl	_namespace_blk_release
Lloh22:
	adrp	x8, _ENXIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x23, x0
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.13:
	mov	x0, x23
	sub	sp, x29, #80
	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_14:
	ldr	w0, [x21]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x25
	b	LBB0_17
LBB0_15:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	ldr	w19, [x21]
	ldr	x20, [x27]
	ldr	x0, [x22]
	bl	___le64_to_cpu
	mov	x3, x0
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
LBB0_17:
	bl	_dev_dbg
Lloh34:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	ldur	x9, [x29, #-88]
Lloh36:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_20
; %bb.19:
	neg	w0, w8
	sub	sp, x29, #80
	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
	b	_ERR_PTR
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_NSLABEL_NAME_LEN,4,2           ; @NSLABEL_NAME_LEN
	.comm	_type_guid,4,2                  ; @type_guid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expect type_guid %pUb got %pUb\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"expect cookie %#llx got %#llx\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_namespace_blk_device_type,4,2  ; @namespace_blk_device_type
	.comm	_NSLABEL_UUID_LEN,4,2           ; @NSLABEL_UUID_LEN
	.comm	_abstraction_guid,4,2           ; @abstraction_guid
l_.str.2:                               ; @.str.2
	.asciz	"%d: assign\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_create_namespace_blk
.subsections_via_symbols
