	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_output_char
_do_output_char:                        ## @do_output_char
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r12d
	testl	%edx, %edx
	je	LBB0_28
## %bb.1:
	movq	%rsi, %r14
	movl	%edi, %r15d
	leal	-8(%r15), %eax
	cmpb	$5, %al
	ja	LBB0_22
## %bb.2:
	movl	%edx, %ebx
	movzbl	%al, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_20:
	movl	(%r14), %eax
	movb	$8, %r15b
	testl	%eax, %eax
	jle	LBB0_27
## %bb.21:
	decl	%eax
	movl	%eax, (%r14)
	jmp	LBB0_27
LBB0_16:
	movl	(%r14), %eax
	andl	$7, %eax
	movl	$8, %r15d
	subl	%eax, %r15d
	movq	%r14, %rdi
	callq	_O_TABDLY
	movq	_XTABS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.17:
	cmpl	%ebx, %r15d
	jg	LBB0_28
## %bb.18:
	addl	%r15d, (%r14)
	movq	8(%r14), %rax
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	*(%rax)
	movl	%r15d, %r12d
	jmp	LBB0_28
LBB0_3:
	movq	%r14, %rdi
	callq	_O_ONLRET
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	$0, (%r14)
LBB0_5:
	movq	%r14, %rdi
	callq	_O_ONLCR
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$2, %ebx
	jl	LBB0_28
## %bb.7:
	movq	$0, (%r14)
	movq	8(%r14), %rax
	leaq	L_.str(%rip), %rsi
	movl	$2, %r12d
	movq	%r14, %rdi
	movl	$2, %edx
	callq	*(%rax)
	jmp	LBB0_28
LBB0_22:
	movzbl	%r15b, %ebx
	movl	%ebx, %edi
	callq	_iscntrl
	testl	%eax, %eax
	jne	LBB0_27
## %bb.23:
	movq	%r14, %rdi
	callq	_O_OLCUC
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movl	%ebx, %edi
	callq	_toupper
	movl	%eax, %r15d
LBB0_25:
	movzbl	%r15b, %edi
	movq	%r14, %rsi
	callq	_is_continuation
	testl	%eax, %eax
	jne	LBB0_27
## %bb.26:
	incl	(%r14)
	jmp	LBB0_27
LBB0_9:
	movq	%r14, %rdi
	callq	_O_ONOCR
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$0, (%r14)
	je	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_O_OCRNL
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	callq	_O_ONLRET
	movb	$10, %r15b
	testl	%eax, %eax
	je	LBB0_27
## %bb.14:
	movq	$0, (%r14)
	jmp	LBB0_27
LBB0_19:
	addl	%r15d, (%r14)
	movb	$9, %r15b
	jmp	LBB0_27
LBB0_8:
	movl	(%r14), %eax
	movl	%eax, 4(%r14)
	movb	$10, %r15b
	jmp	LBB0_27
LBB0_15:
	movq	$0, (%r14)
	movb	$13, %r15b
LBB0_27:
	movzbl	%r15b, %esi
	movq	%r14, %rdi
	callq	_tty_put_char
	movl	$1, %r12d
LBB0_28:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_16
	.long	L0_0_set_3
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

	.comm	_XTABS,4,2                      ## @XTABS
L_.str.1:                               ## @.str.1
	.asciz	"        "

	.no_dead_strip	_do_output_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_output_char
_do_output_char:                        ; @do_output_char
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	w2, LBB0_12
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	sub	w8, w0, #8
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.2:
	mov	x21, x2
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x19]
	subs	w8, w8, #1
	b.lt	LBB0_24
; %bb.4:
	str	w8, [x19]
	mov	w20, #8
	b	LBB0_29
LBB0_5:
	ldr	w8, [x19]
	and	w8, w8, #0x7
	mov	w9, #8
	sub	w20, w9, w8
	mov	x0, x19
	bl	_O_TABDLY
Lloh2:
	adrp	x8, _XTABS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XTABS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.6:
	cmp	w20, w21
	b.gt	LBB0_12
; %bb.7:
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	blr	x8
	b	LBB0_30
LBB0_8:
	mov	x0, x19
	bl	_O_ONLRET
	cbz	w0, LBB0_10
; %bb.9:
	str	wzr, [x19]
LBB0_10:
	mov	x0, x19
	bl	_O_ONLCR
	cbz	w0, LBB0_25
; %bb.11:
	cmp	w21, #2
	b.ge	LBB0_27
LBB0_12:
	mov	w20, #-1
	b	LBB0_30
LBB0_13:
	mov	x0, x20
	bl	_iscntrl
	cbnz	w0, LBB0_29
; %bb.14:
	mov	x0, x19
	bl	_O_OLCUC
	cbz	w0, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_toupper
	mov	x20, x0
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_is_continuation
	cbnz	w0, LBB0_29
; %bb.17:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_29
LBB0_18:
	mov	x0, x19
	bl	_O_ONOCR
	cbz	w0, LBB0_20
; %bb.19:
	ldr	w8, [x19]
	cbz	w8, LBB0_31
LBB0_20:
	mov	x0, x19
	bl	_O_OCRNL
	cbz	w0, LBB0_28
; %bb.21:
	mov	x0, x19
	bl	_O_ONLRET
	cbz	w0, LBB0_26
; %bb.22:
	str	xzr, [x19]
	b	LBB0_26
LBB0_23:
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	mov	w20, #9
	b	LBB0_29
LBB0_24:
	mov	w20, #8
	b	LBB0_29
LBB0_25:
	ldr	w8, [x19]
	str	w8, [x19, #4]
LBB0_26:
	mov	w20, #10
	b	LBB0_29
LBB0_27:
	str	xzr, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w20, #2
	mov	x0, x19
	mov	w2, #2
	blr	x8
	b	LBB0_30
LBB0_28:
	str	xzr, [x19]
	mov	w20, #13
LBB0_29:
	mov	x0, x19
	mov	x1, x20
	bl	_tty_put_char
	mov	w20, #1
LBB0_30:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_31:
	mov	w20, #0
	b	LBB0_30
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

	.comm	_XTABS,4,2                      ; @XTABS
l_.str.1:                               ; @.str.1
	.asciz	"        "

	.no_dead_strip	_do_output_char
.subsections_via_symbols
