	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function RIOApel
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_RIOApel
	.p2align	4, 0x90
_RIOApel:                               ## @RIOApel
	.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	%rdi, %r15
	movq	_RIO_DEBUG_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	(%r15), %rdi
	movq	_TOTAL_MAP_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	leal	(%rax,%rax,2), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_RIO_HOSTS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_20
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_rio_spin_unlock_irqrestore
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	_RIO_HOSTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_20
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	_RIO_DEBUG_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	8(%r15), %r12
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rbx,4), %r14
	leaq	(%r12,%r14,8), %rdi
	addq	$4, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_rio_spin_lock_irqsave
	movq	(%r15), %r8
	movslq	%r13d, %rcx
	incl	%r13d
	movl	32(%r12,%r14,8), %edx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movl	%edx, 40(%r8,%rcx)
	movq	_RUN_STATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%r12,%r14,8), %edx
	movq	_RC_RUNNING@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r8,%rcx)
	movq	_SLOT_IN_USE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%r8,%rcx)
	movq	_NO_PORT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%r8,%rcx)
	movq	_LINKS_PER_UNIT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r12,%r14,8), %rdx
	movq	8(%r8,%rcx), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%rdi,4), %ebx
	movl	%ebx, (%rsi,%rdi,4)
	incq	%rdi
	movslq	(%rax), %rbx
	cmpq	%rbx, %rdi
	jl	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r8,%rcx), %edi
	movl	16(%r12,%r14,8), %esi
	movq	_MAX_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_MAX_RUP@GOTPCREL(%rip), %r10
	movl	(%r10), %ebx
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%r14,8), %r8
	addq	$8, %r8
	movq	8(%r12,%r14,8), %r12
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	movq	_SLOT_IN_USE@GOTPCREL(%rip), %r9
	movq	_SLOT_TENTATIVE@GOTPCREL(%rip), %r11
	movq	_RTA16_SECOND_SLOT@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=2
	incl	%r13d
	movl	(%r10), %ebx
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%rsi
	movslq	%ebx, %rax
	addq	$48, %rcx
	cmpq	%rax, %rsi
	jge	LBB0_3
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r11), %eax
	orl	(%r9), %eax
	testl	%eax, (%r12,%rcx)
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r15), %rax
	movslq	%r13d, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	shlq	$4, %rdx
	movups	(%r12,%rcx), %xmm0
	movups	16(%r12,%rcx), %xmm1
	movups	32(%r12,%rcx), %xmm2
	movups	%xmm2, 32(%rax,%rdx)
	movups	%xmm1, 16(%rax,%rdx)
	movups	%xmm0, (%rax,%rdx)
	movq	(%r8), %r12
	movl	(%r12,%rcx), %eax
	movl	(%r9), %ebx
	testl	%eax, %ebx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r15), %rax
	orl	%ebx, (%rax,%rdx)
	movl	(%r12,%rcx), %eax
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	(%r11), %ebx
	testl	%eax, %ebx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r15), %rax
	orl	%ebx, (%rax,%rdx)
	movl	(%r12,%rcx), %eax
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	(%r14), %ebx
	testl	%eax, %ebx
	je	LBB0_10
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%r15), %rax
	orl	%ebx, (%rax,%rdx)
	jmp	LBB0_10
LBB0_20:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RIO_DEBUG_TABLE,4,2            ## @RIO_DEBUG_TABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Generating a table to return to config.rio\n"

	.comm	_TOTAL_MAP_ENTRIES,4,2          ## @TOTAL_MAP_ENTRIES
	.comm	_RIO_HOSTS,4,2                  ## @RIO_HOSTS
L_.str.1:                               ## @.str.1
	.asciz	"Processing host %d\n"

	.comm	_RUN_STATE,4,2                  ## @RUN_STATE
	.comm	_RC_RUNNING,4,2                 ## @RC_RUNNING
	.comm	_SLOT_IN_USE,4,2                ## @SLOT_IN_USE
	.comm	_NO_PORT,4,2                    ## @NO_PORT
	.comm	_LINKS_PER_UNIT,4,2             ## @LINKS_PER_UNIT
	.comm	_MAX_NAME_LEN,4,2               ## @MAX_NAME_LEN
	.comm	_MAX_RUP,4,2                    ## @MAX_RUP
	.comm	_SLOT_TENTATIVE,4,2             ## @SLOT_TENTATIVE
	.comm	_RTA16_SECOND_SLOT,4,2          ## @RTA16_SECOND_SLOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RIOApel                        ; -- Begin function RIOApel
	.p2align	2
_RIOApel:                               ; @RIOApel
	.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, x0
Lloh0:
	adrp	x8, _RIO_DEBUG_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RIO_DEBUG_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rio_dprintk
	ldr	x0, [x19]
Lloh5:
	adrp	x8, _TOTAL_MAP_ENTRIES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TOTAL_MAP_ENTRIES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #4
	mov	w1, #0
	bl	_memset
Lloh8:
	adrp	x8, _RIO_HOSTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RIO_HOSTS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x24, #0
	mov	w28, #0
	mov	w26, #48
Lloh11:
	adrp	x22, _SLOT_IN_USE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _SLOT_IN_USE@GOTPAGEOFF]
Lloh13:
	adrp	x27, _LINKS_PER_UNIT@GOTPAGE
Lloh14:
	ldr	x27, [x27, _LINKS_PER_UNIT@GOTPAGEOFF]
