	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_setup_internal_phy_t_x550em
_ixgbe_setup_internal_phy_t_x550em:     ## @ixgbe_setup_internal_phy_t_x550em
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	*24(%rdi)
	movq	_ixgbe_media_type_copper@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	16(%rbx), %rax
	movq	_ixgbe_mac_X550EM_x@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
LBB0_3:
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rax
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ixgbe_setup_kr_speed_x550em    ## TAILCALL
LBB0_4:
	movq	_IXGBE_ERR_CONFIG@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	leaq	-12(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ixgbe_ext_phy_t_x550em_get_link
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:
	cmpl	$0, -12(%rbp)
	je	LBB0_16
## %bb.9:
	movq	_IXGBE_MDIO_AUTO_NEG_VENDOR_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-16(%rbp), %rcx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:
	leaq	-12(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ixgbe_ext_phy_t_x550em_get_link
	testq	%rax, %rax
	jne	LBB0_6
## %bb.11:
	cmpl	$0, -12(%rbp)
	je	LBB0_16
## %bb.12:
	movq	_IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_MASK@GOTPCREL(%rip), %rcx
	movl	-16(%rbp), %eax
	andl	(%rcx), %eax
	movl	%eax, -16(%rbp)
	cmpl	$129, %eax
	je	LBB0_17
## %bb.13:
	cmpl	$128, %eax
	jne	LBB0_19
## %bb.14:
	movq	_IXGBE_LINK_SPEED_1GB_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_17:
	movq	_IXGBE_LINK_SPEED_10GB_FULL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ixgbe_setup_ixfi_x550em
	jmp	LBB0_6
LBB0_19:
	movq	_IXGBE_ERR_INVALID_LINK_SETTINGS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ixgbe_media_type_copper,8,3    ## @ixgbe_media_type_copper
	.comm	_IXGBE_ERR_CONFIG,8,3           ## @IXGBE_ERR_CONFIG
	.comm	_ixgbe_mac_X550EM_x,8,3         ## @ixgbe_mac_X550EM_x
	.comm	_IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE,4,2 ## @IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ## @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ## @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_MDIO_AUTO_NEG_VENDOR_STAT,4,2 ## @IXGBE_MDIO_AUTO_NEG_VENDOR_STAT
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_MASK,4,2 ## @IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_MASK
	.comm	_IXGBE_ERR_INVALID_LINK_SETTINGS,8,3 ## @IXGBE_ERR_INVALID_LINK_SETTINGS
	.no_dead_strip	_ixgbe_setup_internal_phy_t_x550em
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_setup_internal_phy_t_x550em
_ixgbe_setup_internal_phy_t_x550em:     ; @ixgbe_setup_internal_phy_t_x550em
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	blr	x8
Lloh0:
	adrp	x8, _ixgbe_media_type_copper@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ixgbe_media_type_copper@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _ixgbe_mac_X550EM_x@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ixgbe_mac_X550EM_x@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_3:
Lloh9:
	adrp	x8, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ixgbe_setup_kr_speed_x550em
LBB0_4:
Lloh15:
	adrp	x8, _IXGBE_ERR_CONFIG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IXGBE_ERR_CONFIG@GOTPAGEOFF]
LBB0_5:
	ldr	x0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ixgbe_ext_phy_t_x550em_get_link
	cbnz	x0, LBB0_6
; %bb.8:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_15
; %bb.9:
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _IXGBE_MDIO_AUTO_NEG_VENDOR_STAT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IXGBE_MDIO_AUTO_NEG_VENDOR_STAT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
Lloh20:
	adrp	x9, _MDIO_MMD_AN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MDIO_MMD_AN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x9]
	add	x3, sp, #4
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_6
; %bb.10:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ixgbe_ext_phy_t_x550em_get_link
	cbnz	x0, LBB0_6
; %bb.11:
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_15
; %bb.12:
Lloh23:
	adrp	x8, _IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]
	and	w8, w9, w8
	str	w8, [sp, #4]
	cmp	w8, #129
	b.eq	LBB0_16
; %bb.13:
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.14:
Lloh26:
	adrp	x8, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IXGBE_LINK_SPEED_1GB_FULL@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	mov	x0, #0
	b	LBB0_6
LBB0_16:
Lloh28:
	adrp	x8, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IXGBE_LINK_SPEED_10GB_FULL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x1, sp, #12
	mov	x0, x19
	bl	_ixgbe_setup_ixfi_x550em
	b	LBB0_6
LBB0_18:
Lloh30:
	adrp	x8, _IXGBE_ERR_INVALID_LINK_SETTINGS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IXGBE_ERR_INVALID_LINK_SETTINGS@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ixgbe_media_type_copper,8,3    ; @ixgbe_media_type_copper
	.comm	_IXGBE_ERR_CONFIG,8,3           ; @IXGBE_ERR_CONFIG
	.comm	_ixgbe_mac_X550EM_x,8,3         ; @ixgbe_mac_X550EM_x
	.comm	_IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE,4,2 ; @IXGBE_NW_MNG_IF_SEL_INT_PHY_MODE
	.comm	_IXGBE_LINK_SPEED_10GB_FULL,4,2 ; @IXGBE_LINK_SPEED_10GB_FULL
	.comm	_IXGBE_LINK_SPEED_1GB_FULL,4,2  ; @IXGBE_LINK_SPEED_1GB_FULL
	.comm	_IXGBE_MDIO_AUTO_NEG_VENDOR_STAT,4,2 ; @IXGBE_MDIO_AUTO_NEG_VENDOR_STAT
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_MASK,4,2 ; @IXGBE_MDIO_AUTO_NEG_VENDOR_STATUS_MASK
	.comm	_IXGBE_ERR_INVALID_LINK_SETTINGS,8,3 ; @IXGBE_ERR_INVALID_LINK_SETTINGS
	.no_dead_strip	_ixgbe_setup_internal_phy_t_x550em
.subsections_via_symbols
