	.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), %r13
	cmpq	$0, (%r13)
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	*(%r14)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	-48(%rbp), %r15
	incq	%rbx
	cmpq	(%r13), %rbx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
	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), %rax
	cmpq	(%rax), %rbx
	jge	LBB0_16
## %bb.7:
	leaq	-48(%rbp), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movq	_IXGBE_FW_PTR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jge	LBB0_16
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-56(%rbp), %rdx
	callq	*(%r14)
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$65535, %rsi                    ## imm = 0xFFFF
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	leaq	-64(%rbp), %rdx
	callq	*(%r14)
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%rax, %rax
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r12
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	*(%r14)
	addq	-48(%rbp), %r15
	movq	-64(%rbp), %rax
	addq	-56(%rbp), %rax
	cmpq	%rax, %r12
	jl	LBB0_14
	jmp	LBB0_15
LBB0_16:
	movq	_IXGBE_EEPROM_SUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%r15, %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_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_13
; %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_13
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x19]
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x1, [sp, #16]
	cmp	x1, #0
	ccmp	x1, x24, #4, ne
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	add	x2, sp, #24
	mov	x0, x19
	blr	x8
	ldr	x8, [sp, #24]
	cmp	x8, #0
	ccmp	x8, x24, #4, ne
	ccmp	x8, #1, #8, ne
	b.lt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x21, [sp, #16]
LBB0_12:                                ;   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
	ldr	x8, [sp, #8]
	add	x22, x8, x22
	ldp	x8, x9, [sp, #16]
	add	x8, x9, x8
	cmp	x21, x8
	b.lt	LBB0_12
	b	LBB0_8
LBB0_13:
Lloh9:
	adrp	x8, _IXGBE_EEPROM_SUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IXGBE_EEPROM_SUM@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sub	x0, x8, x22
	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
	.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_EEPROM_SUM,8,3           ; @IXGBE_EEPROM_SUM
.subsections_via_symbols
