	.file	"extr_arswitch.c_arswitch_update_ifmedia.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arswitch_update_ifmedia, @function
arswitch_update_ifmedia:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR IFM_ETHER[rip]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR IFM_AVALID[rip]
	mov	DWORD PTR [rsi], eax
	test	DWORD PTR AR8X16_PORT_STS_LINK_UP[rip], edi
	je	.L2
	or	eax, DWORD PTR IFM_ACTIVE[rip]
	mov	DWORD PTR [rsi], eax
	mov	eax, DWORD PTR AR8X16_PORT_STS_SPEED_MASK[rip]
	and	eax, edi
	cmp	eax, 129
	je	.L3
	cmp	eax, 130
	je	.L4
	cmp	eax, 128
	mov	eax, DWORD PTR [rdx]
	je	.L5
	test	DWORD PTR AR8X16_PORT_STS_DUPLEX[rip], edi
	je	.L18
.L8:
	or	eax, DWORD PTR IFM_HDX[rip]
.L9:
	mov	DWORD PTR [rdx], eax
	test	DWORD PTR AR8X16_PORT_STS_TXFLOW[rip], edi
	je	.L10
	or	eax, DWORD PTR IFM_ETH_TXPAUSE[rip]
	mov	DWORD PTR [rdx], eax
.L10:
	test	DWORD PTR AR8X16_PORT_STS_RXFLOW[rip], edi
	je	.L1
	mov	eax, DWORD PTR IFM_ETH_RXPAUSE[rip]
	or	DWORD PTR [rdx], eax
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	or	eax, DWORD PTR IFM_FDX[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR IFM_NONE[rip]
	or	DWORD PTR [rdx], eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	or	eax, DWORD PTR IFM_1000_T[rip]
	mov	DWORD PTR [rdx], eax
	test	DWORD PTR AR8X16_PORT_STS_DUPLEX[rip], edi
	jne	.L8
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR [rdx]
	or	eax, DWORD PTR IFM_10_T[rip]
	mov	DWORD PTR [rdx], eax
	test	DWORD PTR AR8X16_PORT_STS_DUPLEX[rip], edi
	jne	.L8
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [rdx]
	or	eax, DWORD PTR IFM_100_TX[rip]
	mov	DWORD PTR [rdx], eax
	test	DWORD PTR AR8X16_PORT_STS_DUPLEX[rip], edi
	jne	.L8
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	arswitch_update_ifmedia, .-arswitch_update_ifmedia
	.comm	IFM_NONE,4,4
	.comm	IFM_HDX,4,4
	.comm	IFM_FDX,4,4
	.comm	IFM_ETH_TXPAUSE,4,4
	.comm	IFM_ETH_RXPAUSE,4,4
	.comm	IFM_ETHER,4,4
	.comm	IFM_AVALID,4,4
	.comm	IFM_ACTIVE,4,4
	.comm	IFM_10_T,4,4
	.comm	IFM_100_TX,4,4
	.comm	IFM_1000_T,4,4
	.comm	AR8X16_PORT_STS_TXFLOW,4,4
	.comm	AR8X16_PORT_STS_SPEED_MASK,4,4
	.comm	AR8X16_PORT_STS_RXFLOW,4,4
	.comm	AR8X16_PORT_STS_LINK_UP,4,4
	.comm	AR8X16_PORT_STS_DUPLEX,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_arswitch.c_arswitch_update_ifmedia.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arswitch_update_ifmedia, %function
arswitch_update_ifmedia:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L19
	str	lr, [sp, #-4]!
	ldr	lr, [ip]
	ldr	r3, .L19+4
	str	lr, [r2]
	ldr	r3, [r3]
	ldr	ip, .L19+8
	str	r3, [r1]
	ldr	ip, [ip]
	tst	r0, ip
	beq	.L2
	ldr	ip, .L19+12
	ldr	lr, .L19+16
	ldr	ip, [ip]
	orr	r3, ip, r3
	str	r3, [r1]
	ldr	r3, [lr]
	and	r3, r3, r0
	cmp	r3, #129
	beq	.L3
	cmp	r3, #130
	beq	.L4
	cmp	r3, #128
	beq	.L5
	ldr	r3, [r2]
.L6:
	ldr	r1, .L19+20
	ldr	r1, [r1]
	tst	r0, r1
	ldreq	r1, .L19+24
	ldrne	r1, .L19+28
	ldr	r1, [r1]
	orr	r3, r3, r1
	ldr	r1, .L19+32
	str	r3, [r2]
	ldr	r1, [r1]
	tst	r0, r1
	ldrne	r1, .L19+36
	ldrne	r1, [r1]
	orrne	r3, r1, r3
	strne	r3, [r2]
	ldr	r3, .L19+40
	ldr	r3, [r3]
	tst	r0, r3
	ldrne	r1, .L19+44
	ldrne	r3, [r2]
	ldrne	r1, [r1]
	orrne	r3, r3, r1
	strne	r3, [r2]
	ldr	pc, [sp], #4
.L2:
	ldr	r1, .L19+48
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
	ldr	pc, [sp], #4
.L5:
	ldr	r1, .L19+52
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
	b	.L6
.L4:
	ldr	r1, .L19+56
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
	b	.L6
.L3:
	ldr	r1, .L19+60
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	str	r3, [r2]
	b	.L6
.L20:
	.align	2
.L19:
	.word	IFM_ETHER
	.word	IFM_AVALID
	.word	AR8X16_PORT_STS_LINK_UP
	.word	IFM_ACTIVE
	.word	AR8X16_PORT_STS_SPEED_MASK
	.word	AR8X16_PORT_STS_DUPLEX
	.word	IFM_FDX
	.word	IFM_HDX
	.word	AR8X16_PORT_STS_TXFLOW
	.word	IFM_ETH_TXPAUSE
	.word	AR8X16_PORT_STS_RXFLOW
	.word	IFM_ETH_RXPAUSE
	.word	IFM_NONE
	.word	IFM_1000_T
	.word	IFM_10_T
	.word	IFM_100_TX
	.size	arswitch_update_ifmedia, .-arswitch_update_ifmedia
	.comm	IFM_NONE,4,4
	.comm	IFM_HDX,4,4
	.comm	IFM_FDX,4,4
	.comm	IFM_ETH_TXPAUSE,4,4
	.comm	IFM_ETH_RXPAUSE,4,4
	.comm	IFM_ETHER,4,4
	.comm	IFM_AVALID,4,4
	.comm	IFM_ACTIVE,4,4
	.comm	IFM_10_T,4,4
	.comm	IFM_100_TX,4,4
	.comm	IFM_1000_T,4,4
	.comm	AR8X16_PORT_STS_TXFLOW,4,4
	.comm	AR8X16_PORT_STS_SPEED_MASK,4,4
	.comm	AR8X16_PORT_STS_RXFLOW,4,4
	.comm	AR8X16_PORT_STS_LINK_UP,4,4
	.comm	AR8X16_PORT_STS_DUPLEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
