	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_IXGBE_EEPROM_CHECKSUM@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_ixgbe_read_eerd_generic
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	-48(%rbp), %r13
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
LBB0_6:
	movq	_IXGBE_PCIE_ANALOG_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_IXGBE_FW_PTR@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rbx
	jl	LBB0_8
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jge	LBB0_12
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movq	_IXGBE_PHY_PTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_IXGBE_OPTION_ROM_PTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_24
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-56(%rbp), %rdx
	callq	_ixgbe_read_eerd_generic
	testq	%rax, %rax
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$65535, %rsi                    ## imm = 0xFFFF
	je	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	(%r14), %rsi
	jge	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	leaq	-64(%rbp), %rdx
	callq	_ixgbe_read_eerd_generic
	testq	%rax, %rax
	jne	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	je	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r12
	leaq	(%r12,%rax), %rcx
	cmpq	(%r14), %rcx
	jge	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%rax, %rax
	jle	LBB0_24
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	-48(%rbp), %rdx
	callq	_ixgbe_read_eerd_generic
	testq	%rax, %rax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=2
	addq	-48(%rbp), %r13
	movq	-64(%rbp), %rax
	addq	-56(%rbp), %rax
	cmpq	%rax, %r12
	jl	LBB0_21
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_hw_dbg
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_8
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
LBB0_12:
	movq	_IXGBE_EEPROM_SUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%r13, %rax
	addq	$24, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM read failed\n"

	.comm	_IXGBE_PCIE_ANALOG_PTR,8,3      ## @IXGBE_PCIE_ANALOG_PTR
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x21, _IXGBE_EEPROM_CHECKSUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IXGBE_EEPROM_CHECKSUM@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_ixgbe_read_eerd_generic
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	add	x23, x8, x23
	add	x20, x20, #1
	ldr	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	x23, #0
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_6:
Lloh4:
	adrp	x8, _IXGBE_PCIE_ANALOG_PTR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IXGBE_PCIE_ANALOG_PTR@GOTPAGEOFF]
Lloh6:
	ldr	x20, [x8]
Lloh7:
	adrp	x24, _IXGBE_FW_PTR@GOTPAGE
Lloh8:
	ldr	x24, [x24, _IXGBE_FW_PTR@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x20, x8
	b.ge	LBB0_23
; %bb.7:
Lloh9:
	adrp	x25, _IXGBE_PHY_PTR@GOTPAGE
Lloh10:
	ldr	x25, [x25, _IXGBE_PHY_PTR@GOTPAGEOFF]
Lloh11:
	adrp	x26, _IXGBE_OPTION_ROM_PTR@GOTPAGE
Lloh12:
	ldr	x26, [x26, _IXGBE_OPTION_ROM_PTR@GOTPAGEOFF]
	mov	w27, #65535
Lloh13:
	adrp	x21, l_.str@PAGE
Lloh14:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_hw_dbg
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #1
	ldr	x8, [x24]
	cmp	x20, x8
	b.ge	LBB0_23
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x20, x8
	ccmp	x20, x9, #4, ne
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_ixgbe_read_eerd_generic
	cbnz	x0, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x1, x27
	b.eq	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19]
	cmp	x1, x8
	b.ge	LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x2, sp, #24
	mov	x0, x19
	bl	_ixgbe_read_eerd_generic
	cbnz	x0, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x8, x27
	b.eq	LBB0_9
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x22, [sp, #16]
	ldr	x9, [x19]
	add	x10, x22, x8
	cmp	x10, x9
	b.ge	LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x8, #1
	b.lt	LBB0_9
LBB0_20:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x22, x22, #1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x22
	bl	_ixgbe_read_eerd_generic
	cbnz	x0, LBB0_8
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	ldr	x8, [sp, #8]
	add	x23, x8, x23
	ldp	x8, x9, [sp, #16]
	add	x8, x9, x8
	cmp	x22, x8
	b.lt	LBB0_20
	b	LBB0_9
LBB0_22:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_23:
Lloh17:
	adrp	x8, _IXGBE_EEPROM_SUM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IXGBE_EEPROM_SUM@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	sub	x0, x8, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_EEPROM_CHECKSUM,8,3      ; @IXGBE_EEPROM_CHECKSUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM read failed\n"

	.comm	_IXGBE_PCIE_ANALOG_PTR,8,3      ; @IXGBE_PCIE_ANALOG_PTR
	.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
