	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_calc_eeprom_checksum_generic ## -- Begin function ixgbe_calc_eeprom_checksum_generic
	.p2align	4, 0x90
_ixgbe_calc_eeprom_checksum_generic:    ## @ixgbe_calc_eeprom_checksum_generic
	.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	*(%r14)
	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
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	cmpq	(%r15), %rbx
	jge	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-56(%rbp), %rdx
	callq	*(%r14)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$65535, %rsi                    ## imm = 0xFFFF
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	leaq	-64(%rbp), %rdx
	callq	*(%r14)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	testq	%rax, %rax
	jle	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	-48(%rbp), %rdx
	callq	*(%r14)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	addq	-48(%rbp), %r13
	movq	-64(%rbp), %rax
	addq	-56(%rbp), %rax
	cmpq	%rax, %r12
	jl	LBB0_17
	jmp	LBB0_19
LBB0_20:
	movq	_IXGBE_EEPROM_SUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%r13d, %eax
	jmp	LBB0_21
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_21:
	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_ERR_EEPROM,4,2           ## @IXGBE_ERR_EEPROM
	.comm	_IXGBE_EEPROM_SUM,8,3           ## @IXGBE_EEPROM_SUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_calc_eeprom_checksum_generic ; -- Begin function ixgbe_calc_eeprom_checksum_generic
	.p2align	2
_ixgbe_calc_eeprom_checksum_generic:    ; @ixgbe_calc_eeprom_checksum_generic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	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	x22, #0
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	add	x22, x8, x22
	add	x20, x20, #1
	ldr	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	x22, #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	x23, _IXGBE_FW_PTR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _IXGBE_FW_PTR@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x20, x8
	b.ge	LBB0_18
; %bb.7:
	mov	w24, #65535
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x20, x20, #1
	ldr	x8, [x23]
	cmp	x20, x8
	b.ge	LBB0_18
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x8, [x19]
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbnz	x0, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [sp, #16]
	cmp	x1, #0
	ccmp	x1, x24, #4, ne
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	add	x2, sp, #24
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x8, x24
	b.eq	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x21, [sp, #16]
LBB0_16:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x21, x21, #1
	ldr	x8, [x19]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	blr	x8
	cbnz	x0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 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_16
	b	LBB0_8
LBB0_18:
Lloh9:
	adrp	x8, _IXGBE_EEPROM_SUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IXGBE_EEPROM_SUM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w0, w8, w22
	b	LBB0_20
LBB0_19:
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]
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.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_ERR_EEPROM,4,2           ; @IXGBE_ERR_EEPROM
	.comm	_IXGBE_EEPROM_SUM,8,3           ; @IXGBE_EEPROM_SUM
.subsections_via_symbols
