	.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
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_14
## %bb.2:
	movq	(%rbx), %rax
LBB0_3:
	movq	_ixgbe_phy_none@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_13:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_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_13
LBB0_8:
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_MDIO_CTRL1_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movl	$30, %r15d
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$100, %edi
	callq	_msleep
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	*16(%rbx)
	movq	_MDIO_CTRL1_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	decl	%r15d
	jne	LBB0_9
	jmp	LBB0_12
LBB0_11:
	movl	$2, %edi
	callq	_udelay
	movq	_MDIO_CTRL1_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_13
LBB0_12:
	movq	_IXGBE_ERR_RESET_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hw_dbg
LBB0_14:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_ERR_RESET_FAILED,8,3     ## @IXGBE_ERR_RESET_FAILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY reset polling failed to complete.\n"

.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, #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
	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
	mov	x20, x0
	cbnz	x0, LBB0_12
; %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.ne	LBB0_5
LBB0_4:
	mov	x20, #0
	b	LBB0_12
LBB0_5:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_7
; %bb.6:
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_4
LBB0_7:
	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
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #16]
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	subs	w23, w23, #1
	b.ne	LBB0_8
	b	LBB0_11
LBB0_10:
	mov	w0, #2
	bl	_udelay
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_11:
Lloh15:
	adrp	x8, _IXGBE_ERR_RESET_FAILED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IXGBE_ERR_RESET_FAILED@GOTPAGEOFF]
Lloh17:
	ldr	x20, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hw_dbg
LBB0_12:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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_ERR_RESET_FAILED,8,3     ; @IXGBE_ERR_RESET_FAILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY reset polling failed to complete.\n"

.subsections_via_symbols
