	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_adj_link
_bcm_sysport_adj_link:                  ## @bcm_sysport_adj_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	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %r14
	movq	(%rax), %rcx
	movq	(%r14), %rax
	xorl	%edx, %edx
	cmpq	%rax, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rax, (%r15)
	movl	$1, %edx
LBB0_2:
	movq	8(%r14), %rsi
	cmpq	%rsi, 8(%r15)
	jne	LBB0_6
## %bb.3:
	cmpq	$0, 24(%r15)
	je	LBB0_8
## %bb.4:
	cmpq	%rax, %rcx
	jne	LBB0_22
	jmp	LBB0_5
LBB0_6:
	movq	%rsi, 8(%r15)
	cmpq	$0, 24(%r15)
	jne	LBB0_22
## %bb.7:
	movl	$1, %edx
LBB0_8:
	movl	16(%r14), %ecx
	xorl	%r13d, %r13d
	addl	$-128, %ecx
	movl	$0, %edi
	cmpl	$3, %ecx
	ja	LBB0_15
## %bb.9:
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rdi, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	_CMD_SPEED_2500@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_11:
	movq	_CMD_SPEED_1000@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_12:
	movq	_CMD_SPEED_100@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_13:
	movq	_CMD_SPEED_10@GOTPCREL(%rip), %rcx
LBB0_14:
	movl	(%rcx), %edi
LBB0_15:
	movq	_CMD_SPEED_SHIFT@GOTPCREL(%rip), %r8
	movb	(%r8), %cl
	shll	%cl, %edi
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	movq	_CMD_HD_EN@GOTPCREL(%rip), %rbx
	cmpq	(%rcx), %rsi
	jne	LBB0_17
## %bb.16:
	movl	(%rbx), %r13d
LBB0_17:
	movq	24(%r14), %rcx
	cmpq	%rcx, 16(%r15)
	je	LBB0_19
## %bb.18:
	movq	%rcx, 16(%r15)
	movl	$1, %edx
LBB0_19:
	movq	_CMD_RX_PAUSE_IGNORE@GOTPCREL(%rip), %r12
	movq	_CMD_TX_PAUSE_IGNORE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	orl	(%r12), %ebx
	xorl	%esi, %esi
	testq	%rcx, %rcx
	cmovel	%ebx, %esi
	testl	%edx, %edx
	je	LBB0_5
## %bb.20:
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	orl	%edi, %r13d
	orl	%esi, %r13d
	movq	_UMAC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r8, %rbx
	callq	_umac_readl
	movq	_CMD_SPEED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movb	(%rbx), %cl
	shll	%cl, %esi
	movq	_CMD_HD_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	orl	(%r12), %esi
	movq	_CMD_TX_PAUSE_IGNORE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	orl	%r13d, %esi
	movq	_UMAC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_umac_writel
LBB0_22:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_print_status               ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_CMD_SPEED_2500,4,2             ## @CMD_SPEED_2500
	.comm	_CMD_SPEED_1000,4,2             ## @CMD_SPEED_1000
	.comm	_CMD_SPEED_100,4,2              ## @CMD_SPEED_100
	.comm	_CMD_SPEED_10,4,2               ## @CMD_SPEED_10
	.comm	_CMD_SPEED_SHIFT,4,2            ## @CMD_SPEED_SHIFT
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_CMD_HD_EN,4,2                  ## @CMD_HD_EN
	.comm	_CMD_RX_PAUSE_IGNORE,4,2        ## @CMD_RX_PAUSE_IGNORE
	.comm	_CMD_TX_PAUSE_IGNORE,4,2        ## @CMD_TX_PAUSE_IGNORE
	.comm	_UMAC_CMD,4,2                   ## @UMAC_CMD
	.comm	_CMD_SPEED_MASK,4,2             ## @CMD_SPEED_MASK
	.no_dead_strip	_bcm_sysport_adj_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sysport_adj_link
_bcm_sysport_adj_link:                  ; @bcm_sysport_adj_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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x19]
	ldr	x11, [x0]
	ldr	x8, [x19]
	cmp	x11, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w9, #0
	b	LBB0_3
LBB0_2:
	str	x8, [x20]
	mov	w9, #1
