	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_switch_generic_set_link        ## -- Begin function switch_generic_set_link
	.p2align	4, 0x90
_switch_generic_set_link:               ## @switch_generic_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_1:
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rax
	movq	_MII_BMCR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	*(%rax)
	movq	(%r15), %rax
	movl	(%r12), %edx
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rsi
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	jmp	LBB0_13
LBB0_3:
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_5:
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$130, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.8:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rax
LBB0_10:
	orl	(%rax), %ecx
LBB0_11:
	movq	(%r15), %rax
	movq	_MII_BMCR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_switch_generic_set_link        ; -- Begin function switch_generic_set_link
	.p2align	2
_switch_generic_set_link:               ; @switch_generic_set_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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_2:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh3:
	adrp	x21, _MII_BMCR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MII_BMCR@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _BMCR_ANRESTART@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w3, w10, w9
	b	LBB0_11
LBB0_4:
Lloh11:
	adrp	x8, _BMCR_FULLDPLX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BMCR_FULLDPLX@GOTPAGEOFF]
	ldr	x9, [x21, #8]
Lloh13:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w3, wzr, w8, eq
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_1
; %bb.7:
Lloh14:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _BMCR_SPEED1000@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BMCR_SPEED1000@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	orr	w3, w8, w3
LBB0_10:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _MII_BMCR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MII_BMCR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x9]
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	w0, #0
LBB0_12:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
.subsections_via_symbols
