	.file	"extr_delta.c_snd_ice1712_delta_cs8403_spdif_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ice1712_delta_cs8403_spdif_write, @function
snd_ice1712_delta_cs8403_spdif_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	movzx	ebp, BYTE PTR ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK[rip]
	movzx	r14d, BYTE PTR ICE1712_DELTA_SPDIF_OUT_STAT_DATA[rip]
	call	mutex_lock@PLT
	mov	esi, DWORD PTR ICE1712_IREG_GPIO_DATA[rip]
	mov	rdi, r15
	mov	r13d, ebp
	call	snd_ice1712_read@PLT
	or	r13d, r14d
	mov	ebx, eax
	movzx	eax, r12b
	not	r13d
	mov	r12d, 7
	mov	DWORD PTR 12[rsp], eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR 12[rsp]
	mov	ecx, r12d
	and	ebx, r13d
	mov	esi, DWORD PTR ICE1712_IREG_GPIO_DATA[rip]
	mov	eax, ebx
	mov	rdi, r15
	sar	edx, cl
	or	eax, r14d
	and	edx, 1
	cmovne	ebx, eax
	sub	r12d, 1
	movzx	edx, bl
	or	ebx, ebp
	call	snd_ice1712_write@PLT
	mov	edi, 100
	call	udelay@PLT
	mov	esi, DWORD PTR ICE1712_IREG_GPIO_DATA[rip]
	movzx	edx, bl
	mov	rdi, r15
	call	snd_ice1712_write@PLT
	mov	edi, 100
	call	udelay@PLT
	cmp	r12d, -1
	jne	.L3
	mov	edx, ebp
	mov	esi, DWORD PTR ICE1712_IREG_GPIO_DATA[rip]
	mov	rdi, r15
	not	edx
	and	ebx, edx
	movzx	edx, bl
	call	snd_ice1712_write@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	snd_ice1712_delta_cs8403_spdif_write, .-snd_ice1712_delta_cs8403_spdif_write
	.comm	ICE1712_IREG_GPIO_DATA,4,4
	.comm	ICE1712_DELTA_SPDIF_OUT_STAT_DATA,1,1
	.comm	ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK,1,1
	.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_delta.c_snd_ice1712_delta_cs8403_spdif_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ice1712_delta_cs8403_spdif_write, %function
snd_ice1712_delta_cs8403_spdif_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r2, .L10
	ldr	r3, .L10+4
	ldr	r6, .L10+8
	ldrb	r8, [r2]	@ zero_extendqisi2
	ldrb	r10, [r3]	@ zero_extendqisi2
	mov	r9, r1
	bl	mutex_lock
	mov	r0, r5
	ldr	r1, [r6]
	bl	snd_ice1712_read
	orr	r7, r8, r10
	mvn	r7, r7
	mov	r4, r0
	mov	fp, #7
	lsl	r7, r7, #24
	asr	r7, r7, #24
.L3:
	asr	r3, r9, fp
	and	r4, r4, r7
	tst	r3, #1
	and	r4, r4, #255
	orrne	r4, r10, r4
	mov	r2, r4
	ldr	r1, [r6]
	mov	r0, r5
	bl	snd_ice1712_write
	orr	r4, r4, r8
	mov	r0, #100
	bl	udelay
	mov	r2, r4
	ldr	r1, [r6]
	mov	r0, r5
	bl	snd_ice1712_write
	sub	fp, fp, #1
	mov	r0, #100
	bl	udelay
	cmn	fp, #1
	bne	.L3
	bic	r4, r4, r8
	mov	r0, r5
	ldr	r1, [r6]
	and	r2, r4, #255
	bl	snd_ice1712_write
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mutex_unlock
.L11:
	.align	2
.L10:
	.word	ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK
	.word	ICE1712_DELTA_SPDIF_OUT_STAT_DATA
	.word	ICE1712_IREG_GPIO_DATA
	.size	snd_ice1712_delta_cs8403_spdif_write, .-snd_ice1712_delta_cs8403_spdif_write
	.comm	ICE1712_IREG_GPIO_DATA,4,4
	.comm	ICE1712_DELTA_SPDIF_OUT_STAT_DATA,1,1
	.comm	ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
