	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_tx_queue
_flush_tx_queue:                        ## @flush_tx_queue
	.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
	callq	_tty2n_hdlc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_n_hdlc_buf_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	16(%r14), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_n_hdlc_buf_put
	movq	%r14, %rdi
	callq	_n_hdlc_buf_get
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_n_hdlc_buf_put
	movq	$0, 8(%r14)
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_flush_tx_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_tx_queue
_flush_tx_queue:                        ; @flush_tx_queue
	.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
	bl	_tty2n_hdlc
	mov	x19, x0
	bl	_n_hdlc_buf_get
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
	add	x20, x19, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_n_hdlc_buf_put
	mov	x0, x19
	bl	_n_hdlc_buf_get
	mov	x1, x0
	cbnz	x0, LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_5
; %bb.4:
	add	x0, x19, #16
	bl	_n_hdlc_buf_put
	str	xzr, [x19, #8]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_flush_tx_queue
.subsections_via_symbols
