	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_update_nvm_checksum_82580
_igb_update_nvm_checksum_82580:         ## @igb_update_nvm_checksum_82580
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_NVM_COMPATIBILITY_REG_3@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rcx
	movl	$1, %edx
	callq	*8(%rdi)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
LBB0_9:
	callq	_hw_dbg
	jmp	LBB0_10
LBB0_2:
	movl	-28(%rbp), %eax
	movq	_NVM_COMPATIBILITY_BIT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_7
LBB0_3:
	xorl	%edi, %edi
	callq	_NVM_82580_LAN_FUNC_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_igb_update_nvm_checksum_with_offset
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	movl	$1, %edi
	callq	_NVM_82580_LAN_FUNC_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_igb_update_nvm_checksum_with_offset
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	movl	$2, %edi
	callq	_NVM_82580_LAN_FUNC_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_igb_update_nvm_checksum_with_offset
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movl	$3, %edi
	callq	_NVM_82580_LAN_FUNC_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_igb_update_nvm_checksum_with_offset
	movq	%rax, %rbx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	orl	%eax, %ecx
	movl	%ecx, -28(%rbp)
	movl	(%r15), %esi
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	*(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NVM_COMPATIBILITY_REG_3,4,2    ## @NVM_COMPATIBILITY_REG_3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVM Read Error while updating checksum compatibility bit.\n"

	.comm	_NVM_COMPATIBILITY_BIT_MASK,4,2 ## @NVM_COMPATIBILITY_BIT_MASK
L_.str.1:                               ## @.str.1
	.asciz	"NVM Write Error while updating checksum compatibility bit.\n"

	.no_dead_strip	_igb_update_nvm_checksum_82580
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_update_nvm_checksum_82580
_igb_update_nvm_checksum_82580:         ; @igb_update_nvm_checksum_82580
	.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, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x21, _NVM_COMPATIBILITY_REG_3@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NVM_COMPATIBILITY_REG_3@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x3, sp, #12
	mov	w2, #1
	blr	x8
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_hw_dbg
	b	LBB0_8
LBB0_3:
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _NVM_COMPATIBILITY_BIT_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NVM_COMPATIBILITY_BIT_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_4:
	mov	w0, #0
	bl	_NVM_82580_LAN_FUNC_OFFSET
	mov	x1, x0
	mov	x0, x19
	bl	_igb_update_nvm_checksum_with_offset
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.5:
	mov	w0, #1
	bl	_NVM_82580_LAN_FUNC_OFFSET
	mov	x1, x0
	mov	x0, x19
	bl	_igb_update_nvm_checksum_with_offset
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.6:
	mov	w0, #2
	bl	_NVM_82580_LAN_FUNC_OFFSET
	mov	x1, x0
	mov	x0, x19
	bl	_igb_update_nvm_checksum_with_offset
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
	mov	w0, #3
	bl	_NVM_82580_LAN_FUNC_OFFSET
	mov	x1, x0
	mov	x0, x19
	bl	_igb_update_nvm_checksum_with_offset
	mov	x20, x0
LBB0_8:
	mov	x0, x20
	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_9:
	orr	w8, w9, w8
	str	w8, [sp, #12]
	ldr	x8, [x19]
	ldr	w1, [x21]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	blr	x8
	cbz	x0, LBB0_4
; %bb.10:
	mov	x20, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVM_COMPATIBILITY_REG_3,4,2    ; @NVM_COMPATIBILITY_REG_3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVM Read Error while updating checksum compatibility bit.\n"

	.comm	_NVM_COMPATIBILITY_BIT_MASK,4,2 ; @NVM_COMPATIBILITY_BIT_MASK
l_.str.1:                               ; @.str.1
	.asciz	"NVM Write Error while updating checksum compatibility bit.\n"

	.no_dead_strip	_igb_update_nvm_checksum_82580
.subsections_via_symbols
