	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e82545_init_eeprom
_e82545_init_eeprom:                    ## @e82545_init_eeprom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	movl	8(%rcx), %edx
	shll	$8, %edx
	orl	(%rcx), %edx
	movq	(%rdi), %rax
	movq	_NVM_MAC_ADDR@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rax,%rsi,4)
	movl	24(%rcx), %edx
	shll	$8, %edx
	orl	16(%rcx), %edx
	movl	%edx, 4(%rax,%rsi,4)
	movl	40(%rcx), %edx
	shll	$8, %edx
	orl	32(%rcx), %edx
	movl	%edx, 8(%rax,%rsi,4)
	movq	_E82545_SUBDEV_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_NVM_SUB_DEV_ID@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	_E82545_VENDOR_ID_INTEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_NVM_SUB_VEN_ID@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	_E82545_DEV_ID_82545EM_COPPER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_NVM_DEV_ID@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	%edx, (%rax,%rsi,4)
	movq	_NVM_VEN_ID@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	_NVM_CHECKSUM_REG@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r8
	testq	%r8, %r8
	jle	LBB0_1
## %bb.2:
	movl	%r8d, %edx
	cmpl	$8, %edx
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_1:
	xorl	%ecx, %ecx
	jmp	LBB0_13
LBB0_4:
	movl	%edx, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rcx
	movq	%rcx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$24, %rcx
	jae	LBB0_6
## %bb.5:
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rdi
	pxor	%xmm0, %xmm0
	xorl	%ecx, %ecx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rcx,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	16(%rax,%rcx,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	32(%rax,%rcx,4), %xmm1
	movdqu	48(%rax,%rcx,4), %xmm3
	movdqu	64(%rax,%rcx,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	80(%rax,%rcx,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	96(%rax,%rcx,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	112(%rax,%rcx,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rcx
	addq	$-4, %rdi
	jne	LBB0_7
LBB0_8:
	testq	%r9, %r9
	je	LBB0_11
## %bb.9:
	leaq	(%rax,%rcx,4), %rcx
	addq	$16, %rcx
	shlq	$5, %r9
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rcx,%rdi), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	(%rcx,%rdi), %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_10
LBB0_11:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%rdx, %rsi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rax,%rsi,4), %ecx
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_12
LBB0_13:
	movq	_NVM_SUM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	subl	%ecx, %esi
	movl	%esi, (%rax,%r8,4)
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_DPRINTF                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVM_MAC_ADDR,8,3               ## @NVM_MAC_ADDR
	.comm	_E82545_SUBDEV_ID,4,2           ## @E82545_SUBDEV_ID
	.comm	_NVM_SUB_DEV_ID,8,3             ## @NVM_SUB_DEV_ID
	.comm	_E82545_VENDOR_ID_INTEL,8,3     ## @E82545_VENDOR_ID_INTEL
	.comm	_NVM_SUB_VEN_ID,8,3             ## @NVM_SUB_VEN_ID
	.comm	_E82545_DEV_ID_82545EM_COPPER,4,2 ## @E82545_DEV_ID_82545EM_COPPER
	.comm	_NVM_DEV_ID,8,3                 ## @NVM_DEV_ID
	.comm	_NVM_VEN_ID,8,3                 ## @NVM_VEN_ID
	.comm	_NVM_CHECKSUM_REG,4,2           ## @NVM_CHECKSUM_REG
	.comm	_NVM_SUM,4,2                    ## @NVM_SUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eeprom checksum: 0x%x\r\n"

	.no_dead_strip	_e82545_init_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e82545_init_eeprom
_e82545_init_eeprom:                    ; @e82545_init_eeprom
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0]
	ldr	w10, [x9]
	ldr	w11, [x9, #8]
	orr	w10, w10, w11, lsl #8
	ldr	w11, [x9, #16]
	ldr	w12, [x9, #24]
	orr	w11, w11, w12, lsl #8
Lloh0:
	adrp	x12, _NVM_MAC_ADDR@GOTPAGE
Lloh1:
	ldr	x12, [x12, _NVM_MAC_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	add	x12, x8, x12, lsl #2
	stp	w10, w11, [x12]
	ldr	w10, [x9, #32]
	ldr	w9, [x9, #40]
	orr	w9, w10, w9, lsl #8
	str	w9, [x12, #8]
Lloh3:
	adrp	x9, _E82545_SUBDEV_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _E82545_SUBDEV_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _NVM_SUB_DEV_ID@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NVM_SUB_DEV_ID@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
Lloh9:
	adrp	x9, _E82545_VENDOR_ID_INTEL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _E82545_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh11:
	adrp	x10, _NVM_SUB_VEN_ID@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NVM_SUB_VEN_ID@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
Lloh15:
	adrp	x10, _E82545_DEV_ID_82545EM_COPPER@GOTPAGE
Lloh16:
	ldr	x10, [x10, _E82545_DEV_ID_82545EM_COPPER@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _NVM_DEV_ID@GOTPAGE
Lloh19:
	ldr	x11, [x11, _NVM_DEV_ID@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	str	w10, [x8, x11, lsl #2]
Lloh21:
	adrp	x10, _NVM_VEN_ID@GOTPAGE
Lloh22:
	ldr	x10, [x10, _NVM_VEN_ID@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	str	w9, [x8, x10, lsl #2]
Lloh24:
	adrp	x9, _NVM_CHECKSUM_REG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NVM_CHECKSUM_REG@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x9]
	sxtw	x9, w10
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w10, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	w12, #0
	b	LBB0_7
LBB0_3:
	mov	w12, #0
	b	LBB0_9
LBB0_4:
	and	x11, x10, #0xfffffff0
	add	x12, x8, #32
	movi.2d	v0, #0000000000000000
	mov	x13, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x13, x13, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w12, s0
	cmp	x11, x10
	b.eq	LBB0_9
LBB0_7:
	add	x13, x8, x11, lsl #2
	sub	x10, x10, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x13], #4
	add	w12, w11, w12
	subs	x10, x10, #1
	b.ne	LBB0_8
LBB0_9:
Lloh27:
	adrp	x10, _NVM_SUM@GOTPAGE
Lloh28:
	ldr	x10, [x10, _NVM_SUM@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	sub	w1, w10, w12
	str	w1, [x8, x9, lsl #2]
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	b	_DPRINTF
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NVM_MAC_ADDR,8,3               ; @NVM_MAC_ADDR
	.comm	_E82545_SUBDEV_ID,4,2           ; @E82545_SUBDEV_ID
	.comm	_NVM_SUB_DEV_ID,8,3             ; @NVM_SUB_DEV_ID
	.comm	_E82545_VENDOR_ID_INTEL,8,3     ; @E82545_VENDOR_ID_INTEL
	.comm	_NVM_SUB_VEN_ID,8,3             ; @NVM_SUB_VEN_ID
	.comm	_E82545_DEV_ID_82545EM_COPPER,4,2 ; @E82545_DEV_ID_82545EM_COPPER
	.comm	_NVM_DEV_ID,8,3                 ; @NVM_DEV_ID
	.comm	_NVM_VEN_ID,8,3                 ; @NVM_VEN_ID
	.comm	_NVM_CHECKSUM_REG,4,2           ; @NVM_CHECKSUM_REG
	.comm	_NVM_SUM,4,2                    ; @NVM_SUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eeprom checksum: 0x%x\r\n"

	.no_dead_strip	_e82545_init_eeprom
.subsections_via_symbols
