	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_reset_cs4227
_ixgbe_reset_cs4227:                    ## @ixgbe_reset_cs4227
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_IXGBE_PE_OUTPUT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-44(%rbp), %rdx
	callq	_ixgbe_read_pe
	testq	%rax, %rax
	jne	LBB0_20
## %bb.1:
	movq	_IXGBE_PE_BIT1@GOTPCREL(%rip), %r15
	movl	-44(%rbp), %edx
	orl	(%r15), %edx
	movl	%edx, -44(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ixgbe_write_pe
	testq	%rax, %rax
	jne	LBB0_20
## %bb.2:
	movq	_IXGBE_PE_CONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ixgbe_read_pe
	testq	%rax, %rax
	jne	LBB0_20
## %bb.3:
	movl	(%r15), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ixgbe_write_pe
	testq	%rax, %rax
	jne	LBB0_20
## %bb.4:
	movl	(%r14), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ixgbe_read_pe
	testq	%rax, %rax
	jne	LBB0_20
## %bb.5:
	movl	(%r15), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movl	%edx, -44(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ixgbe_write_pe
	testq	%rax, %rax
	jne	LBB0_20
## %bb.6:
	movq	_IXGBE_CS4227_RESET_HOLD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	100(%rdi), %rsi
	callq	_usleep_range
	movl	(%r14), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ixgbe_read_pe
	testq	%rax, %rax
	jne	LBB0_20
## %bb.7:
	movl	-44(%rbp), %edx
	orl	(%r15), %edx
	movl	%edx, -44(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ixgbe_write_pe
	testq	%rax, %rax
	jne	LBB0_20
## %bb.8:
	movq	_IXGBE_CS4227_RESET_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	_IXGBE_CS4227_RETRIES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jle	LBB0_14
## %bb.9:
	movq	_IXGBE_CS4227_EFUSE_STATUS@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r14
	movq	_IXGBE_CS4227_CHECK_DELAY@GOTPCREL(%rip), %r12
	jmp	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %edi
	callq	_msleep
	incq	%r15
	movq	_IXGBE_CS4227_RETRIES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ixgbe_read_cs4227
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-48(%rbp), %eax
	movq	_IXGBE_CS4227_EEPROM_LOAD_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.12:
	movq	_IXGBE_CS4227_RETRIES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_14:
	cmpq	%rax, %r15
	jne	LBB0_17
## %bb.15:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_16
LBB0_17:
	movq	_IXGBE_CS4227_EEPROM_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ixgbe_read_cs4227
	leaq	L_.str.1(%rip), %rsi
	testq	%rax, %rax
	je	LBB0_18
LBB0_16:
	movq	%rbx, %rdi
	callq	_hw_err
	movq	_IXGBE_ERR_PHY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_IXGBE_CS4227_EEPROM_LOAD_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_16
## %bb.19:
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_PE_OUTPUT,4,2            ## @IXGBE_PE_OUTPUT
	.comm	_IXGBE_PE_BIT1,4,2              ## @IXGBE_PE_BIT1
	.comm	_IXGBE_PE_CONFIG,4,2            ## @IXGBE_PE_CONFIG
	.comm	_IXGBE_CS4227_RESET_HOLD,8,3    ## @IXGBE_CS4227_RESET_HOLD
	.comm	_IXGBE_CS4227_RESET_DELAY,4,2   ## @IXGBE_CS4227_RESET_DELAY
	.comm	_IXGBE_CS4227_RETRIES,8,3       ## @IXGBE_CS4227_RETRIES
	.comm	_IXGBE_CS4227_EFUSE_STATUS,4,2  ## @IXGBE_CS4227_EFUSE_STATUS
	.comm	_IXGBE_CS4227_EEPROM_LOAD_OK,4,2 ## @IXGBE_CS4227_EEPROM_LOAD_OK
	.comm	_IXGBE_CS4227_CHECK_DELAY,4,2   ## @IXGBE_CS4227_CHECK_DELAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CS4227 reset did not complete\n"

	.comm	_IXGBE_ERR_PHY,8,3              ## @IXGBE_ERR_PHY
	.comm	_IXGBE_CS4227_EEPROM_STATUS,4,2 ## @IXGBE_CS4227_EEPROM_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"CS4227 EEPROM did not load successfully\n"

	.no_dead_strip	_ixgbe_reset_cs4227
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_reset_cs4227
_ixgbe_reset_cs4227:                    ; @ixgbe_reset_cs4227
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _IXGBE_PE_OUTPUT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IXGBE_PE_OUTPUT@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	bl	_ixgbe_read_pe
	cbnz	x0, LBB0_20
; %bb.1:
Lloh2:
	adrp	x21, _IXGBE_PE_BIT1@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IXGBE_PE_BIT1@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [sp, #8]
	orr	w2, w9, w8
	str	w2, [sp, #8]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ixgbe_write_pe
	cbnz	x0, LBB0_20
; %bb.2:
Lloh4:
	adrp	x22, _IXGBE_PE_CONFIG@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IXGBE_PE_CONFIG@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ixgbe_read_pe
	cbnz	x0, LBB0_20
; %bb.3:
	ldr	w8, [x21]
	ldr	w9, [sp, #8]
	bic	w2, w9, w8
	str	w2, [sp, #8]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ixgbe_write_pe
	cbnz	x0, LBB0_20
; %bb.4:
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ixgbe_read_pe
	cbnz	x0, LBB0_20
; %bb.5:
	ldr	w8, [x21]
	ldr	w9, [sp, #8]
	bic	w2, w9, w8
	str	w2, [sp, #8]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ixgbe_write_pe
	cbnz	x0, LBB0_20
; %bb.6:
Lloh6:
	adrp	x8, _IXGBE_CS4227_RESET_HOLD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXGBE_CS4227_RESET_HOLD@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	add	x1, x0, #100
	bl	_usleep_range
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ixgbe_read_pe
	cbnz	x0, LBB0_20
; %bb.7:
	ldr	w8, [x21]
	ldr	w9, [sp, #8]
	orr	w2, w9, w8
	str	w2, [sp, #8]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ixgbe_write_pe
	cbnz	x0, LBB0_20
; %bb.8:
Lloh9:
	adrp	x8, _IXGBE_CS4227_RESET_DELAY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IXGBE_CS4227_RESET_DELAY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_msleep
Lloh12:
	adrp	x21, _IXGBE_CS4227_RETRIES@GOTPAGE
Lloh13:
	ldr	x21, [x21, _IXGBE_CS4227_RETRIES@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x20, #0
Lloh14:
	adrp	x22, _IXGBE_CS4227_EFUSE_STATUS@GOTPAGE
Lloh15:
	ldr	x22, [x22, _IXGBE_CS4227_EFUSE_STATUS@GOTPAGEOFF]
Lloh16:
	adrp	x23, _IXGBE_CS4227_EEPROM_LOAD_OK@GOTPAGE
Lloh17:
	ldr	x23, [x23, _IXGBE_CS4227_EEPROM_LOAD_OK@GOTPAGEOFF]
Lloh18:
	adrp	x24, _IXGBE_CS4227_CHECK_DELAY@GOTPAGE
Lloh19:
	ldr	x24, [x24, _IXGBE_CS4227_CHECK_DELAY@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x24]
	bl	_msleep
	add	x20, x20, #1
	ldr	x8, [x21]
	cmp	x20, x8
	b.ge	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ixgbe_read_cs4227
	cbnz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.13:
	ldr	x8, [x21]
	b	LBB0_15
LBB0_14:
	mov	x20, #0
LBB0_15:
	cmp	x20, x8
	b.ne	LBB0_17
; %bb.16:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh22:
	adrp	x8, _IXGBE_CS4227_EEPROM_STATUS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IXGBE_CS4227_EEPROM_STATUS@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ixgbe_read_cs4227
	cbz	x0, LBB0_21
LBB0_18:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_19:
	mov	x0, x19
	bl	_hw_err
Lloh27:
	adrp	x8, _IXGBE_ERR_PHY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IXGBE_ERR_PHY@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_21:
	ldr	w8, [sp, #12]
Lloh30:
	adrp	x9, _IXGBE_CS4227_EEPROM_LOAD_OK@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IXGBE_CS4227_EEPROM_LOAD_OK@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.22:
	mov	x0, #0
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_PE_OUTPUT,4,2            ; @IXGBE_PE_OUTPUT
	.comm	_IXGBE_PE_BIT1,4,2              ; @IXGBE_PE_BIT1
	.comm	_IXGBE_PE_CONFIG,4,2            ; @IXGBE_PE_CONFIG
	.comm	_IXGBE_CS4227_RESET_HOLD,8,3    ; @IXGBE_CS4227_RESET_HOLD
	.comm	_IXGBE_CS4227_RESET_DELAY,4,2   ; @IXGBE_CS4227_RESET_DELAY
	.comm	_IXGBE_CS4227_RETRIES,8,3       ; @IXGBE_CS4227_RETRIES
	.comm	_IXGBE_CS4227_EFUSE_STATUS,4,2  ; @IXGBE_CS4227_EFUSE_STATUS
	.comm	_IXGBE_CS4227_EEPROM_LOAD_OK,4,2 ; @IXGBE_CS4227_EEPROM_LOAD_OK
	.comm	_IXGBE_CS4227_CHECK_DELAY,4,2   ; @IXGBE_CS4227_CHECK_DELAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CS4227 reset did not complete\n"

	.comm	_IXGBE_ERR_PHY,8,3              ; @IXGBE_ERR_PHY
	.comm	_IXGBE_CS4227_EEPROM_STATUS,4,2 ; @IXGBE_CS4227_EEPROM_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"CS4227 EEPROM did not load successfully\n"

	.no_dead_strip	_ixgbe_reset_cs4227
.subsections_via_symbols
