	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rate_to_code
_rate_to_code:                          ## @rate_to_code
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %r8d
	movq	_baudtab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	cmpl	$-1, %edx
	je	LBB0_1
## %bb.2:
	movabsq	$-4294967296, %rdi              ## imm = 0xFFFFFFFF00000000
	xorl	%esi, %esi
	movabsq	$4294967296, %r9                ## imm = 0x100000000
	movl	%edx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r8d, %ecx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	jg	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rax,%rsi,8), %ecx
	incq	%rsi
	addq	%r9, %rdi
	cmpl	$-1, %ecx
	jne	LBB0_3
## %bb.10:
	sarq	$32, %rdi
	jmp	LBB0_11
LBB0_1:
	movq	$-1, %rdi
LBB0_11:
	movl	(%rax,%rdi,8), %edx
	leaq	L_.str.2(%rip), %rdi
LBB0_12:
	movl	%r8d, %esi
	xorl	%eax, %eax
	callq	_warning
LBB0_13:
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%esi, %ecx
	movl	4(%rax,%rcx,8), %eax
	popq	%rbp
	retq
LBB0_6:
	testl	%esi, %esi
	je	LBB0_8
## %bb.7:
	sarq	$29, %rdi
	movl	(%rax,%rdi), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r8d, %esi
	xorl	%eax, %eax
	callq	_warning
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_baudtab,8,3                    ## @baudtab
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid baud rate %d.  Closest values are %d and %d."

L_.str.1:                               ## @.str.1
	.asciz	"Invalid baud rate %d.  Minimum value is %d."

L_.str.2:                               ## @.str.2
	.asciz	"Invalid baud rate %d.  Maximum value is %d."

	.no_dead_strip	_rate_to_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rate_to_code
_rate_to_code:                          ; @rate_to_code
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x1, x0
Lloh0:
	adrp	x8, _baudtab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _baudtab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w2, [x8]
	cmn	w2, #1
	b.eq	LBB0_6
; %bb.1:
	mov	x9, #0
	add	x11, x8, #8
	mov	x10, #-4294967296
	mov	x13, #4294967296
	mov	x12, x2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w12, w1
	b.eq	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	b.gt	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	ldr	w12, [x11], #8
	add	x10, x10, x13
	cmn	w12, #1
	b.ne	LBB0_2
; %bb.5:
	asr	x9, x10, #32
	b	LBB0_7
LBB0_6:
	mov	x9, #-1
LBB0_7:
	lsl	x9, x9, #3
	ldr	w2, [x8, x9]
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_warning
	mov	w0, #-1
	b	LBB0_10
LBB0_9:
	add	x8, x8, w9, uxtw #3
	ldr	w0, [x8, #4]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_11:
	cbz	w9, LBB0_13
; %bb.12:
	asr	x9, x10, #29
	ldr	w2, [x8, x9]
	str	x12, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_13:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_baudtab,8,3                    ; @baudtab
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid baud rate %d.  Closest values are %d and %d."

l_.str.1:                               ; @.str.1
	.asciz	"Invalid baud rate %d.  Minimum value is %d."

l_.str.2:                               ; @.str.2
	.asciz	"Invalid baud rate %d.  Maximum value is %d."

	.no_dead_strip	_rate_to_code
.subsections_via_symbols
