	.file	"extr_cx24120.c_cx24120_message_sendrcv.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Too many registers to read. cmd->reg = %d"
	.text
	.p2align 4
	.type	cx24120_message_sendrcv, @function
cx24120_message_sendrcv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	DWORD PTR CX24120_MAX_CMD_LEN[rip], edx
	jl	.L11
	mov	r14, rdi
	mov	rbp, rsi
	call	cx24120_message_send@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	lea	r13d, -1[r15]
	xor	ebx, ebx
	test	r15d, r15d
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, r14
	add	rsi, rbx
	lea	r15, [rax+rbx*4]
	add	rsi, 1
	call	cx24120_readreg@PLT
	mov	DWORD PTR [r15], eax
	mov	rax, rbx
	add	rbx, 1
	cmp	r13, rax
	jne	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, edx
	lea	rdi, .LC0[rip]
	call	err@PLT
	mov	r12d, DWORD PTR EREMOTEIO[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cx24120_message_sendrcv, .-cx24120_message_sendrcv
	.comm	EREMOTEIO,4,4
	.comm	CX24120_MAX_CMD_LEN,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_cx24120.c_cx24120_message_sendrcv.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Too many registers to read. cmd->reg = %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx24120_message_sendrcv, %function
cx24120_message_sendrcv:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r3]
	mov	r6, r2
	cmp	r3, r2
	blt	.L10
	mov	r7, r0
	mov	r5, r1
	bl	cx24120_message_send
	subs	r8, r0, #0
	bne	.L1
	cmp	r6, #0
	ble	.L1
	mov	r4, r8
.L4:
	ldr	r1, [r5]
	mov	r0, r7
	add	r1, r4, r1
	add	r1, r1, #1
	ldr	r9, [r5, #4]
	bl	cx24120_readreg
	str	r0, [r9, r4, lsl #2]
	add	r4, r4, #1
	cmp	r6, r4
	bne	.L4
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r1, r2
	ldr	r0, .L11+4
	bl	err
	ldr	r3, .L11+8
	ldr	r8, [r3]
	rsb	r8, r8, #0
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	CX24120_MAX_CMD_LEN
	.word	.LC0
	.word	EREMOTEIO
	.size	cx24120_message_sendrcv, .-cx24120_message_sendrcv
	.comm	EREMOTEIO,4,4
	.comm	CX24120_MAX_CMD_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
