	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc73xx_adjust_link
_vsc73xx_adjust_link:                   ## @vsc73xx_adjust_link
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	(%rdi), %rbx
	movq	_CPU_PORT@GOTPCREL(%rip), %r14
	cmpl	%esi, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_vsc73xx_init_port
	movq	_VSC73XX_BLOCK_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	_VSC73XX_ADVPORTM@GOTPCREL(%rip), %rax
	movq	_VSC73XX_ADVPORTM_EXT_PORT@GOTPCREL(%rip), %rcx
	movq	_VSC73XX_ADVPORTM_ENA_GTX@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	orl	(%rcx), %r8d
	movl	(%rax), %ecx
	movq	_VSC73XX_ADVPORTM_DDR_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	%rbx, %rdi
	callq	_vsc73xx_write
LBB0_2:
	cmpl	$0, 24(%r15)
	je	LBB0_3
## %bb.8:
	movq	(%r15), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.9:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_dbg
	movq	8(%r15), %rax
	movq	_PHY_INTERFACE_MODE_RGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	movq	_VSC73XX_MAC_CFG_1000M_F_RGMII@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_dbg
	movq	_VSC73XX_BLOCK_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VSC73XX_MAC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VSC73XX_MAC_CFG_RX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%r9d, %r9d
	callq	_vsc73xx_update_bits
	movq	_VSC73XX_BLOCK_ARBITER@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_VSC73XX_ARBDISC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_vsc73xx_update_bits
	movl	(%r13), %esi
	movq	_VSC73XX_ARBEMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r15
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_vsc73xx_read
	movl	$-10, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %r14d
	movl	%r12d, %edi
	callq	_BIT
	testl	%r14d, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_msleep
	movq	_VSC73XX_BLOCK_ARBITER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VSC73XX_ARBEMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_vsc73xx_read
	incl	%r13d
	jne	LBB0_4
## %bb.6:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_7:
	movq	_VSC73XX_BLOCK_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VSC73XX_MAC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VSC73XX_MAC_CFG_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_vsc73xx_write
	movq	_VSC73XX_BLOCK_ARBITER@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movq	_VSC73XX_ARBDISC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_vsc73xx_update_bits
	movl	(%r13), %r13d
	movq	_VSC73XX_SBACKWDROP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_vsc73xx_update_bits
	movq	_VSC73XX_BLOCK_ANALYZER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_VSC73XX_RECVMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%r9d, %r9d
	callq	_vsc73xx_update_bits
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.14:
	movq	16(%r15), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	_VSC73XX_MAC_CFG_100_10M_F_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_17
LBB0_10:
	movq	_VSC73XX_MAC_CFG_1000M_F_PHY@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_vsc73xx_adjust_enable_port
	jmp	LBB0_21
LBB0_18:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	16(%r15), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	_VSC73XX_MAC_CFG_100_10M_H_PHY@GOTPCREL(%rip), %rax
	cmoveq	_VSC73XX_MAC_CFG_100_10M_F_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, -44(%rbp)
	jmp	LBB0_17
LBB0_16:
	movq	_VSC73XX_MAC_CFG_100_10M_H_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, -44(%rbp)
	leaq	L_.str.4(%rip), %rsi
LBB0_17:
	movl	(%rbx), %edi
	movl	%r12d, %edx
	callq	_dev_dbg
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_vsc73xx_adjust_enable_port
	jmp	LBB0_21
LBB0_20:
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_err
LBB0_21:
	movq	_VSC73XX_BLOCK_ANALYZER@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_VSC73XX_RECVMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r12d, %edi
	callq	_BIT
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vsc73xx_update_bits            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPU_PORT,4,2                   ## @CPU_PORT
	.comm	_VSC73XX_BLOCK_MAC,4,2          ## @VSC73XX_BLOCK_MAC
	.comm	_VSC73XX_ADVPORTM,4,2           ## @VSC73XX_ADVPORTM
	.comm	_VSC73XX_ADVPORTM_EXT_PORT,4,2  ## @VSC73XX_ADVPORTM_EXT_PORT
	.comm	_VSC73XX_ADVPORTM_ENA_GTX,4,2   ## @VSC73XX_ADVPORTM_ENA_GTX
	.comm	_VSC73XX_ADVPORTM_DDR_MODE,4,2  ## @VSC73XX_ADVPORTM_DDR_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port %d: went down\n"

	.comm	_VSC73XX_MAC_CFG,4,2            ## @VSC73XX_MAC_CFG
	.comm	_VSC73XX_MAC_CFG_RX_EN,4,2      ## @VSC73XX_MAC_CFG_RX_EN
	.comm	_VSC73XX_BLOCK_ARBITER,4,2      ## @VSC73XX_BLOCK_ARBITER
	.comm	_VSC73XX_ARBDISC,4,2            ## @VSC73XX_ARBDISC
	.comm	_VSC73XX_ARBEMPTY,4,2           ## @VSC73XX_ARBEMPTY
