	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_identify_phy_generic     ## -- Begin function ixgbe_identify_phy_generic
	.p2align	4, 0x90
_ixgbe_identify_phy_generic:            ## @ixgbe_identify_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, %r15
	cmpq	$0, 16(%rdi)
	jne	LBB0_5
## %bb.1:
	cmpq	$0, 24(%r15)
	jne	LBB0_2
## %bb.3:
	movq	_IXGBE_GSSR_PHY0_SM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IXGBE_GSSR_PHY1_SM@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_5:
	movq	(%r15), %rax
	movq	_ixgbe_phy_unknown@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.6:
	movq	_IXGBE_ERR_PHY_ADDR_INVALID@GOTPCREL(%rip), %rbx
	movl	8(%r15), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.9:
	movq	_IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	movq	%r15, %rdi
	callq	_ixgbe_probe_phy
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_16
## %bb.10:
	movl	(%rbx), %r14d
	jmp	LBB0_16
LBB0_7:
	movl	(%rbx), %r12d
	movq	_IXGBE_MAX_PHY_ADDR@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ixgbe_probe_phy
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_12
LBB0_14:
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.15:
	movq	_MDIO_PRTAD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	%r12d, %r14d
	jmp	LBB0_16
LBB0_13:
	xorl	%r14d, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_ERR_PHY_ADDR_INVALID,4,2 ## @IXGBE_ERR_PHY_ADDR_INVALID
	.comm	_IXGBE_GSSR_PHY1_SM,8,3         ## @IXGBE_GSSR_PHY1_SM
	.comm	_IXGBE_GSSR_PHY0_SM,8,3         ## @IXGBE_GSSR_PHY0_SM
	.comm	_ixgbe_phy_unknown,8,3          ## @ixgbe_phy_unknown
	.comm	_IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD,4,2 ## @IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD
	.comm	_IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD_SHIFT,4,2 ## @IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD_SHIFT
	.comm	_IXGBE_MAX_PHY_ADDR,4,2         ## @IXGBE_MAX_PHY_ADDR
	.comm	_MDIO_PRTAD_NONE,4,2            ## @MDIO_PRTAD_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_identify_phy_generic     ; -- Begin function ixgbe_identify_phy_generic
	.p2align	2
_ixgbe_identify_phy_generic:            ; @ixgbe_identify_phy_generic
	.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
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _IXGBE_GSSR_PHY0_SM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IXGBE_GSSR_PHY0_SM@GOTPAGEOFF]
Lloh2:
	adrp	x10, _IXGBE_GSSR_PHY1_SM@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IXGBE_GSSR_PHY1_SM@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_2:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _ixgbe_phy_unknown@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ixgbe_phy_unknown@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
Lloh7:
	adrp	x20, _IXGBE_ERR_PHY_ADDR_INVALID@GOTPAGE
Lloh8:
	ldr	x20, [x20, _IXGBE_ERR_PHY_ADDR_INVALID@GOTPAGEOFF]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x9, _IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh12:
	adrp	x9, _IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	asr	w1, w8, w9
	mov	x0, x19
	bl	_ixgbe_probe_phy
	ldr	w8, [x20]
	cmp	x0, #0
	csel	w20, w8, wzr, eq
	b	LBB0_12
LBB0_5:
	ldr	w20, [x20]
Lloh15:
	adrp	x22, _IXGBE_MAX_PHY_ADDR@GOTPAGE
Lloh16:
	ldr	x22, [x22, _IXGBE_MAX_PHY_ADDR@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	w21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_ixgbe_probe_phy
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_7
LBB0_9:
	cbz	w20, LBB0_12
; %bb.10:
Lloh17:
	adrp	x8, _MDIO_PRTAD_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MDIO_PRTAD_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_ERR_PHY_ADDR_INVALID,4,2 ; @IXGBE_ERR_PHY_ADDR_INVALID
	.comm	_IXGBE_GSSR_PHY1_SM,8,3         ; @IXGBE_GSSR_PHY1_SM
	.comm	_IXGBE_GSSR_PHY0_SM,8,3         ; @IXGBE_GSSR_PHY0_SM
	.comm	_ixgbe_phy_unknown,8,3          ; @ixgbe_phy_unknown
	.comm	_IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD,4,2 ; @IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD
	.comm	_IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD_SHIFT,4,2 ; @IXGBE_NW_MNG_IF_SEL_MDIO_PHY_ADD_SHIFT
	.comm	_IXGBE_MAX_PHY_ADDR,4,2         ; @IXGBE_MAX_PHY_ADDR
	.comm	_MDIO_PRTAD_NONE,4,2            ; @MDIO_PRTAD_NONE
.subsections_via_symbols
