	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_Create                     ## -- Begin function tty_Create
	.p2align	4, 0x90
_tty_Create:                            ## @tty_Create
	.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	%rdi, %rbx
	movl	(%rdi), %edi
	testl	%edi, %edi
	js	LBB0_5
## %bb.1:
	callq	_isatty
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	48(%rbx), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_6
## %bb.3:
	movq	_LogDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_5:
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_6:
	movl	(%rbx), %edi
	callq	_ttyname
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_physical_SetDevice
	movq	_LogDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	movq	48(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
LBB0_7:
	xorl	%eax, %eax
	callq	_log_Printf
	movl	$80, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movq	%rax, %r15
	leaq	16(%rax), %r14
	movq	_basettydevice@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_memcpy
	movq	%r15, %rdi
	addq	$72, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$-1, (%r15)
	movq	$0, 64(%r15)
	movq	$-1, 56(%r15)
	movq	8(%r15), %rax
	movb	$0, (%rax)
	movl	(%rbx), %edi
	leaq	-64(%rbp), %rsi
	callq	_tcgetattr
	movq	-48(%rbp), %rax
	movq	%rax, 48(%r15)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, 32(%r15)
	movq	40(%rbx), %rax
	movq	_CD_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, 24(%r15)
LBB0_10:
	movq	_LogDEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%rbx), %ecx
	movl	16(%rbx), %edx
	movl	-48(%rbp), %r8d
	movl	-64(%rbp), %eax
	movl	-56(%rbp), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	leaq	-64(%rbp), %rdi
	callq	_cfmakeraw
	cmpq	$0, 32(%rbx)
	movq	_CLOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_13
## %bb.11:
	movq	_CCTS_OFLOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_CRTS_IFLOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	-64(%rbp), %eax
	movl	%eax, -64(%rbp)
	movq	-48(%rbp), %rcx
	jmp	LBB0_14
LBB0_12:
	movl	(%rbx), %edi
	callq	_close
	movl	$-1, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_26
LBB0_13:
	orl	-64(%rbp), %eax
	movl	%eax, -64(%rbp)
	movq	_IXOFF@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %rcx
	orq	(%rdx), %rcx
LBB0_14:
	movq	_IXON@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rcx
	movq	%rcx, -48(%rbp)
	movq	8(%rbx), %rcx
	movq	_PHYS_DEDICATED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_16
## %bb.15:
	movq	_HUPCL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, -64(%rbp)
LBB0_16:
	movq	_PHYS_DIRECT@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rcx
	je	LBB0_19
## %bb.17:
	movq	_CSIZE@GOTPCREL(%rip), %rcx
	movq	_PARODD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_PARENB@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	orl	24(%rbx), %eax
	movl	%eax, -64(%rbp)
	movl	28(%rbx), %edi
	callq	_UnsignedToSpeed
	leaq	-64(%rbp), %rdi
	movl	%eax, %esi
	callq	_cfsetspeed
	cmpl	$-1, %eax
	jne	LBB0_19
## %bb.18:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	48(%rbx), %rcx
	movl	16(%rbx), %edx
	movl	28(%rbx), %r8d
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_19:
	movl	(%rbx), %edi
	movq	_TCSADRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_tcsetattr
	cmpl	$-1, %eax
	jne	LBB0_23
## %bb.20:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movq	8(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_23
## %bb.21:
	cmpl	$115201, 28(%rbx)               ## imm = 0x1C201
	jl	LBB0_23
## %bb.22:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	16(%rbx), %edi
	callq	_strlen
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.6(%rip), %rcx
	movl	%r12d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_23:
	movl	(%r13), %edi
	movl	16(%rbx), %edx
	movl	-48(%rbp), %ecx
	movl	-64(%rbp), %r9d
	movl	-56(%rbp), %r8d
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movl	(%rbx), %edi
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_fcntl
	testl	%eax, %eax
	js	LBB0_25
## %bb.24:
	movl	(%rbx), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %edx
	callq	_fcntl
	movl	(%r14), %esi
	movq	_PHYSICAL_NOFORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_physical_SetupStack
	jmp	LBB0_26