LBB0_3:
	ldr	x12, [x20, #8]
	ldr	x10, [x19, #8]
	cmp	x12, x10
	b.ne	LBB0_6
; %bb.4:
	ldr	x12, [x20, #24]
	cbz	x12, LBB0_8
; %bb.5:
	cmp	x11, x8
	b.ne	LBB0_21
	b	LBB0_22
LBB0_6:
	str	x10, [x20, #8]
	ldr	x9, [x20, #24]
	cbnz	x9, LBB0_21
; %bb.7:
	mov	w9, #1
LBB0_8:
	ldr	w11, [x19, #16]
	sub	w11, w11, #128
	cmp	w11, #3
	b.hi	LBB0_11
; %bb.9:
Lloh0:
	adrp	x12, lJTI0_0@PAGE
Lloh1:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_10
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_10:
Lloh2:
	adrp	x11, _CMD_SPEED_2500@GOTPAGE
Lloh3:
	ldr	x11, [x11, _CMD_SPEED_2500@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
	mov	w11, #0
	b	LBB0_16
LBB0_12:
Lloh4:
	adrp	x11, _CMD_SPEED_1000@GOTPAGE
Lloh5:
	ldr	x11, [x11, _CMD_SPEED_1000@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh6:
	adrp	x11, _CMD_SPEED_100@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CMD_SPEED_100@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh8:
	adrp	x11, _CMD_SPEED_10@GOTPAGE
Lloh9:
	ldr	x11, [x11, _CMD_SPEED_10@GOTPAGEOFF]
LBB0_15:
	ldr	w11, [x11]
LBB0_16:
Lloh10:
	adrp	x12, _DUPLEX_HALF@GOTPAGE
Lloh11:
	ldr	x12, [x12, _DUPLEX_HALF@GOTPAGEOFF]
Lloh12:
	ldr	x12, [x12]
Lloh13:
	adrp	x21, _CMD_HD_EN@GOTPAGE
Lloh14:
	ldr	x21, [x21, _CMD_HD_EN@GOTPAGEOFF]
	ldr	w13, [x21]
	cmp	x10, x12
	csel	w10, w13, wzr, eq
	ldr	x13, [x20, #16]
	ldr	x12, [x19, #24]
	cmp	x13, x12
	b.eq	LBB0_18
; %bb.17:
	str	x12, [x20, #16]
	mov	w9, #1
LBB0_18:
Lloh15:
	adrp	x22, _CMD_RX_PAUSE_IGNORE@GOTPAGE
Lloh16:
	ldr	x22, [x22, _CMD_RX_PAUSE_IGNORE@GOTPAGEOFF]
	ldr	w13, [x22]
Lloh17:
	adrp	x23, _CMD_TX_PAUSE_IGNORE@GOTPAGE
Lloh18:
	ldr	x23, [x23, _CMD_TX_PAUSE_IGNORE@GOTPAGEOFF]
	ldr	w14, [x23]
	orr	w13, w14, w13
	cmp	x12, #0
	csel	w12, w13, wzr, eq
	cbz	w9, LBB0_22
; %bb.19:
	cbz	x8, LBB0_21
; %bb.20:
Lloh19:
	adrp	x24, _CMD_SPEED_SHIFT@GOTPAGE
Lloh20:
	ldr	x24, [x24, _CMD_SPEED_SHIFT@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	w8, w11, w8
	orr	w8, w10, w8
	orr	w25, w8, w12
Lloh21:
	adrp	x26, _UMAC_CMD@GOTPAGE
Lloh22:
	ldr	x26, [x26, _UMAC_CMD@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x20
	bl	_umac_readl
Lloh23:
	adrp	x8, _CMD_SPEED_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CMD_SPEED_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x24]
	lsl	w8, w8, w9
	ldr	w9, [x21]
	orr	w8, w8, w9
	ldr	w9, [x22]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w8, w8, w9
	bic	w8, w0, w8
	orr	w1, w25, w8
	ldr	w2, [x26]
	mov	x0, x20
	bl	_umac_writel
LBB0_21:
	mov	x0, x19
	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
	b	_phy_print_status
LBB0_22:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
                                        ; -- End function
	.comm	_CMD_SPEED_2500,4,2             ; @CMD_SPEED_2500
	.comm	_CMD_SPEED_1000,4,2             ; @CMD_SPEED_1000
	.comm	_CMD_SPEED_100,4,2              ; @CMD_SPEED_100
	.comm	_CMD_SPEED_10,4,2               ; @CMD_SPEED_10
	.comm	_CMD_SPEED_SHIFT,4,2            ; @CMD_SPEED_SHIFT
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_CMD_HD_EN,4,2                  ; @CMD_HD_EN
	.comm	_CMD_RX_PAUSE_IGNORE,4,2        ; @CMD_RX_PAUSE_IGNORE
	.comm	_CMD_TX_PAUSE_IGNORE,4,2        ; @CMD_TX_PAUSE_IGNORE
	.comm	_UMAC_CMD,4,2                   ; @UMAC_CMD
	.comm	_CMD_SPEED_MASK,4,2             ; @CMD_SPEED_MASK
	.no_dead_strip	_bcm_sysport_adj_link
.subsections_via_symbols
