	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RIOChangeName                  ## -- Begin function RIOChangeName
	.p2align	4, 0x90
_RIOChangeName:                         ## @RIOChangeName
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_RIO_DEBUG_TABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%rsi), %rdx
	movq	8(%rsi), %rcx
	movl	16(%rsi), %r8d
	movl	32(%rsi), %r9d
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rio_dprintk
	movl	16(%rbx), %eax
	movq	_MAX_RUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_3
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_ID_NUMBER_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	24(%rbx), %rax
	movq	_MAX_NAME_LEN@GOTPCREL(%rip), %r8
	movslq	(%r8), %rcx
	movb	$0, -1(%rcx,%rax)
	movq	24(%rbx), %rsi
	movb	(%rsi), %al
	testb	%al, %al
	je	LBB0_7
## %bb.4:
	leaq	1(%rsi), %rcx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addb	$-127, %al
	cmpb	$-96, %al
	jbe	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rcx), %eax
	incq	%rcx
	testb	%al, %al
	jne	LBB0_5
LBB0_7:
	movl	(%r14), %eax
	movq	(%rbx), %rdx
	testl	%eax, %eax
	jle	LBB0_20
## %bb.8:
	movq	8(%r14), %rcx
	shlq	$5, %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rcx,%rdi), %rdx
	je	LBB0_10
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$32, %rdi
	cmpq	%rdi, %rax
	jne	LBB0_9
LBB0_20:
	movq	_UNKNOWN_HOST_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_23:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_BAD_CHARACTER_IN_NAME@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_21:
	subl	(%rax), %r15d
LBB0_22:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_RUN_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rcx,%rdi), %eax
	movq	_RC_RUNNING@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_11
## %bb.13:
	movslq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.16:
	movq	24(%rcx,%rdi), %rax
	decq	%rdx
	leaq	(%rdx,%rdx,4), %rcx
	movq	8(%rax,%rcx,8), %rdx
	cmpq	8(%rbx), %rdx
	jne	LBB0_17
## %bb.18:
	movq	24(%rax,%rcx,8), %rdi
	jmp	LBB0_15
LBB0_11:
	movq	_HOST_NOT_RUNNING@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_14:
	movq	16(%rcx,%rdi), %rdi
LBB0_15:
	movl	(%r8), %edx
	callq	_memcpy
	xorl	%r15d, %r15d
	jmp	LBB0_22
LBB0_17:
	movq	_RTA_NUMBER_WRONG@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_RIO_DEBUG_TABLE,4,2            ## @RIO_DEBUG_TABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Change name entry on host %x, rta %x, ID %d, Sysport %d\n"

	.comm	_MAX_RUP,4,2                    ## @MAX_RUP
L_.str.1:                               ## @.str.1
	.asciz	"Bad ID in map entry!\n"

	.comm	_ID_NUMBER_OUT_OF_RANGE,4,2     ## @ID_NUMBER_OUT_OF_RANGE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_NAME_LEN,4,2               ## @MAX_NAME_LEN
L_.str.2:                               ## @.str.2
	.asciz	"Name entry contains non-printing characters!\n"

	.comm	_BAD_CHARACTER_IN_NAME,4,2      ## @BAD_CHARACTER_IN_NAME
	.comm	_RUN_STATE,4,2                  ## @RUN_STATE
	.comm	_RC_RUNNING,4,2                 ## @RC_RUNNING
	.comm	_HOST_NOT_RUNNING,4,2           ## @HOST_NOT_RUNNING
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_RTA_NUMBER_WRONG,4,2           ## @RTA_NUMBER_WRONG
	.comm	_UNKNOWN_HOST_NUMBER,4,2        ## @UNKNOWN_HOST_NUMBER
L_.str.3:                               ## @.str.3
	.asciz	"Unknown host %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RIOChangeName                  ; -- Begin function RIOChangeName
	.p2align	2
