	.file	"extr_fsl_spdif.c_spdif_set_rx_clksrc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	spdif_set_rx_clksrc, @function
spdif_set_rx_clksrc:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, QWORD PTR [rdi]
	cmp	QWORD PTR SRPC_CLKSRC_MAX[rip], r8
	jle	.L6
	cmp	DWORD PTR GAINSEL_MULTI_MAX[rip], esi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	ja	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r12, QWORD PTR 8[rdi]
	mov	rdi, r8
	call	SRPC_CLKSRC_SEL_SET@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	SRPC_GAINSEL_SET@PLT
	mov	esi, DWORD PTR REG_SPDIF_SRPC[rip]
	mov	edx, DWORD PTR SRPC_CLKSRC_SEL_MASK[rip]
	mov	rdi, r12
	or	ebx, eax
	or	edx, DWORD PTR SRPC_GAINSEL_MASK[rip]
	mov	ecx, ebx
	call	regmap_update_bits@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	spdif_set_rx_clksrc, .-spdif_set_rx_clksrc
	.comm	SRPC_GAINSEL_MASK,4,4
	.comm	SRPC_CLKSRC_SEL_MASK,4,4
	.comm	SRPC_CLKSRC_MAX,8,8
	.comm	REG_SPDIF_SRPC,4,4
	.comm	GAINSEL_MULTI_MAX,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_fsl_spdif.c_spdif_set_rx_clksrc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spdif_set_rx_clksrc, %function
spdif_set_rx_clksrc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L10
	mov	r3, r0
	ldr	r2, [r2]
	ldr	r0, [r0]
	cmp	r2, r0
	ble	.L6
	ldr	r2, .L10+4
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, [r2]
	mov	r4, r1
	cmp	r2, r1
	bhi	.L3
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r1, .L10+12
	ldr	r2, .L10+16
	ldr	r5, [r1]
	ldr	r2, [r2]
	ldr	r1, .L10+20
	ldr	r6, [r3, #4]
	ldr	r7, [r1]
	orr	r5, r5, r2
	bl	SRPC_CLKSRC_SEL_SET
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	SRPC_GAINSEL_SET
	mov	r2, r5
	orr	r3, r4, r0
	mov	r1, r7
	mov	r0, r6
	bl	regmap_update_bits
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L11:
	.align	2
.L10:
	.word	SRPC_CLKSRC_MAX
	.word	GAINSEL_MULTI_MAX
	.word	EINVAL
	.word	SRPC_CLKSRC_SEL_MASK
	.word	SRPC_GAINSEL_MASK
	.word	REG_SPDIF_SRPC
	.size	spdif_set_rx_clksrc, .-spdif_set_rx_clksrc
	.comm	SRPC_GAINSEL_MASK,4,4
	.comm	SRPC_CLKSRC_SEL_MASK,4,4
	.comm	SRPC_CLKSRC_MAX,4,4
	.comm	REG_SPDIF_SRPC,4,4
	.comm	GAINSEL_MULTI_MAX,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
