	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comc_getspeed
_comc_getspeed:                         ## @comc_getspeed
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_comc_port@GOTPCREL(%rip), %r12
	movq	_com_cfcr@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_inb
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	movl	%eax, %r14d
	movq	_CFCR_DLAB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r14d, %esi
	callq	_outb
	movq	_com_dlbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_inb
	movl	%eax, %r15d
	movq	_com_dlbh@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_inb
	movl	%eax, %ebx
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	movl	%r14d, %esi
	callq	_outb
	shll	$8, %ebx
	orl	%r15d, %ebx
	je	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_COMC_DIV2BPS                   ## TAILCALL
LBB0_1:
	movq	_COMSPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_comc_port,8,3                  ## @comc_port
	.comm	_com_cfcr,8,3                   ## @com_cfcr
	.comm	_CFCR_DLAB,4,2                  ## @CFCR_DLAB
	.comm	_com_dlbl,8,3                   ## @com_dlbl
	.comm	_com_dlbh,8,3                   ## @com_dlbh
	.comm	_COMSPEED,4,2                   ## @COMSPEED
	.no_dead_strip	_comc_getspeed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comc_getspeed
_comc_getspeed:                         ; @comc_getspeed
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x22, _comc_port@GOTPAGE
Lloh1:
	ldr	x22, [x22, _comc_port@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _com_cfcr@GOTPAGE
Lloh3:
	ldr	x23, [x23, _com_cfcr@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_inb
	mov	x19, x0
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x0, x9, x8
Lloh4:
	adrp	x8, _CFCR_DLAB@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CFCR_DLAB@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w1, w8, w19
	bl	_outb
	ldr	x8, [x22]
Lloh7:
	adrp	x9, _com_dlbl@GOTPAGE
Lloh8:
	ldr	x9, [x9, _com_dlbl@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
	mov	x20, x0
	ldr	x8, [x22]
Lloh10:
	adrp	x9, _com_dlbh@GOTPAGE
Lloh11:
	ldr	x9, [x9, _com_dlbh@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x0, x9, x8
	mov	x1, x19
	bl	_outb
	orr	w0, w20, w21, lsl #8
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_COMC_DIV2BPS
LBB0_2:
Lloh13:
	adrp	x8, _COMSPEED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMSPEED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_comc_port,8,3                  ; @comc_port
	.comm	_com_cfcr,8,3                   ; @com_cfcr
	.comm	_CFCR_DLAB,4,2                  ; @CFCR_DLAB
	.comm	_com_dlbl,8,3                   ; @com_dlbl
	.comm	_com_dlbh,8,3                   ; @com_dlbh
	.comm	_COMSPEED,4,2                   ; @COMSPEED
	.no_dead_strip	_comc_getspeed
.subsections_via_symbols
