	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_put_char
_rs_put_char:                           ## @rs_put_char
	.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
	movl	%esi, %r14d
	movq	8(%rdi), %rbx
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_serial_paranoia_check
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.2:
	callq	_local_irq_save
	movl	8(%rbx), %edi
	movl	12(%rbx), %esi
	movq	_SERIAL_XMIT_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_CIRC_SPACE
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movslq	8(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 8(%rbx)
	movb	%r14b, (%rax,%rcx)
	movl	(%r15), %eax
	decl	%eax
	andl	%eax, 8(%rbx)
	movl	$1, %r15d
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	callq	_local_irq_restore
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rs_put_char"

	.comm	_SERIAL_XMIT_SIZE,4,2           ## @SERIAL_XMIT_SIZE
	.no_dead_strip	_rs_put_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_put_char
_rs_put_char:                           ; @rs_put_char
	.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
	ldr	x19, [x0, #8]
	ldr	w1, [x0]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_serial_paranoia_check
	cbz	x0, LBB0_2
LBB0_1:
	mov	w19, #0
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_1
; %bb.3:
	bl	_local_irq_save
	ldp	w0, w1, [x19, #8]
Lloh2:
	adrp	x21, _SERIAL_XMIT_SIZE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SERIAL_XMIT_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_CIRC_SPACE
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldrsw	x9, [x19, #8]
	add	w10, w9, #1
	str	w10, [x19, #8]
	strb	w20, [x8, x9]
	ldr	w8, [x21]
	sub	w8, w8, #1
	ldr	w9, [x19, #8]
	and	w8, w9, w8
	str	w8, [x19, #8]
	mov	w19, #1
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
	bl	_local_irq_restore
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rs_put_char"

	.comm	_SERIAL_XMIT_SIZE,4,2           ; @SERIAL_XMIT_SIZE
	.no_dead_strip	_rs_put_char
.subsections_via_symbols
