	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_chars
_flush_chars:                           ## @flush_chars
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movl	16(%rdi), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_sanity_check
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	(%r14), %rdi
	callq	_DBGINFO
	cmpq	$0, (%r14)
	jle	LBB0_9
## %bb.2:
	cmpq	$0, 8(%rbx)
	jne	LBB0_9
## %bb.3:
	cmpq	$0, (%rbx)
	jne	LBB0_9
## %bb.4:
	cmpl	$0, 12(%r14)
	je	LBB0_9
## %bb.5:
	movslq	20(%r14), %rdi
	callq	_DBGINFO
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 16(%r14)
	jne	LBB0_8
## %bb.6:
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movl	12(%r14), %esi
	movq	%r14, %rdi
	callq	_tx_load
	movq	%r14, %rdi
	callq	_tx_start
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flush_chars"

	.no_dead_strip	_flush_chars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_chars
_flush_chars:                           ; @flush_chars
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	w1, [x0, #16]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sanity_check
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x0, [x19]
	bl	_DBGINFO
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_1
; %bb.3:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_1
; %bb.4:
	ldr	x8, [x20]
	cbnz	x8, LBB0_1
; %bb.5:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_1
; %bb.6:
	ldrsw	x0, [x19, #20]
	bl	_DBGINFO
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_9
; %bb.7:
	ldr	x2, [x19]
	cbz	x2, LBB0_9
; %bb.8:
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_tx_load
	mov	x0, x19
	bl	_tx_start
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flush_chars"

	.no_dead_strip	_flush_chars
.subsections_via_symbols
