	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtswitch                       ## -- Begin function rtswitch
	.p2align	4, 0x90
_rtswitch:                              ## @rtswitch
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RS_MHOME@GOTPCREL(%rip), %rax
	movq	_RS_STATIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_RS_RDISC@GOTPCREL(%rip), %r12
	orl	(%r12), %ecx
	movq	_RS_NET_SYN@GOTPCREL(%rip), %r13
	orl	(%r13), %ecx
	movq	_RS_IF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, (%rdi)
	jne	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_rts_better
	movq	%rax, %r14
LBB0_3:
	movq	8(%rbx), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_BETTER_LINK
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	8(%rbx), %rax
	movq	(%rax), %r15
	movq	%r14, %rdx
	subq	%rax, %rdx
	shrq	$3, %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-58(%rbp), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_sprintf
	movl	(%r12), %esi
	orl	(%r13), %esi
	notl	%esi
	andl	(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	leaq	-58(%rbp), %rcx
	callq	_rtchange
	movq	_HOPCNT_INFINITY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_6
## %bb.5:
	movq	_rts_empty@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_6:
	movq	%r15, (%r14)
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RS_MHOME,4,2                   ## @RS_MHOME
	.comm	_RS_STATIC,4,2                  ## @RS_STATIC
	.comm	_RS_RDISC,4,2                   ## @RS_RDISC
	.comm	_RS_NET_SYN,4,2                 ## @RS_NET_SYN
	.comm	_RS_IF,4,2                      ## @RS_IF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Use #%d"

	.comm	_HOPCNT_INFINITY,8,3            ## @HOPCNT_INFINITY
	.comm	_rts_empty,8,3                  ## @rts_empty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtswitch                       ; -- Begin function rtswitch
	.p2align	2
_rtswitch:                              ; @rtswitch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _RS_MHOME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RS_MHOME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _RS_STATIC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RS_STATIC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x21, _RS_RDISC@GOTPAGE
Lloh10:
	ldr	x21, [x21, _RS_RDISC@GOTPAGEOFF]
	orr	w9, w10, w9
	ldr	w10, [x21]
	orr	w9, w9, w10
Lloh11:
	adrp	x22, _RS_NET_SYN@GOTPAGE
Lloh12:
	ldr	x22, [x22, _RS_NET_SYN@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w9, w9, w10
Lloh13:
	adrp	x10, _RS_IF@GOTPAGE
Lloh14:
	ldr	x10, [x10, _RS_IF@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	cbnz	x1, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_rts_better
	mov	x19, x0
LBB0_3:
	ldr	x2, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_BETTER_LINK
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x23, [x8]
	sub	x8, x19, x8
	lsr	x2, x8, #3
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #14
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_sprintf
	ldr	w8, [x20]
	ldr	w9, [x22]
	ldr	w10, [x21]
	orr	w9, w10, w9
	bic	w1, w8, w9
	add	x3, sp, #14
	mov	x0, x20
	mov	x2, x19
	bl	_rtchange
Lloh18:
	adrp	x8, _HOPCNT_INFINITY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HOPCNT_INFINITY@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _rts_empty@GOTPAGE
Lloh22:
	ldr	x9, [x9, _rts_empty@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x23, x8
	csel	x8, x9, x23, eq
	str	x8, [x19]
LBB0_5:
	ldr	x8, [sp, #24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_RS_MHOME,4,2                   ; @RS_MHOME
	.comm	_RS_STATIC,4,2                  ; @RS_STATIC
	.comm	_RS_RDISC,4,2                   ; @RS_RDISC
	.comm	_RS_NET_SYN,4,2                 ; @RS_NET_SYN
	.comm	_RS_IF,4,2                      ; @RS_IF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Use #%d"

	.comm	_HOPCNT_INFINITY,8,3            ; @HOPCNT_INFINITY
	.comm	_rts_empty,8,3                  ; @rts_empty
.subsections_via_symbols
