	.file	"extr_if_rue.c_rue_miibus_writereg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" bad phy register\n"
	.text
	.p2align 4
	.type	rue_miibus_writereg, @function
rue_miibus_writereg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	device_get_softc@PLT
	test	ebx, ebx
	je	.L21
.L18:
	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
.L21:
	.cfi_restore_state
	lea	rdi, 4[rax]
	mov	r12, rax
	call	mtx_owned@PLT
	mov	ebx, eax
	test	eax, eax
	je	.L22
	lea	eax, -128[rbp]
	cmp	eax, 6
	ja	.L5
	lea	rdx, .L17[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L17:
	.long	.L18-.L17
	.long	.L18-.L17
	.long	.L11-.L17
	.long	.L10-.L17
	.long	.L9-.L17
	.long	.L8-.L17
	.long	.L6-.L17
	.text
.L8:
	mov	esi, DWORD PTR RUE_AER[rip]
.L13:
	mov	edx, r13d
	mov	rdi, r12
	call	rue_csr_write_2@PLT
.L15:
	test	ebx, ebx
	jne	.L18
.L12:
	mov	rdi, r12
	call	RUE_UNLOCK@PLT
	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
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR RUE_ANLP[rip]
	jmp	.L13
.L10:
	mov	esi, DWORD PTR RUE_BMCR[rip]
	jmp	.L13
.L11:
	mov	esi, DWORD PTR RUE_BMSR[rip]
	jmp	.L13
.L6:
	mov	esi, DWORD PTR RUE_ANAR[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r12
	call	RUE_LOCK@PLT
	lea	eax, -128[rbp]
	cmp	eax, 6
	ja	.L5
	lea	rdx, .L7[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L12-.L7
	.long	.L12-.L7
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
.L5:
	cmp	DWORD PTR RUE_REG_MIN[rip], ebp
	jg	.L14
	cmp	DWORD PTR RUE_REG_MAX[rip], ebp
	jge	.L23
.L14:
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edx, r13d
	mov	esi, ebp
	mov	rdi, r12
	call	rue_csr_write_1@PLT
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	rue_miibus_writereg, .-rue_miibus_writereg
	.comm	RUE_REG_MIN,4,4
	.comm	RUE_REG_MAX,4,4
	.comm	RUE_BMSR,4,4
	.comm	RUE_BMCR,4,4
	.comm	RUE_ANLP,4,4
	.comm	RUE_ANAR,4,4
	.comm	RUE_AER,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_rue.c_rue_miibus_writereg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" bad phy register\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rue_miibus_writereg, %function
rue_miibus_writereg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r4, r2
	mov	r7, r3
	bl	device_get_softc
	cmp	r6, #0
	beq	.L21
.L18:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r5, r0
	add	r0, r0, #4
	bl	mtx_owned
	subs	r6, r0, #0
	beq	.L22
	sub	r2, r4, #128
	cmp	r2, #6
	ldrls	pc, [pc, r2, asl #2]
	b	.L5
.L17:
	.word	.L18
	.word	.L18
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L6:
	ldr	r3, .L24
	ldr	r1, [r3]
.L13:
	mov	r2, r7
	mov	r0, r5
	bl	rue_csr_write_2
.L15:
	cmp	r6, #0
	bne	.L18
.L12:
	mov	r0, r5
	bl	RUE_UNLOCK
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L24+4
	ldr	r1, [r3]
	b	.L13
.L9:
	ldr	r3, .L24+8
	ldr	r1, [r3]
	b	.L13
.L10:
	ldr	r3, .L24+12
	ldr	r1, [r3]
	b	.L13
.L11:
	ldr	r3, .L24+16
	ldr	r1, [r3]
	b	.L13
.L22:
	mov	r0, r5
	bl	RUE_LOCK
	sub	r3, r4, #128
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L12
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L5:
	ldr	r3, .L24+20
	ldr	r3, [r3]
	cmp	r3, r4
	bgt	.L14
	ldr	r3, .L24+24
	ldr	r3, [r3]
	cmp	r3, r4
	bge	.L23
.L14:
	ldr	r1, .L24+28
	ldr	r0, [r5]
	bl	device_printf
	b	.L15
.L23:
	mov	r2, r7
	mov	r1, r4
	mov	r0, r5
	bl	rue_csr_write_1
	b	.L15
.L25:
	.align	2
.L24:
	.word	RUE_ANAR
	.word	RUE_AER
	.word	RUE_ANLP
	.word	RUE_BMCR
	.word	RUE_BMSR
	.word	RUE_REG_MIN
	.word	RUE_REG_MAX
	.word	.LC0
	.size	rue_miibus_writereg, .-rue_miibus_writereg
	.comm	RUE_REG_MIN,4,4
	.comm	RUE_REG_MAX,4,4
	.comm	RUE_BMSR,4,4
	.comm	RUE_BMCR,4,4
	.comm	RUE_ANLP,4,4
	.comm	RUE_ANAR,4,4
	.comm	RUE_AER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
