	.file	"extr_82571.c_e1000_led_on_82574.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	e1000_led_on_82574, @function
e1000_led_on_82574:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	ebp, DWORD PTR [rdi]
	mov	edi, DWORD PTR STATUS[rip]
	call	er32@PLT
	test	DWORD PTR E1000_STATUS_LU[rip], eax
	jne	.L2
	mov	r8d, DWORD PTR [rbx]
	mov	edi, DWORD PTR E1000_LEDCTL_MODE_LED_ON[rip]
	xor	ecx, ecx
	mov	esi, DWORD PTR E1000_LEDCTL_LED0_IVRT[rip]
.L4:
	mov	edx, r8d
	mov	eax, esi
	sar	edx, cl
	sal	eax, cl
	movzx	edx, dl
	or	eax, ebp
	cmp	edx, edi
	cmove	ebp, eax
	add	ecx, 8
	cmp	ecx, 32
	jne	.L4
.L2:
	mov	edi, DWORD PTR LEDCTL[rip]
	mov	esi, ebp
	call	ew32@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	e1000_led_on_82574, .-e1000_led_on_82574
	.comm	STATUS,4,4
	.comm	LEDCTL,4,4
	.comm	E1000_STATUS_LU,4,4
	.comm	E1000_LEDCTL_MODE_LED_ON,4,4
	.comm	E1000_LEDCTL_LED0_IVRT,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_82571.c_e1000_led_on_82574.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_led_on_82574, %function
e1000_led_on_82574:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	mov	r4, r0
	ldr	r0, [r3]
	bl	er32
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ands	r3, r0, r3
	bne	.L2
	ldr	r1, .L8+8
	ldr	r2, .L8+12
	ldr	r0, [r4]
	ldr	r1, [r1]
	ldr	ip, [r2]
.L4:
	asr	r2, r0, r3
	and	r2, r2, #255
	cmp	r2, r1
	orreq	r5, r5, ip, lsl r3
	add	r3, r3, #8
	cmp	r3, #32
	bne	.L4
.L2:
	ldr	r3, .L8+16
	mov	r1, r5
	ldr	r0, [r3]
	bl	ew32
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	STATUS
	.word	E1000_STATUS_LU
	.word	E1000_LEDCTL_MODE_LED_ON
	.word	E1000_LEDCTL_LED0_IVRT
	.word	LEDCTL
	.size	e1000_led_on_82574, .-e1000_led_on_82574
	.comm	STATUS,4,4
	.comm	LEDCTL,4,4
	.comm	E1000_STATUS_LU,4,4
	.comm	E1000_LEDCTL_MODE_LED_ON,4,4
	.comm	E1000_LEDCTL_LED0_IVRT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
