	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function COMM_BuildOldCommDCB
_COMM_BuildOldCommDCB:                  ## @COMM_BuildOldCommDCB
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_COMM_ParseNumber
	movq	_FALSE@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_41
## %bb.1:
	movl	(%r14), %ecx
	cmpq	$60, %rcx
	ja	LBB0_2
## %bb.4:
	movabsq	$281474993491968, %rdx          ## imm = 0x1000001001000
	btq	%rcx, %rdx
	jb	LBB0_3
## %bb.5:
	movabsq	$1152921505680590848, %rdx      ## imm = 0x1000000040000800
	btq	%rcx, %rdx
	jae	LBB0_6
## %bb.7:
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %edx
	jmp	LBB0_8
LBB0_6:
	movl	$19200, %edx                    ## imm = 0x4B00
	cmpq	$19, %rcx
	je	LBB0_8
LBB0_2:
	cmpl	$96, %ecx
	jne	LBB0_9
LBB0_3:
	imull	$100, %ecx, %edx
LBB0_8:
	movl	%edx, (%r14)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rax
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$32, %cl
	je	LBB0_42
## %bb.10:
	cmpb	$44, %cl
	jne	LBB0_41
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, 1(%rax)
	leaq	1(%rax), %rax
	je	LBB0_11
## %bb.12:
	leaq	64(%r14), %rsi
	movq	%rax, %rdi
	callq	_COMM_ParseParity
	testq	%rax, %rax
	je	LBB0_41
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$32, %cl
	jne	LBB0_14
## %bb.43:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rax
	jmp	LBB0_13
LBB0_14:
	cmpb	$44, %cl
	jne	LBB0_41
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, 1(%rax)
	leaq	1(%rax), %rax
	je	LBB0_15
## %bb.16:
	leaq	60(%r14), %rsi
	movq	%rax, %rdi
	callq	_COMM_ParseByteSize
	testq	%rax, %rax
	je	LBB0_41
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	cmpb	$32, %cl
	jne	LBB0_18
## %bb.44:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rax
	jmp	LBB0_17
LBB0_18:
	cmpb	$44, %cl
	jne	LBB0_41
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, 1(%rax)
	leaq	1(%rax), %rax
	je	LBB0_19
## %bb.20:
	leaq	56(%r14), %rsi
	movq	%rax, %rdi
	callq	_COMM_ParseStopBits
	testq	%rax, %rax
	je	LBB0_41
## %bb.21:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$32, %al
	jne	LBB0_23
## %bb.45:                              ##   in Loop: Header=BB0_22 Depth=1
	incq	%rbx
	jmp	LBB0_22
LBB0_23:
	cmpb	$44, %al
	jne	LBB0_34
## %bb.24:
	incq	%rbx
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	incq	%rbx
	cmpl	$32, %edi
	je	LBB0_25
## %bb.26:
	testb	%dil, %dil
	jne	LBB0_27
## %bb.28:
	decq	%rbx
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_27:
	callq	_toupperW
LBB0_29:
	decq	%rbx
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$32, 1(%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_30
## %bb.31:
	cmpl	$88, %eax
	je	LBB0_36
## %bb.32:
	cmpl	$80, %eax
	je	LBB0_37
## %bb.33:
	testl	%eax, %eax
	jne	LBB0_41
LBB0_34:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r14)
	movq	%rax, 40(%r14)
LBB0_35:
	movq	_RTS_CONTROL_ENABLE@GOTPCREL(%rip), %rcx
	movq	_DTR_CONTROL_ENABLE@GOTPCREL(%rip), %rdx
LBB0_38:
	movq	%rax, 32(%r14)
	movq	%rax, 24(%r14)
	movq	(%rdx), %rax
	movq	%rax, 16(%r14)
	movq	(%rcx), %rax
	movq	%rax, 8(%r14)
	cmpb	$0, (%rbx)
	jne	LBB0_39
## %bb.40:
	movq	_TRUE@GOTPCREL(%rip), %r15
	jmp	LBB0_41
LBB0_39:
	movq	_FALSE@GOTPCREL(%rip), %r15
LBB0_41:
	movq	(%r15), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r14)
	movq	%rax, 40(%r14)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_35
LBB0_37:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r14)
	movq	%rax, 40(%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RTS_CONTROL_HANDSHAKE@GOTPCREL(%rip), %rcx
	movq	_DTR_CONTROL_HANDSHAKE@GOTPCREL(%rip), %rdx
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_DTR_CONTROL_ENABLE,8,3         ## @DTR_CONTROL_ENABLE
	.comm	_RTS_CONTROL_ENABLE,8,3         ## @RTS_CONTROL_ENABLE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_DTR_CONTROL_HANDSHAKE,8,3      ## @DTR_CONTROL_HANDSHAKE
	.comm	_RTS_CONTROL_HANDSHAKE,8,3      ## @RTS_CONTROL_HANDSHAKE
	.no_dead_strip	_COMM_BuildOldCommDCB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function COMM_BuildOldCommDCB
_COMM_BuildOldCommDCB:                  ; @COMM_BuildOldCommDCB
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	bl	_COMM_ParseNumber
	cbz	x0, LBB0_27
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #60
	b.hi	LBB0_7
; %bb.2:
	mov	w9, #1
	lsl	x9, x9, x8
	mov	x10, #4096
	movk	x10, #256, lsl #16
	movk	x10, #1, lsl #48
	tst	x9, x10
	b.ne	LBB0_8
; %bb.3:
	mov	w9, #1
	lsl	x9, x9, x8
	mov	x10, #2048
	movk	x10, #16384, lsl #16
	movk	x10, #4096, lsl #48
	tst	x9, x10
	b.eq	LBB0_5
; %bb.4:
	add	w8, w8, w8, lsl #2
	lsl	w8, w8, #1
	b	LBB0_9
LBB0_5:
	cmp	x8, #19
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #19200
	b	LBB0_9
LBB0_7:
	cmp	w8, #96
	b.ne	LBB0_11
LBB0_8:
	mov	w9, #100
	mul	w8, w8, w9
LBB0_9:
	str	w8, [x19]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, x0, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0]
	cmp	w8, #32
	b.eq	LBB0_10
