	.file	"extr_af9005.c_af9005_read_register_bits.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"read bits %x %x %x"
.LC1:
	.string	" failed\n"
.LC2:
	.string	" value %x\n"
	.text
	.p2align 4
	.globl	af9005_read_register_bits
	.type	af9005_read_register_bits, @function
af9005_read_register_bits:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	rbx, ecx
	mov	ecx, ebx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	deb_reg@PLT
	mov	rdi, r12
	lea	rdx, 4[rsp]
	mov	esi, ebp
	call	af9005_read_ofdm_register@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR regmask[rip]
	mov	esi, DWORD PTR 4[rsp]
	mov	ecx, r14d
	lea	rdi, .LC2[rip]
	sar	esi, cl
	and	esi, DWORD PTR -4[rax+rbx*4]
	xor	eax, eax
	mov	DWORD PTR 0[r13], esi
	call	deb_reg@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L7:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	deb_reg@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	af9005_read_register_bits, .-af9005_read_register_bits
	.comm	regmask,8,8
	.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_af9005.c_af9005_read_register_bits.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"read bits %x %x %x\000"
	.align	2
.LC1:
	.ascii	" failed\012\000"
	.align	2
.LC2:
	.ascii	" value %x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	af9005_read_register_bits
	.syntax unified
	.arm
	.fpu softvfp
	.type	af9005_read_register_bits, %function
af9005_read_register_bits:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r1
	ldr	ip, .L9
	sub	sp, sp, #8
	ldr	r0, .L9+4
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	mov	r7, r2
	mov	r5, r3
	ldr	r8, [sp, #32]
	bl	deb_reg
	mov	r0, r4
	mov	r1, r6
	mov	r2, sp
	bl	af9005_read_ofdm_register
	subs	r4, r0, #0
	bne	.L7
	ldr	r2, .L9+8
	sub	r3, r5, #-1073741823
	ldr	r1, [r2]
	ldr	r2, [sp]
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, .L9+12
	and	r1, r1, r2, asr r7
	str	r1, [r8]
	bl	deb_reg
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, .L9+16
	bl	deb_reg
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC0
	.word	regmask
	.word	.LC2
	.word	.LC1
	.size	af9005_read_register_bits, .-af9005_read_register_bits
	.comm	regmask,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
