	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RIOFindFreeID                  ## -- Begin function RIOFindFreeID
	.p2align	4, 0x90
_RIOFindFreeID:                         ## @RIOFindFreeID
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_MAX_RUP@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rdx)
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	movl	%eax, (%rcx)
LBB0_2:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.3:
	movq	_RIO_DEBUG_ROUTE@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	(%r13), %rax
	cmpl	$0, (%rax,%rbx,4)
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	movl	(%r14), %edi
	cmpl	(%r15), %eax
	jne	LBB0_23
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %r12
	movq	%r13, %r14
	movq	%r15, %r13
	movq	%rcx, %r15
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movl	%ebx, (%r15)
	movq	%r13, %r15
	movq	%r14, %r13
	movq	%r12, %r14
	leaq	L_.str(%rip), %r12
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_4
	jmp	LBB0_25
LBB0_8:
	movq	_RIO_DEBUG_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	cmpl	$0, (%r15)
	jle	LBB0_22
## %bb.9:
	movq	_SLOT_TENTATIVE@GOTPCREL(%rip), %rsi
	movq	_RTA16_SECOND_SLOT@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%eax, (%rdx)
	je	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_22
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%rsi), %ecx
	andl	%eax, %ecx
	je	LBB0_11
	jmp	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rdx, %r14
	movq	_RIO_DEBUG_ROUTE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	%r14, %rdx
	movq	_SLOT_TENTATIVE@GOTPCREL(%rip), %rsi
	jmp	LBB0_11
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r13), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_RIOFreeDisconnected
	testq	%rax, %rax
	movq	%r14, %rdx
	movq	_SLOT_TENTATIVE@GOTPCREL(%rip), %rsi
	jne	LBB0_11
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_RIO_DEBUG_ROUTE@GOTPCREL(%rip), %r12
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	(%r15), %eax
	jne	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r12), %edi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	leaq	(,%rbx,4), %rdi
	addq	(%r13), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_SLOT_TENTATIVE@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_11
	jmp	LBB0_25
LBB0_22:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_25:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_24:
	movl	%ebx, (%rcx)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_25
LBB0_26:
	movl	%ebx, %r15d
	movl	(%r12), %edi
	leaq	L_.str.8(%rip), %rsi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%ebx, (%r14)
	shlq	$2, %r15
	addq	(%r13), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	(%r14), %ecx
	cmpl	%ecx, %edx
	jbe	LBB0_25
## %bb.27:
	movq	_RIO_DEBUG_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %ebx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	movl	%eax, (%rdx)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RUP,4,2                    ## @MAX_RUP
	.comm	_RIO_DEBUG_ROUTE,4,2            ## @RIO_DEBUG_ROUTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Scanning unit %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"      This slot is empty.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Make tentative entry for first unit %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Make tentative entry for second unit %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Starting to scan for tentative slots\n"

	.comm	_SLOT_TENTATIVE,4,2             ## @SLOT_TENTATIVE
	.comm	_RTA16_SECOND_SLOT,4,2          ## @RTA16_SECOND_SLOT
L_.str.5:                               ## @.str.5
	.asciz	"    Slot %d looks promising.\n"

L_.str.6:                               ## @.str.6
	.asciz	"    No it isn't, its the 1st half\n"

L_.str.7:                               ## @.str.7
	.asciz	"Grab tentative entry for first unit %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"Grab tentative/empty  entry for second unit %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"Swapping IDS %d %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RIOFindFreeID                  ; -- Begin function RIOFindFreeID
	.p2align	2
_RIOFindFreeID:                         ; @RIOFindFreeID
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x28, _MAX_RUP@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MAX_RUP@GOTPAGEOFF]
	ldr	w8, [x28]
	str	w8, [x2]
	cbz	x3, LBB0_2
; %bb.1:
	ldr	w8, [x28]
	str	w8, [x19]
LBB0_2:
	ldr	w8, [x28]
