	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvdimm_security_setup_events   ## -- Begin function nvdimm_security_setup_events
	.p2align	4, 0x90
_nvdimm_security_setup_events:          ## @nvdimm_security_setup_events
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_to_nvdimm
	movq	%rax, %rbx
	xorl	%eax, %eax
	cmpl	$0, 16(%rbx)
	je	LBB0_5
## %bb.1:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.2:
	cmpl	$0, (%rcx)
	je	LBB0_5
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sysfs_get_dirent
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	_shutdown_security_notify@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_devm_add_action_or_reset       ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"security"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_shutdown_security_notify,4,2   ## @shutdown_security_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvdimm_security_setup_events   ; -- Begin function nvdimm_security_setup_events
	.p2align	2
_nvdimm_security_setup_events:          ; @nvdimm_security_setup_events
	.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
	mov	x19, x0
	bl	_to_nvdimm
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sysfs_get_dirent
	str	w0, [x20]
	cbz	w0, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _shutdown_security_notify@GOTPAGE
Lloh3:
	ldr	x8, [x8, _shutdown_security_notify@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_devm_add_action_or_reset
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"security"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_shutdown_security_notify,4,2   ; @shutdown_security_notify
.subsections_via_symbols
