	.file	"extr_nau8824.c_nau8824_set_tdm_slot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nau8824_set_tdm_slot, @function
nau8824_set_tdm_slot:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdi, QWORD PTR [rdi]
	mov	ebx, esi
	call	snd_soc_component_get_drvdata@PLT
	cmp	r12d, 4
	jg	.L2
	mov	ecx, ebx
	mov	r14, rax
	and	ecx, 240
	je	.L3
	test	bl, 15
	jne	.L2
.L3:
	mov	esi, ebp
	and	esi, 240
	je	.L4
	mov	eax, ebx
	or	eax, ebp
	test	al, 15
	je	.L4
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	test	bpl, 15
	jne	.L23
	mov	edx, DWORD PTR NAU8824_TDM_MODE[rip]
	mov	eax, DWORD PTR NAU8824_TDM_OFFSET_EN[rip]
	or	eax, edx
	test	ecx, ecx
	je	.L8
	shr	ebx, 4
	mov	ecx, DWORD PTR NAU8824_TDM_DACR_RX_SFT[rip]
	sal	r13d, 2
	or	ebx, eax
	test	esi, esi
	je	.L10
.L24:
	shr	ebp, 4
	sal	ebp, cl
	mov	ecx, ebp
	or	ecx, ebx
.L11:
	mov	edi, DWORD PTR [r14]
	mov	edx, DWORD PTR NAU8824_TDM_DACL_RX_MASK[rip]
	mov	esi, DWORD PTR NAU8824_REG_TDM_CTRL[rip]
	or	edx, DWORD PTR NAU8824_TDM_DACR_RX_MASK[rip]
	or	edx, DWORD PTR NAU8824_TDM_TX_MASK[rip]
	or	edx, eax
	call	regmap_update_bits@PLT
	mov	edi, DWORD PTR [r14]
	mov	edx, DWORD PTR NAU8824_TSLOT_L_MASK[rip]
	mov	ecx, r13d
	mov	esi, DWORD PTR NAU8824_REG_PORT0_LEFT_TIME_SLOT[rip]
	call	regmap_update_bits@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	test	ecx, ecx
	jne	.L2
	mov	edx, DWORD PTR NAU8824_TDM_MODE[rip]
	mov	eax, DWORD PTR NAU8824_TDM_OFFSET_EN[rip]
	or	eax, edx
.L8:
	mov	ecx, DWORD PTR NAU8824_TDM_DACR_RX_SFT[rip]
	or	ebx, eax
	xor	r13d, r13d
	test	esi, esi
	jne	.L24
.L10:
	sal	ebp, cl
	mov	ecx, ebp
	or	ecx, ebx
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	nau8824_set_tdm_slot, .-nau8824_set_tdm_slot
	.comm	NAU8824_TSLOT_L_MASK,4,4
	.comm	NAU8824_TDM_TX_MASK,4,4
	.comm	NAU8824_TDM_OFFSET_EN,4,4
	.comm	NAU8824_TDM_MODE,4,4
	.comm	NAU8824_TDM_DACR_RX_SFT,4,4
	.comm	NAU8824_TDM_DACR_RX_MASK,4,4
	.comm	NAU8824_TDM_DACL_RX_MASK,4,4
	.comm	NAU8824_REG_TDM_CTRL,4,4
	.comm	NAU8824_REG_PORT0_LEFT_TIME_SLOT,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_nau8824.c_nau8824_set_tdm_slot.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nau8824_set_tdm_slot, %function
nau8824_set_tdm_slot:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r3
	ldr	r0, [r0]
	mov	r4, r1
	mov	r7, r2
	bl	snd_soc_component_get_drvdata
	cmp	r5, #4
	bgt	.L2
	ands	r3, r4, #240
	mov	r5, r0
	beq	.L3
	tst	r4, #15
	bne	.L2
.L3:
	ands	r1, r7, #240
	beq	.L4
	orr	r2, r4, r7
	tst	r2, #15
	beq	.L4
.L2:
	ldr	r3, .L23
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	tst	r7, #15
	beq	.L5
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L23+4
	ldr	r2, .L23+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r2, r3, r2
.L8:
	mov	r6, #0
	orr	r4, r4, r2
	b	.L9
.L5:
	ldr	r0, .L23+4
	ldr	r2, .L23+8
	ldr	r0, [r0]
	ldr	r2, [r2]
	cmp	r3, #0
	orr	r2, r0, r2
	beq	.L8
	ldr	r3, [sp, #24]
	orr	r4, r2, r4, lsr #4
	lsl	r6, r3, #2
.L9:
	cmp	r1, #0
	ldr	r0, .L23+12
	ldr	r1, .L23+16
	ldr	ip, .L23+20
	ldr	r1, [r1]
	ldr	r0, [r0]
	ldr	r3, .L23+24
	ldr	ip, [ip]
	ldr	r3, [r3]
	orr	r0, r0, r1
	ldr	r1, .L23+28
	orr	r0, r0, ip
	lsrne	r7, r7, #4
	orr	r3, r4, r7, lsl r3
	orr	r2, r0, r2
	ldr	r1, [r1]
	ldr	r0, [r5]
	bl	regmap_update_bits
	ldr	r2, .L23+32
	ldr	r1, .L23+36
	mov	r3, r6
	ldr	r0, [r5]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	regmap_update_bits
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	.align	2
.L23:
	.word	EINVAL
	.word	NAU8824_TDM_MODE
	.word	NAU8824_TDM_OFFSET_EN
	.word	NAU8824_TDM_DACL_RX_MASK
	.word	NAU8824_TDM_DACR_RX_MASK
	.word	NAU8824_TDM_TX_MASK
	.word	NAU8824_TDM_DACR_RX_SFT
	.word	NAU8824_REG_TDM_CTRL
	.word	NAU8824_TSLOT_L_MASK
	.word	NAU8824_REG_PORT0_LEFT_TIME_SLOT
	.size	nau8824_set_tdm_slot, .-nau8824_set_tdm_slot
	.comm	NAU8824_TSLOT_L_MASK,4,4
	.comm	NAU8824_TDM_TX_MASK,4,4
	.comm	NAU8824_TDM_OFFSET_EN,4,4
	.comm	NAU8824_TDM_MODE,4,4
	.comm	NAU8824_TDM_DACR_RX_SFT,4,4
	.comm	NAU8824_TDM_DACR_RX_MASK,4,4
	.comm	NAU8824_TDM_DACL_RX_MASK,4,4
	.comm	NAU8824_REG_TDM_CTRL,4,4
	.comm	NAU8824_REG_PORT0_LEFT_TIME_SLOT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
