	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_autobaud                       ## -- Begin function autobaud
	.p2align	4, 0x90
_autobaud:                              ## @autobaud
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_TCIOFLUSH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_tcflush
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -36(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	movl	$1, %esi
	movl	$5000, %edx                     ## imm = 0x1388
	callq	_poll
	leaq	L_.str(%rip), %r15
	testq	%rax, %rax
	jle	LBB0_12
## %bb.1:
	movl	(%rbx), %edi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.2:
	movq	$0, -56(%rbp)
	movl	$20000, -64(%rbp)               ## imm = 0x4E20
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_nanosleep
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_tcflush
	movb	-41(%rbp), %al
	cmpb	$-27, %al
	jle	LBB0_3
## %bb.5:
	cmpb	$13, %al
	je	LBB0_9
## %bb.6:
	cmpb	$-1, %al
	je	LBB0_12
## %bb.7:
	cmpb	$-26, %al
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_12
LBB0_3:
	cmpb	$-128, %al
	je	LBB0_4
## %bb.10:
	cmpb	$-115, %al
	jne	LBB0_11
LBB0_9:
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.4(%rip), %r15
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"9600-baud"

	.comm	_TCIOFLUSH,4,2                  ## @TCIOFLUSH
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_POLLIN,4,2                     ## @POLLIN
L_.str.1:                               ## @.str.1
	.asciz	"300-baud"

L_.str.2:                               ## @.str.2
	.asciz	"1200-baud"

L_.str.3:                               ## @.str.3
	.asciz	"2400-baud"

L_.str.4:                               ## @.str.4
	.asciz	"4800-baud"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_autobaud                       ; -- Begin function autobaud
	.p2align	2
_autobaud:                              ; @autobaud
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x19, _TCIOFLUSH@GOTPAGE
Lloh4:
	ldr	x19, [x19, _TCIOFLUSH@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	w0, #0
	bl	_tcflush
Lloh5:
	adrp	x20, _STDIN_FILENO@GOTPAGE
Lloh6:
	ldr	x20, [x20, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _POLLIN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
	add	x0, sp, #32
	mov	w1, #1
	mov	w2, #5000
	bl	_poll
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	w0, [x20]
	add	x1, sp, #15
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.2:
	str	xzr, [sp, #24]
	mov	w8, #20000
	str	w8, [sp, #16]
	add	x0, sp, #16
	mov	x1, #0
	bl	_nanosleep
	ldr	w1, [x19]
	mov	w0, #0
	bl	_tcflush
	ldrb	w8, [sp, #15]
	cmp	w8, #140
	b.le	LBB0_10
; %bb.3:
	cmp	w8, #141
	b.eq	LBB0_13
; %bb.4:
	cmp	w8, #255
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #230
	b.ne	LBB0_14
; %bb.6:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	cmp	w8, #13
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.12:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_13:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_14:
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"9600-baud"

	.comm	_TCIOFLUSH,4,2                  ; @TCIOFLUSH
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_POLLIN,4,2                     ; @POLLIN
l_.str.1:                               ; @.str.1
	.asciz	"300-baud"

l_.str.2:                               ; @.str.2
	.asciz	"1200-baud"

l_.str.3:                               ; @.str.3
	.asciz	"2400-baud"

l_.str.4:                               ; @.str.4
	.asciz	"4800-baud"

.subsections_via_symbols
