	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uec_configure_serdes
_uec_configure_serdes:                  ## @uec_configure_serdes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rax), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.1:
	callq	_of_phy_find_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	_ENET_TBI_MII_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_phy_read
	movq	_TBISR_LSTATUS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_ENET_TBI_MII_ANA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TBIANA_SETTINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_write
	movq	_ENET_TBI_MII_TBICON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TBICON_CLK_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_write
	movq	_ENET_TBI_MII_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TBICR_SETTINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_phy_write
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_put_device                     ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SGMII mode requires that the device tree specify a tbi-handle\n"

L_.str.1:                               ## @.str.1
	.asciz	"error: Could not get TBI device\n"

	.comm	_ENET_TBI_MII_SR,4,2            ## @ENET_TBI_MII_SR
	.comm	_TBISR_LSTATUS,4,2              ## @TBISR_LSTATUS
	.comm	_ENET_TBI_MII_ANA,4,2           ## @ENET_TBI_MII_ANA
	.comm	_TBIANA_SETTINGS,4,2            ## @TBIANA_SETTINGS
	.comm	_ENET_TBI_MII_TBICON,4,2        ## @ENET_TBI_MII_TBICON
	.comm	_TBICON_CLK_SELECT,4,2          ## @TBICON_CLK_SELECT
	.comm	_ENET_TBI_MII_CR,4,2            ## @ENET_TBI_MII_CR
	.comm	_TBICR_SETTINGS,4,2             ## @TBICR_SETTINGS
	.no_dead_strip	_uec_configure_serdes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uec_configure_serdes
_uec_configure_serdes:                  ; @uec_configure_serdes
	.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
	mov	x20, x0
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	w0, [x8]
	cbz	w0, LBB0_5
; %bb.1:
	bl	_of_phy_find_device
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _ENET_TBI_MII_SR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENET_TBI_MII_SR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_phy_read
Lloh3:
	adrp	x8, _TBISR_LSTATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TBISR_LSTATUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _ENET_TBI_MII_ANA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENET_TBI_MII_ANA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _TBIANA_SETTINGS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TBIANA_SETTINGS@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
Lloh12:
	adrp	x8, _ENET_TBI_MII_TBICON@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENET_TBI_MII_TBICON@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _TBICON_CLK_SELECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TBICON_CLK_SELECT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
Lloh18:
	adrp	x8, _ENET_TBI_MII_CR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENET_TBI_MII_CR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _TBICR_SETTINGS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TBICR_SETTINGS@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_put_device
LBB0_5:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
LBB0_6:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SGMII mode requires that the device tree specify a tbi-handle\n"

l_.str.1:                               ; @.str.1
	.asciz	"error: Could not get TBI device\n"

	.comm	_ENET_TBI_MII_SR,4,2            ; @ENET_TBI_MII_SR
	.comm	_TBISR_LSTATUS,4,2              ; @TBISR_LSTATUS
	.comm	_ENET_TBI_MII_ANA,4,2           ; @ENET_TBI_MII_ANA
	.comm	_TBIANA_SETTINGS,4,2            ; @TBIANA_SETTINGS
	.comm	_ENET_TBI_MII_TBICON,4,2        ; @ENET_TBI_MII_TBICON
	.comm	_TBICON_CLK_SELECT,4,2          ; @TBICON_CLK_SELECT
	.comm	_ENET_TBI_MII_CR,4,2            ; @ENET_TBI_MII_CR
	.comm	_TBICR_SETTINGS,4,2             ; @TBICR_SETTINGS
	.no_dead_strip	_uec_configure_serdes
.subsections_via_symbols
