	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pc_flush_chars
_pc_flush_chars:                        ## @pc_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, %r14
	callq	_verifyChannel
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_epca_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movq	_TXBUSY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_EMPTYWAIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_setup_empty_event
LBB0_4:
	movq	_epca_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_epca_lock,4,2                  ## @epca_lock
	.comm	_TXBUSY,4,2                     ## @TXBUSY
	.comm	_EMPTYWAIT,4,2                  ## @EMPTYWAIT
	.no_dead_strip	_pc_flush_chars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pc_flush_chars
_pc_flush_chars:                        ; @pc_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	x19, x0
	bl	_verifyChannel
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, _epca_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _epca_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _TXBUSY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TXBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh5:
	adrp	x9, _EMPTYWAIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EMPTYWAIT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_setup_empty_event
LBB0_4:
Lloh8:
	adrp	x0, _epca_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _epca_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_epca_lock,4,2                  ; @epca_lock
	.comm	_TXBUSY,4,2                     ; @TXBUSY
	.comm	_EMPTYWAIT,4,2                  ; @EMPTYWAIT
	.no_dead_strip	_pc_flush_chars
.subsections_via_symbols
