	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _cpsw_adjust_link
__cpsw_adjust_link:                     ## @_cpsw_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.1:
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	32(%rsi), %r12
	movl	16(%rdi), %edi
	callq	_cpsw_get_slave_port
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	_CPSW_SL_CTL_GMII_EN@GOTPCREL(%rip), %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	xorl	%ecx, %ecx
	movl	$0, %r12d
	cmpl	$1000, %edi                     ## imm = 0x3E8
	jne	LBB0_4
## %bb.3:
	movq	_CPSW_SL_CTL_GIG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r12d
LBB0_4:
	orl	(%rdx), %r12d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, 8(%rdx)
	je	LBB0_6
## %bb.5:
	movq	_CPSW_SL_CTL_FULLDUPLEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	orl	%ecx, %r12d
	cmpl	$10, %edi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.7:
	cmpl	$100, %edi
	jne	LBB0_13
## %bb.8:
	movq	_CPSW_SL_CTL_IFCTL_A@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	jmp	LBB0_13
LBB0_9:
	movl	(%r12), %edi
	movq	_ALE_PORT_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ALE_PORT_STATE_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_cpsw_ale_control_set
	movl	4(%r14), %edi
	movl	$100, %esi
	callq	_cpsw_sl_wait_for_idle
	movl	4(%r14), %edi
	callq	_cpsw_sl_ctl_reset
	xorl	%r13d, %r13d
	jmp	LBB0_25
LBB0_10:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_phy_interface_is_rgmii
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_CPSW_SL_CTL_EXT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_12:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
LBB0_13:
	xorl	%edx, %edx
	cmpq	$0, 24(%r15)
	movl	$0, %r13d
	je	LBB0_15
## %bb.14:
	movq	_CPSW_SL_CTL_RX_FLOW_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_15:
	cmpq	$0, 16(%r15)
	je	LBB0_17
## %bb.16:
	movq	_CPSW_SL_CTL_TX_FLOW_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_17:
	orl	%edx, %r12d
	orl	%r12d, %r13d
	cmpl	(%r14), %r13d
	je	LBB0_19
## %bb.18:
	movl	4(%r14), %edi
	movl	%r13d, %esi
	movl	%eax, %r12d
	callq	_cpsw_sl_ctl_set
	movl	%r12d, %eax
LBB0_19:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movq	_ALE_PORT_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ALE_PORT_STATE_FORWARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	callq	_cpsw_ale_control_set
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	movq	8(%r14), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_23
LBB0_22:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_23:
	movq	%r15, %rdi
	callq	_cpsw_shp_is_off
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_25
## %bb.24:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_25:
	cmpl	(%r14), %r13d
	je	LBB0_27
## %bb.26:
	movq	%rbx, %rdi
	callq	_phy_print_status
LBB0_27:
	movl	%r13d, (%r14)
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPSW_SL_CTL_GMII_EN,4,2        ## @CPSW_SL_CTL_GMII_EN
	.comm	_CPSW_SL_CTL_GIG,4,2            ## @CPSW_SL_CTL_GIG
	.comm	_CPSW_SL_CTL_FULLDUPLEX,4,2     ## @CPSW_SL_CTL_FULLDUPLEX
	.comm	_CPSW_SL_CTL_IFCTL_A,4,2        ## @CPSW_SL_CTL_IFCTL_A
	.comm	_CPSW_SL_CTL_EXT_EN,4,2         ## @CPSW_SL_CTL_EXT_EN
	.comm	_CPSW_SL_CTL_RX_FLOW_EN,4,2     ## @CPSW_SL_CTL_RX_FLOW_EN
	.comm	_CPSW_SL_CTL_TX_FLOW_EN,4,2     ## @CPSW_SL_CTL_TX_FLOW_EN
	.comm	_ALE_PORT_STATE,4,2             ## @ALE_PORT_STATE
	.comm	_ALE_PORT_STATE_FORWARD,4,2     ## @ALE_PORT_STATE_FORWARD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Speed was changed, CBS shaper speeds are changed!"

	.comm	_ALE_PORT_STATE_DISABLE,4,2     ## @ALE_PORT_STATE_DISABLE
	.no_dead_strip	__cpsw_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _cpsw_adjust_link
