	.file	"extr_echoaudio_3g.c_write_control_reg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"WriteControlReg: Setting 0x%x, 0x%x\n"
	.align 8
.LC1:
	.string	"WriteControlReg: not written, no change\n"
	.text
	.p2align 4
	.type	write_control_reg, @function
write_control_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	wait_handshake@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	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
	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	rax, QWORD PTR 0[rbp]
	mov	edx, r13d
	mov	ecx, r12d
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	dev_dbg@PLT
	mov	edi, r13d
	call	cpu_to_le32@PLT
	mov	edi, r12d
	mov	r13, rax
	call	cpu_to_le32@PLT
	mov	rdx, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rdx], r13
	jne	.L4
	cmp	QWORD PTR 8[rdx], rax
	jne	.L4
	test	bl, bl
	je	.L5
.L4:
	mov	QWORD PTR [rdx], r13
	mov	rdi, rbp
	mov	QWORD PTR 8[rdx], rax
	call	clear_handshake@PLT
	mov	esi, DWORD PTR DSP_VC_WRITE_CONTROL_REG[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	send_vector@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	dev_dbg@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	write_control_reg, .-write_control_reg
	.comm	EIO,4,4
	.comm	DSP_VC_WRITE_CONTROL_REG,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_echoaudio_3g.c_write_control_reg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WriteControlReg: Setting 0x%x, 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"WriteControlReg: not written, no change\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_control_reg, %function
write_control_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r2
	mov	r8, r3
	mov	r7, r0
	bl	wait_handshake
	subs	r6, r0, #0
	beq	.L2
	ldr	r3, .L8
	ldr	r0, [r3]
	rsb	r6, r0, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, [r7]
	mov	r3, r4
	ldr	r1, .L8+4
	ldr	r0, [r2]
	mov	r2, r5
	bl	dev_dbg
	mov	r0, r5
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	cpu_to_le32
	ldr	r3, [r7, #4]
	ldr	r2, [r3]
	cmp	r2, r4
	bne	.L4
	ldr	r2, [r3, #4]
	cmp	r8, #0
	cmpeq	r2, r0
	beq	.L5
.L4:
	str	r0, [r3, #4]
	str	r4, [r3]
	mov	r0, r7
	bl	clear_handshake
	ldr	r3, .L8+8
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	b	send_vector
.L5:
	ldr	r3, [r7]
	ldr	r1, .L8+12
	ldr	r0, [r3]
	bl	dev_dbg
	b	.L1
.L9:
	.align	2
.L8:
	.word	EIO
	.word	.LC0
	.word	DSP_VC_WRITE_CONTROL_REG
	.word	.LC1
	.size	write_control_reg, .-write_control_reg
	.comm	EIO,4,4
	.comm	DSP_VC_WRITE_CONTROL_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
