	.file	"extr_rtl8xxxu_core.c_rtl8xxxu_init_rf_regs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to initialize RF\n"
	.text
	.p2align 4
	.type	rtl8xxxu_init_rf_regs, @function
rtl8xxxu_init_rf_regs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR [rsi]
	mov	ecx, DWORD PTR 4[rsi]
	cmp	edx, 255
	jne	.L16
	cmp	ecx, -1
	je	.L2
.L16:
	lea	rbx, 8[rsi]
	lea	rbp, .L6[rip]
	.p2align 4,,10
	.p2align 3
.L21:
	lea	eax, -249[rdx]
	cmp	eax, 5
	ja	.L4
	movsx	rax, DWORD PTR 0[rbp+rax*4]
	add	rax, rbp
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L13-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L4:
	mov	esi, r13d
	mov	rdi, r12
	call	rtl8xxxu_write_rfreg@PLT
	test	eax, eax
	jne	.L27
.L13:
	mov	edi, 1
	call	udelay@PLT
.L12:
	mov	edx, DWORD PTR [rbx]
	mov	ecx, DWORD PTR 4[rbx]
	add	rbx, 8
	cmp	edx, 255
	jne	.L21
	cmp	ecx, -1
	jne	.L21
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L5:
	.cfi_restore_state
	mov	edi, 50
	call	msleep@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, 5
	call	mdelay@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, 1
	call	mdelay@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, 50
	call	udelay@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, 5
	call	udelay@PLT
	jmp	.L12
.L27:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	eax, DWORD PTR EAGAIN[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rtl8xxxu_init_rf_regs, .-rtl8xxxu_init_rf_regs
	.comm	EAGAIN,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_rtl8xxxu_core.c_rtl8xxxu_init_rf_regs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to initialize RF\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8xxxu_init_rf_regs, %function
rtl8xxxu_init_rf_regs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r1, [r1]
	ldr	r3, [r4, #4]
	cmp	r1, #255
	cmneq	r3, #1
	beq	.L2
	mov	r6, r0
	mov	r5, r2
.L14:
	sub	ip, r1, #249
	cmp	ip, #5
	ldrls	pc, [pc, ip, asl #2]
	b	.L3
.L5:
	.word	.L12
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L4:
	mov	r0, #50
	bl	msleep
.L11:
	ldr	r1, [r4, #8]
	ldr	r3, [r4, #12]
	add	r4, r4, #8
	cmp	r1, #255
	cmneq	r3, #1
	bne	.L14
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, #5
	bl	mdelay
	b	.L11
.L7:
	mov	r0, #1
	bl	mdelay
	b	.L11
.L8:
	mov	r0, #50
	bl	udelay
	b	.L11
.L9:
	mov	r0, #5
	bl	udelay
	b	.L11
.L3:
	mov	r2, r1
	mov	r0, r6
	mov	r1, r5
	bl	rtl8xxxu_write_rfreg
	cmp	r0, #0
	bne	.L19
.L12:
	mov	r0, #1
	bl	udelay
	b	.L11
.L19:
	ldr	r0, [r6]
	ldr	r1, .L20
	bl	dev_warn
	ldr	r3, .L20+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	EAGAIN
	.size	rtl8xxxu_init_rf_regs, .-rtl8xxxu_init_rf_regs
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
