	.file	"extr_if_run.c_run_rt3070_rf_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	run_rt3070_rf_read, @function
run_rt3070_rf_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, 100
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, DWORD PTR RT3070_RF_KICK[rip]
	test	DWORD PTR 4[rsp], edx
	je	.L3
	sub	ebx, 1
	je	.L12
.L4:
	mov	esi, DWORD PTR RT3070_RF_CSR_CFG[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	run_read@PLT
	test	eax, eax
	je	.L15
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR RT3070_RF_CSR_CFG[rip]
	sal	r13d, 8
	mov	rdi, rbp
	mov	ebx, 100
	or	edx, r13d
	mov	DWORD PTR 4[rsp], edx
	call	run_write@PLT
	test	eax, eax
	je	.L7
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, DWORD PTR 4[rsp]
	mov	eax, edx
	and	eax, DWORD PTR RT3070_RF_KICK[rip]
	je	.L6
	sub	ebx, 1
	je	.L12
.L7:
	mov	esi, DWORD PTR RT3070_RF_CSR_CFG[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	run_read@PLT
	test	eax, eax
	je	.L17
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	jmp	.L1
.L6:
	and	edx, 255
	mov	DWORD PTR [r14], edx
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	run_rt3070_rf_read, .-run_rt3070_rf_read
	.comm	RT3070_RF_KICK,4,4
	.comm	RT3070_RF_CSR_CFG,4,4
	.comm	ETIMEDOUT,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_if_run.c_run_rt3070_rf_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	run_rt3070_rf_read, %function
run_rt3070_rf_read:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L18
	sub	sp, sp, #12
	mov	r4, r0
	mov	r9, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r8, #100
	ldr	r5, .L18+4
	ldr	r6, .L18+8
	b	.L4
.L15:
	ldr	r2, [r6]
	ldr	r3, [sp]
	tst	r2, r3
	beq	.L3
	subs	r8, r8, #1
	beq	.L12
.L4:
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r5]
	bl	run_read
	cmp	r0, #0
	beq	.L15
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L3:
	orr	r2, r2, r9, lsl #8
	mov	r0, r4
	ldr	r1, [r5]
	str	r2, [sp]
	bl	run_write
	cmp	r0, #0
	moveq	r8, #100
	beq	.L7
	b	.L1
.L17:
	ldr	r3, [sp]
	ldr	r0, [r6]
	ands	r0, r3, r0
	beq	.L6
	subs	r8, r8, #1
	beq	.L12
.L7:
	mov	r2, sp
	mov	r0, r4
	ldr	r1, [r5]
	bl	run_read
	cmp	r0, #0
	beq	.L17
	b	.L1
.L12:
	ldr	r3, .L18+12
	ldr	r0, [r3]
	b	.L1
.L6:
	and	r3, r3, #255
	str	r3, [r7]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	RT3070_RF_CSR_CFG
	.word	RT3070_RF_KICK
	.word	ETIMEDOUT
	.size	run_rt3070_rf_read, .-run_rt3070_rf_read
	.comm	RT3070_RF_KICK,4,4
	.comm	RT3070_RF_CSR_CFG,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