_RIOChangeName:                         ; @RIOChangeName
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _RIO_DEBUG_TABLE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RIO_DEBUG_TABLE@GOTPAGEOFF]
	ldr	w0, [x21]
	ldp	x8, x9, [x1]
	ldr	x10, [x1, #32]
	ldr	w11, [x1, #16]
	stp	x11, x10, [sp, #16]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rio_dprintk
	ldr	w8, [x20, #16]
Lloh4:
	adrp	x9, _MAX_RUP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MAX_RUP@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_rio_dprintk
Lloh9:
	adrp	x8, _ID_NUMBER_OUT_OF_RANGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ID_NUMBER_OUT_OF_RANGE@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
Lloh11:
	adrp	x8, _MAX_NAME_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_NAME_LEN@GOTPAGEOFF]
	ldr	x9, [x20, #24]
	ldrsw	x10, [x8]
	add	x9, x10, x9
	sturb	wzr, [x9, #-1]
	ldr	x1, [x20, #24]
	ldrb	w10, [x1]
	cbz	w10, LBB0_6
; %bb.3:
	add	x9, x1, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w10, #127
	cmn	w10, #96
	b.ls	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w10, [x9], #1
	cbnz	w10, LBB0_4
LBB0_6:
	ldr	w11, [x19]
	ldr	x10, [x20]
	cmp	w11, #1
	b.lt	LBB0_10
; %bb.7:
	ldr	x9, [x19, #8]
	add	x9, x9, #16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x9, #-16]
	cmp	x10, x12
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x9, x9, #32
	subs	x11, x11, #1
	b.ne	LBB0_8
LBB0_10:
Lloh13:
	adrp	x8, _UNKNOWN_HOST_NUMBER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UNKNOWN_HOST_NUMBER@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w0, [x21]
	str	x10, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_rio_dprintk
	b	LBB0_22
LBB0_11:
	ldr	w0, [x21]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_rio_dprintk
Lloh20:
	adrp	x8, _BAD_CHARACTER_IN_NAME@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BAD_CHARACTER_IN_NAME@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_23
LBB0_13:
	ldur	w10, [x9, #-8]
Lloh24:
	adrp	x11, _RUN_STATE@GOTPAGE
Lloh25:
	ldr	x11, [x11, _RUN_STATE@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	and	w10, w11, w10
Lloh27:
	adrp	x11, _RC_RUNNING@GOTPAGE
Lloh28:
	ldr	x11, [x11, _RC_RUNNING@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_17
; %bb.14:
	ldr	w10, [x20, #16]
	cbz	w10, LBB0_18
; %bb.15:
	ldr	x9, [x9, #8]
	sub	w10, w10, #1
	mov	w11, #40
	smaddl	x11, w10, w11, x9
	ldr	x11, [x11, #8]
	ldr	x12, [x20, #8]
	cmp	x11, x12
	b.ne	LBB0_20
; %bb.16:
	sxtw	x10, w10
	mov	w11, #40
	madd	x9, x10, x11, x9
	ldr	x0, [x9, #24]
	b	LBB0_19
LBB0_17:
Lloh30:
	adrp	x8, _HOST_NOT_RUNNING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HOST_NOT_RUNNING@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	ldr	x0, [x9]
LBB0_19:
	ldr	w2, [x8]
	bl	_memcpy
	mov	w0, #0
	b	LBB0_24
LBB0_20:
Lloh32:
	adrp	x8, _RTA_NUMBER_WRONG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RTA_NUMBER_WRONG@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_22:
Lloh34:
	adrp	x8, _ENXIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_RIO_DEBUG_TABLE,4,2            ; @RIO_DEBUG_TABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Change name entry on host %x, rta %x, ID %d, Sysport %d\n"

	.comm	_MAX_RUP,4,2                    ; @MAX_RUP
l_.str.1:                               ; @.str.1
	.asciz	"Bad ID in map entry!\n"

	.comm	_ID_NUMBER_OUT_OF_RANGE,4,2     ; @ID_NUMBER_OUT_OF_RANGE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_NAME_LEN,4,2               ; @MAX_NAME_LEN
l_.str.2:                               ; @.str.2
	.asciz	"Name entry contains non-printing characters!\n"

	.comm	_BAD_CHARACTER_IN_NAME,4,2      ; @BAD_CHARACTER_IN_NAME
	.comm	_RUN_STATE,4,2                  ; @RUN_STATE
	.comm	_RC_RUNNING,4,2                 ; @RC_RUNNING
	.comm	_HOST_NOT_RUNNING,4,2           ; @HOST_NOT_RUNNING
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_RTA_NUMBER_WRONG,4,2           ; @RTA_NUMBER_WRONG
	.comm	_UNKNOWN_HOST_NUMBER,4,2        ; @UNKNOWN_HOST_NUMBER
l_.str.3:                               ; @.str.3
	.asciz	"Unknown host %x\n"

.subsections_via_symbols