L_.str.1:                               ## @.str.1
	.asciz	"timeout waiting for block arbiter\n"

	.comm	_VSC73XX_MAC_CFG_RESET,4,2      ## @VSC73XX_MAC_CFG_RESET
	.comm	_VSC73XX_SBACKWDROP,4,2         ## @VSC73XX_SBACKWDROP
	.comm	_VSC73XX_BLOCK_ANALYZER,4,2     ## @VSC73XX_BLOCK_ANALYZER
	.comm	_VSC73XX_RECVMASK,4,2           ## @VSC73XX_RECVMASK
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
L_.str.2:                               ## @.str.2
	.asciz	"port %d: 1000 Mbit mode full duplex\n"

	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ## @PHY_INTERFACE_MODE_RGMII
	.comm	_VSC73XX_MAC_CFG_1000M_F_RGMII,4,2 ## @VSC73XX_MAC_CFG_1000M_F_RGMII
	.comm	_VSC73XX_MAC_CFG_1000M_F_PHY,4,2 ## @VSC73XX_MAC_CFG_1000M_F_PHY
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_VSC73XX_MAC_CFG_100_10M_F_PHY,4,2 ## @VSC73XX_MAC_CFG_100_10M_F_PHY
L_.str.3:                               ## @.str.3
	.asciz	"port %d: 100 Mbit full duplex mode\n"

	.comm	_VSC73XX_MAC_CFG_100_10M_H_PHY,4,2 ## @VSC73XX_MAC_CFG_100_10M_H_PHY
L_.str.4:                               ## @.str.4
	.asciz	"port %d: 100 Mbit half duplex mode\n"

	.comm	_SPEED_10,8,3                   ## @SPEED_10
L_.str.5:                               ## @.str.5
	.asciz	"port %d: 10 Mbit full duplex mode\n"

L_.str.6:                               ## @.str.6
	.asciz	"port %d: 10 Mbit half duplex mode\n"

L_.str.7:                               ## @.str.7
	.asciz	"could not adjust link: unknown speed\n"

	.no_dead_strip	_vsc73xx_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc73xx_adjust_link
_vsc73xx_adjust_link:                   ; @vsc73xx_adjust_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x22, _CPU_PORT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CPU_PORT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_vsc73xx_init_port
Lloh2:
	adrp	x8, _VSC73XX_BLOCK_MAC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VSC73XX_BLOCK_MAC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x22]
Lloh5:
	adrp	x8, _VSC73XX_ADVPORTM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VSC73XX_ADVPORTM@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x8, _VSC73XX_ADVPORTM_EXT_PORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VSC73XX_ADVPORTM_EXT_PORT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _VSC73XX_ADVPORTM_ENA_GTX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VSC73XX_ADVPORTM_ENA_GTX@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _VSC73XX_ADVPORTM_DDR_MODE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VSC73XX_ADVPORTM_DDR_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w4, w8, w9
	mov	x0, x19
	bl	_vsc73xx_write
LBB0_2:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x21]
Lloh17:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	ldr	x8, [x21, #8]
Lloh22:
	adrp	x9, _PHY_INTERFACE_MODE_RGMII@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_RGMII@GOTPAGEOFF]
Lloh24:
	adrp	x10, _VSC73XX_MAC_CFG_1000M_F_RGMII@GOTPAGE
