	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_phy_start
_xgbe_phy_start:                        ## @xgbe_phy_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %r15
	callq	*(%rdi)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	cmpq	$0, 16(%r15)
	je	LBB0_5
## %bb.2:
	cmpl	$0, 12(%r15)
	je	LBB0_3
LBB0_5:
	movl	4(%r15), %esi
	movq	%r14, %rdi
	callq	_xgbe_phy_set_mode
	movq	%r14, %rdi
	callq	_xgbe_phy_cdr_track
	cmpl	$128, (%r15)
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_xgbe_phy_sfp_detect
LBB0_7:
	movq	%r14, %rdi
	callq	_xgbe_phy_find_phy_device
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	*8(%r14)
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movl	8(%r15), %esi
	movq	_XGBE_MDIO_MODE_CL22@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	*24(%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movl	16(%r14), %edi
	movl	8(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGBE_MDIO_MODE_CL22,4,2        ## @XGBE_MDIO_MODE_CL22
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"redriver mdio port not compatible (%u)\n"

	.no_dead_strip	_xgbe_phy_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgbe_phy_start
_xgbe_phy_start:                        ; @xgbe_phy_start
	.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	x21, [x0, #32]
	ldr	x8, [x0]
	blr	x8
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_7
LBB0_3:
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_xgbe_phy_set_mode
	mov	x0, x19
	bl	_xgbe_phy_cdr_track
	ldr	w8, [x21]
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_xgbe_phy_sfp_detect
LBB0_5:
	mov	x0, x19
	bl	_xgbe_phy_find_phy_device
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #24]
	ldr	w1, [x21, #8]
Lloh0:
	adrp	x9, _XGBE_MDIO_MODE_CL22@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XGBE_MDIO_MODE_CL22@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_3
; %bb.8:
	mov	x20, x0
	ldr	w0, [x19, #16]
	ldr	w2, [x21, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_XGBE_MDIO_MODE_CL22,4,2        ; @XGBE_MDIO_MODE_CL22
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"redriver mdio port not compatible (%u)\n"

	.no_dead_strip	_xgbe_phy_start
.subsections_via_symbols
