	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RIOFreeDisconnected
_RIOFreeDisconnected:                   ## @RIOFreeDisconnected
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_RIO_DEBUG_ROUTE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_LINKS_PER_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rsi
	movslq	%ebx, %r12
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	%r12, %rcx
	shlq	$4, %rcx
	movq	8(%rsi,%rcx), %rcx
	movq	_ROUTE_DISCONNECT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rdi,8)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	cmpq	%rdi, %rax
	jne	LBB0_3
LBB0_5:
	shlq	$4, %r12
	movslq	(%rsi,%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	decq	%rbx
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	shlq	$4, %rbx
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r15), %rsi
LBB0_7:
	addq	%r12, %rsi
	movq	%r14, %rdi
	callq	_RIORemoveFromSavedTable
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RIO_DEBUG_ROUTE,4,2            ## @RIO_DEBUG_ROUTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RIOFreeDisconnect unit %d\n"

	.comm	_LINKS_PER_UNIT,4,2             ## @LINKS_PER_UNIT
	.comm	_ROUTE_DISCONNECT,8,3           ## @ROUTE_DISCONNECT
L_.str.1:                               ## @.str.1
	.asciz	"RioFreedis second slot %d.\n"

	.comm	_LBOLT,4,2                      ## @LBOLT
	.comm	_TentTime,8,3                   ## @TentTime
	.comm	_WAIT_TO_FINISH,8,3             ## @WAIT_TO_FINISH
	.comm	_current_time,8,3               ## @current_time
	.comm	_elapse_time,8,3                ## @elapse_time
	.no_dead_strip	_RIOFreeDisconnected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RIOFreeDisconnected
_RIOFreeDisconnected:                   ; @RIOFreeDisconnected
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _RIO_DEBUG_ROUTE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RIO_DEBUG_ROUTE@GOTPAGEOFF]
	ldr	w0, [x22]
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rio_dprintk
Lloh4:
	adrp	x8, _LINKS_PER_UNIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LINKS_PER_UNIT@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x8]
	ldr	x8, [x20]
	sxtw	x21, w21
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	add	x10, x8, x21, lsl #4
	ldr	x10, [x10, #8]
Lloh7:
	adrp	x11, _ROUTE_DISCONNECT@GOTPAGE
Lloh8:
	ldr	x11, [x11, _ROUTE_DISCONNECT@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cmp	x12, x11
	b.ne	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
	lsl	x9, x21, #4
	ldr	w9, [x8, x9]
	cbz	w9, LBB0_6
; %bb.5:
	sub	w23, w9, #1
	ldr	w0, [x22]
	str	x23, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_rio_dprintk
	ldr	x8, [x20]
	add	x0, x8, w23, sxtw #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x20]
LBB0_6:
	add	x1, x8, x21, lsl #4
	mov	x0, x19
	bl	_RIORemoveFromSavedTable
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RIO_DEBUG_ROUTE,4,2            ; @RIO_DEBUG_ROUTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RIOFreeDisconnect unit %d\n"

	.comm	_LINKS_PER_UNIT,4,2             ; @LINKS_PER_UNIT
	.comm	_ROUTE_DISCONNECT,8,3           ; @ROUTE_DISCONNECT
l_.str.1:                               ; @.str.1
	.asciz	"RioFreedis second slot %d.\n"

	.comm	_LBOLT,4,2                      ; @LBOLT
	.comm	_TentTime,8,3                   ; @TentTime
	.comm	_WAIT_TO_FINISH,8,3             ; @WAIT_TO_FINISH
	.comm	_current_time,8,3               ; @current_time
	.comm	_elapse_time,8,3                ; @elapse_time
	.no_dead_strip	_RIOFreeDisconnected
.subsections_via_symbols
