	.file	"extr_dev.c_rtl8180_conf_erp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtl8180_conf_erp, @function
rtl8180_conf_erp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR RTL818X_CHIP_FAMILY_RTL8180[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L1
	cmp	QWORD PTR [rsi], 1
	sbb	ebx, ebx
	and	ebx, 22
	add	ebx, 28
	cmp	QWORD PTR [rsi], 1
	sbb	edx, edx
	and	edx, 22
	cmp	QWORD PTR [rsi], 1
	mov	esi, 4
	sbb	eax, eax
	and	eax, 11
	add	eax, 9
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR 12[rbp]
	lea	r13d, 38[rdx+rax]
	mov	edi, r13d
	call	DIV_ROUND_UP@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	rdi, rbp
	mov	r12d, eax
	mov	rax, QWORD PTR 16[rbp]
	lea	rsi, 20[rax]
	call	rtl818x_iowrite8@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	edx, 34
	mov	rdi, rbp
	lea	rsi, 16[rax]
	call	rtl818x_iowrite8@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	edx, ebx
	mov	rdi, rbp
	lea	rsi, 12[rax]
	call	rtl818x_iowrite8@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	edx, r12d
	mov	rdi, rbp
	lea	rsi, 8[rax]
	call	rtl818x_iowrite8@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR RTL818X_CHIP_FAMILY_RTL8187SE[rip]
	je	.L11
	cmp	rax, QWORD PTR RTL818X_CHIP_FAMILY_RTL8185[rip]
	je	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbp]
	mov	edx, r12d
	lea	rsi, 4[rax]
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	rtl818x_iowrite8@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, r13d
	mov	esi, 4
	sub	edi, ebx
	call	DIV_ROUND_UP@PLT
	mov	rsi, QWORD PTR 16[rbp]
	mov	edx, eax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	rtl8180_conf_erp, .-rtl8180_conf_erp
	.comm	RTL818X_CHIP_FAMILY_RTL8187SE,8,8
	.comm	RTL818X_CHIP_FAMILY_RTL8185,8,8
	.comm	RTL818X_CHIP_FAMILY_RTL8180,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_dev.c_rtl8180_conf_erp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8180_conf_erp, %function
rtl8180_conf_erp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L11
	ldr	r4, [r0]
	ldr	r3, [r3]
	ldr	r2, [r4]
	cmp	r2, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r1]
	ldr	r2, [r4, #8]
	cmp	r3, #0
	movne	r6, #38
	moveq	r6, #60
	movne	r3, #9
	moveq	r3, #20
	add	r6, r6, r2
	str	r3, [r4, #4]
	mov	r1, #4
	mov	r0, r6
	movne	r7, #28
	moveq	r7, #50
	bl	DIV_ROUND_UP
	mov	r5, r0
	ldr	r1, [r4, #12]
	ldr	r2, [r4, #4]
	add	r1, r1, #20
	mov	r0, r4
	bl	rtl818x_iowrite8
	ldr	r1, [r4, #12]
	mov	r2, #34
	add	r1, r1, #16
	mov	r0, r4
	bl	rtl818x_iowrite8
	ldr	r1, [r4, #12]
	mov	r2, r7
	add	r1, r1, #12
	mov	r0, r4
	bl	rtl818x_iowrite8
	ldr	r1, [r4, #12]
	mov	r2, r5
	mov	r0, r4
	add	r1, r1, #8
	bl	rtl818x_iowrite8
	ldr	r2, .L11+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L10
	ldr	r2, .L11+8
	ldr	r2, [r2]
	cmp	r3, r2
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r1, #4
	sub	r0, r6, r7
	bl	DIV_ROUND_UP
	ldr	r1, [r4, #12]
	mov	r2, r0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	rtl818x_iowrite8
.L10:
	ldr	r1, [r4, #12]
	mov	r2, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	add	r1, r1, #4
	b	rtl818x_iowrite8
.L12:
	.align	2
.L11:
	.word	RTL818X_CHIP_FAMILY_RTL8180
	.word	RTL818X_CHIP_FAMILY_RTL8187SE
	.word	RTL818X_CHIP_FAMILY_RTL8185
	.size	rtl8180_conf_erp, .-rtl8180_conf_erp
	.comm	RTL818X_CHIP_FAMILY_RTL8187SE,4,4
	.comm	RTL818X_CHIP_FAMILY_RTL8185,4,4
	.comm	RTL818X_CHIP_FAMILY_RTL8180,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
