	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvdimm_request_key
_nvdimm_request_key:                    ## @nvdimm_request_key
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_NVDIMM_KEY_DESC_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$8, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	_nvdimm_request_key.NVDIMM_PREFIX(%rip), %rdx
	movq	%rbx, %rdi
	callq	_sprintf
	movq	_key_type_encrypted@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rsi
	callq	_request_key
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	addq	$4, %r14
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	_ENOKEY@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movq	%rbx, %rdi
	callq	_down_read
	movq	%rbx, %rdi
	callq	_dereference_key_locked
	movq	(%rax), %rax
	movq	_NVDIMM_PASSPHRASE_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_up_read
	movq	%rbx, %rdi
	callq	_key_put
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rax
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_nvdimm_request_key.NVDIMM_PREFIX:      ## @nvdimm_request_key.NVDIMM_PREFIX
	.asciz	"nvdimm:"

	.comm	_NVDIMM_KEY_DESC_LEN,4,2        ## @NVDIMM_KEY_DESC_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

	.comm	_key_type_encrypted,4,2         ## @key_type_encrypted
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_ENOKEY,4,2                     ## @ENOKEY
L_.str.2:                               ## @.str.2
	.asciz	"request_key() found no key\n"

L_.str.3:                               ## @.str.3
	.asciz	"request_key() upcall failed\n"

	.comm	_NVDIMM_PASSPHRASE_LEN,8,3      ## @NVDIMM_PASSPHRASE_LEN
	.no_dead_strip	_nvdimm_request_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvdimm_request_key
_nvdimm_request_key:                    ; @nvdimm_request_key
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _NVDIMM_KEY_DESC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVDIMM_KEY_DESC_LEN@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x9, x8, #8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #23
	and	x8, x8, #0xfffffffffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w3, [x19], #4
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
Lloh10:
	adrp	x2, _nvdimm_request_key.NVDIMM_PREFIX@PAGE
Lloh11:
	add	x2, x2, _nvdimm_request_key.NVDIMM_PREFIX@PAGEOFF
	mov	x0, x20
	bl	_sprintf
Lloh12:
	adrp	x0, _key_type_encrypted@GOTPAGE
Lloh13:
	ldr	x0, [x0, _key_type_encrypted@GOTPAGEOFF]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_request_key
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
Lloh16:
	adrp	x8, _ENOKEY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOKEY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.2:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_down_read
	mov	x0, x20
	bl	_dereference_key_locked
	ldr	x8, [x0]
Lloh21:
	adrp	x9, _NVDIMM_PASSPHRASE_LEN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NVDIMM_PASSPHRASE_LEN@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_up_read
	mov	x0, x20
	bl	_key_put
	b	LBB0_7
LBB0_5:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_dbg
LBB0_7:
	mov	x20, #0
LBB0_8:
	ldur	x8, [x29, #-24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_nvdimm_request_key.NVDIMM_PREFIX:      ; @nvdimm_request_key.NVDIMM_PREFIX
	.asciz	"nvdimm:"

	.comm	_NVDIMM_KEY_DESC_LEN,4,2        ; @NVDIMM_KEY_DESC_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	_key_type_encrypted,4,2         ; @key_type_encrypted
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_ENOKEY,4,2                     ; @ENOKEY
l_.str.2:                               ; @.str.2
	.asciz	"request_key() found no key\n"

l_.str.3:                               ; @.str.3
	.asciz	"request_key() upcall failed\n"

	.comm	_NVDIMM_PASSPHRASE_LEN,8,3      ; @NVDIMM_PASSPHRASE_LEN
	.no_dead_strip	_nvdimm_request_key
.subsections_via_symbols
