	.file	"extr_rtl8225.c_rtl8180_detect_rf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rtl8180_detect_rf
	.type	rtl8180_detect_rf, @function
rtl8180_detect_rf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 1152
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	lea	rsi, 12[rax]
	call	rtl818x_iowrite16@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	edx, 1160
	lea	rsi, 8[rax]
	call	rtl818x_iowrite16@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, 8191
	mov	rdi, rbp
	lea	rsi, 4[rax]
	call	rtl818x_iowrite16@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	rdi, rbp
	call	rtl818x_ioread8@PLT
	mov	edi, 100
	call	msleep@PLT
	mov	edx, 439
	xor	esi, esi
	mov	rdi, r12
	call	rtl8225_write@PLT
	mov	esi, 8
	mov	rdi, r12
	call	rtl8225_read@PLT
	mov	esi, 9
	mov	rdi, r12
	mov	ebp, eax
	call	rtl8225_read@PLT
	xor	esi, esi
	mov	edx, 183
	mov	rdi, r12
	mov	ebx, eax
	call	rtl8225_write@PLT
	cmp	ebp, 1416
	jne	.L5
	lea	rax, rtl8225z2_ops[rip]
	cmp	ebx, 1792
	jne	.L5
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	lea	rax, rtl8225_ops[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rtl8180_detect_rf, .-rtl8180_detect_rf
	.comm	rtl8225z2_ops,4,4
	.comm	rtl8225_ops,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_rtl8225.c_rtl8180_detect_rf.c"
	.text
	.align	2
	.global	rtl8180_detect_rf
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8180_detect_rf, %function
rtl8180_detect_rf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r4, [r0]
	mov	r2, #1152
	ldr	r1, [r4]
	mov	r0, r4
	add	r1, r1, #12
	bl	rtl818x_iowrite16
	ldr	r1, [r4]
	mov	r0, r4
	ldr	r2, .L6
	add	r1, r1, #8
	bl	rtl818x_iowrite16
	ldr	r1, [r4]
	ldr	r2, .L6+4
	mov	r0, r4
	add	r1, r1, #4
	bl	rtl818x_iowrite16
	ldr	r1, [r4]
	mov	r0, r4
	bl	rtl818x_ioread8
	mov	r0, #100
	bl	msleep
	ldr	r2, .L6+8
	mov	r0, r5
	mov	r1, #0
	bl	rtl8225_write
	mov	r0, r5
	mov	r1, #8
	bl	rtl8225_read
	mov	r1, #9
	mov	r6, r0
	mov	r0, r5
	bl	rtl8225_read
	mov	r4, r0
	mov	r2, #183
	mov	r0, r5
	mov	r1, #0
	bl	rtl8225_write
	ldr	r3, .L6+12
	ldr	r0, .L6+16
	cmp	r4, #1792
	cmpeq	r6, r3
	ldr	r3, .L6+20
	movne	r0, r3
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	1160
	.word	8191
	.word	439
	.word	1416
	.word	rtl8225z2_ops
	.word	rtl8225_ops
	.size	rtl8180_detect_rf, .-rtl8180_detect_rf
	.comm	rtl8225z2_ops,4,4
	.comm	rtl8225_ops,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
