	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_phy
_init_phy:                              ## @init_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %r8
	movq	48(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r15)
	movl	$-1, (%r15)
	movl	(%rax), %esi
	movq	_adjust_link@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%r15), %rdx
	movq	_adjust_link@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_phy_connect_fixed_link
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	8(%r15), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_uec_configure_serdes
LBB0_5:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rcx
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	16(%r15), %rcx
	movq	_SPEED_1000@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_7:
	movl	%eax, 4(%rbx)
	movq	%rbx, 24(%r15)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_adjust_link,4,2                ## @adjust_link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not attach to PHY\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.no_dead_strip	_init_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_phy
_init_phy:                              ; @init_phy
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #48]
	stp	xzr, xzr, [x0, #32]
	mov	w9, #-1
	str	w9, [x0]
	ldr	w1, [x8]
	ldr	x4, [x0, #8]
Lloh0:
	adrp	x2, _adjust_link@GOTPAGE
Lloh1:
	ldr	x2, [x2, _adjust_link@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #0
	bl	_of_phy_connect
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x2, [x19, #8]
Lloh2:
	adrp	x1, _adjust_link@GOTPAGE
Lloh3:
	ldr	x1, [x1, _adjust_link@GOTPAGEOFF]
	mov	x0, x20
	bl	_of_phy_connect_fixed_link
	mov	x21, x0
	cbz	x0, LBB0_8
LBB0_2:
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_uec_configure_serdes
LBB0_4:
Lloh7:
	adrp	x8, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
	and	w8, w9, w8
	str	w8, [x21]
	ldr	x9, [x19, #16]
Lloh19:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
Lloh22:
	adrp	x9, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_6:
	mov	w0, #0
	str	w8, [x21, #4]
	str	x21, [x19, #24]
LBB0_7:
	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
LBB0_8:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh27:
	adrp	x8, _ENODEV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_adjust_link,4,2                ; @adjust_link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not attach to PHY\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.no_dead_strip	_init_phy
.subsections_via_symbols
