	.file	"extr_dimm_devs.c_nvdimm_security_freeze.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Overwrite operation in progress.\n"
	.text
	.p2align 4
	.globl	nvdimm_security_freeze
	.type	nvdimm_security_freeze, @function
nvdimm_security_freeze:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 16[rdi]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	rdi, r12
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	is_nvdimm_bus_locked@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	WARN_ON_ONCE@PLT
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L2
	cmp	QWORD PTR [rax], 0
	je	.L2
	cmp	QWORD PTR [rbx], 0
	jne	.L5
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR NDD_SECURITY_OVERWRITE[rip]
	lea	rsi, 20[rbx]
	call	test_bit@PLT
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	mov	esi, DWORD PTR NVDIMM_USER[rip]
	mov	rdi, rbx
	mov	r12d, eax
	call	nvdimm_security_flags@PLT
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nvdimm_security_freeze, .-nvdimm_security_freeze
	.comm	NVDIMM_USER,4,4
	.comm	NDD_SECURITY_OVERWRITE,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EIO,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dimm_devs.c_nvdimm_security_freeze.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Overwrite operation in progress.\012\000"
	.text
	.align	2
	.global	nvdimm_security_freeze
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvdimm_security_freeze, %function
nvdimm_security_freeze:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	add	r5, r0, #8
	mov	r4, r0
	mov	r0, r5
	bl	is_nvdimm_bus_locked
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON_ONCE
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L13
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, .L13+4
	add	r1, r4, #12
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L12
	ldr	r3, [r4, #4]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	ldr	r3, .L13+8
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	nvdimm_security_flags
	str	r0, [r4]
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L13+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	mov	r0, r5
	ldr	r1, .L13+16
	bl	dev_warn
	ldr	r3, .L13+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L14:
	.align	2
.L13:
	.word	EIO
	.word	NDD_SECURITY_OVERWRITE
	.word	NVDIMM_USER
	.word	EOPNOTSUPP
	.word	.LC0
	.word	EBUSY
	.size	nvdimm_security_freeze, .-nvdimm_security_freeze
	.comm	NVDIMM_USER,4,4
	.comm	NDD_SECURITY_OVERWRITE,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EIO,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
