	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_reset_phy_generic        ## -- Begin function ixgbe_reset_phy_generic
	.p2align	4, 0x90
_ixgbe_reset_phy_generic:               ## @ixgbe_reset_phy_generic
	.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
	movl	$0, -44(%rbp)
	movq	(%rdi), %rax
	movq	_ixgbe_phy_unknown@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_ixgbe_identify_phy_generic
	testq	%rax, %rax
	jne	LBB0_21
## %bb.2:
	movq	(%rbx), %rax
LBB0_3:
	movq	_ixgbe_phy_none@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.5:
	cmpl	$0, 32(%rbx)
	jne	LBB0_8
## %bb.6:
	movq	_IXGBE_ERR_OVERTEMP@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%rbx, %rdi
	callq	*8(%rbx)
	cmpq	%rax, %r14
	je	LBB0_20
LBB0_8:
	movq	%rbx, %rdi
	callq	_ixgbe_check_reset_blocked
	testq	%rax, %rax
	je	LBB0_10
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_CTRL1_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movl	$30, %r12d
	movq	_ixgbe_phy_x550em_ext_t@GOTPCREL(%rip), %r13
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %r15
	leaq	-44(%rbp), %r14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	decl	%r12d
	je	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_msleep
	movq	(%rbx), %rcx
	movq	16(%rbx), %rax
	cmpq	(%r13), %rcx
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_IXGBE_MDIO_TX_VENDOR_ALARMS_3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_IXGBE_MDIO_TX_VENDOR_ALARMS_3_RST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_11
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_MDIO_CTRL1_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_11
LBB0_17:
	movl	$2, %edi
	callq	_udelay
LBB0_18:
	movq	_MDIO_CTRL1_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_20
## %bb.19:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hw_dbg
	movq	_IXGBE_ERR_RESET_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ixgbe_phy_unknown,8,3          ## @ixgbe_phy_unknown
	.comm	_ixgbe_phy_none,8,3             ## @ixgbe_phy_none
	.comm	_IXGBE_ERR_OVERTEMP,8,3         ## @IXGBE_ERR_OVERTEMP
	.comm	_MDIO_CTRL1,4,2                 ## @MDIO_CTRL1
	.comm	_MDIO_MMD_PHYXS,4,2             ## @MDIO_MMD_PHYXS
	.comm	_MDIO_CTRL1_RESET,4,2           ## @MDIO_CTRL1_RESET
	.comm	_ixgbe_phy_x550em_ext_t,8,3     ## @ixgbe_phy_x550em_ext_t
	.comm	_IXGBE_MDIO_TX_VENDOR_ALARMS_3,4,2 ## @IXGBE_MDIO_TX_VENDOR_ALARMS_3
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_IXGBE_MDIO_TX_VENDOR_ALARMS_3_RST_MASK,4,2 ## @IXGBE_MDIO_TX_VENDOR_ALARMS_3_RST_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY reset polling failed to complete.\n"

	.comm	_IXGBE_ERR_RESET_FAILED,8,3     ## @IXGBE_ERR_RESET_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_reset_phy_generic        ; -- Begin function ixgbe_reset_phy_generic
	.p2align	2
_ixgbe_reset_phy_generic:               ; @ixgbe_reset_phy_generic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ixgbe_phy_unknown@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ixgbe_phy_unknown@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ixgbe_identify_phy_generic
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x19]
LBB0_3:
Lloh3:
	adrp	x9, _ixgbe_phy_none@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ixgbe_phy_none@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _IXGBE_ERR_OVERTEMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IXGBE_ERR_OVERTEMP@GOTPAGEOFF]
Lloh8:
	ldr	x20, [x8]
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	cmp	x20, x0
	b.eq	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_ixgbe_check_reset_blocked
	cbz	x0, LBB0_9
LBB0_7:
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x21, _MDIO_CTRL1@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MDIO_CTRL1@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh11:
	adrp	x22, _MDIO_MMD_PHYXS@GOTPAGE
Lloh12:
	ldr	x22, [x22, _MDIO_MMD_PHYXS@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh13:
	adrp	x20, _MDIO_CTRL1_RESET@GOTPAGE
Lloh14:
	ldr	x20, [x20, _MDIO_CTRL1_RESET@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x0, x19
	blr	x8
	mov	w23, #30
Lloh15:
	adrp	x24, _ixgbe_phy_x550em_ext_t@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ixgbe_phy_x550em_ext_t@GOTPAGEOFF]
Lloh17:
	adrp	x25, _IXGBE_MDIO_TX_VENDOR_ALARMS_3@GOTPAGE
Lloh18:
	ldr	x25, [x25, _IXGBE_MDIO_TX_VENDOR_ALARMS_3@GOTPAGEOFF]
Lloh19:
	adrp	x26, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh20:
	ldr	x26, [x26, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh21:
	adrp	x27, _IXGBE_MDIO_TX_VENDOR_ALARMS_3_RST_MASK@GOTPAGE
Lloh22:
	ldr	x27, [x27, _IXGBE_MDIO_TX_VENDOR_ALARMS_3_RST_MASK@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	subs	w23, w23, #1
	b.eq	LBB0_17
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	bl	_msleep
	ldr	x9, [x19]
	ldr	x10, [x24]
	ldr	x8, [x19, #16]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x25]
	ldr	w2, [x26]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_10
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_10
LBB0_16:
	mov	w0, #2
	bl	_udelay
LBB0_17:
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.18:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
Lloh25:
	adrp	x8, _IXGBE_ERR_RESET_FAILED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IXGBE_ERR_RESET_FAILED@GOTPAGEOFF]
Lloh27:
	ldr	x0, [x8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ixgbe_phy_unknown,8,3          ; @ixgbe_phy_unknown
	.comm	_ixgbe_phy_none,8,3             ; @ixgbe_phy_none
	.comm	_IXGBE_ERR_OVERTEMP,8,3         ; @IXGBE_ERR_OVERTEMP
	.comm	_MDIO_CTRL1,4,2                 ; @MDIO_CTRL1
	.comm	_MDIO_MMD_PHYXS,4,2             ; @MDIO_MMD_PHYXS
	.comm	_MDIO_CTRL1_RESET,4,2           ; @MDIO_CTRL1_RESET
	.comm	_ixgbe_phy_x550em_ext_t,8,3     ; @ixgbe_phy_x550em_ext_t
	.comm	_IXGBE_MDIO_TX_VENDOR_ALARMS_3,4,2 ; @IXGBE_MDIO_TX_VENDOR_ALARMS_3
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_IXGBE_MDIO_TX_VENDOR_ALARMS_3_RST_MASK,4,2 ; @IXGBE_MDIO_TX_VENDOR_ALARMS_3_RST_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY reset polling failed to complete.\n"

	.comm	_IXGBE_ERR_RESET_FAILED,8,3     ; @IXGBE_ERR_RESET_FAILED
.subsections_via_symbols