Lloh2:
	adrp	x27, _RIO_DEBUG_ROUTE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _RIO_DEBUG_ROUTE@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x26, #0
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh8:
	adrp	x25, l_.str.2@PAGE
Lloh9:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x28]
	cmp	x26, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	str	x26, [sp]
	mov	x1, x23
	bl	_rio_dprintk
	ldr	x8, [x21]
	ldr	w8, [x8, x26, lsl #2]
	cbnz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	mov	x1, x24
	bl	_rio_dprintk
	ldr	w8, [x20]
	ldr	w9, [x28]
	ldr	w0, [x27]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x26, [sp]
	mov	x1, x25
	bl	_rio_dprintk
	str	w26, [x20]
	cbnz	x19, LBB0_4
LBB0_8:
	mov	w0, #0
	b	LBB0_22
LBB0_9:
	ldr	w0, [x27]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_rio_dprintk
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.10:
	mov	x23, #0
Lloh12:
	adrp	x26, _SLOT_TENTATIVE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _SLOT_TENTATIVE@GOTPAGEOFF]
Lloh14:
	adrp	x25, _RTA16_SECOND_SLOT@GOTPAGE
Lloh15:
	ldr	x25, [x25, _RTA16_SECOND_SLOT@GOTPAGEOFF]
Lloh16:
	adrp	x24, l_.str.5@PAGE
Lloh17:
	add	x24, x24, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x27]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_rio_dprintk
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x28]
	cmp	x23, x8
	b.ge	LBB0_21
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w8, [x8, x23, lsl #2]
	ldr	w9, [x26]
	and	w9, w9, w8
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x27]
	str	x23, [sp]
	mov	x1, x24
	bl	_rio_dprintk
	ldr	w8, [x20]
	cmp	x23, x8
	b.eq	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x21]
	ldr	w9, [x9, x23, lsl #2]
	cbz	w9, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_RIOFreeDisconnected
	cbnz	x0, LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x20]
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [x28]
	cmp	w8, w9
	b.ne	LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x27]
	mov	x8, x23
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_rio_dprintk
	str	w23, [x20]
	ldr	x8, [x21]
	add	x0, x8, x23, lsl #2
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	cbnz	x19, LBB0_12
	b	LBB0_8
LBB0_21:
	mov	w0, #1
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
	str	x26, [sp]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_rio_dprintk
LBB0_24:
	mov	w0, #0
	str	w26, [x19]
	b	LBB0_22
LBB0_25:
	ldr	w0, [x27]
	str	x23, [sp]
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_rio_dprintk
	str	w23, [x19]
	ldr	x8, [x21]
	add	x0, x8, w23, uxtw #2
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	ldr	w8, [x20]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ls	LBB0_22
; %bb.26:
	ldr	w0, [x27]
	stp	x8, x9, [sp]
Lloh26:
	adrp	x1, l_.str.9@PAGE
Lloh27:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_rio_dprintk
	ldr	w26, [x20]
	ldr	w8, [x19]
	str	w8, [x20]
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RUP,4,2                    ; @MAX_RUP
	.comm	_RIO_DEBUG_ROUTE,4,2            ; @RIO_DEBUG_ROUTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Scanning unit %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"      This slot is empty.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Make tentative entry for first unit %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Make tentative entry for second unit %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Starting to scan for tentative slots\n"

	.comm	_SLOT_TENTATIVE,4,2             ; @SLOT_TENTATIVE
	.comm	_RTA16_SECOND_SLOT,4,2          ; @RTA16_SECOND_SLOT
l_.str.5:                               ; @.str.5
	.asciz	"    Slot %d looks promising.\n"

l_.str.6:                               ; @.str.6
	.asciz	"    No it isn't, its the 1st half\n"

l_.str.7:                               ; @.str.7
	.asciz	"Grab tentative entry for first unit %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"Grab tentative/empty  entry for second unit %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"Swapping IDS %d %d\n"

.subsections_via_symbols
