	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stli_sendxchar
_stli_sendxchar:                        ## @stli_sendxchar
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.1:
	movq	(%r12), %rax
	movq	_stli_nrbrds@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_10
## %bb.2:
	movq	_stli_brds@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %r14
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_STOP_CHAR
	cmpb	%r15b, %al
	jne	LBB0_6
## %bb.4:
	movq	_CT_STOPFLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_START_CHAR
	cmpb	%r15b, %al
	jne	LBB0_8
## %bb.7:
	movq	_CT_STARTFLOW@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	jmp	LBB0_9
LBB0_8:
	movq	_CT_SENDCHR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movb	%r15b, -48(%rbp)
LBB0_9:
	movq	_A_PORTCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$12, %r8d
	xorl	%r9d, %r9d
	callq	_stli_cmdwait
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stli_nrbrds,8,3                ## @stli_nrbrds
	.comm	_stli_brds,8,3                  ## @stli_brds
	.comm	_CT_STOPFLOW,4,2                ## @CT_STOPFLOW
	.comm	_CT_STARTFLOW,4,2               ## @CT_STARTFLOW
	.comm	_CT_SENDCHR,4,2                 ## @CT_SENDCHR
	.comm	_A_PORTCTRL,4,2                 ## @A_PORTCTRL
	.no_dead_strip	_stli_sendxchar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stli_sendxchar
_stli_sendxchar:                        ; @stli_sendxchar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_10
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _stli_nrbrds@GOTPAGE
Lloh1:
	ldr	x9, [x9, _stli_nrbrds@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_10
; %bb.2:
Lloh3:
	adrp	x9, _stli_brds@GOTPAGE
Lloh4:
	ldr	x9, [x9, _stli_brds@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x20, [x9, x8, lsl #3]
	cbz	x20, LBB0_10
; %bb.3:
	mov	x21, x1
	mov	x22, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	mov	x0, x22
	bl	_STOP_CHAR
	cmp	w0, w21
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _CT_STOPFLOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CT_STOPFLOW@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_START_CHAR
	cmp	w0, w21
	b.ne	LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _CT_STARTFLOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CT_STARTFLOW@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _CT_SENDCHR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CT_SENDCHR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	strb	w21, [sp]
LBB0_9:
Lloh13:
	adrp	x8, _A_PORTCTRL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _A_PORTCTRL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	mov	w4, #12
	mov	w5, #0
	bl	_stli_cmdwait
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_stli_nrbrds,8,3                ; @stli_nrbrds
	.comm	_stli_brds,8,3                  ; @stli_brds
	.comm	_CT_STOPFLOW,4,2                ; @CT_STOPFLOW
	.comm	_CT_STARTFLOW,4,2               ; @CT_STARTFLOW
	.comm	_CT_SENDCHR,4,2                 ; @CT_SENDCHR
	.comm	_A_PORTCTRL,4,2                 ; @A_PORTCTRL
	.no_dead_strip	_stli_sendxchar
.subsections_via_symbols
