	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_setup_port_mode
_mv88e6xxx_setup_port_mode:             ## @mv88e6xxx_setup_port_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_dsa_is_dsa_port
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mv88e6xxx_set_port_mode_dsa    ## TAILCALL
LBB0_1:
	movl	8(%rbx), %edi
	movl	%r14d, %esi
	callq	_dsa_is_user_port
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mv88e6xxx_set_port_mode_normal ## TAILCALL
LBB0_2:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_DSA_TAG_PROTO_DSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_DSA_TAG_PROTO_EDSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mv88e6xxx_set_port_mode_edsa   ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSA_TAG_PROTO_DSA,8,3          ## @DSA_TAG_PROTO_DSA
	.comm	_DSA_TAG_PROTO_EDSA,8,3         ## @DSA_TAG_PROTO_EDSA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mv88e6xxx_setup_port_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_setup_port_mode
_mv88e6xxx_setup_port_mode:             ; @mv88e6xxx_setup_port_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_dsa_is_dsa_port
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mv88e6xxx_set_port_mode_dsa
LBB0_2:
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_dsa_is_user_port
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mv88e6xxx_set_port_mode_normal
LBB0_4:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _DSA_TAG_PROTO_DSA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DSA_TAG_PROTO_DSA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.5:
Lloh3:
	adrp	x9, _DSA_TAG_PROTO_EDSA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DSA_TAG_PROTO_EDSA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mv88e6xxx_set_port_mode_edsa
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DSA_TAG_PROTO_DSA,8,3          ; @DSA_TAG_PROTO_DSA
	.comm	_DSA_TAG_PROTO_EDSA,8,3         ; @DSA_TAG_PROTO_EDSA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mv88e6xxx_setup_port_mode
.subsections_via_symbols
