	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_sfp_external_phy
_xgbe_phy_sfp_external_phy:             ## @xgbe_phy_sfp_external_phy
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	cmpl	$0, 16(%rbx)
	je	LBB0_4
## %bb.1:
	movl	$0, (%rbx)
	movq	8(%rbx), %rax
	movq	_XGBE_SFP_BASE_1000_T@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_xgbe_phy_i2c_mii_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGBE_SFP_BASE_1000_T,8,3       ## @XGBE_SFP_BASE_1000_T
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.no_dead_strip	_xgbe_phy_sfp_external_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_sfp_external_phy
_xgbe_phy_sfp_external_phy:             ; @xgbe_phy_sfp_external_phy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_4
; %bb.1:
	str	wzr, [x19]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _XGBE_SFP_BASE_1000_T@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XGBE_SFP_BASE_1000_T@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_xgbe_phy_i2c_mii_read
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XGBE_SFP_BASE_1000_T,8,3       ; @XGBE_SFP_BASE_1000_T
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.no_dead_strip	_xgbe_phy_sfp_external_phy
.subsections_via_symbols
