	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_riotopen                       ## -- Begin function riotopen
	.p2align	4, 0x90
_riotopen:                              ## @riotopen
	.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, %r14
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_func_enter
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_rio_minor
	movl	%eax, %r13d
	movq	_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 16(%rax)
	movq	_RIO_DEBUG_TTY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	xorl	%eax, %eax
	callq	_rio_dprintk
	jmp	LBB0_8
LBB0_3:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rax
	movl	%r13d, %r14d
	movq	(%rax,%r14,8), %rax
	movl	92(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_RIO_PORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jae	LBB0_7
## %bb.4:
	movq	_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movq	(%rax,%r14,8), %r14
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_rio_dprintk
	cmpl	$0, 92(%r14)
	je	LBB0_12
## %bb.5:
	movq	%r14, 8(%rbx)
	movq	%rbx, 48(%r14)
	incl	56(%r14)
	leaq	40(%r14), %rbx
	movl	(%r12), %edi
	movl	64(%r14), %edx
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	%rbx, %rdi
	callq	_gs_init_port
	testl	%eax, %eax
	je	LBB0_13
## %bb.6:
	decl	56(%r14)
	jmp	LBB0_9
LBB0_7:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
LBB0_8:
	xorl	%eax, %eax
	callq	_func_exit
LBB0_9:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
LBB0_13:
	movq	104(%r14), %rax
	movq	_RUN_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movq	_RC_RUNNING@GOTPCREL(%rip), %rax
	movl	(%r12), %edi
	cmpl	(%rax), %ecx
	jne	LBB0_20
## %bb.14:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movl	$251, %ebx
	movq	_RTA_BOOTED@GOTPCREL(%rip), %r15
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	104(%r14), %rcx
	movq	8(%rcx), %rcx
	movl	(%r15), %edx
	testl	%edx, (%rcx,%rax,4)
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, 96(%r14)
	je	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_HUNDRED_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_RIODelay
	movq	_RIO_FAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	decl	%ebx
	jne	LBB0_15
## %bb.19:
	movl	(%r12), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rio_dprintk
	xorl	%eax, %eax
	callq	_func_exit
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_20:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_21:
	movl	(%r12), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rio_dprintk
	leaq	24(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_rio_spin_lock_irqsave
	movq	_p@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	cmpq	$0, (%rax)
	je	LBB0_27
LBB0_22:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:
	movq	%rbx, %rdi
	callq	_rio_spin_unlock_irqrestore
	jmp	LBB0_11
LBB0_24:
	movl	(%r12), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%r15d, %r15d
	jmp	LBB0_2
LBB0_25:
	movl	(%r12), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rio_dprintk
LBB0_26:
	xorl	%eax, %eax
	callq	_func_exit
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_27:
	movl	8(%r14), %eax
	movq	_RIO_CLOSING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_37
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	decl	%ebx
	jle	LBB0_32
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rio_spin_unlock_irqrestore
	movq	_HUNDRED_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_RIODelay
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_RIO_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rio_spin_lock_irqsave
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	8(%r14), %eax
	movq	_RIO_CLOSING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_36
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_p@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_28
	jmp	LBB0_37
LBB0_32:
	movl	(%r12), %edi
	leaq	L_.str.13(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_RIOC_FCLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_RIOPreemptiveCmd
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_33:
	movq	_EINTR@GOTPCREL(%rip), %rax
LBB0_34:
	xorl	%r15d, %r15d
LBB0_35:
	subl	(%rax), %r15d
	jmp	LBB0_22
LBB0_36:
	movq	_p@GOTPCREL(%rip), %rdx
LBB0_37:
	cmpl	$0, 92(%r14)
	je	LBB0_50
## %bb.38:
	movq	(%rdx), %rcx
	cmpq	$0, (%rcx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_23
## %bb.39:
	movq	_RIO_LOPEN@GOTPCREL(%rip), %rcx
	movq	_RIO_MOPEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	jne	LBB0_41
## %bb.40:
	movq	_RIO_CTSFLOW@GOTPCREL(%rip), %rax
	movq	_RIO_RTSFLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, 12(%r14)
LBB0_41:
	cmpl	$0, 88(%r14)
	je	LBB0_52
LBB0_42:
	movl	(%r12), %edi
	leaq	L_.str.19(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	48(%r14), %rax
	movq	(%rax), %rax
	movq	_CLOCAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_44
## %bb.43:
	movq	_RIOC_MSVR1_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r14)
	je	LBB0_60
LBB0_44:
	movl	(%r12), %edi
	leaq	L_.str.20(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_RIO_CARR_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_wake_up_interruptible
LBB0_45:
	movq	_p@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	jne	LBB0_23
## %bb.46:
	movl	(%r12), %edi
	leaq	L_.str.23(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rcx, %rbx
	callq	_rio_dprintk
	movq	_RIO_MOPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	(%rbx), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_23
## %bb.47:
	movl	(%r12), %edi
	leaq	L_.str.24(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rio_dprintk
	cmpq	$0, 32(%r14)
	je	LBB0_49
## %bb.48:
	incl	28(%r14)
LBB0_49:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rio_spin_unlock_irqrestore
	movl	(%r12), %edi
	leaq	L_.str.25(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	jmp	LBB0_51
LBB0_50:
	movl	(%r12), %edi
	leaq	L_.str.14(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rio_spin_unlock_irqrestore
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_51:
	xorl	%eax, %eax
	callq	_func_exit
	jmp	LBB0_11
LBB0_52:
	movl	(%r12), %edi
	leaq	L_.str.15(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	incl	88(%r14)
	movq	$0, 80(%r14)
	movq	_NOT_INUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r14)
	movq	%rbx, %rdi
	callq	_rio_spin_unlock_irqrestore
	movq	_RIOC_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OK_TO_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_RIOParam
	movq	%rbx, %rdi
	callq	_rio_spin_lock_irqsave
	movl	16(%r14), %edx
	movq	_PORT_ISOPEN@GOTPCREL(%rip), %rbx
	testl	%edx, (%rbx)
	je	LBB0_55
LBB0_53:
	movq	_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_59
## %bb.54:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_55:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_56:                                ## =>This Inner Loop Header: Depth=1
	movq	_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_53
## %bb.57:                              ##   in Loop: Header=BB0_56 Depth=1
	movl	(%r12), %edi
	leaq	L_.str.16(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	%r15, %rdi
	callq	_rio_spin_unlock_irqrestore
	movq	_HUNDRED_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_RIODelay
	movq	_RIO_FAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_63
## %bb.58:                              ##   in Loop: Header=BB0_56 Depth=1
	movq	%r15, %rdi
	callq	_rio_spin_lock_irqsave
	movl	16(%r14), %edx
	testl	%edx, (%rbx)
	je	LBB0_56
	jmp	LBB0_53
LBB0_59:
	movl	(%r12), %edi
	leaq	L_.str.18(%rip), %rsi
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_60:
	movl	8(%r14), %eax
	movq	_RIO_CARR_ON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_62
## %bb.61:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testl	%ecx, (%rdx)
	je	LBB0_64
LBB0_62:
	movq	_RIO_WOPEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 8(%r14)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_45
LBB0_63:
	movl	(%r12), %edi
	leaq	L_.str.17(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_RIOC_FCLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_RIOPreemptiveCmd
	jmp	LBB0_26
LBB0_64:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_65:                                ## =>This Inner Loop Header: Depth=1
	movq	_p@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_62
## %bb.66:                              ##   in Loop: Header=BB0_65 Depth=1
	movl	(%r12), %edi
	leaq	L_.str.21(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_RIO_WOPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_rio_spin_unlock_irqrestore
	movq	_HUNDRED_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_RIODelay
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_RIO_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_rio_spin_lock_irqsave
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_69
## %bb.67:                              ##   in Loop: Header=BB0_65 Depth=1
	movl	8(%r14), %eax
	movq	_RIO_CARR_ON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_62
## %bb.68:                              ##   in Loop: Header=BB0_65 Depth=1
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testl	%ecx, (%rdx)
	je	LBB0_65
	jmp	LBB0_62
LBB0_69:
	movl	(%r12), %edi
	leaq	L_.str.22(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_rio_dprintk
	movq	_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_RIOC_FCLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_RIOPreemptiveCmd
	movq	_RIO_WOPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rio_spin_unlock_irqrestore
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_p,8,3                          ## @p
	.comm	_RIO_DEBUG_TTY,4,2              ## @RIO_DEBUG_TTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"System initialisation failed\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"port open SysPort %d (mapped:%d)\n"

	.comm	_RIO_PORTS,4,2                  ## @RIO_PORTS
L_.str.2:                               ## @.str.2
	.asciz	"Illegal port number %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"PortP: %p\n"

L_.str.4:                               ## @.str.4
	.asciz	"port not mapped into system\n"

L_.str.5:                               ## @.str.5
	.asciz	"%d bytes in tx buffer\n"

	.comm	_RUN_STATE,4,2                  ## @RUN_STATE
	.comm	_RC_RUNNING,4,2                 ## @RC_RUNNING
L_.str.6:                               ## @.str.6
	.asciz	"Host not running\n"

L_.str.7:                               ## @.str.7
	.asciz	"Checking if RTA has booted... \n"

	.comm	_RTA_BOOTED,4,2                 ## @RTA_BOOTED
L_.str.8:                               ## @.str.8
	.asciz	"RTA never booted\n"

	.comm	_HUNDRED_MS,4,2                 ## @HUNDRED_MS
	.comm	_RIO_FAIL,8,3                   ## @RIO_FAIL
L_.str.9:                               ## @.str.9
	.asciz	"RTA_wait_for_boot: EINTR in delay \n"

	.comm	_EINTR,4,2                      ## @EINTR
L_.str.10:                              ## @.str.10
	.asciz	"Waiting for RTA to boot timeout\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.11:                              ## @.str.11
	.asciz	"RTA has been booted\n"

	.comm	_RIO_CLOSING,4,2                ## @RIO_CLOSING
L_.str.12:                              ## @.str.12
	.asciz	"Waiting for RIO_CLOSING to go away\n"

L_.str.13:                              ## @.str.13
	.asciz	"Waiting for not idle closed broken by signal\n"

	.comm	_RIOC_FCLOSE,4,2                ## @RIOC_FCLOSE
L_.str.14:                              ## @.str.14
	.asciz	"Port unmapped while closing!\n"

	.comm	_RIO_LOPEN,4,2                  ## @RIO_LOPEN
	.comm	_RIO_MOPEN,4,2                  ## @RIO_MOPEN
	.comm	_RIO_CTSFLOW,4,2                ## @RIO_CTSFLOW
	.comm	_RIO_RTSFLOW,4,2                ## @RIO_RTSFLOW
L_.str.15:                              ## @.str.15
	.asciz	"First open for this port\n"

	.comm	_NOT_INUSE,4,2                  ## @NOT_INUSE
	.comm	_RIOC_OPEN,4,2                  ## @RIOC_OPEN
	.comm	_OK_TO_SLEEP,4,2                ## @OK_TO_SLEEP
	.comm	_PORT_ISOPEN,4,2                ## @PORT_ISOPEN
L_.str.16:                              ## @.str.16
	.asciz	"Waiting for PORT_ISOPEN-currently %x\n"

L_.str.17:                              ## @.str.17
	.asciz	"Waiting for open to finish broken by signal\n"

L_.str.18:                              ## @.str.18
	.asciz	"PORT_ISOPEN found\n"

L_.str.19:                              ## @.str.19
	.asciz	"Modem - test for carrier\n"

	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.comm	_RIOC_MSVR1_CD,4,2              ## @RIOC_MSVR1_CD
L_.str.20:                              ## @.str.20
	.asciz	"open(%d) Modem carr on\n"

	.comm	_RIO_CARR_ON,4,2                ## @RIO_CARR_ON
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.21:                              ## @.str.21
	.asciz	"open(%d) sleeping for carr on\n"

	.comm	_RIO_WOPEN,4,2                  ## @RIO_WOPEN
L_.str.22:                              ## @.str.22
	.asciz	"open(%d) sleeping for carr broken by signal\n"

L_.str.23:                              ## @.str.23
	.asciz	"Setting RIO_MOPEN\n"

L_.str.24:                              ## @.str.24
	.asciz	"high level open done\n"

L_.str.25:                              ## @.str.25
	.asciz	"Returning from open\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_riotopen                       ; -- Begin function riotopen
	.p2align	2
_riotopen:                              ; @riotopen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x1
	mov	x20, x0
	bl	_func_enter
	str	xzr, [x20, #8]
	mov	x0, x20
	bl	_rio_minor
	mov	x22, x0
Lloh0:
	adrp	x27, _p@GOTPAGE
Lloh1:
	ldr	x27, [x27, _p@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	x9, [x8, #16]
Lloh2:
	adrp	x26, _RIO_DEBUG_TTY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RIO_DEBUG_TTY@GOTPAGEOFF]
	ldr	w0, [x26]
	cbz	x9, LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_2:
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w22, uxtw #3]
	ldr	w8, [x8, #92]
	mov	x9, x22
	stp	x9, x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_rio_dprintk
Lloh8:
	adrp	x8, _RIO_PORTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RIO_PORTS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w22, w8
	b.hs	LBB0_6
; %bb.3:
	mov	w8, w22
	ldr	x9, [x27]
	ldr	x9, [x9, #8]
	ldr	x19, [x9, x8, lsl #3]
	ldr	w0, [x26]
	str	x19, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_rio_dprintk
	ldr	w8, [x19, #92]
	cbz	w8, LBB0_7
; %bb.4:
	str	x19, [x20, #8]
	add	x28, x19, #40
	str	x20, [x19, #48]
	ldr	w8, [x19, #56]
	add	w8, w8, #1
	str	w8, [x19, #56]
	ldr	w0, [x26]
	ldr	w8, [x19, #64]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_rio_dprintk
	mov	x0, x28
	bl	_gs_init_port
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w8, [x19, #56]
	sub	w8, w8, #1
	str	w8, [x19, #56]
	b	LBB0_21
LBB0_6:
	ldr	w0, [x26]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_7:
	ldr	w0, [x26]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_8:
	ldr	x8, [x19, #104]
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _RUN_STATE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RUN_STATE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh22:
	adrp	x9, _RC_RUNNING@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RC_RUNNING@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	ldr	w0, [x26]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.9:
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_rio_dprintk
	mov	w24, #251
Lloh27:
	adrp	x25, _RTA_BOOTED@GOTPAGE
Lloh28:
	ldr	x25, [x25, _RTA_BOOTED@GOTPAGEOFF]
Lloh29:
	adrp	x20, _HUNDRED_MS@GOTPAGE
Lloh30:
	ldr	x20, [x20, _HUNDRED_MS@GOTPAGEOFF]
Lloh31:
	adrp	x23, _RIO_FAIL@GOTPAGE
Lloh32:
	ldr	x23, [x23, _RIO_FAIL@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #104]
	ldr	x8, [x8, #8]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19, #96]
	cbz	w8, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_RIODelay
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_24
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	subs	w24, w24, #1
	b.ne	LBB0_10
; %bb.14:
	ldr	w0, [x26]
Lloh33:
	adrp	x1, l_.str.10@PAGE
Lloh34:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_rio_dprintk
	bl	_func_exit
Lloh35:
	adrp	x8, _EIO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_22
LBB0_15:
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_16:
	str	x28, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w0, [x26]
Lloh39:
	adrp	x1, l_.str.11@PAGE
Lloh40:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_rio_dprintk
	add	x28, x19, #24
	mov	x0, x28
	bl	_rio_spin_lock_irqsave
	ldr	x8, [x27]
	ldr	x8, [x8]
	cbz	x8, LBB0_26
LBB0_17:
	mov	w19, #0
LBB0_18:
	mov	x0, x28
	bl	_rio_spin_unlock_irqrestore
	b	LBB0_23
LBB0_19:
	ldr	w0, [x26]
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_20:
	bl	_rio_dprintk
	bl	_func_exit
LBB0_21:
Lloh43:
	adrp	x8, _ENXIO@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_23:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_24:
	ldr	w0, [x26]
Lloh45:
	adrp	x1, l_.str.9@PAGE
Lloh46:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_rio_dprintk
LBB0_25:
	bl	_func_exit
Lloh47:
	adrp	x8, _EINTR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_22
LBB0_26:
	ldr	w8, [x19, #8]
Lloh49:
	adrp	x9, _RIO_CLOSING@GOTPAGE
Lloh50:
	ldr	x9, [x9, _RIO_CLOSING@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
Lloh52:
	adrp	x1, l_.str.12@PAGE
Lloh53:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_rio_dprintk
	sub	w24, w24, #1
	cmp	w24, #0
	b.le	LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x0, x28
	bl	_rio_spin_unlock_irqrestore
	mov	x23, x20
	ldr	w1, [x20]
	mov	x0, x19
	bl	_RIODelay
	mov	x25, x0
	mov	x0, x28
Lloh54:
	adrp	x8, _RIO_FAIL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _RIO_FAIL@GOTPAGEOFF]
Lloh56:
	ldr	x20, [x8]
	bl	_rio_spin_lock_irqsave
	cmp	x25, x20
	b.eq	LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w8, [x19, #8]
Lloh57:
	adrp	x9, _RIO_CLOSING@GOTPAGE
Lloh58:
	ldr	x9, [x9, _RIO_CLOSING@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	x9, [x27]
	ldr	x9, [x9]
	mov	x20, x23
	cbz	x9, LBB0_27
	b	LBB0_35
LBB0_31:
	ldr	w0, [x26]
Lloh60:
	adrp	x1, l_.str.13@PAGE
Lloh61:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_rio_dprintk
	ldr	x0, [x27]
Lloh62:
	adrp	x8, _RIOC_FCLOSE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _RIOC_FCLOSE@GOTPAGEOFF]
Lloh64:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_RIOPreemptiveCmd
LBB0_32:
Lloh65:
	adrp	x8, _EINTR@GOTPAGE
Lloh66:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
LBB0_33:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_18
LBB0_34:
	mov	x20, x23
LBB0_35:
	ldr	w9, [x19, #92]
	cbz	w9, LBB0_48
; %bb.36:
	ldr	x9, [x27]
	ldr	x9, [x9]
	cbnz	x9, LBB0_17
; %bb.37:
Lloh67:
	adrp	x9, _RIO_LOPEN@GOTPAGE
Lloh68:
	ldr	x9, [x9, _RIO_LOPEN@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
Lloh70:
	adrp	x23, _RIO_MOPEN@GOTPAGE
Lloh71:
	ldr	x23, [x23, _RIO_MOPEN@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_39
; %bb.38:
Lloh72:
	adrp	x8, _RIO_CTSFLOW@GOTPAGE
Lloh73:
	ldr	x8, [x8, _RIO_CTSFLOW@GOTPAGEOFF]
Lloh74:
	adrp	x9, _RIO_RTSFLOW@GOTPAGE
Lloh75:
	ldr	x9, [x9, _RIO_RTSFLOW@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
Lloh77:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
	str	w8, [x19, #12]
LBB0_39:
	ldr	w8, [x19, #88]
	cbz	w8, LBB0_49
LBB0_40:
	ldr	w0, [x26]
Lloh78:
	adrp	x1, l_.str.19@PAGE
Lloh79:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_rio_dprintk
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh80:
	adrp	x9, _CLOCAL@GOTPAGE
Lloh81:
	ldr	x9, [x9, _CLOCAL@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_42
; %bb.41:
	ldr	w8, [x19, #20]
Lloh83:
	adrp	x9, _RIOC_MSVR1_CD@GOTPAGE
Lloh84:
	ldr	x9, [x9, _RIOC_MSVR1_CD@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_57
LBB0_42:
	ldr	w0, [x26]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh86:
	adrp	x1, l_.str.20@PAGE
Lloh87:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_rio_dprintk
Lloh88:
	adrp	x8, _RIO_CARR_ON@GOTPAGE
Lloh89:
	ldr	x8, [x8, _RIO_CARR_ON@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_wake_up_interruptible
LBB0_43:
	ldr	x8, [x27]
	ldr	x8, [x8]
	cbnz	x8, LBB0_17
; %bb.44:
	ldr	w0, [x26]
Lloh91:
	adrp	x1, l_.str.23@PAGE
Lloh92:
	add	x1, x1, l_.str.23@PAGEOFF
	bl	_rio_dprintk
	ldr	w8, [x23]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [x27]
	ldr	x8, [x8]
	cbnz	x8, LBB0_17
; %bb.45:
	ldr	w0, [x26]
Lloh93:
	adrp	x1, l_.str.24@PAGE
Lloh94:
	add	x1, x1, l_.str.24@PAGEOFF
	bl	_rio_dprintk
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_47
; %bb.46:
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_47:
	mov	x0, x28
	bl	_rio_spin_unlock_irqrestore
	ldr	w0, [x26]
Lloh95:
	adrp	x1, l_.str.25@PAGE
Lloh96:
	add	x1, x1, l_.str.25@PAGEOFF
	bl	_rio_dprintk
	bl	_func_exit
	mov	w19, #0
	b	LBB0_23
LBB0_48:
	ldr	w0, [x26]
Lloh97:
	adrp	x1, l_.str.14@PAGE
Lloh98:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_rio_dprintk
	mov	x0, x28
	bl	_rio_spin_unlock_irqrestore
Lloh99:
	adrp	x8, _ENXIO@GOTPAGE
Lloh100:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh101:
	ldr	w8, [x8]
	neg	w19, w8
	bl	_func_exit
	b	LBB0_23
LBB0_49:
	ldr	w0, [x26]
Lloh102:
	adrp	x1, l_.str.15@PAGE
Lloh103:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_rio_dprintk
	ldr	w8, [x19, #88]
	add	w8, w8, #1
	str	w8, [x19, #88]
	str	xzr, [x19, #80]
Lloh104:
	adrp	x8, _NOT_INUSE@GOTPAGE
Lloh105:
	ldr	x8, [x8, _NOT_INUSE@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	str	w8, [x19, #72]
	mov	x0, x28
	bl	_rio_spin_unlock_irqrestore
Lloh107:
	adrp	x8, _RIOC_OPEN@GOTPAGE
Lloh108:
	ldr	x8, [x8, _RIOC_OPEN@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
Lloh110:
	adrp	x8, _OK_TO_SLEEP@GOTPAGE
Lloh111:
	ldr	x8, [x8, _OK_TO_SLEEP@GOTPAGEOFF]
Lloh112:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_RIOParam
	mov	x0, x28
	bl	_rio_spin_lock_irqsave
	ldr	w8, [x19, #16]
Lloh113:
	adrp	x25, _PORT_ISOPEN@GOTPAGE
Lloh114:
	ldr	x25, [x25, _PORT_ISOPEN@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_52
LBB0_50:
	ldr	x8, [x27]
	ldr	x8, [x8]
	cbz	x8, LBB0_56
; %bb.51:
Lloh115:
	adrp	x8, _EIO@GOTPAGE
Lloh116:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_33
LBB0_52:
Lloh117:
	adrp	x24, l_.str.16@PAGE
Lloh118:
	add	x24, x24, l_.str.16@PAGEOFF
LBB0_53:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x27]
	ldr	x9, [x9]
	cbnz	x9, LBB0_50
; %bb.54:                               ;   in Loop: Header=BB0_53 Depth=1
	ldr	w0, [x26]
	str	x8, [sp]
	mov	x1, x24
	bl	_rio_dprintk
	mov	x0, x28
	bl	_rio_spin_unlock_irqrestore
	ldr	w1, [x20]
	mov	x0, x19
	bl	_RIODelay
Lloh119:
	adrp	x8, _RIO_FAIL@GOTPAGE
Lloh120:
	ldr	x8, [x8, _RIO_FAIL@GOTPAGEOFF]
Lloh121:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_64
; %bb.55:                               ;   in Loop: Header=BB0_53 Depth=1
	mov	x0, x28
	bl	_rio_spin_lock_irqsave
	ldr	w8, [x19, #16]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_53
	b	LBB0_50
LBB0_56:
	ldr	w0, [x26]
Lloh122:
	adrp	x1, l_.str.18@PAGE
Lloh123:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_rio_dprintk
	b	LBB0_40
LBB0_57:
	mov	x23, x28
LBB0_58:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #8]
Lloh124:
	adrp	x9, _RIO_CARR_ON@GOTPAGE
Lloh125:
	ldr	x9, [x9, _RIO_CARR_ON@GOTPAGEOFF]
Lloh126:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_63
; %bb.59:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	w9, [x21]
Lloh127:
	adrp	x10, _O_NONBLOCK@GOTPAGE
Lloh128:
	ldr	x10, [x10, _O_NONBLOCK@GOTPAGEOFF]
Lloh129:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_63
; %bb.60:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	x9, [x27]
	ldr	x9, [x9]
	cbnz	x9, LBB0_63
; %bb.61:                               ;   in Loop: Header=BB0_58 Depth=1
	ldr	w0, [x26]
	str	x22, [sp]
Lloh130:
	adrp	x1, l_.str.21@PAGE
Lloh131:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_rio_dprintk
Lloh132:
	adrp	x8, _RIO_WOPEN@GOTPAGE
Lloh133:
	ldr	x8, [x8, _RIO_WOPEN@GOTPAGEOFF]
Lloh134:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x28, x23
	mov	x0, x23
	bl	_rio_spin_unlock_irqrestore
	ldr	w1, [x20]
	mov	x0, x19
	bl	_RIODelay
	mov	x24, x0
Lloh135:
	adrp	x8, _RIO_FAIL@GOTPAGE
Lloh136:
	ldr	x8, [x8, _RIO_FAIL@GOTPAGEOFF]
Lloh137:
	ldr	x25, [x8]
	mov	x0, x23
	bl	_rio_spin_lock_irqsave
	cmp	x24, x25
	b.ne	LBB0_58
; %bb.62:
	ldr	w0, [x26]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh138:
	adrp	x1, l_.str.22@PAGE
Lloh139:
	add	x1, x1, l_.str.22@PAGEOFF
	bl	_rio_dprintk
	ldr	x0, [x27]
Lloh140:
	adrp	x8, _RIOC_FCLOSE@GOTPAGE
Lloh141:
	ldr	x8, [x8, _RIOC_FCLOSE@GOTPAGEOFF]
Lloh142:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_RIOPreemptiveCmd
Lloh143:
	adrp	x8, _RIO_WOPEN@GOTPAGE
Lloh144:
	ldr	x8, [x8, _RIO_WOPEN@GOTPAGEOFF]
Lloh145:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x23
	bl	_rio_spin_unlock_irqrestore
	b	LBB0_25
LBB0_63:
Lloh146:
	adrp	x9, _RIO_WOPEN@GOTPAGE
Lloh147:
	ldr	x9, [x9, _RIO_WOPEN@GOTPAGEOFF]
Lloh148:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19, #8]
	mov	x28, x23
Lloh149:
	adrp	x23, _RIO_MOPEN@GOTPAGE
Lloh150:
	ldr	x23, [x23, _RIO_MOPEN@GOTPAGEOFF]
	b	LBB0_43
LBB0_64:
	ldr	w0, [x26]
Lloh151:
	adrp	x1, l_.str.17@PAGE
Lloh152:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_rio_dprintk
	ldr	x0, [x27]
Lloh153:
	adrp	x8, _RIOC_FCLOSE@GOTPAGE
Lloh154:
	ldr	x8, [x8, _RIOC_FCLOSE@GOTPAGEOFF]
Lloh155:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_RIOPreemptiveCmd
	b	LBB0_25
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh76
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGot	Lloh115, Lloh116
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpAdd	Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpAdd	Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpAdd	Lloh138, Lloh139
	.loh AdrpLdrGot	Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpAdd	Lloh151, Lloh152
	.cfi_endproc
                                        ; -- End function
	.comm	_p,8,3                          ; @p
	.comm	_RIO_DEBUG_TTY,4,2              ; @RIO_DEBUG_TTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"System initialisation failed\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"port open SysPort %d (mapped:%d)\n"

	.comm	_RIO_PORTS,4,2                  ; @RIO_PORTS
l_.str.2:                               ; @.str.2
	.asciz	"Illegal port number %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"PortP: %p\n"

l_.str.4:                               ; @.str.4
	.asciz	"port not mapped into system\n"

l_.str.5:                               ; @.str.5
	.asciz	"%d bytes in tx buffer\n"

	.comm	_RUN_STATE,4,2                  ; @RUN_STATE
	.comm	_RC_RUNNING,4,2                 ; @RC_RUNNING
l_.str.6:                               ; @.str.6
	.asciz	"Host not running\n"

l_.str.7:                               ; @.str.7
	.asciz	"Checking if RTA has booted... \n"

	.comm	_RTA_BOOTED,4,2                 ; @RTA_BOOTED
l_.str.8:                               ; @.str.8
	.asciz	"RTA never booted\n"

	.comm	_HUNDRED_MS,4,2                 ; @HUNDRED_MS
	.comm	_RIO_FAIL,8,3                   ; @RIO_FAIL
l_.str.9:                               ; @.str.9
	.asciz	"RTA_wait_for_boot: EINTR in delay \n"

	.comm	_EINTR,4,2                      ; @EINTR
l_.str.10:                              ; @.str.10
	.asciz	"Waiting for RTA to boot timeout\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.11:                              ; @.str.11
	.asciz	"RTA has been booted\n"

	.comm	_RIO_CLOSING,4,2                ; @RIO_CLOSING
l_.str.12:                              ; @.str.12
	.asciz	"Waiting for RIO_CLOSING to go away\n"

l_.str.13:                              ; @.str.13
	.asciz	"Waiting for not idle closed broken by signal\n"

	.comm	_RIOC_FCLOSE,4,2                ; @RIOC_FCLOSE
l_.str.14:                              ; @.str.14
	.asciz	"Port unmapped while closing!\n"

	.comm	_RIO_LOPEN,4,2                  ; @RIO_LOPEN
	.comm	_RIO_MOPEN,4,2                  ; @RIO_MOPEN
	.comm	_RIO_CTSFLOW,4,2                ; @RIO_CTSFLOW
	.comm	_RIO_RTSFLOW,4,2                ; @RIO_RTSFLOW
l_.str.15:                              ; @.str.15
	.asciz	"First open for this port\n"

	.comm	_NOT_INUSE,4,2                  ; @NOT_INUSE
	.comm	_RIOC_OPEN,4,2                  ; @RIOC_OPEN
	.comm	_OK_TO_SLEEP,4,2                ; @OK_TO_SLEEP
	.comm	_PORT_ISOPEN,4,2                ; @PORT_ISOPEN
l_.str.16:                              ; @.str.16
	.asciz	"Waiting for PORT_ISOPEN-currently %x\n"

l_.str.17:                              ; @.str.17
	.asciz	"Waiting for open to finish broken by signal\n"

l_.str.18:                              ; @.str.18
	.asciz	"PORT_ISOPEN found\n"

l_.str.19:                              ; @.str.19
	.asciz	"Modem - test for carrier\n"

	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.comm	_RIOC_MSVR1_CD,4,2              ; @RIOC_MSVR1_CD
l_.str.20:                              ; @.str.20
	.asciz	"open(%d) Modem carr on\n"

	.comm	_RIO_CARR_ON,4,2                ; @RIO_CARR_ON
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.21:                              ; @.str.21
	.asciz	"open(%d) sleeping for carr on\n"

	.comm	_RIO_WOPEN,4,2                  ; @RIO_WOPEN
l_.str.22:                              ; @.str.22
	.asciz	"open(%d) sleeping for carr broken by signal\n"

l_.str.23:                              ; @.str.23
	.asciz	"Setting RIO_MOPEN\n"

l_.str.24:                              ; @.str.24
	.asciz	"high level open done\n"

l_.str.25:                              ; @.str.25
	.asciz	"Returning from open\n"

.subsections_via_symbols
