	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xputchar                       ## -- Begin function xputchar
	.p2align	4, 0x90
_xputchar:                              ## @xputchar
	.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
	movq	_ATTRIBUTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	%edi, %r14d
	movq	_TRIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, %r14d
	movq	_CHAR@GOTPCREL(%rip), %r12
	movq	_QUOTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r12), %ebx
	orl	%ecx, %ebx
	andl	%edi, %ebx
	movq	_output_raw@GOTPCREL(%rip), %rdx
	andl	%edi, %ecx
	orl	(%rdx), %ecx
	jne	LBB0_15
## %bb.1:
	movl	%ebx, %edi
	callq	_iscntrl
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	%ebx, %edi
	callq	_ASC
	cmpl	$128, %eax
	jl	LBB0_4
## %bb.3:
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	je	LBB0_4
LBB0_9:
	movl	%ebx, %edi
	callq	_isprint
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movl	%ebx, %edi
	callq	_ASC
	cmpl	$128, %eax
	jl	LBB0_12
## %bb.11:
	movq	_MB_CUR_MAX@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_13
LBB0_12:
	movl	%r14d, %edi
	orl	$92, %edi
	callq	_xputchar
	movl	%ebx, %edi
	shrl	$6, %edi
	andl	$7, %edi
	orl	%r14d, %edi
	orl	$48, %edi
	callq	_xputchar
	movl	%ebx, %edi
	shrl	$3, %edi
	andl	$7, %edi
	orl	%r14d, %edi
	orl	$48, %edi
	callq	_xputchar
	andl	$7, %ebx
	orl	$48, %ebx
	jmp	LBB0_13
LBB0_15:
	andl	%eax, %ebx
	movq	_haderr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_didfds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	je	LBB0_19
## %bb.16:
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	_is2atty@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_23
	jmp	LBB0_24
LBB0_19:
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_is1atty@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_23
	jmp	LBB0_24
LBB0_4:
	leal	-11(%rbx), %eax
	cmpl	$-3, %eax
	ja	LBB0_13
## %bb.5:
	movq	_xlate_cr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_7
## %bb.6:
	movl	$13, %r15d
	cmpl	$13, %ebx
	je	LBB0_14
LBB0_7:
	movl	%r14d, %edi
	orl	$94, %edi
	callq	_xputchar
	movl	$127, %edi
	callq	_CTL_ESC
	movl	$63, %r15d
	cmpl	%eax, %ebx
	je	LBB0_14
## %bb.8:
	movl	%ebx, %edi
	callq	_ASC
	orl	$64, %eax
	movl	%eax, %edi
	callq	_CTL_ESC
	movl	%eax, %r15d
	jmp	LBB0_14
LBB0_13:
	movl	%ebx, %r15d
LBB0_14:
	orl	%r15d, %r14d
	movl	%r14d, %edi
	callq	_putraw
	movl	%r15d, %ebx
	jmp	LBB0_25
LBB0_18:
	movq	_isdiagatty@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_24
LBB0_23:
	orl	%ebx, %r14d
	movl	%r14d, %edi
	callq	_SetAttributes
LBB0_24:
	movl	%ebx, %edi
	callq	_putpure
LBB0_25:
	movq	_lbuffed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.26:
	andl	(%r12), %ebx
	cmpl	$10, %ebx
	jne	LBB0_27
## %bb.28:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flush                          ## TAILCALL
LBB0_27:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_isoutatty@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_23
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_ATTRIBUTES,4,2                 ## @ATTRIBUTES
	.comm	_TRIM,4,2                       ## @TRIM
	.comm	_CHAR,4,2                       ## @CHAR
	.comm	_QUOTE,4,2                      ## @QUOTE
	.comm	_output_raw,4,2                 ## @output_raw
	.comm	_MB_CUR_MAX,4,2                 ## @MB_CUR_MAX
	.comm	_xlate_cr,8,3                   ## @xlate_cr
	.comm	_haderr,8,3                     ## @haderr
	.comm	_didfds,8,3                     ## @didfds
	.comm	_is2atty,8,3                    ## @is2atty
	.comm	_isdiagatty,8,3                 ## @isdiagatty
	.comm	_is1atty,8,3                    ## @is1atty
	.comm	_isoutatty,8,3                  ## @isoutatty
	.comm	_lbuffed,8,3                    ## @lbuffed
	.comm	_STRcolorcat,4,2                ## @STRcolorcat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xputchar                       ; -- Begin function xputchar
	.p2align	2
_xputchar:                              ; @xputchar
	.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
Lloh0:
	adrp	x8, _ATTRIBUTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATTRIBUTES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w8, w0
Lloh3:
	adrp	x8, _TRIM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRIM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x20, _CHAR@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CHAR@GOTPAGEOFF]
	and	w21, w9, w8
	ldr	w9, [x20]
Lloh8:
	adrp	x10, _QUOTE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _QUOTE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w19, w9, w0
Lloh11:
	adrp	x9, _output_raw@GOTPAGE