LBB0_25:
	movq	_LogWARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	16(%rbx), %r13d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.8(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r12d, %edi
	movl	%r13d, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	%rbx, %rdi
	callq	_tty_Cooked
	movl	(%rbx), %edi
	callq	_close
	movl	$-1, (%rbx)
	movq	%r15, %rdi
	callq	_free
LBB0_26:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogDEBUG,4,2                   ## @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Input is a tty (%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Opened %s\n"

	.comm	_basettydevice,4,2              ## @basettydevice
	.comm	_CD_DEFAULT,8,3                 ## @CD_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"%s: tty_Create: physical (get): fd = %d, iflag = %lx, oflag = %lx, cflag = %lx\n"

	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.comm	_CCTS_OFLOW,4,2                 ## @CCTS_OFLOW
	.comm	_CRTS_IFLOW,4,2                 ## @CRTS_IFLOW
	.comm	_IXOFF,8,3                      ## @IXOFF
	.comm	_IXON,8,3                       ## @IXON
	.comm	_PHYS_DEDICATED,8,3             ## @PHYS_DEDICATED
	.comm	_HUPCL,4,2                      ## @HUPCL
	.comm	_PHYS_DIRECT,8,3                ## @PHYS_DIRECT
	.comm	_CSIZE,4,2                      ## @CSIZE
	.comm	_PARODD,4,2                     ## @PARODD
	.comm	_PARENB,4,2                     ## @PARENB
	.comm	_LogWARN,4,2                    ## @LogWARN
L_.str.3:                               ## @.str.3
	.asciz	"%s: %s: Unable to set speed to %d\n"

	.comm	_TCSADRAIN,4,2                  ## @TCSADRAIN
L_.str.4:                               ## @.str.4
	.asciz	"%s: tcsetattr: Failed configuring device\n"

L_.str.5:                               ## @.str.5
	.asciz	"%.*s             Perhaps the speed is unsupported\n"

L_.str.6:                               ## @.str.6
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"%s: physical (put): iflag = %lx, oflag = %lx, cflag = %lx\n"

	.comm	_F_GETFL,4,2                    ## @F_GETFL
L_.str.8:                               ## @.str.8
	.asciz	"%s: Open: Cannot get physical flags: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_PHYSICAL_NOFORCE,4,2           ## @PHYSICAL_NOFORCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_Create                     ; -- Begin function tty_Create
	.p2align	2
_tty_Create:                            ; @tty_Create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x0
	ldr	w0, [x0]
	tbnz	w0, #31, LBB0_24
; %bb.1:
	bl	_isatty
	cbz	w0, LBB0_24
; %bb.2:
	ldr	x8, [x19, #48]
	ldrb	w9, [x8]
Lloh0:
	adrp	x23, _LogDEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LogDEBUG@GOTPAGEOFF]
	cbz	w9, LBB0_4
; %bb.3:
	ldr	w0, [x23]
	ldr	w2, [x19, #16]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
	bl	_ttyname
	mov	x1, x0
	mov	x0, x19
	bl	_physical_SetDevice
	ldr	w0, [x23]
	ldr	w2, [x19, #16]
	ldr	x8, [x19, #48]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	bl	_log_Printf
	mov	w0, #80
	bl	_malloc
	cbz	x0, LBB0_10
; %bb.6:
	mov	x21, x0
	add	x20, x0, #16
Lloh6:
	adrp	x1, _basettydevice@GOTPAGE
Lloh7:
	ldr	x1, [x1, _basettydevice@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #16
	bl	_memcpy
	add	x0, x21, #72
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #-1
	str	w8, [x21]
	str	xzr, [x21, #64]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x21, #56]
	ldr	x8, [x21, #8]
	strb	wzr, [x8]
	ldr	w0, [x19]
	add	x1, sp, #40
	bl	_tcgetattr
	ldr	x8, [sp, #56]
	str	x8, [x21, #48]
	ldur	q0, [sp, #40]
	str	q0, [x21, #32]
	ldr	x8, [x19, #40]
Lloh8:
	adrp	x9, _CD_DEFAULT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CD_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	str	x8, [x21, #24]
LBB0_8:
	ldr	w0, [x23]
	ldr	w2, [x19, #16]
	ldp	x9, x8, [sp, #48]
	ldr	w10, [x19]
	ldr	w11, [sp, #40]
	stp	x9, x11, [sp, #16]
	stp	x10, x8, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_log_Printf
	add	x0, sp, #40
	bl	_cfmakeraw
	ldr	x9, [x19, #32]
Lloh13:
	adrp	x8, _CLOCAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CLOCAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cbz	x9, LBB0_11
; %bb.9:
Lloh16:
	adrp	x9, _CCTS_OFLOW@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CCTS_OFLOW@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _CRTS_IFLOW@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CRTS_IFLOW@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #40]
	orr	w8, w8, w9
	str	w8, [sp, #40]
	ldr	x9, [sp, #56]
	b	LBB0_12
LBB0_10:
	ldr	w0, [x19]
	bl	_close
	mov	x20, #0
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_25
LBB0_11:
	ldr	w9, [sp, #40]
	orr	w8, w9, w8
	str	w8, [sp, #40]
Lloh22:
	adrp	x9, _IXOFF@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IXOFF@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	x10, [sp, #56]
	orr	x9, x10, x9
LBB0_12:
Lloh25:
	adrp	x10, _IXON@GOTPAGE
Lloh26:
	ldr	x10, [x10, _IXON@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	orr	x9, x9, x10
	str	x9, [sp, #56]
	ldr	x9, [x19, #8]
Lloh28:
	adrp	x10, _PHYS_DEDICATED@GOTPAGE
Lloh29:
	ldr	x10, [x10, _PHYS_DEDICATED@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_14
; %bb.13:
Lloh31:
	adrp	x10, _HUPCL@GOTPAGE
Lloh32:
	ldr	x10, [x10, _HUPCL@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [sp, #40]
LBB0_14:
Lloh34:
	adrp	x22, _PHYS_DIRECT@GOTPAGE
Lloh35:
	ldr	x22, [x22, _PHYS_DIRECT@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_17
; %bb.15:
Lloh36:
	adrp	x9, _CSIZE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CSIZE@GOTPAGEOFF]
Lloh38:
	adrp	x10, _PARODD@GOTPAGE
Lloh39:
	ldr	x10, [x10, _PARODD@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
Lloh41:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh42:
	adrp	x10, _PARENB@GOTPAGE
Lloh43:
	ldr	x10, [x10, _PARENB@GOTPAGEOFF]
Lloh44:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w8, w8, w9
	ldp	w9, w0, [x19, #24]
	orr	w8, w9, w8
	str	w8, [sp, #40]
	bl	_UnsignedToSpeed
	mov	x1, x0
	add	x0, sp, #40
	bl	_cfsetspeed
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.16:
Lloh45:
	adrp	x8, _LogWARN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	ldr	w2, [x19, #16]
	ldr	x8, [x19, #48]
	ldr	w9, [x19, #28]
	stp	x8, x9, [sp]
Lloh48:
	adrp	x1, l_.str.3@PAGE
Lloh49:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_log_Printf
LBB0_17:
	ldr	w0, [x19]
Lloh50:
	adrp	x8, _TCSADRAIN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _TCSADRAIN@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	add	x2, sp, #40
	bl	_tcsetattr
	cmn	w0, #1
	b.ne	LBB0_21
; %bb.18:
Lloh53:
	adrp	x24, _LogWARN@GOTPAGE
Lloh54:
	ldr	x24, [x24, _LogWARN@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w2, [x19, #16]
Lloh55:
	adrp	x1, l_.str.4@PAGE
Lloh56:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_log_Printf
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.19:
	ldr	w8, [x19, #28]
	mov	w9, #49665
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_21
; %bb.20:
	ldr	w22, [x24]
	ldr	w0, [x19, #16]
	bl	_strlen
	mov	x2, x0
Lloh57:
	adrp	x8, l_.str.6@PAGE
Lloh58:
	add	x8, x8, l_.str.6@PAGEOFF
	str	x8, [sp]
Lloh59:
	adrp	x1, l_.str.5@PAGE
Lloh60:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_log_Printf
LBB0_21:
	ldr	w0, [x23]
	ldr	w2, [x19, #16]
	ldp	x9, x8, [sp, #48]
	ldr	w10, [sp, #40]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh61:
	adrp	x1, l_.str.7@PAGE
Lloh62:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_log_Printf
	ldr	w0, [x19]
Lloh63:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh64:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_fcntl
	tbnz	w0, #31, LBB0_23
; %bb.22:
Lloh66:
	adrp	x9, _F_SETFL@GOTPAGE
Lloh67:
	ldr	x9, [x9, _F_SETFL@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh68:
	ldr	w1, [x9]
Lloh69:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh70:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	bic	w2, w0, w9
	mov	x0, x8
	bl	_fcntl
	ldr	w1, [x20]
Lloh72:
	adrp	x8, _PHYSICAL_NOFORCE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _PHYSICAL_NOFORCE@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_physical_SetupStack
	b	LBB0_25
LBB0_23:
Lloh75:
	adrp	x8, _LogWARN@GOTPAGE
Lloh76:
	ldr	x8, [x8, _LogWARN@GOTPAGEOFF]
Lloh77:
	ldr	w20, [x8]
	ldr	w22, [x19, #16]
Lloh78:
	adrp	x8, _errno@GOTPAGE
Lloh79:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh80:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh81:
	adrp	x1, l_.str.8@PAGE
Lloh82:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_log_Printf
	mov	x0, x19
	bl	_tty_Cooked
	ldr	w0, [x19]
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
	mov	x0, x21
	bl	_free
LBB0_24:
	mov	x20, #0
LBB0_25:
	mov	x0, x20
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.cfi_endproc
                                        ; -- End function
	.comm	_LogDEBUG,4,2                   ; @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Input is a tty (%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Opened %s\n"

	.comm	_basettydevice,4,2              ; @basettydevice
	.comm	_CD_DEFAULT,8,3                 ; @CD_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"%s: tty_Create: physical (get): fd = %d, iflag = %lx, oflag = %lx, cflag = %lx\n"

	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.comm	_CCTS_OFLOW,4,2                 ; @CCTS_OFLOW
	.comm	_CRTS_IFLOW,4,2                 ; @CRTS_IFLOW
	.comm	_IXOFF,8,3                      ; @IXOFF
	.comm	_IXON,8,3                       ; @IXON
	.comm	_PHYS_DEDICATED,8,3             ; @PHYS_DEDICATED
	.comm	_HUPCL,4,2                      ; @HUPCL
	.comm	_PHYS_DIRECT,8,3                ; @PHYS_DIRECT
	.comm	_CSIZE,4,2                      ; @CSIZE
	.comm	_PARODD,4,2                     ; @PARODD
	.comm	_PARENB,4,2                     ; @PARENB
	.comm	_LogWARN,4,2                    ; @LogWARN
l_.str.3:                               ; @.str.3
	.asciz	"%s: %s: Unable to set speed to %d\n"

	.comm	_TCSADRAIN,4,2                  ; @TCSADRAIN
l_.str.4:                               ; @.str.4
	.asciz	"%s: tcsetattr: Failed configuring device\n"

l_.str.5:                               ; @.str.5
	.asciz	"%.*s             Perhaps the speed is unsupported\n"

l_.str.6:                               ; @.str.6
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"%s: physical (put): iflag = %lx, oflag = %lx, cflag = %lx\n"

	.comm	_F_GETFL,4,2                    ; @F_GETFL
l_.str.8:                               ; @.str.8
	.asciz	"%s: Open: Cannot get physical flags: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_PHYSICAL_NOFORCE,4,2           ; @PHYSICAL_NOFORCE
.subsections_via_symbols
