	.file	"extr_wm831x-core.c_wm831x_reg_lock.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Registers locked\n"
.LC1:
	.string	"Failed to lock registers: %d\n"
	.text
	.p2align 4
	.globl	wm831x_reg_lock
	.type	wm831x_reg_lock, @function
wm831x_reg_lock:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR WM831X_SECURITY_KEY[rip]
	call	wm831x_reg_write@PLT
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR 4[rbx]
	lea	rbp, 8[rbx]
	lea	rsi, .LC0[rip]
	call	dev_vdbg@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	edi, DWORD PTR [rbx]
	call	WARN_ON@PLT
	mov	DWORD PTR [rbx], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edx, eax
	lea	rsi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	wm831x_reg_lock, .-wm831x_reg_lock
	.comm	WM831X_SECURITY_KEY,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_wm831x-core.c_wm831x_reg_lock.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Registers locked\012\000"
	.align	2
.LC1:
	.ascii	"Failed to lock registers: %d\012\000"
	.text
	.align	2
	.global	wm831x_reg_lock
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm831x_reg_lock, %function
wm831x_reg_lock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L5
	mov	r2, #0
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r4, r0
	bl	wm831x_reg_write
	subs	r2, r0, #0
	bne	.L2
	ldr	r1, .L5+4
	add	r5, r4, #8
	ldr	r0, [r4, #4]
	bl	dev_vdbg
	mov	r0, r5
	bl	mutex_lock
	ldr	r0, [r4]
	bl	WARN_ON
	mov	r3, #1
	mov	r0, r5
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	mutex_unlock
.L2:
	ldr	r0, [r4, #4]
	ldr	r1, .L5+8
	pop	{r4, r5, r6, lr}
	b	dev_err
.L6:
	.align	2
.L5:
	.word	WM831X_SECURITY_KEY
	.word	.LC0
	.word	.LC1
	.size	wm831x_reg_lock, .-wm831x_reg_lock
	.comm	WM831X_SECURITY_KEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
