	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RIOCheck
_RIOCheck:                              ## @RIOCheck
	.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	%esi, %ebx
	movq	%rdi, %r15
	movq	_RIO_DEBUG_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_rio_dprintk
	movq	_HOST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ebx, %ecx
	jne	LBB0_2
LBB0_16:
	movl	$1, %r14d
	jmp	LBB0_17
LBB0_2:
	decl	%ebx
	movq	_MAX_RUP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	(%rax), %ebx
	jae	LBB0_17
## %bb.3:
	movq	_LINKS_PER_UNIT@GOTPCREL(%rip), %r12
	movzbl	(%r12), %edx
	movq	(%r15), %rax
	movl	%ebx, %ebx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rsi
	shlq	$4, %rsi
	movq	8(%rax,%rsi), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, (%rsi,%rdi,4)
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_5
LBB0_7:
	shlq	$4, %rbx
	movl	(%rax,%rbx), %edx
	movq	_BEEN_HERE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ecx
	testl	%edx, %ecx
	jne	LBB0_17
## %bb.8:
	leaq	(%rax,%rbx), %rsi
	orl	%edx, %ecx
	movl	%ecx, (%rsi)
	cmpb	$0, (%r12)
	je	LBB0_13
## %bb.9:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax,%rbx), %rax
	movl	(%rax,%r13,4), %esi
	movq	%r15, %rdi
	callq	_RIOCheck
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	movzbl	(%r12), %ecx
	movq	(%r15), %rax
	cmpq	%rcx, %r13
	jb	LBB0_10
## %bb.12:
	movl	(%rax,%rbx), %ecx
	movq	_BEEN_HERE@GOTPCREL(%rip), %rdi
LBB0_13:
	movl	(%rdi), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax,%rbx)
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_BEEN_HERE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	(%r15), %rcx
	andl	%eax, (%rcx,%rbx)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_RIO_DEBUG_ROUTE,4,2            ## @RIO_DEBUG_ROUTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RIOCheck : UnitID = %d\n"

	.comm	_HOST_ID,4,2                    ## @HOST_ID
	.comm	_MAX_RUP,4,2                    ## @MAX_RUP
	.comm	_LINKS_PER_UNIT,1,0             ## @LINKS_PER_UNIT
	.comm	_BEEN_HERE,4,2                  ## @BEEN_HERE
	.no_dead_strip	_RIOCheck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RIOCheck
_RIOCheck:                              ; @RIOCheck
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RIO_DEBUG_ROUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RIO_DEBUG_ROUTE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_rio_dprintk
Lloh5:
	adrp	x8, _HOST_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HOST_ID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	cmp	w9, w20
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_9
LBB0_2:
	sub	w20, w20, #1
Lloh8:
	adrp	x8, _MAX_RUP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_RUP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w20, w8
	b.hs	LBB0_8
; %bb.3:
Lloh11:
	adrp	x21, _LINKS_PER_UNIT@GOTPAGE
Lloh12:
	ldr	x21, [x21, _LINKS_PER_UNIT@GOTPAGEOFF]
	ldrb	w10, [x21]
	ldr	x8, [x19]
	cbz	x10, LBB0_7
; %bb.4:
	add	x11, x8, x20, lsl #4
	ldr	x11, [x11, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	cmp	w12, w9
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, #4
	subs	x10, x10, #1
	b.ne	LBB0_5
LBB0_7:
	add	x10, x8, x20, lsl #4
	ldr	w9, [x10]
Lloh13:
	adrp	x22, _BEEN_HERE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _BEEN_HERE@GOTPAGEOFF]
	ldr	w11, [x22]
	tst	w11, w9
	b.eq	LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
LBB0_10:
	orr	w9, w11, w9
	str	w9, [x10]
	ldrb	w10, [x21]
	cbz	w10, LBB0_15
; %bb.11:
	mov	x23, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x20, lsl #4
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x19
	bl	_RIOCheck
	cbnz	w0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	ldrb	w9, [x21]
	ldr	x8, [x19]
	cmp	x23, x9
	b.lo	LBB0_12
; %bb.14:
	lsl	x9, x20, #4
	ldr	w9, [x8, x9]
LBB0_15:
	mov	w0, #0
	ldr	w10, [x22]
	lsl	x11, x20, #4
	bic	w9, w9, w10
	str	w9, [x8, x11]
	b	LBB0_9
LBB0_16:
	ldr	w8, [x22]
	ldr	x9, [x19]
	lsl	x10, x20, #4
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RIO_DEBUG_ROUTE,4,2            ; @RIO_DEBUG_ROUTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RIOCheck : UnitID = %d\n"

	.comm	_HOST_ID,4,2                    ; @HOST_ID
	.comm	_MAX_RUP,4,2                    ; @MAX_RUP
	.comm	_LINKS_PER_UNIT,1,0             ; @LINKS_PER_UNIT
	.comm	_BEEN_HERE,4,2                  ; @BEEN_HERE
	.no_dead_strip	_RIOCheck
.subsections_via_symbols