; %bb.12:
	cmp	w8, #44
	b.ne	LBB0_27
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0, #1]!
	cmp	w8, #32
	b.eq	LBB0_13
; %bb.14:
	add	x1, x19, #64
	bl	_COMM_ParseParity
	cbz	x0, LBB0_27
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0]
	cmp	w8, #32
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x0, x0, #1
	b	LBB0_15
LBB0_17:
	cmp	w8, #44
	b.ne	LBB0_27
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0, #1]!
	cmp	w8, #32
	b.eq	LBB0_18
; %bb.19:
	add	x1, x19, #60
	bl	_COMM_ParseByteSize
	cbz	x0, LBB0_27
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0]
	cmp	w8, #32
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x0, x0, #1
	b	LBB0_20
LBB0_22:
	cmp	w8, #44
	b.ne	LBB0_27
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0, #1]!
	cmp	w8, #32
	b.eq	LBB0_23
; %bb.24:
	add	x1, x19, #56
	bl	_COMM_ParseStopBits
Lloh0:
	adrp	x20, _FALSE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	cbz	x0, LBB0_34
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0]
	cmp	w8, #32
	b.ne	LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x0, x0, #1
	b	LBB0_25
LBB0_27:
Lloh2:
	adrp	x9, _FALSE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
LBB0_28:
	ldr	x0, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_29:
Lloh4:
	adrp	x21, _TRUE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	cmp	w8, #44
	b.ne	LBB0_41
; %bb.30:
	add	x22, x0, #1
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22], #1
	cmp	w8, #32
	b.eq	LBB0_31
; %bb.32:
	cbnz	w8, LBB0_35
; %bb.33:
	sub	x22, x22, #1
	b	LBB0_36
LBB0_34:
	mov	x9, x20
	b	LBB0_28
LBB0_35:
	sxtb	w0, w8
	bl	_toupperW
	mov	x8, x0
LBB0_36:
	sub	x0, x22, #1
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x0, #1]!
	cmp	w9, #32
	b.eq	LBB0_37
; %bb.38:
Lloh6:
	adrp	x9, _FALSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	cmp	w8, #88
	b.eq	LBB0_44
; %bb.39:
	cmp	w8, #80
	b.eq	LBB0_45
; %bb.40:
	cbnz	w8, LBB0_28
LBB0_41:
	ldr	x8, [x20]
	stp	x8, x8, [x19, #40]
LBB0_42:
Lloh8:
	adrp	x9, _RTS_CONTROL_ENABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RTS_CONTROL_ENABLE@GOTPAGEOFF]
Lloh10:
	adrp	x10, _DTR_CONTROL_ENABLE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _DTR_CONTROL_ENABLE@GOTPAGEOFF]
LBB0_43:
	stp	x8, x8, [x19, #24]
	ldr	x8, [x10]
	ldr	x9, [x9]
	stp	x9, x8, [x19, #8]
	ldrb	w8, [x0]
	cmp	w8, #0
	csel	x9, x21, x20, eq
	b	LBB0_28
LBB0_44:
	ldr	x8, [x21]
	stp	x8, x8, [x19, #40]
	ldr	x8, [x9]
	b	LBB0_42
LBB0_45:
	ldr	x8, [x9]
	stp	x8, x8, [x19, #40]
	ldr	x8, [x21]
Lloh12:
	adrp	x9, _RTS_CONTROL_HANDSHAKE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RTS_CONTROL_HANDSHAKE@GOTPAGEOFF]
Lloh14:
	adrp	x10, _DTR_CONTROL_HANDSHAKE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DTR_CONTROL_HANDSHAKE@GOTPAGEOFF]
	b	LBB0_43
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_DTR_CONTROL_ENABLE,8,3         ; @DTR_CONTROL_ENABLE
	.comm	_RTS_CONTROL_ENABLE,8,3         ; @RTS_CONTROL_ENABLE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_DTR_CONTROL_HANDSHAKE,8,3      ; @DTR_CONTROL_HANDSHAKE
	.comm	_RTS_CONTROL_HANDSHAKE,8,3      ; @RTS_CONTROL_HANDSHAKE
	.no_dead_strip	_COMM_BuildOldCommDCB
.subsections_via_symbols
