	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_update_flash_i210
_igb_update_flash_i210:                 ## @igb_update_flash_i210
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_igb_pool_flash_update_done_i210
	movl	%eax, %ebx
	movq	_E1000_ERR_NVM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	movq	_E1000_EECD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_rd32
	movq	_E1000_EECD_FLUPD_I210@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_wr32
	movq	%r14, %rdi
	callq	_igb_pool_flash_update_done_i210
	movl	%eax, %ebx
	testl	%eax, %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
LBB0_3:
	callq	_hw_dbg
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_ERR_NVM,4,2              ## @E1000_ERR_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Flash update time out\n"

	.comm	_E1000_EECD,4,2                 ## @E1000_EECD
	.comm	_E1000_EECD_FLUPD_I210,4,2      ## @E1000_EECD_FLUPD_I210
L_.str.1:                               ## @.str.1
	.asciz	"Flash update complete\n"

	.no_dead_strip	_igb_update_flash_i210
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_update_flash_i210
_igb_update_flash_i210:                 ; @igb_update_flash_i210
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_igb_pool_flash_update_done_i210
Lloh0:
	adrp	x8, _E1000_ERR_NVM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_ERR_NVM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x19, l_.str@PAGE
Lloh4:
	add	x19, x19, l_.str@PAGEOFF
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x21, x0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x21, _E1000_EECD@GOTPAGE
Lloh6:
	ldr	x21, [x21, _E1000_EECD@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_rd32
Lloh7:
	adrp	x8, _E1000_EECD_FLUPD_I210@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E1000_EECD_FLUPD_I210@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x21]
	bl	_wr32
	mov	x0, x20
	bl	_igb_pool_flash_update_done_i210
	mov	x21, x0
Lloh10:
	adrp	x8, l_.str.1@PAGE
Lloh11:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	w0, #0
	csel	x19, x8, x19, eq
LBB0_3:
	mov	x0, x19
	bl	_hw_dbg
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_ERR_NVM,4,2              ; @E1000_ERR_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Flash update time out\n"

	.comm	_E1000_EECD,4,2                 ; @E1000_EECD
	.comm	_E1000_EECD_FLUPD_I210,4,2      ; @E1000_EECD_FLUPD_I210
l_.str.1:                               ; @.str.1
	.asciz	"Flash update complete\n"

	.no_dead_strip	_igb_update_flash_i210
.subsections_via_symbols
