	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6390_port_set_speed       ## -- Begin function mv88e6390_port_set_speed
	.p2align	4, 0x90
_mv88e6390_port_set_speed:              ## @mv88e6390_port_set_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	movq	_SPEED_MAX@GOTPCREL(%rip), %r8
	cmpl	$9, %esi
	movl	$1000, %ecx                     ## imm = 0x3E8
	movl	$2500, %edx                     ## imm = 0x9C4
	cmovll	%ecx, %edx
	cmpl	%eax, (%r8)
	cmovnel	%eax, %edx
	cmpl	$2501, %edx                     ## imm = 0x9C5
	jge	LBB0_5
## %bb.1:
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	cmpl	$200, %edx
	je	LBB0_5
LBB0_3:
	cmpl	$8, %esi
	jg	LBB0_6
## %bb.4:
	cmpl	$2500, %edx                     ## imm = 0x9C4
	jne	LBB0_6
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_6:
	movl	$1, %ecx
	movl	$1, %r8d
	popq	%rbp
	jmp	_mv88e6xxx_port_set_speed       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_MAX,4,2                  ## @SPEED_MAX
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6390_port_set_speed       ; -- Begin function mv88e6390_port_set_speed
	.p2align	2
_mv88e6390_port_set_speed:              ; @mv88e6390_port_set_speed
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SPEED_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #2500
	mov	w10, #1000
	cmp	w1, #9
	csel	w9, w10, w9, lt
	cmp	w8, w2
	csel	w2, w9, w2, eq
	cmp	w2, #2501
	b.ge	LBB0_5
; %bb.1:
	cbz	w1, LBB0_3
; %bb.2:
	cmp	w2, #200
	b.eq	LBB0_5
LBB0_3:
	cmp	w1, #8
	b.gt	LBB0_6
; %bb.4:
	cmp	w2, #2500
	b.ne	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	mov	w3, #1
	mov	w4, #1
	b	_mv88e6xxx_port_set_speed
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_MAX,4,2                  ; @SPEED_MAX
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
