	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_color_fwrite_lines             ## -- Begin function color_fwrite_lines
	.p2align	4, 0x90
_color_fwrite_lines:                    ## @color_fwrite_lines
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmpb	$0, (%rsi)
	je	LBB0_11
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$10, %esi
	movq	%rbx, %rdx
	callq	_memchr
	movq	%rax, %r15
	movq	%rax, %r13
	subq	%r14, %r13
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_fputs
	movl	$-1, %ecx
	testq	%rax, %rax
	js	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r15, %r15
	cmoveq	%rbx, %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_fwrite
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PERF_COLOR_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_fputs
	testq	%rax, %rax
	movl	$-1, %ecx
	js	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r15, %r15
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_fputc
	testq	%rax, %rax
	js	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	addq	%r14, %rbx
	movq	%r15, %r14
	subq	%r15, %rbx
	jne	LBB0_3
LBB0_10:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_fwrite
	xorl	%ecx, %ecx
	cmpl	$1, %eax
	setne	%cl
	jmp	LBB0_12
LBB0_14:
	movl	$-1, %ecx
LBB0_12:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_COLOR_RESET,8,3           ## @PERF_COLOR_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_color_fwrite_lines             ; -- Begin function color_fwrite_lines
	.p2align	2
_color_fwrite_lines:                    ; @color_fwrite_lines
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
	ldrb	w8, [x1]
	cbz	w8, LBB0_11
; %bb.1:
	cbz	x20, LBB0_10
; %bb.2:
	mov	x22, x1
Lloh0:
	adrp	x24, _PERF_COLOR_RESET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PERF_COLOR_RESET@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #10
	mov	x2, x20
	bl	_memchr
	mov	x23, x0
	subs	x25, x0, x21
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_fputs
	tbnz	x0, #63, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x23, #0
	csel	x1, x20, x25, eq
	mov	x0, x21
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x24]
	mov	x1, x19
	bl	_fputs
	tbnz	x0, #63, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x23, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	mov	x1, x19
	bl	_fputc
	tbnz	x0, #63, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x23, #1
	add	x9, x20, x21
	subs	x20, x9, x8
	mov	x21, x8
	b.ne	LBB0_3
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	cmp	w0, #1
	cset	w0, ne
	b	LBB0_13
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_COLOR_RESET,8,3           ; @PERF_COLOR_RESET
.subsections_via_symbols