__cpsw_adjust_link:                     ; @_cpsw_adjust_link
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_18
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x25, [x1, #32]
	ldr	w0, [x0, #16]
	bl	_cpsw_get_slave_port
	mov	x23, x0
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _CPSW_SL_CTL_GMII_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPSW_SL_CTL_GMII_EN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	w8, [x20]
Lloh3:
	adrp	x10, _CPSW_SL_CTL_GIG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CPSW_SL_CTL_GIG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, #1000
	csel	w10, w10, wzr, eq
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _CPSW_SL_CTL_FULLDUPLEX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CPSW_SL_CTL_FULLDUPLEX@GOTPAGEOFF]
	ldr	x11, [x20, #8]
Lloh8:
	ldr	w10, [x10]
	cmp	x11, #0
	csel	w10, wzr, w10, eq
	orr	w24, w9, w10
	cmp	w8, #10
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #100
	b.ne	LBB0_9
; %bb.4:
Lloh9:
	adrp	x8, _CPSW_SL_CTL_IFCTL_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CPSW_SL_CTL_IFCTL_A@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	w0, [x25]
Lloh11:
	adrp	x8, _ALE_PORT_STATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ALE_PORT_STATE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _ALE_PORT_STATE_DISABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ALE_PORT_STATE_DISABLE@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x1, x23
	bl	_cpsw_ale_control_set
	ldr	w0, [x19, #4]
	mov	w1, #100
	bl	_cpsw_sl_wait_for_idle
	ldr	w0, [x19, #4]
	bl	_cpsw_sl_ctl_reset
	mov	w24, #0
	b	LBB0_15
LBB0_6:
	mov	x0, x20
	bl	_phy_interface_is_rgmii
	cbz	x0, LBB0_9
; %bb.7:
Lloh17:
	adrp	x8, _CPSW_SL_CTL_EXT_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CPSW_SL_CTL_EXT_EN@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	orr	w24, w8, w24
LBB0_9:
Lloh19:
	adrp	x8, _CPSW_SL_CTL_RX_FLOW_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CPSW_SL_CTL_RX_FLOW_EN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldp	x10, x9, [x21, #16]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	orr	w8, w8, w24
Lloh22:
	adrp	x9, _CPSW_SL_CTL_TX_FLOW_EN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CPSW_SL_CTL_TX_FLOW_EN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w24, w8, w9
	ldr	w8, [x19]
	cmp	w24, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x19, #4]
	mov	x1, x24
	bl	_cpsw_sl_ctl_set
LBB0_11:
	ldr	w0, [x25]
Lloh25:
	adrp	x8, _ALE_PORT_STATE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ALE_PORT_STATE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x8, _ALE_PORT_STATE_FORWARD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ALE_PORT_STATE_FORWARD@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x1, x23
	bl	_cpsw_ale_control_set
	mov	w8, #1
	str	w8, [x22]
	ldr	x8, [x21]
	cbz	x8, LBB0_15
; %bb.12:
	ldr	x9, [x19, #8]
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.13:
	mov	x0, x21
	bl	_cpsw_shp_is_off
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	w0, [x21, #8]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_15:
	ldr	w8, [x19]
	cmp	w24, w8
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_phy_print_status
LBB0_17:
	str	w24, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CPSW_SL_CTL_GMII_EN,4,2        ; @CPSW_SL_CTL_GMII_EN
	.comm	_CPSW_SL_CTL_GIG,4,2            ; @CPSW_SL_CTL_GIG
	.comm	_CPSW_SL_CTL_FULLDUPLEX,4,2     ; @CPSW_SL_CTL_FULLDUPLEX
	.comm	_CPSW_SL_CTL_IFCTL_A,4,2        ; @CPSW_SL_CTL_IFCTL_A
	.comm	_CPSW_SL_CTL_EXT_EN,4,2         ; @CPSW_SL_CTL_EXT_EN
	.comm	_CPSW_SL_CTL_RX_FLOW_EN,4,2     ; @CPSW_SL_CTL_RX_FLOW_EN
	.comm	_CPSW_SL_CTL_TX_FLOW_EN,4,2     ; @CPSW_SL_CTL_TX_FLOW_EN
	.comm	_ALE_PORT_STATE,4,2             ; @ALE_PORT_STATE
	.comm	_ALE_PORT_STATE_FORWARD,4,2     ; @ALE_PORT_STATE_FORWARD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Speed was changed, CBS shaper speeds are changed!"

	.comm	_ALE_PORT_STATE_DISABLE,4,2     ; @ALE_PORT_STATE_DISABLE
	.no_dead_strip	__cpsw_adjust_link
.subsections_via_symbols
