	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dos_setstopbits
_dos_setstopbits:                       ## @dos_setstopbits
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	_ports@GOTPCREL(%rip), %rax
	movq	(%rdi), %rbx
	shlq	$2, %rbx
	addq	(%rax), %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_disable
	movq	_com_cfcr@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_inb
	cmpl	$128, %r15d
	je	LBB0_4
## %bb.1:
	cmpl	$130, %r15d
	je	LBB0_4
## %bb.2:
	movl	$1, %r14d
	cmpl	$129, %r15d
	jne	LBB0_5
## %bb.3:
	movl	(%r12), %esi
	movq	_CFCR_STOPB@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	notb	%cl
	andb	%cl, %al
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_outb
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	movl	(%r12), %esi
	movq	_CFCR_STOPB@GOTPCREL(%rip), %rcx
	orb	(%rcx), %al
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_outb
LBB0_5:
	xorl	%eax, %eax
	callq	_enable
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ports,8,3                      ## @ports
	.comm	_com_cfcr,4,2                   ## @com_cfcr
	.comm	_CFCR_STOPB,1,0                 ## @CFCR_STOPB
	.no_dead_strip	_dos_setstopbits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dos_setstopbits
_dos_setstopbits:                       ; @dos_setstopbits
	.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	x20, x1
Lloh0:
	adrp	x8, _ports@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ports@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	add	x19, x8, x9, lsl #2
	bl	_disable
Lloh3:
	adrp	x21, _com_cfcr@GOTPAGE
Lloh4:
	ldr	x21, [x21, _com_cfcr@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_inb
	cmp	w20, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w20, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _CFCR_STOPB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CFCR_STOPB@GOTPAGEOFF]
	ldrb	w8, [x8]
	eor	w8, w8, #0xff
	and	w2, w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w1, [x21]
Lloh7:
	adrp	x8, _CFCR_STOPB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CFCR_STOPB@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w2, w8, w0
LBB0_5:
	mov	x0, x19
	bl	_outb
	mov	w19, #0
	b	LBB0_7
LBB0_6:
	mov	w19, #1
LBB0_7:
	bl	_enable
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ports,8,3                      ; @ports
	.comm	_com_cfcr,4,2                   ; @com_cfcr
	.comm	_CFCR_STOPB,1,0                 ; @CFCR_STOPB
	.no_dead_strip	_dos_setstopbits
.subsections_via_symbols