Lloh25:
	ldr	x10, [x10, _VSC73XX_MAC_CFG_1000M_F_RGMII@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x11, _VSC73XX_MAC_CFG_1000M_F_PHY@GOTPAGE
Lloh28:
	ldr	x11, [x11, _VSC73XX_MAC_CFG_1000M_F_PHY@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_vsc73xx_adjust_enable_port
	b	LBB0_18
LBB0_5:
	ldr	w0, [x19]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
Lloh31:
	adrp	x25, _VSC73XX_BLOCK_MAC@GOTPAGE
Lloh32:
	ldr	x25, [x25, _VSC73XX_BLOCK_MAC@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh33:
	adrp	x26, _VSC73XX_MAC_CFG@GOTPAGE
Lloh34:
	ldr	x26, [x26, _VSC73XX_MAC_CFG@GOTPAGEOFF]
	ldr	w3, [x26]
Lloh35:
	adrp	x8, _VSC73XX_MAC_CFG_RX_EN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VSC73XX_MAC_CFG_RX_EN@GOTPAGEOFF]
Lloh37:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	w5, #0
	bl	_vsc73xx_update_bits
Lloh38:
	adrp	x24, _VSC73XX_BLOCK_ARBITER@GOTPAGE
Lloh39:
	ldr	x24, [x24, _VSC73XX_BLOCK_ARBITER@GOTPAGEOFF]
	ldr	w21, [x24]
Lloh40:
	adrp	x27, _VSC73XX_ARBDISC@GOTPAGE
Lloh41:
	ldr	x27, [x27, _VSC73XX_ARBDISC@GOTPAGEOFF]
	ldr	w22, [x27]
	mov	x0, x20
	bl	_BIT
	mov	x23, x0
	mov	x0, x20
	bl	_BIT
	mov	x5, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	mov	x4, x23
	bl	_vsc73xx_update_bits
	ldr	w1, [x24]
Lloh42:
	adrp	x21, _VSC73XX_ARBEMPTY@GOTPAGE
Lloh43:
	ldr	x21, [x21, _VSC73XX_ARBEMPTY@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x4, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_vsc73xx_read
	mov	w22, #-10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [sp, #12]
	mov	x0, x20
	bl	_BIT
	tst	w0, w23
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_msleep
	ldr	w1, [x24]
	ldr	w3, [x21]
	add	x4, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_vsc73xx_read
	adds	w22, w22, #1
	b.lo	LBB0_6
; %bb.8:
	ldr	w0, [x19]
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_9:
	ldr	w1, [x25]
	ldr	w3, [x26]
Lloh46:
	adrp	x8, _VSC73XX_MAC_CFG_RESET@GOTPAGE
Lloh47:
	ldr	x8, [x8, _VSC73XX_MAC_CFG_RESET@GOTPAGEOFF]
Lloh48:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_vsc73xx_write
	ldr	w21, [x24]
	ldr	w22, [x27]
	mov	x0, x20
	bl	_BIT
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	mov	w5, #0
	bl	_vsc73xx_update_bits
	ldr	w21, [x24]
Lloh49:
	adrp	x8, _VSC73XX_SBACKWDROP@GOTPAGE
Lloh50:
	ldr	x8, [x8, _VSC73XX_SBACKWDROP@GOTPAGEOFF]
Lloh51:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_BIT
	mov	x23, x0
	mov	x0, x20
	bl	_BIT
	mov	x5, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	mov	x4, x23
	bl	_vsc73xx_update_bits
Lloh52:
	adrp	x8, _VSC73XX_BLOCK_ANALYZER@GOTPAGE
Lloh53:
	ldr	x8, [x8, _VSC73XX_BLOCK_ANALYZER@GOTPAGEOFF]
Lloh54:
	ldr	w21, [x8]
Lloh55:
	adrp	x8, _VSC73XX_RECVMASK@GOTPAGE
Lloh56:
	ldr	x8, [x8, _VSC73XX_RECVMASK@GOTPAGEOFF]
Lloh57:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_BIT
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	mov	w5, #0
	bl	_vsc73xx_update_bits
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
Lloh58:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh59:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x21, #16]
Lloh61:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh62:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.12:
Lloh64:
	adrp	x8, _VSC73XX_MAC_CFG_100_10M_F_PHY@GOTPAGE
Lloh65:
	ldr	x8, [x8, _VSC73XX_MAC_CFG_100_10M_F_PHY@GOTPAGEOFF]
Lloh66:
	ldr	w22, [x8]
Lloh67:
	adrp	x1, l_.str.3@PAGE
Lloh68:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_13:
Lloh69:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh70:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:
	ldr	x8, [x21, #16]
Lloh72:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh73:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
Lloh75:
	adrp	x10, l_.str.6@PAGE
Lloh76:
	add	x10, x10, l_.str.6@PAGEOFF
Lloh77:
	adrp	x11, l_.str.5@PAGE
Lloh78:
	add	x11, x11, l_.str.5@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
Lloh79:
	adrp	x8, _VSC73XX_MAC_CFG_100_10M_F_PHY@GOTPAGE
Lloh80:
	ldr	x8, [x8, _VSC73XX_MAC_CFG_100_10M_F_PHY@GOTPAGEOFF]
Lloh81:
	adrp	x9, _VSC73XX_MAC_CFG_100_10M_H_PHY@GOTPAGE
Lloh82:
	ldr	x9, [x9, _VSC73XX_MAC_CFG_100_10M_H_PHY@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
	str	w22, [sp, #12]
	b	LBB0_16
LBB0_15:
Lloh83:
	adrp	x8, _VSC73XX_MAC_CFG_100_10M_H_PHY@GOTPAGE
Lloh84:
	ldr	x8, [x8, _VSC73XX_MAC_CFG_100_10M_H_PHY@GOTPAGEOFF]
Lloh85:
	ldr	w22, [x8]
	str	w22, [sp, #12]
Lloh86:
	adrp	x1, l_.str.4@PAGE
Lloh87:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_16:
	ldr	w0, [x19]
	mov	x2, x20
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_vsc73xx_adjust_enable_port
	b	LBB0_18
LBB0_17:
	ldr	w0, [x19]
Lloh88:
	adrp	x1, l_.str.7@PAGE
Lloh89:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
LBB0_18:
Lloh90:
	adrp	x8, _VSC73XX_BLOCK_ANALYZER@GOTPAGE
Lloh91:
	ldr	x8, [x8, _VSC73XX_BLOCK_ANALYZER@GOTPAGEOFF]
Lloh92:
	ldr	w21, [x8]
Lloh93:
	adrp	x8, _VSC73XX_RECVMASK@GOTPAGE
Lloh94:
	ldr	x8, [x8, _VSC73XX_RECVMASK@GOTPAGEOFF]
Lloh95:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_BIT
	mov	x23, x0
	mov	x0, x20
	bl	_BIT
	mov	x5, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	mov	x4, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vsc73xx_update_bits
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.cfi_endproc
                                        ; -- End function
	.comm	_CPU_PORT,4,2                   ; @CPU_PORT
	.comm	_VSC73XX_BLOCK_MAC,4,2          ; @VSC73XX_BLOCK_MAC
	.comm	_VSC73XX_ADVPORTM,4,2           ; @VSC73XX_ADVPORTM
	.comm	_VSC73XX_ADVPORTM_EXT_PORT,4,2  ; @VSC73XX_ADVPORTM_EXT_PORT
	.comm	_VSC73XX_ADVPORTM_ENA_GTX,4,2   ; @VSC73XX_ADVPORTM_ENA_GTX
	.comm	_VSC73XX_ADVPORTM_DDR_MODE,4,2  ; @VSC73XX_ADVPORTM_DDR_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port %d: went down\n"

	.comm	_VSC73XX_MAC_CFG,4,2            ; @VSC73XX_MAC_CFG
	.comm	_VSC73XX_MAC_CFG_RX_EN,4,2      ; @VSC73XX_MAC_CFG_RX_EN
	.comm	_VSC73XX_BLOCK_ARBITER,4,2      ; @VSC73XX_BLOCK_ARBITER
	.comm	_VSC73XX_ARBDISC,4,2            ; @VSC73XX_ARBDISC
	.comm	_VSC73XX_ARBEMPTY,4,2           ; @VSC73XX_ARBEMPTY
l_.str.1:                               ; @.str.1
	.asciz	"timeout waiting for block arbiter\n"

	.comm	_VSC73XX_MAC_CFG_RESET,4,2      ; @VSC73XX_MAC_CFG_RESET
	.comm	_VSC73XX_SBACKWDROP,4,2         ; @VSC73XX_SBACKWDROP
	.comm	_VSC73XX_BLOCK_ANALYZER,4,2     ; @VSC73XX_BLOCK_ANALYZER
	.comm	_VSC73XX_RECVMASK,4,2           ; @VSC73XX_RECVMASK
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
l_.str.2:                               ; @.str.2
	.asciz	"port %d: 1000 Mbit mode full duplex\n"

	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ; @PHY_INTERFACE_MODE_RGMII
	.comm	_VSC73XX_MAC_CFG_1000M_F_RGMII,4,2 ; @VSC73XX_MAC_CFG_1000M_F_RGMII
	.comm	_VSC73XX_MAC_CFG_1000M_F_PHY,4,2 ; @VSC73XX_MAC_CFG_1000M_F_PHY
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_VSC73XX_MAC_CFG_100_10M_F_PHY,4,2 ; @VSC73XX_MAC_CFG_100_10M_F_PHY
l_.str.3:                               ; @.str.3
	.asciz	"port %d: 100 Mbit full duplex mode\n"

	.comm	_VSC73XX_MAC_CFG_100_10M_H_PHY,4,2 ; @VSC73XX_MAC_CFG_100_10M_H_PHY
l_.str.4:                               ; @.str.4
	.asciz	"port %d: 100 Mbit half duplex mode\n"

	.comm	_SPEED_10,8,3                   ; @SPEED_10
l_.str.5:                               ; @.str.5
	.asciz	"port %d: 10 Mbit full duplex mode\n"

l_.str.6:                               ; @.str.6
	.asciz	"port %d: 10 Mbit half duplex mode\n"

l_.str.7:                               ; @.str.7
	.asciz	"could not adjust link: unknown speed\n"

	.no_dead_strip	_vsc73xx_adjust_link
.subsections_via_symbols
