	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_update_flash_X540
_ixgbe_update_flash_X540:               ## @ixgbe_update_flash_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_ixgbe_poll_flash_update_done_X540
	movq	%rax, %rbx
	movq	_IXGBE_ERR_EEPROM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_1
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
	jmp	LBB0_8
LBB0_1:
	movq	%r14, %rdi
	callq	_IXGBE_EEC
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	movl	%eax, %ebx
	movq	_IXGBE_EEC_FLUP@GOTPCREL(%rip), %r15
	orl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_IXGBE_EEC
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_IXGBE_WRITE_REG
	movq	%r14, %rdi
	callq	_ixgbe_poll_flash_update_done_X540
	movq	%rax, %rbx
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
	cmpq	$0, (%r14)
	je	LBB0_2
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_IXGBE_EEC
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_IXGBE_READ_REG
	movl	%eax, %ebx
	movq	_IXGBE_EEC_SEC1VAL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	orl	(%r15), %ebx
	movq	%r14, %rdi
	callq	_IXGBE_EEC
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_IXGBE_WRITE_REG
LBB0_4:
	movq	%r14, %rdi
	callq	_ixgbe_poll_flash_update_done_X540
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_hw_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_ERR_EEPROM,8,3           ## @IXGBE_ERR_EEPROM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Flash update time out\n"

	.comm	_IXGBE_EEC_FLUP,4,2             ## @IXGBE_EEC_FLUP
L_.str.1:                               ## @.str.1
	.asciz	"Flash update complete\n"

	.comm	_IXGBE_EEC_SEC1VAL,4,2          ## @IXGBE_EEC_SEC1VAL
	.no_dead_strip	_ixgbe_update_flash_X540
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_update_flash_X540
_ixgbe_update_flash_X540:               ; @ixgbe_update_flash_X540
	.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	x19, x0
	bl	_ixgbe_poll_flash_update_done_X540
Lloh0:
	adrp	x8, _IXGBE_ERR_EEPROM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_ERR_EEPROM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_hw_dbg
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_IXGBE_EEC
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh5:
	adrp	x21, _IXGBE_EEC_FLUP@GOTPAGE
Lloh6:
	ldr	x21, [x21, _IXGBE_EEC_FLUP@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w20, w8, w0
	mov	x0, x19
	bl	_IXGBE_EEC
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_IXGBE_WRITE_REG
	mov	x0, x19
	bl	_ixgbe_poll_flash_update_done_X540
	mov	x20, x0
Lloh7:
	adrp	x8, l_.str@PAGE
Lloh8:
	add	x8, x8, l_.str@PAGEOFF
Lloh9:
	adrp	x9, l_.str.1@PAGE
Lloh10:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x1, x9, x8, eq
	mov	x0, x19
	bl	_hw_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_6
LBB0_5:
	mov	x0, x20
	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
LBB0_6:
	mov	x0, x19
	bl	_IXGBE_EEC
	mov	x1, x0
	mov	x0, x19
	bl	_IXGBE_READ_REG
Lloh11:
	adrp	x8, _IXGBE_EEC_SEC1VAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IXGBE_EEC_SEC1VAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x21]
	orr	w20, w8, w0
	mov	x0, x19
	bl	_IXGBE_EEC
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_IXGBE_WRITE_REG
LBB0_8:
	mov	x0, x19
	bl	_ixgbe_poll_flash_update_done_X540
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.9:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_ERR_EEPROM,8,3           ; @IXGBE_ERR_EEPROM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Flash update time out\n"

	.comm	_IXGBE_EEC_FLUP,4,2             ; @IXGBE_EEC_FLUP
l_.str.1:                               ; @.str.1
	.asciz	"Flash update complete\n"

	.comm	_IXGBE_EEC_SEC1VAL,4,2          ; @IXGBE_EEC_SEC1VAL
	.no_dead_strip	_ixgbe_update_flash_X540
.subsections_via_symbols
