	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_validate_eeprom_checksum_generic ## -- Begin function ixgbe_validate_eeprom_checksum_generic
	.p2align	4, 0x90
_ixgbe_validate_eeprom_checksum_generic: ## @ixgbe_validate_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	leaq	-40(%rbp), %rdx
	xorl	%esi, %esi
	callq	*(%rdi)
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hw_dbg
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movzwl	%r15w, %eax
	movq	%rax, -40(%rbp)
	movq	_IXGBE_EEPROM_CHECKSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*(%rbx)
	testl	%eax, %eax
	jne	LBB0_1
## %bb.4:
	movq	-40(%rbp), %rax
	xorl	%r15d, %r15d
	cmpq	%rax, -32(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_IXGBE_ERR_EEPROM_CHECKSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	%rax, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM read failed\n"

	.comm	_IXGBE_EEPROM_CHECKSUM,4,2      ## @IXGBE_EEPROM_CHECKSUM
	.comm	_IXGBE_ERR_EEPROM_CHECKSUM,4,2  ## @IXGBE_ERR_EEPROM_CHECKSUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_validate_eeprom_checksum_generic ; -- Begin function ixgbe_validate_eeprom_checksum_generic
	.p2align	2
_ixgbe_validate_eeprom_checksum_generic: ; @ixgbe_validate_eeprom_checksum_generic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp]
	ldr	x8, [x0]
	add	x2, sp, #8
	mov	w1, #0
	blr	x8
	cbz	w0, LBB0_3
LBB0_1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hw_dbg
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	ldr	x8, [x20, #8]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_2
; %bb.4:
	and	w8, w21, #0xffff
	str	x8, [sp, #8]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _IXGBE_EEPROM_CHECKSUM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IXGBE_EEPROM_CHECKSUM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	x2, sp
	mov	x0, x20
	blr	x8
	cbnz	w0, LBB0_1
; %bb.5:
	ldp	x9, x8, [sp]
Lloh5:
	adrp	x10, _IXGBE_ERR_EEPROM_CHECKSUM@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IXGBE_ERR_EEPROM_CHECKSUM@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	x9, x8
	csel	w21, wzr, w10, eq
	cbz	x19, LBB0_2
; %bb.6:
	str	x8, [x19]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM read failed\n"

	.comm	_IXGBE_EEPROM_CHECKSUM,4,2      ; @IXGBE_EEPROM_CHECKSUM
	.comm	_IXGBE_ERR_EEPROM_CHECKSUM,4,2  ; @IXGBE_ERR_EEPROM_CHECKSUM
.subsections_via_symbols
