	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_calc_eeprom_checksum_X540
_ixgbe_calc_eeprom_checksum_X540:       ## @ixgbe_calc_eeprom_checksum_X540
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	_IXGBE_EEPROM_CHECKSUM@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_IXGBE_PCIE_ANALOG_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r12, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_ixgbe_read_eerd_generic
	testq	%rax, %rax
	jne	LBB0_25
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	-56(%rbp), %r14
	incq	%rbx
	cmpq	%rbx, %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_2
	jmp	LBB0_5
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movq	_IXGBE_FW_PTR@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r13
	jge	LBB0_27
## %bb.6:
	movq	_IXGBE_PHY_PTR@GOTPCREL(%rip), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	incq	%r13
	cmpq	(%rbx), %r13
	jge	LBB0_27
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
	cmpq	(%r15), %r13
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_IXGBE_OPTION_ROM_PTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rsi
	leaq	-64(%rbp), %rdx
	callq	_ixgbe_read_eerd_generic
	testq	%rax, %rax
	jne	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$65535, %rsi                    ## imm = 0xFFFF
	je	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	(%rdi), %rsi
	jge	LBB0_8
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	-72(%rbp), %rdx
	callq	_ixgbe_read_eerd_generic
	testq	%rax, %rax
	jne	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	je	LBB0_7
## %bb.21:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %r12
	leaq	(%r12,%rax), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	(%rdi), %rcx
	jge	LBB0_8
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%rax, %rax
	jle	LBB0_8
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%r12
	movq	%r12, %rsi
	leaq	-56(%rbp), %rdx
	callq	_ixgbe_read_eerd_generic
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	addq	-56(%rbp), %r14
	movq	-72(%rbp), %rax
	addq	-64(%rbp), %rax
	cmpq	%rax, %r12
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jl	LBB0_23
	jmp	LBB0_8
LBB0_25:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_hw_dbg
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_28
LBB0_26:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_hw_dbg
LBB0_27:
	movq	_IXGBE_EEPROM_SUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%r14d, %eax
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_EEPROM_CHECKSUM,8,3      ## @IXGBE_EEPROM_CHECKSUM
	.comm	_IXGBE_PCIE_ANALOG_PTR,8,3      ## @IXGBE_PCIE_ANALOG_PTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM read failed\n"

	.comm	_IXGBE_ERR_EEPROM,4,2           ## @IXGBE_ERR_EEPROM
	.comm	_IXGBE_FW_PTR,8,3               ## @IXGBE_FW_PTR
	.comm	_IXGBE_PHY_PTR,8,3              ## @IXGBE_PHY_PTR
	.comm	_IXGBE_OPTION_ROM_PTR,8,3       ## @IXGBE_OPTION_ROM_PTR
	.comm	_IXGBE_EEPROM_SUM,8,3           ## @IXGBE_EEPROM_SUM
	.no_dead_strip	_ixgbe_calc_eeprom_checksum_X540
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_calc_eeprom_checksum_X540
_ixgbe_calc_eeprom_checksum_X540:       ; @ixgbe_calc_eeprom_checksum_X540
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x8, _IXGBE_EEPROM_CHECKSUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_EEPROM_CHECKSUM@GOTPAGEOFF]
	str	xzr, [sp, #8]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _IXGBE_PCIE_ANALOG_PTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IXGBE_PCIE_ANALOG_PTR@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	cmp	x23, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_ixgbe_read_eerd_generic
	cbnz	x0, LBB0_20
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	add	x22, x8, x22
	add	x21, x21, #1
	cmp	x23, x21
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x22, #0
LBB0_5:
Lloh6:
	adrp	x23, _IXGBE_FW_PTR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _IXGBE_FW_PTR@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x20, x8
	b.ge	LBB0_22
; %bb.6:
Lloh8:
	adrp	x24, _IXGBE_PHY_PTR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IXGBE_PHY_PTR@GOTPAGEOFF]
Lloh10:
	adrp	x25, _IXGBE_OPTION_ROM_PTR@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IXGBE_OPTION_ROM_PTR@GOTPAGEOFF]
	mov	w26, #65535
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	ldr	x8, [x23]
	cmp	x20, x8
	b.ge	LBB0_22
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x20, x8
	ccmp	x20, x9, #4, ne
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_ixgbe_read_eerd_generic
	cbnz	x0, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x1, x26
	b.eq	LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	cmp	x1, x8
	b.ge	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x2, sp, #24
	mov	x0, x19
	bl	_ixgbe_read_eerd_generic
	cbnz	x0, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, x26
	b.eq	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x21, [sp, #16]
	ldr	x9, [x19]
	add	x10, x21, x8
	cmp	x10, x9
	b.ge	LBB0_7
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x8, #1
	b.lt	LBB0_7
LBB0_18:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x21, x21, #1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_ixgbe_read_eerd_generic
	cbnz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x8, [sp, #8]
	add	x22, x8, x22
	ldp	x8, x9, [sp, #16]
	add	x8, x9, x8
	cmp	x21, x8
	b.lt	LBB0_18
	b	LBB0_7
LBB0_20:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh14:
	adrp	x8, _IXGBE_ERR_EEPROM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IXGBE_ERR_EEPROM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_21:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_22:
Lloh19:
	adrp	x8, _IXGBE_EEPROM_SUM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IXGBE_EEPROM_SUM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	sub	w0, w8, w22
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_EEPROM_CHECKSUM,8,3      ; @IXGBE_EEPROM_CHECKSUM
	.comm	_IXGBE_PCIE_ANALOG_PTR,8,3      ; @IXGBE_PCIE_ANALOG_PTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM read failed\n"

	.comm	_IXGBE_ERR_EEPROM,4,2           ; @IXGBE_ERR_EEPROM
	.comm	_IXGBE_FW_PTR,8,3               ; @IXGBE_FW_PTR
	.comm	_IXGBE_PHY_PTR,8,3              ; @IXGBE_PHY_PTR
	.comm	_IXGBE_OPTION_ROM_PTR,8,3       ; @IXGBE_OPTION_ROM_PTR
	.comm	_IXGBE_EEPROM_SUM,8,3           ; @IXGBE_EEPROM_SUM
	.no_dead_strip	_ixgbe_calc_eeprom_checksum_X540
.subsections_via_symbols
