	.file	"extr_e1000_hw.c_e1000_read_mac_addr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EEPROM Read Error\n"
	.text
	.p2align 4
	.globl	e1000_read_mac_addr
	.type	e1000_read_mac_addr, @function
e1000_read_mac_addr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR NODE_ADDRESS_SIZE[rip]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	lea	rbp, 4[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, QWORD PTR [r12]
	movzx	eax, BYTE PTR 4[rsp]
	mov	DWORD PTR [rdx+rbx*8], eax
	mov	eax, DWORD PTR 4[rsp]
	sar	eax, 8
	mov	DWORD PTR 4[rdx+rbx*8], eax
	add	rbx, 1
	mov	eax, DWORD PTR NODE_ADDRESS_SIZE[rip]
	lea	edx, [rbx+rbx]
	cmp	eax, edx
	jle	.L18
.L5:
	lea	esi, [rbx+rbx]
	mov	rcx, rbp
	mov	edx, 1
	mov	rdi, r12
	sar	esi
	call	e1000_read_eeprom@PLT
	test	rax, rax
	jns	.L3
	lea	rdi, .LC0[rip]
	call	e_dbg@PLT
	mov	eax, DWORD PTR E1000_ERR_EEPROM[rip]
	neg	eax
.L1:
	mov	rdi, QWORD PTR 8[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L19
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	ecx, DWORD PTR 8[r12]
	lea	edx, -128[rcx]
	cmp	edx, 1
	jbe	.L11
.L6:
	test	eax, eax
	jle	.L10
	mov	rsi, QWORD PTR [r12]
	mov	rcx, QWORD PTR 16[r12]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR [rsi+rax*4]
	mov	DWORD PTR [rcx+rax*4], edx
	add	rax, 1
	cmp	DWORD PTR NODE_ADDRESS_SIZE[rip], eax
	jg	.L9
.L10:
	mov	eax, DWORD PTR E1000_SUCCESS[rip]
	jmp	.L1
.L2:
	mov	eax, DWORD PTR 8[rdi]
	add	eax, -128
	cmp	eax, 1
	ja	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR STATUS[rip]
	call	er32@PLT
	test	DWORD PTR E1000_STATUS_FUNC_1[rip], eax
	je	.L16
	mov	rax, QWORD PTR [r12]
	xor	DWORD PTR 20[rax], 1
.L16:
	mov	eax, DWORD PTR NODE_ADDRESS_SIZE[rip]
	jmp	.L6
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e1000_read_mac_addr, .-e1000_read_mac_addr
	.comm	STATUS,4,4
	.comm	NODE_ADDRESS_SIZE,4,4
	.comm	E1000_SUCCESS,4,4
	.comm	E1000_STATUS_FUNC_1,4,4
	.comm	E1000_ERR_EEPROM,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_read_mac_addr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EEPROM Read Error\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	e1000_read_mac_addr
	.syntax unified
	.arm
	.fpu softvfp
	.type	e1000_read_mac_addr, %function
e1000_read_mac_addr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L19
	ldr	r2, .L19+4
	ldr	r3, [r6]
	sub	sp, sp, #8
	cmp	r3, #0
	mov	r5, r0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ble	.L2
	mov	r4, #0
	b	.L5
.L3:
	ldr	r3, [r5]
	ldrb	r1, [sp]	@ zero_extendqisi2
	add	r2, r3, r4, lsl #2
	str	r1, [r3, r4, lsl #2]
	ldr	r3, [sp]
	add	r4, r4, #2
	asr	r3, r3, #8
	str	r3, [r2, #4]
	ldr	r3, [r6]
	cmp	r3, r4
	ble	.L17
.L5:
	mov	r2, #1
	mov	r3, sp
	mov	r0, r5
	asr	r1, r4, r2
	bl	e1000_read_eeprom
	cmp	r0, #0
	bge	.L3
	ldr	r0, .L19+8
	bl	e_dbg
	ldr	r3, .L19+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r2, [r5, #4]
	sub	r2, r2, #128
	cmp	r2, #1
	bls	.L11
.L6:
	cmp	r3, #0
	ble	.L10
	mov	r3, #0
	ldr	r1, [r5]
	ldr	r2, [r5, #8]
	sub	r1, r1, #4
	sub	r2, r2, #4
.L9:
	ldr	r0, [r1, #4]!
	add	r3, r3, #1
	str	r0, [r2, #4]!
	ldr	r0, [r6]
	cmp	r0, r3
	bgt	.L9
.L10:
	ldr	r3, .L19+16
	ldr	r0, [r3]
	b	.L1
.L2:
	ldr	r3, [r0, #4]
	sub	r3, r3, #128
	cmp	r3, #1
	bhi	.L10
.L11:
	ldr	r3, .L19+20
	ldr	r0, [r3]
	bl	er32
	ldr	r3, .L19+24
	ldr	r3, [r3]
	tst	r0, r3
	ldrne	r1, [r5]
	ldreq	r3, [r6]
	ldrne	r2, [r1, #20]
	ldrne	r3, [r6]
	eorne	r2, r2, #1
	strne	r2, [r1, #20]
	b	.L6
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	NODE_ADDRESS_SIZE
	.word	.LC1
	.word	.LC0
	.word	E1000_ERR_EEPROM
	.word	E1000_SUCCESS
	.word	STATUS
	.word	E1000_STATUS_FUNC_1
	.size	e1000_read_mac_addr, .-e1000_read_mac_addr
	.comm	STATUS,4,4
	.comm	NODE_ADDRESS_SIZE,4,4
	.comm	E1000_SUCCESS,4,4
	.comm	E1000_STATUS_FUNC_1,4,4
	.comm	E1000_ERR_EEPROM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
