	.file	"extr_radio-si470x-usb.c_si470x_get_all_registers.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	si470x_get_all_registers, @function
si470x_get_all_registers:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, DWORD PTR ENTIRE_REPORT[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rsi, QWORD PTR [rdi]
	mov	DWORD PTR [rsi], eax
	mov	edx, DWORD PTR ENTIRE_REPORT_SIZE[rip]
	call	si470x_get_report@PLT
	test	eax, eax
	js	.L2
	cmp	BYTE PTR RADIO_REGISTER_NUM[rip], 0
	je	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rbp]
	movzx	edx, bl
	lea	r12, [rax+rdx*4]
	movzx	eax, BYTE PTR RADIO_REGISTER_SIZE[rip]
	movzx	edx, bl
	add	ebx, 1
	imul	eax, edx
	mov	rdx, QWORD PTR 0[rbp]
	cdqe
	lea	rdi, 4[rdx+rax*4]
	call	get_unaligned_be16@PLT
	mov	DWORD PTR [r12], eax
	cmp	BYTE PTR RADIO_REGISTER_NUM[rip], bl
	ja	.L4
.L3:
	pop	rbx
	.cfi_remember_state
	.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
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	si470x_get_all_registers, .-si470x_get_all_registers
	.comm	RADIO_REGISTER_SIZE,1,1
	.comm	RADIO_REGISTER_NUM,1,1
	.comm	ENTIRE_REPORT_SIZE,4,4
	.comm	ENTIRE_REPORT,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_radio-si470x-usb.c_si470x_get_all_registers.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	si470x_get_all_registers, %function
si470x_get_all_registers:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r1, [r0]
	ldr	r2, [r3]
	ldr	r3, .L12+4
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	str	r2, [r1]
	ldr	r2, [r3]
	mov	r6, r0
	bl	si470x_get_report
	cmp	r0, #0
	blt	.L2
	ldr	r7, .L12+8
	ldrb	r3, [r7]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L3
	mov	r5, #0
	mov	r4, r5
	ldr	r8, .L12+12
.L4:
	ldrb	r3, [r8]	@ zero_extendqisi2
	ldr	r0, [r6]
	mul	r3, r4, r3
	add	r3, r3, #1
	add	r0, r0, r3, lsl #2
	ldr	r9, [r6, #4]
	bl	get_unaligned_be16
	str	r0, [r9, r4, lsl #2]
	ldrb	r3, [r7]	@ zero_extendqisi2
	add	r5, r5, #1
	and	r4, r5, #255
	cmp	r3, r4
	bhi	.L4
.L3:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L12+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	ENTIRE_REPORT
	.word	ENTIRE_REPORT_SIZE
	.word	RADIO_REGISTER_NUM
	.word	RADIO_REGISTER_SIZE
	.word	EINVAL
	.size	si470x_get_all_registers, .-si470x_get_all_registers
	.comm	RADIO_REGISTER_SIZE,1,1
	.comm	RADIO_REGISTER_NUM,1,1
	.comm	ENTIRE_REPORT_SIZE,4,4
	.comm	ENTIRE_REPORT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
