	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_output_block
_process_output_block:                  ## @process_output_block
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_tty_write_room
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	%ebx, %eax
	cmovbl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%al, %r13d
	movl	%r13d, %edi
	callq	_iscntrl
	testl	%eax, %eax
	je	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpl	%ebx, %r15d
	je	LBB0_22
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rbx), %eax
	leal	-8(%rax), %ecx
	cmpb	$5, %cl
	ja	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%cl, %ecx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	decl	%eax
	movl	%eax, 16(%r12)
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_O_ONLRET
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, 16(%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_O_ONLCR
	testl	%eax, %eax
	jne	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r12), %eax
	movl	%eax, 20(%r12)
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_O_ONOCR
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 16(%r12)
	je	LBB0_23
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_O_OCRNL
	testl	%eax, %eax
	jne	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, 16(%r12)
	jmp	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_O_OLCUC
	testl	%eax, %eax
	jne	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	movq	%r12, %rsi
	callq	_is_continuation
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	16(%r12)
	jmp	LBB0_21
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_22:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
LBB0_23:
	movq	8(%r12), %rax
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	*(%rax)
	movl	%eax, %ebx
LBB0_24:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_23
	.long	L0_0_set_7
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_process_output_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_output_block
_process_output_block:                  ; @process_output_block
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	bl	_tty_write_room
	cbz	w0, LBB0_20
; %bb.1:
	cmp	w0, w21
	csel	w23, w0, w21, lo
	cbz	w23, LBB0_21
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x24, lJTI0_0@PAGE
Lloh1:
	add	x24, x24, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_iscntrl
	cbz	w0, LBB0_17
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	w23, w21
	b.eq	LBB0_22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w22, [x20, x21]
	sub	w8, w22, #8
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #16]
	subs	w8, w8, #1
	b.lt	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x19, #16]
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_O_ONLRET
	cbz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x19, #16]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_O_ONLCR
	cbnz	w0, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #16]
	str	w8, [x19, #20]
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_O_ONOCR
	cbz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_23
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_O_OCRNL
	cbnz	w0, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x19, #16]
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_O_OLCUC
	cbnz	w0, LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_is_continuation
	cbnz	w0, LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	b	LBB0_8
LBB0_20:
	mov	w20, #0
	b	LBB0_24
LBB0_21:
	mov	w21, #0
	b	LBB0_23
LBB0_22:
	mov	x21, x23
LBB0_23:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	blr	x8
	mov	x20, x0
LBB0_24:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_23-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
                                        ; -- End function
	.no_dead_strip	_process_output_block
.subsections_via_symbols