Lloh12:
	ldr	x9, [x9, _output_raw@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w10, w10, w0
	orr	w9, w9, w10
	cbnz	w9, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_iscntrl
	cbz	x0, LBB0_10
; %bb.2:
	mov	x0, x19
	bl	_ASC
Lloh14:
	adrp	x8, _MB_CUR_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MB_CUR_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, #128
	ccmp	w8, #1, #4, ge
	b.ne	LBB0_10
; %bb.3:
	sub	w8, w19, #11
	cmn	w8, #3
	b.hi	LBB0_21
; %bb.4:
Lloh17:
	adrp	x8, _xlate_cr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _xlate_cr@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w19, #13, #0, eq
	b.eq	LBB0_19
; %bb.5:
	mov	w8, #94
	orr	w0, w21, w8
	bl	_xputchar
	mov	w0, #127
	bl	_CTL_ESC
	cmp	w19, w0
	b.ne	LBB0_20
; %bb.6:
	mov	w19, #63
	b	LBB0_21
LBB0_7:
	and	w19, w19, w8
Lloh20:
	adrp	x8, _haderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _haderr@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x8]
Lloh23:
	adrp	x8, _didfds@GOTPAGE
Lloh24:
	ldr	x8, [x8, _didfds@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cbz	x9, LBB0_13
; %bb.8:
	cbz	x8, LBB0_15
; %bb.9:
Lloh26:
	adrp	x8, _is2atty@GOTPAGE
Lloh27:
	ldr	x8, [x8, _is2atty@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbnz	x8, LBB0_16
	b	LBB0_17
LBB0_10:
	mov	x0, x19
	bl	_isprint
	cbnz	w0, LBB0_21
; %bb.11:
	mov	x0, x19
	bl	_ASC
Lloh29:
	adrp	x8, _MB_CUR_MAX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MB_CUR_MAX@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w0, #128
	ccmp	w8, #1, #4, ge
	b.ne	LBB0_21
; %bb.12:
	mov	w8, #92
	orr	w0, w21, w8
	bl	_xputchar
	ubfx	w8, w19, #6, #3
	orr	w8, w21, w8
	orr	w0, w8, #0x30
	bl	_xputchar
	ubfx	w8, w19, #3, #3
	orr	w8, w21, w8
	orr	w0, w8, #0x30
	bl	_xputchar
	mov	w8, #48
	bfxil	w8, w19, #0, #3
	mov	x19, x8
	b	LBB0_21
LBB0_13:
	cbz	x8, LBB0_18
; %bb.14:
Lloh32:
	adrp	x8, _is1atty@GOTPAGE
Lloh33:
	ldr	x8, [x8, _is1atty@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cbnz	x8, LBB0_16
	b	LBB0_17
LBB0_15:
Lloh35:
	adrp	x8, _isdiagatty@GOTPAGE
Lloh36:
	ldr	x8, [x8, _isdiagatty@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
LBB0_16:
	orr	w0, w19, w21
	bl	_SetAttributes
LBB0_17:
	mov	x0, x19
	bl	_putpure
	b	LBB0_22
LBB0_18:
Lloh38:
	adrp	x8, _isoutatty@GOTPAGE
Lloh39:
	ldr	x8, [x8, _isoutatty@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	cbnz	x8, LBB0_16
	b	LBB0_17
LBB0_19:
	mov	w19, #13
	b	LBB0_21
LBB0_20:
	mov	x0, x19
	bl	_ASC
	orr	w0, w0, #0x40
	bl	_CTL_ESC
	mov	x19, x0
LBB0_21:
	orr	w0, w19, w21
	bl	_putraw
LBB0_22:
Lloh41:
	adrp	x8, _lbuffed@GOTPAGE
Lloh42:
	ldr	x8, [x8, _lbuffed@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.23:
	ldr	w8, [x20]
	and	w8, w8, w19
	cmp	w8, #10
	b.ne	LBB0_25
; %bb.24:
	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
	b	_flush
LBB0_25:
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ATTRIBUTES,4,2                 ; @ATTRIBUTES
	.comm	_TRIM,4,2                       ; @TRIM
	.comm	_CHAR,4,2                       ; @CHAR
	.comm	_QUOTE,4,2                      ; @QUOTE
	.comm	_output_raw,4,2                 ; @output_raw
	.comm	_MB_CUR_MAX,4,2                 ; @MB_CUR_MAX
	.comm	_xlate_cr,8,3                   ; @xlate_cr
	.comm	_haderr,8,3                     ; @haderr
	.comm	_didfds,8,3                     ; @didfds
	.comm	_is2atty,8,3                    ; @is2atty
	.comm	_isdiagatty,8,3                 ; @isdiagatty
	.comm	_is1atty,8,3                    ; @is1atty
	.comm	_isoutatty,8,3                  ; @isoutatty
	.comm	_lbuffed,8,3                    ; @lbuffed
	.comm	_STRcolorcat,4,2                ; @STRcolorcat
.subsections_via_symbols
