	.file	"extr_if_vge.c_vge_setmedia.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unknown media type: %x\n"
	.text
	.p2align 4
	.type	vge_setmedia, @function
vge_setmedia:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 4[rdi]
	call	device_get_softc@PLT
	mov	rbx, QWORD PTR [rax]
	mov	edi, DWORD PTR [rbx]
	call	IFM_SUBTYPE@PLT
	cmp	eax, 130
	jg	.L2
	cmp	eax, 128
	jg	.L3
	jne	.L5
	mov	edx, DWORD PTR VGE_DIAGCTL_MACFORCE[rip]
	mov	esi, DWORD PTR VGE_DIAGCTL[rip]
	mov	rdi, rbp
	call	CSR_CLRBIT_1@PLT
.L9:
	mov	edx, DWORD PTR VGE_DIAGCTL_FDXFORCE[rip]
	mov	esi, DWORD PTR VGE_DIAGCTL[rip]
	mov	rdi, rbp
.L10:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	CSR_CLRBIT_1@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	eax, 131
	jne	.L5
	mov	edx, DWORD PTR VGE_DIAGCTL_MACFORCE[rip]
	mov	esi, DWORD PTR VGE_DIAGCTL[rip]
	mov	rdi, rbp
	call	CSR_SETBIT_1@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR VGE_DIAGCTL_MACFORCE[rip]
	mov	esi, DWORD PTR VGE_DIAGCTL[rip]
	mov	rdi, rbp
	call	CSR_SETBIT_1@PLT
	mov	eax, DWORD PTR [rbx]
	and	eax, DWORD PTR IFM_GMASK[rip]
	mov	rdi, rbp
	cmp	eax, DWORD PTR IFM_FDX[rip]
	mov	edx, DWORD PTR VGE_DIAGCTL_FDXFORCE[rip]
	mov	esi, DWORD PTR VGE_DIAGCTL[rip]
	jne	.L10
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	CSR_SETBIT_1@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	IFM_SUBTYPE@PLT
	mov	edi, DWORD PTR 0[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	edx, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	device_printf@PLT
	.cfi_endproc
.LFE0:
	.size	vge_setmedia, .-vge_setmedia
	.comm	VGE_DIAGCTL_MACFORCE,4,4
	.comm	VGE_DIAGCTL_FDXFORCE,4,4
	.comm	VGE_DIAGCTL,4,4
	.comm	IFM_GMASK,4,4
	.comm	IFM_FDX,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_vge.c_vge_setmedia.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unknown media type: %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vge_setmedia, %function
vge_setmedia:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	bl	device_get_softc
	ldr	r5, [r0]
	ldr	r0, [r5]
	bl	IFM_SUBTYPE
	cmp	r0, #130
	bgt	.L2
	cmp	r0, #128
	bgt	.L3
	bne	.L5
	ldr	r3, .L12
	ldr	r5, .L12+4
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, [r5]
	bl	CSR_CLRBIT_1
.L9:
	mov	r0, r4
	ldr	r3, .L12+8
	ldr	r1, [r5]
	ldr	r2, [r3]
.L10:
	pop	{r4, r5, r6, lr}
	b	CSR_CLRBIT_1
.L2:
	cmp	r0, #131
	bne	.L5
	ldr	r3, .L12
	ldr	r5, .L12+4
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, [r5]
	bl	CSR_SETBIT_1
	b	.L9
.L3:
	ldr	r3, .L12
	ldr	r6, .L12+4
	ldr	r2, [r3]
	ldr	r1, [r6]
	mov	r0, r4
	bl	CSR_SETBIT_1
	ldr	r1, .L12+12
	ldr	r2, .L12+16
	ldr	r1, [r1]
	ldr	r3, [r5]
	ldr	r2, [r2]
	and	r3, r3, r1
	cmp	r3, r2
	ldr	r3, .L12+8
	mov	r0, r4
	ldr	r1, [r6]
	ldr	r2, [r3]
	bne	.L10
	pop	{r4, r5, r6, lr}
	b	CSR_SETBIT_1
.L5:
	ldr	r0, [r5]
	ldr	r4, [r4]
	bl	IFM_SUBTYPE
	ldr	r1, .L12+20
	mov	r2, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	device_printf
.L13:
	.align	2
.L12:
	.word	VGE_DIAGCTL_MACFORCE
	.word	VGE_DIAGCTL
	.word	VGE_DIAGCTL_FDXFORCE
	.word	IFM_GMASK
	.word	IFM_FDX
	.word	.LC0
	.size	vge_setmedia, .-vge_setmedia
	.comm	VGE_DIAGCTL_MACFORCE,4,4
	.comm	VGE_DIAGCTL_FDXFORCE,4,4
	.comm	VGE_DIAGCTL,4,4
	.comm	IFM_GMASK,4,4
	.comm	IFM_FDX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
