	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv643xx_eth_adjust_link
_mv643xx_eth_adjust_link:               ## @mv643xx_eth_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_PORT_SERIAL_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_rdlp
	movq	_FORCE_LINK_PASS@GOTPCREL(%rip), %rdx
	movq	_DISABLE_AUTO_NEG_SPEED_GMII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_DISABLE_AUTO_NEG_FOR_FLOW_CTRL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_DISABLE_AUTO_NEG_FOR_DUPLEX@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	(%rbx), %rdx
	movq	(%rdx), %rsi
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_2
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	jmp	LBB0_7
LBB0_2:
	orl	%eax, %ecx
	movq	8(%rdx), %rdi
	movq	_SPEED_1000@GOTPCREL(%rip), %rsi
	movq	_SET_GMII_SPEED_TO_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	(%rsi), %rdi
	jne	LBB0_4
## %bb.3:
	orl	%ecx, %eax
	movq	_SET_FULL_DUPLEX_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	notl	%eax
	andl	%eax, %ecx
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movq	_SET_MII_SPEED_TO_100@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, %ebx
	orl	%ecx, %ebx
	notl	%esi
	andl	%ecx, %esi
	cmpq	(%rax), %rdi
	cmovel	%ebx, %esi
	movq	16(%rdx), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	movq	_SET_FULL_DUPLEX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	orl	%esi, %eax
	jmp	LBB0_7
LBB0_6:
	notl	%eax
	andl	%esi, %eax
LBB0_7:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrlp                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_SERIAL_CONTROL,4,2        ## @PORT_SERIAL_CONTROL
	.comm	_FORCE_LINK_PASS,4,2            ## @FORCE_LINK_PASS
	.comm	_DISABLE_AUTO_NEG_SPEED_GMII,4,2 ## @DISABLE_AUTO_NEG_SPEED_GMII
	.comm	_DISABLE_AUTO_NEG_FOR_FLOW_CTRL,4,2 ## @DISABLE_AUTO_NEG_FOR_FLOW_CTRL
	.comm	_DISABLE_AUTO_NEG_FOR_DUPLEX,4,2 ## @DISABLE_AUTO_NEG_FOR_DUPLEX
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SET_GMII_SPEED_TO_1000,4,2     ## @SET_GMII_SPEED_TO_1000
	.comm	_SET_FULL_DUPLEX_MODE,4,2       ## @SET_FULL_DUPLEX_MODE
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SET_MII_SPEED_TO_100,4,2       ## @SET_MII_SPEED_TO_100
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.no_dead_strip	_mv643xx_eth_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv643xx_eth_adjust_link
_mv643xx_eth_adjust_link:               ; @mv643xx_eth_adjust_link
	.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
Lloh0:
	adrp	x21, _PORT_SERIAL_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PORT_SERIAL_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_rdlp
Lloh2:
	adrp	x8, _FORCE_LINK_PASS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FORCE_LINK_PASS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DISABLE_AUTO_NEG_SPEED_GMII@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DISABLE_AUTO_NEG_SPEED_GMII@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _DISABLE_AUTO_NEG_FOR_FLOW_CTRL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DISABLE_AUTO_NEG_FOR_FLOW_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _DISABLE_AUTO_NEG_FOR_DUPLEX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DISABLE_AUTO_NEG_FOR_DUPLEX@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w9, w8, w9
	ldr	x8, [x20]
	ldr	x10, [x8]
Lloh14:
	adrp	x11, _AUTONEG_ENABLE@GOTPAGE
Lloh15:
	ldr	x11, [x11, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_2
; %bb.1:
	bic	w2, w0, w9
	b	LBB0_5
LBB0_2:
	orr	w10, w9, w0
Lloh17:
	adrp	x11, _SPEED_1000@GOTPAGE
Lloh18:
	ldr	x11, [x11, _SPEED_1000@GOTPAGEOFF]
	ldr	x9, [x8, #8]
Lloh19:
	ldr	x12, [x11]
Lloh20:
	adrp	x11, _SET_GMII_SPEED_TO_1000@GOTPAGE
Lloh21:
	ldr	x11, [x11, _SET_GMII_SPEED_TO_1000@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	cmp	x9, x12
	b.ne	LBB0_4
; %bb.3:
	orr	w8, w11, w10
Lloh23:
	adrp	x9, _SET_FULL_DUPLEX_MODE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SET_FULL_DUPLEX_MODE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w8, w9
	b	LBB0_5
LBB0_4:
	bic	w10, w10, w11
Lloh26:
	adrp	x11, _SPEED_100@GOTPAGE
Lloh27:
	ldr	x11, [x11, _SPEED_100@GOTPAGEOFF]
Lloh28:
	ldr	x11, [x11]
Lloh29:
	adrp	x12, _SET_MII_SPEED_TO_100@GOTPAGE
Lloh30:
	ldr	x12, [x12, _SET_MII_SPEED_TO_100@GOTPAGEOFF]
Lloh31:
	ldr	w12, [x12]
	orr	w13, w12, w10
	bic	w10, w10, w12
	cmp	x9, x11
	csel	w9, w13, w10, eq
	ldr	x8, [x8, #16]
Lloh32:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh33:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh34:
	adrp	x11, _SET_FULL_DUPLEX_MODE@GOTPAGE
Lloh35:
	ldr	x11, [x11, _SET_FULL_DUPLEX_MODE@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
Lloh37:
	ldr	w11, [x11]
	cmp	x8, x10
	bic	w8, w9, w11
	orr	w9, w11, w9
	csel	w2, w8, w9, ne
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x19
	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
	b	_wrlp
	.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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_SERIAL_CONTROL,4,2        ; @PORT_SERIAL_CONTROL
	.comm	_FORCE_LINK_PASS,4,2            ; @FORCE_LINK_PASS
	.comm	_DISABLE_AUTO_NEG_SPEED_GMII,4,2 ; @DISABLE_AUTO_NEG_SPEED_GMII
	.comm	_DISABLE_AUTO_NEG_FOR_FLOW_CTRL,4,2 ; @DISABLE_AUTO_NEG_FOR_FLOW_CTRL
	.comm	_DISABLE_AUTO_NEG_FOR_DUPLEX,4,2 ; @DISABLE_AUTO_NEG_FOR_DUPLEX
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SET_GMII_SPEED_TO_1000,4,2     ; @SET_GMII_SPEED_TO_1000
	.comm	_SET_FULL_DUPLEX_MODE,4,2       ; @SET_FULL_DUPLEX_MODE
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SET_MII_SPEED_TO_100,4,2       ; @SET_MII_SPEED_TO_100
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.no_dead_strip	_mv643xx_eth_adjust_link
.subsections_via_symbols
