	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_validate_eeprom_checksum_X540
_ixgbe_validate_eeprom_checksum_X540:   ## @ixgbe_validate_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	leaq	-40(%rbp), %rdx
	xorl	%esi, %esi
	callq	*16(%rdi)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_dbg
	jmp	LBB0_11
LBB0_2:
	movq	_IXGBE_GSSR_EEP_SM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	*8(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_IXGBE_ERR_SWFW_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movq	%r15, %rdi
	callq	*24(%r15)
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movzwl	%bx, %eax
	movq	%rax, -40(%rbp)
	movq	_IXGBE_EEPROM_CHECKSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ixgbe_read_eerd_generic
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	-48(%rbp), %rax
	xorl	%ebx, %ebx
	cmpq	-40(%rbp), %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_dbg
	movq	_IXGBE_ERR_EEPROM_CHECKSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
LBB0_10:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	*(%r15)
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM read failed\n"

	.comm	_IXGBE_GSSR_EEP_SM,4,2          ## @IXGBE_GSSR_EEP_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,4,2        ## @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_EEPROM_CHECKSUM,4,2      ## @IXGBE_EEPROM_CHECKSUM
L_.str.1:                               ## @.str.1
	.asciz	"Invalid EEPROM checksum"

	.comm	_IXGBE_ERR_EEPROM_CHECKSUM,4,2  ## @IXGBE_ERR_EEPROM_CHECKSUM
	.no_dead_strip	_ixgbe_validate_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_validate_eeprom_checksum_X540
_ixgbe_validate_eeprom_checksum_X540:   ; @ixgbe_validate_eeprom_checksum_X540
	.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	x20, x1
	mov	x19, x0
	str	xzr, [sp]
	ldr	x8, [x0, #16]
	add	x2, sp, #8
	mov	w1, #0
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
	b	LBB0_12
LBB0_2:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x22, _IXGBE_GSSR_EEP_SM@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IXGBE_GSSR_EEP_SM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IXGBE_ERR_SWFW_SYNC@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	b	LBB0_12
LBB0_4:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	tbnz	w0, #31, LBB0_11
; %bb.5:
	and	w8, w21, #0xffff
	str	x8, [sp, #8]
Lloh7:
	adrp	x8, _IXGBE_EEPROM_CHECKSUM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IXGBE_EEPROM_CHECKSUM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_ixgbe_read_eerd_generic
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.6:
	ldp	x8, x9, [sp]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w21, #0
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh12:
	adrp	x8, _IXGBE_ERR_EEPROM_CHECKSUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IXGBE_ERR_EEPROM_CHECKSUM@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
LBB0_9:
	cbz	x20, LBB0_11
; %bb.10:
	ldr	x8, [sp, #8]
	str	x8, [x20]
LBB0_11:
	ldr	x8, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	blr	x8
LBB0_12:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM read failed\n"

	.comm	_IXGBE_GSSR_EEP_SM,4,2          ; @IXGBE_GSSR_EEP_SM
	.comm	_IXGBE_ERR_SWFW_SYNC,4,2        ; @IXGBE_ERR_SWFW_SYNC
	.comm	_IXGBE_EEPROM_CHECKSUM,4,2      ; @IXGBE_EEPROM_CHECKSUM
l_.str.1:                               ; @.str.1
	.asciz	"Invalid EEPROM checksum"

	.comm	_IXGBE_ERR_EEPROM_CHECKSUM,4,2  ; @IXGBE_ERR_EEPROM_CHECKSUM
	.no_dead_strip	_ixgbe_validate_eeprom_checksum_X540
.subsections_via_symbols