Lloh15:
	adrp	x23, _SLOT_TENTATIVE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _SLOT_TENTATIVE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x1
	bl	_rio_spin_unlock_irqrestore
	add	x24, x24, #1
Lloh17:
	adrp	x8, _RIO_HOSTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RIO_HOSTS@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	mov	x28, x25
	cmp	x24, x8
	b.ge	LBB0_19
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
Lloh20:
	adrp	x8, _RIO_DEBUG_TABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RIO_DEBUG_TABLE@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_rio_dprintk
	ldr	x20, [x19, #8]
	mov	w8, #40
	madd	x21, x24, x8, x20
	add	x0, x21, #4
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_rio_spin_lock_irqsave
	ldr	x8, [x19]
	add	w25, w28, #1
	ldr	w9, [x21, #32]
	smaddl	x10, w28, w26, x8
	str	w9, [x10, #40]
	ldr	w9, [x21]
Lloh25:
	adrp	x10, _RUN_STATE@GOTPAGE
Lloh26:
	ldr	x10, [x10, _RUN_STATE@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh28:
	adrp	x10, _RC_RUNNING@GOTPAGE
Lloh29:
	ldr	x10, [x10, _RC_RUNNING@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x9, w28
	madd	x10, x9, x26, x8
	stp	xzr, xzr, [x10, #24]
	ldr	w11, [x22]
	str	w11, [x10]
Lloh31:
	adrp	x11, _NO_PORT@GOTPAGE
Lloh32:
	ldr	x11, [x11, _NO_PORT@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
	str	w11, [x10, #16]
	ldr	w10, [x27]
	cmp	w10, #1
	mov	w21, #40
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x10, #0
	madd	x11, x24, x21, x20
	ldr	x11, [x11, #24]
	madd	x12, x9, x26, x8
	ldr	x12, [x12, #8]
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x13, x10, #2
	ldr	w14, [x11, x13]
	str	w14, [x12, x13]
	add	x10, x10, #1
	ldrsw	x13, [x27]
	cmp	x10, x13
	b.lt	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x9, x26, x8
	ldr	w0, [x8, #4]
	madd	x8, x24, x21, x20
	ldr	w1, [x8, #16]
Lloh34:
	adrp	x8, _MAX_NAME_LEN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MAX_NAME_LEN@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	bl	_memcpy
Lloh37:
	adrp	x17, _MAX_RUP@GOTPAGE
Lloh38:
	ldr	x17, [x17, _MAX_RUP@GOTPAGEOFF]
	ldr	w12, [x17]
	cmp	w12, #1
	b.lt	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	mov	x9, #0
	madd	x10, x24, x21, x20
	ldr	x11, [x10, #8]!
Lloh39:
	adrp	x0, _RTA16_SECOND_SLOT@GOTPAGE
Lloh40:
	ldr	x0, [x0, _RTA16_SECOND_SLOT@GOTPAGEOFF]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	add	w25, w25, #1
	ldr	w12, [x17]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x9, x9, #1
	add	x8, x8, #48
	cmp	x9, w12, sxtw
	b.ge	LBB0_3
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x11, x8]
	ldr	w14, [x22]
	ldr	w15, [x23]
	orr	w14, w15, w14
	tst	w14, w13
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x13, [x19]
	sxtw	x12, w25
	smaddl	x13, w25, w26, x13
	add	x11, x11, x8
	ldp	q0, q1, [x11]
	ldr	q2, [x11, #32]
	stp	q1, q2, [x13, #16]
	str	q0, [x13]
	ldr	x11, [x10]
	ldr	w13, [x11, x8]
	ldr	w14, [x22]
	tst	w14, w13
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x13, [x19]
	mul	x15, x12, x26
	ldr	w16, [x13, x15]
	orr	w14, w16, w14
	str	w14, [x13, x15]
	ldr	w13, [x11, x8]
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w14, [x23]
	tst	w14, w13
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x13, [x19]
	mul	x15, x12, x26
	ldr	w16, [x13, x15]
	orr	w14, w16, w14
	str	w14, [x13, x15]
	ldr	w13, [x11, x8]
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w14, [x0]
	tst	w14, w13
	b.eq	LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x13, [x19]
	mul	x12, x12, x26
	ldr	w15, [x13, x12]
	orr	w14, w15, w14
	str	w14, [x13, x12]
	b	LBB0_10
LBB0_19:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_RIO_DEBUG_TABLE,4,2            ; @RIO_DEBUG_TABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Generating a table to return to config.rio\n"

	.comm	_TOTAL_MAP_ENTRIES,4,2          ; @TOTAL_MAP_ENTRIES
	.comm	_RIO_HOSTS,4,2                  ; @RIO_HOSTS
l_.str.1:                               ; @.str.1
	.asciz	"Processing host %d\n"

	.comm	_RUN_STATE,4,2                  ; @RUN_STATE
	.comm	_RC_RUNNING,4,2                 ; @RC_RUNNING
	.comm	_SLOT_IN_USE,4,2                ; @SLOT_IN_USE
	.comm	_NO_PORT,4,2                    ; @NO_PORT
	.comm	_LINKS_PER_UNIT,4,2             ; @LINKS_PER_UNIT
	.comm	_MAX_NAME_LEN,4,2               ; @MAX_NAME_LEN
	.comm	_MAX_RUP,4,2                    ; @MAX_RUP
	.comm	_SLOT_TENTATIVE,4,2             ; @SLOT_TENTATIVE
	.comm	_RTA16_SECOND_SLOT,4,2          ; @RTA16_SECOND_SLOT
.subsections_via_symbols
