	.file	"extr_radio-wl1273.c_wl1273_fm_set_preemphasis.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wl1273_fm_set_preemphasis, @function
wl1273_fm_set_preemphasis:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [r12]
	cmp	rax, QWORD PTR WL1273_MODE_OFF[rip]
	je	.L2
	cmp	rax, QWORD PTR WL1273_MODE_SUSPENDED[rip]
	je	.L2
	lea	r13, 16[r12]
	mov	ebp, esi
	mov	rbx, rdi
	mov	rdi, r13
	call	mutex_lock@PLT
	lea	eax, -128[rbp]
	cmp	eax, 2
	ja	.L5
	lea	rdx, CSWTCH.6[rip]
	mov	rdi, r12
	mov	esi, DWORD PTR WL1273_PREMPH_SET[rip]
	mov	edx, DWORD PTR [rdx+rax*4]
	call	[QWORD PTR 8[r12]]
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	DWORD PTR [rbx], ebp
.L6:
	mov	rdi, r13
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR EPERM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	wl1273_fm_set_preemphasis, .-wl1273_fm_set_preemphasis
	.section	.rodata
	.align 8
	.type	CSWTCH.6, @object
	.size	CSWTCH.6, 12
CSWTCH.6:
	.long	1
	.long	2
	.long	0
	.comm	WL1273_PREMPH_SET,4,4
	.comm	WL1273_MODE_SUSPENDED,8,8
	.comm	WL1273_MODE_OFF,8,8
	.comm	EPERM,4,4
	.comm	EINVAL,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_radio-wl1273.c_wl1273_fm_set_preemphasis.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl1273_fm_set_preemphasis, %function
wl1273_fm_set_preemphasis:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L11
	ldr	r4, [r0, #4]
	ldr	r2, [r2]
	ldr	r3, [r4]
	cmp	r3, r2
	beq	.L2
	ldr	r2, .L11+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
	mov	r6, r1
	add	r7, r4, #8
	mov	r5, r0
	mov	r0, r7
	bl	mutex_lock
	sub	r3, r6, #128
	cmp	r3, #2
	bhi	.L5
	ldr	r2, .L11+8
	ldr	r1, .L11+12
	mov	r0, r4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, [r1]
	ldr	r3, [r4, #4]
	blx	r3
	subs	r4, r0, #0
	streq	r6, [r5]
.L6:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L11+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L11+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L6
.L12:
	.align	2
.L11:
	.word	WL1273_MODE_OFF
	.word	WL1273_MODE_SUSPENDED
	.word	.LANCHOR0
	.word	WL1273_PREMPH_SET
	.word	EPERM
	.word	EINVAL
	.size	wl1273_fm_set_preemphasis, .-wl1273_fm_set_preemphasis
	.comm	WL1273_PREMPH_SET,4,4
	.comm	WL1273_MODE_SUSPENDED,4,4
	.comm	WL1273_MODE_OFF,4,4
	.comm	EPERM,4,4
	.comm	EINVAL,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.6, %object
	.size	CSWTCH.6, 12
CSWTCH.6:
	.word	1
	.word	2
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
