	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b53_port_set_link
_b53_port_set_link:                     ## @b53_port_set_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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_sw_to_b53
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is63xx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	cmpl	%r15d, (%r12)
	je	LBB0_4
## %bb.5:
	movl	%r15d, %edi
	callq	_BIT
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.6:
	movq	(%r14), %rax
	movq	_SWITCH_PORT_SPEED_1000@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_is5325
	testq	%rax, %rax
	jne	LBB0_4
## %bb.8:
	movq	%rbx, %rdi
	callq	_is5365
	testq	%rax, %rax
	jne	LBB0_4
## %bb.9:
	movq	(%r14), %rax
	movq	(%r13), %rcx
LBB0_10:
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.11:
	cmpl	$0, 8(%r14)
	je	LBB0_4
LBB0_12:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_switch_generic_set_link        ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SWITCH_PORT_SPEED_1000,8,3     ## @SWITCH_PORT_SPEED_1000
	.no_dead_strip	_b53_port_set_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b53_port_set_link
_b53_port_set_link:                     ; @b53_port_set_link
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_sw_to_b53
	mov	x22, x0
	bl	_is63xx
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_11
; %bb.3:
	mov	x0, x20
	bl	_BIT
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.4:
	ldr	x8, [x19]
Lloh2:
	adrp	x23, _SWITCH_PORT_SPEED_1000@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SWITCH_PORT_SPEED_1000@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x22
	bl	_is5325
	cbnz	x0, LBB0_11
; %bb.6:
	mov	x0, x22
	bl	_is5365
	cbnz	x0, LBB0_11
; %bb.7:
	ldr	x8, [x19]
	ldr	x9, [x23]
LBB0_8:
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_11
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_switch_generic_set_link
LBB0_11:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SWITCH_PORT_SPEED_1000,8,3     ; @SWITCH_PORT_SPEED_1000
	.no_dead_strip	_b53_port_set_link
.subsections_via_symbols
