	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nvdimm_security_overwrite_query ## -- Begin function __nvdimm_security_overwrite_query
	.p2align	4, 0x90
___nvdimm_security_overwrite_query:     ## @__nvdimm_security_overwrite_query
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_walk_to_nvdimm_bus
	movq	%rax, %rdi
	callq	_lockdep_assert_held
	movq	_NDD_WORK_PENDING@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	36(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.4:
	movl	(%rbx), %r12d
	movq	%rbx, %rdi
	callq	*%rax
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_6
## %bb.5:
	addl	$10, %r12d
	movq	_system_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%rbx), %rsi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	imull	%r12d, %edx
	callq	_queue_delayed_work
	movl	$900, %edi                      ## imm = 0x384
	movl	%r12d, %esi
	callq	_min
	movl	%eax, (%rbx)
	jmp	LBB0_9
LBB0_6:
	testl	%eax, %eax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmovsq	%rax, %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_sysfs_notify_dirent
LBB0_8:
	movl	$0, (%rbx)
	movq	_NDD_SECURITY_OVERWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movq	%r14, %rdi
	callq	_put_device
	movq	_NVDIMM_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nvdimm_security_flags
	movq	%rax, 8(%rbx)
	movq	_NVDIMM_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nvdimm_security_flags
	movq	%rax, 8(%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NDD_WORK_PENDING,4,2           ## @NDD_WORK_PENDING
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_system_wq,4,2                  ## @system_wq
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"overwrite failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"overwrite completed\n"

	.comm	_NDD_SECURITY_OVERWRITE,4,2     ## @NDD_SECURITY_OVERWRITE
	.comm	_NVDIMM_USER,4,2                ## @NVDIMM_USER
	.comm	_NVDIMM_MASTER,4,2              ## @NVDIMM_MASTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___nvdimm_security_overwrite_query ; -- Begin function __nvdimm_security_overwrite_query
	.p2align	2
___nvdimm_security_overwrite_query:     ; @__nvdimm_security_overwrite_query
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x20, x0, #32
	mov	x0, x20
	bl	_walk_to_nvdimm_bus
	bl	_lockdep_assert_held
Lloh0:
	adrp	x22, _NDD_WORK_PENDING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NDD_WORK_PENDING@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x21, x19, #36
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_9
; %bb.4:
	ldr	w23, [x19]
	mov	x0, x19
	blr	x8
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_6
; %bb.5:
	add	w20, w23, #10
Lloh5:
	adrp	x8, _system_wq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _system_wq@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x19, #40
Lloh8:
	adrp	x8, _HZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mul	w2, w8, w20
	bl	_queue_delayed_work
	mov	w0, #900
	mov	x1, x20
	bl	_min
	str	w0, [x19]
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh13:
	adrp	x9, l_.str@PAGE
Lloh14:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w0, #0
	csel	x1, x9, x8, lt
	mov	x0, x20
	bl	_dev_dbg
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_sysfs_notify_dirent
LBB0_8:
	str	wzr, [x19]
Lloh15:
	adrp	x8, _NDD_SECURITY_OVERWRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NDD_SECURITY_OVERWRITE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	ldr	w0, [x22]
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x20
	bl	_put_device
Lloh18:
	adrp	x8, _NVDIMM_USER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NVDIMM_USER@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvdimm_security_flags
	str	x0, [x19, #8]
Lloh21:
	adrp	x8, _NVDIMM_MASTER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NVDIMM_MASTER@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvdimm_security_flags
	str	x0, [x19, #8]
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NDD_WORK_PENDING,4,2           ; @NDD_WORK_PENDING
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_system_wq,4,2                  ; @system_wq
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"overwrite failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"overwrite completed\n"

	.comm	_NDD_SECURITY_OVERWRITE,4,2     ; @NDD_SECURITY_OVERWRITE
	.comm	_NVDIMM_USER,4,2                ; @NVDIMM_USER
	.comm	_NVDIMM_MASTER,4,2              ; @NVDIMM_MASTER
.subsections_via_symbols
