	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvdimm_key_revalidate
_nvdimm_key_revalidate:                 ## @nvdimm_key_revalidate
	.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	8(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	-32(%rbp), %rsi
	callq	_nvdimm_get_key_payload
	movq	8(%r14), %rbx
	movq	_NVDIMM_USER@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%rax, %rdx
	callq	*(%rbx)
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_nvdimm_put_key
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.3:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_nvdimm_security_flags
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NVDIMM_USER,4,2                ## @NVDIMM_USER
	.no_dead_strip	_nvdimm_key_revalidate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvdimm_key_revalidate
_nvdimm_key_revalidate:                 ; @nvdimm_key_revalidate
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	bl	_nvdimm_get_key_payload
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _NVDIMM_USER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NVDIMM_USER@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x2, x1
	blr	x8
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_nvdimm_put_key
	tbnz	w20, #31, LBB0_4
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_nvdimm_security_flags
	mov	w20, #0
	str	w0, [x19]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NVDIMM_USER,4,2                ; @NVDIMM_USER
	.no_dead_strip	_nvdimm_key_revalidate
.subsections_via_symbols
