	.file	"extr_e1000_hw.c_e1000_setup_led.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	e1000_setup_led
	.type	e1000_setup_led, @function
e1000_setup_led:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	cmp	eax, 133
	jg	.L2
	cmp	eax, 129
	jg	.L3
	add	eax, -128
	cmp	eax, 1
	ja	.L4
.L5:
	mov	esi, DWORD PTR IGP01E1000_GMII_FIFO[rip]
	lea	rdx, 4[rbx]
	mov	rdi, rbx
	call	e1000_read_phy_reg@PLT
	test	eax, eax
	je	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	sub	eax, 134
	cmp	eax, 1
	jbe	.L5
.L4:
	mov	eax, DWORD PTR 16[rbx]
	cmp	eax, DWORD PTR e1000_media_type_fiber[rip]
	je	.L12
	cmp	eax, DWORD PTR e1000_media_type_copper[rip]
	je	.L13
.L3:
	mov	eax, DWORD PTR E1000_SUCCESS[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, DWORD PTR IGP01E1000_GMII_SPD[rip]
	mov	esi, DWORD PTR IGP01E1000_GMII_FIFO[rip]
	mov	rdi, rbx
	not	edx
	and	edx, DWORD PTR 4[rbx]
	call	e1000_write_phy_reg@PLT
	test	eax, eax
	je	.L4
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR LEDCTL[rip]
	call	er32@PLT
	mov	esi, DWORD PTR E1000_LEDCTL_LED0_IVRT[rip]
	or	esi, DWORD PTR E1000_LEDCTL_LED0_BLINK[rip]
	or	esi, DWORD PTR E1000_LEDCTL_LED0_MODE_MASK[rip]
	mov	ecx, DWORD PTR E1000_LEDCTL_LED0_MODE_SHIFT[rip]
	mov	DWORD PTR 8[rbx], eax
	not	esi
	mov	edi, DWORD PTR LEDCTL[rip]
	and	esi, eax
	mov	eax, DWORD PTR E1000_LEDCTL_MODE_LED_OFF[rip]
	sal	eax, cl
	or	esi, eax
	call	ew32@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR LEDCTL[rip]
	call	ew32@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	e1000_setup_led, .-e1000_setup_led
	.comm	e1000_media_type_fiber,4,4
	.comm	e1000_media_type_copper,4,4
	.comm	LEDCTL,4,4
	.comm	IGP01E1000_GMII_SPD,4,4
	.comm	IGP01E1000_GMII_FIFO,4,4
	.comm	E1000_SUCCESS,4,4
	.comm	E1000_LEDCTL_MODE_LED_OFF,4,4
	.comm	E1000_LEDCTL_LED0_MODE_SHIFT,4,4
	.comm	E1000_LEDCTL_LED0_MODE_MASK,4,4
	.comm	E1000_LEDCTL_LED0_IVRT,4,4
	.comm	E1000_LEDCTL_LED0_BLINK,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_e1000_hw.c_e1000_setup_led.c"
	.text
	.align	2
	.global	e1000_setup_led
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_setup_led, %function
e1000_setup_led:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #133
	mov	r4, r0
	bgt	.L2
	cmp	r3, #129
	bgt	.L3
	sub	r3, r3, #128
	cmp	r3, #1
	bhi	.L4
.L5:
	ldr	r5, .L12
	mov	r0, r4
	ldr	r1, [r5]
	add	r2, r4, #4
	bl	e1000_read_phy_reg
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r2, .L12+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	mov	r0, r4
	ldr	r1, [r5]
	bic	r2, r3, r2
	bl	e1000_write_phy_reg
	cmp	r0, #0
	beq	.L4
	pop	{r4, r5, r6, pc}
.L2:
	sub	r3, r3, #134
	cmp	r3, #1
	bls	.L5
.L4:
	ldr	r2, .L12+8
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L10
	ldr	r2, .L12+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L11
.L3:
	ldr	r3, .L12+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r5, .L12+20
	ldr	r0, [r5]
	bl	er32
	ldr	r3, .L12+24
	ldr	r2, .L12+28
	ldr	r1, .L12+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	ip, .L12+36
	orr	r3, r3, r2
	ldr	r2, .L12+40
	orr	r3, r3, r1
	ldr	r2, [r2]
	ldr	r1, [ip]
	bic	r3, r0, r3
	str	r0, [r4, #8]
	orr	r1, r3, r1, lsl r2
	ldr	r0, [r5]
	bl	ew32
	b	.L3
.L11:
	ldr	r3, .L12+20
	ldr	r1, [r4, #12]
	ldr	r0, [r3]
	bl	ew32
	b	.L3
.L13:
	.align	2
.L12:
	.word	IGP01E1000_GMII_FIFO
	.word	IGP01E1000_GMII_SPD
	.word	e1000_media_type_fiber
	.word	e1000_media_type_copper
	.word	E1000_SUCCESS
	.word	LEDCTL
	.word	E1000_LEDCTL_LED0_IVRT
	.word	E1000_LEDCTL_LED0_BLINK
	.word	E1000_LEDCTL_LED0_MODE_MASK
	.word	E1000_LEDCTL_MODE_LED_OFF
	.word	E1000_LEDCTL_LED0_MODE_SHIFT
	.size	e1000_setup_led, .-e1000_setup_led
	.comm	e1000_media_type_fiber,4,4
	.comm	e1000_media_type_copper,4,4
	.comm	LEDCTL,4,4
	.comm	IGP01E1000_GMII_SPD,4,4
	.comm	IGP01E1000_GMII_FIFO,4,4
	.comm	E1000_SUCCESS,4,4
	.comm	E1000_LEDCTL_MODE_LED_OFF,4,4
	.comm	E1000_LEDCTL_LED0_MODE_SHIFT,4,4
	.comm	E1000_LEDCTL_LED0_MODE_MASK,4,4
	.comm	E1000_LEDCTL_LED0_IVRT,4,4
	.comm	E1000_LEDCTL_LED0_BLINK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
