	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_color_parse_mem                ## -- Begin function color_parse_mem
	.p2align	4, 0x90
_color_parse_mem:                       ## @color_parse_mem
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.4:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$-2, %eax
	movl	$-2, -44(%rbp)                  ## 4-byte Folded Spill
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %r15d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	testl	%r15d, %r15d
	jle	LBB0_19
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %r13
	movl	%r15d, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r13,%r14), %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %r12
	addq	%r13, %r12
	xorl	%r15d, %r15d
	movl	%ebx, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %r12d
	addq	%r13, %r12
	subq	%r14, %rbx
	movl	%ebx, %r15d
	testl	%ebx, %ebx
	jle	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r12), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%r12
	leal	-1(%r15), %eax
	cmpl	$1, %r15d
	movl	%eax, %r15d
	jg	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_parse_color
	cmpl	$-1, %eax
	jl	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ebx
	cmpl	$-2, -44(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_15
## %bb.39:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$-2, -52(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_18
	jmp	LBB0_40
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_parse_attr
	testl	%eax, %eax
	js	LBB0_40
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$-1, -48(%rbp)                  ## 4-byte Folded Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_18
LBB0_40:
	leaq	L_.str.3(%rip), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_die                            ## TAILCALL
LBB0_3:
	movq	_PERF_COLOR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strcpy                         ## TAILCALL
LBB0_2:
	movl	$-2, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	movl	$-2, %ebx
LBB0_19:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jns	LBB0_23
## %bb.20:
	testl	%edx, %edx
	jns	LBB0_23
## %bb.21:
	testl	%ebx, %ebx
	jns	LBB0_23
## %bb.22:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_38
LBB0_23:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movw	$23323, (%r14)                  ## imm = 0x5B1B
	testl	%eax, %eax
	js	LBB0_26
## %bb.24:
	addb	$48, %al
	movb	%al, 2(%r14)
	testl	%edx, %edx
	js	LBB0_25
## %bb.28:
	movb	$59, 3(%r14)
	addq	$4, %r14
	jmp	LBB0_29
LBB0_26:
	addq	$2, %r14
	testl	%edx, %edx
	js	LBB0_27
LBB0_29:
	cmpl	$7, %edx
	ja	LBB0_31
## %bb.30:
	movb	$51, (%r14)
	addb	$48, %dl
	movb	%dl, 1(%r14)
	addq	$2, %r14
	testl	%ebx, %ebx
	jns	LBB0_33
	jmp	LBB0_37
LBB0_31:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_sprintf
	cltq
	addq	%rax, %r14
	testl	%ebx, %ebx
	jns	LBB0_33
	jmp	LBB0_37
LBB0_25:
	addq	$3, %r14
	testl	%ebx, %ebx
	js	LBB0_37
LBB0_33:
	movb	$59, (%r14)
	incq	%r14
LBB0_34:
	cmpl	$7, %ebx
	ja	LBB0_36
## %bb.35:
	movb	$52, (%r14)
	addb	$48, %bl
	movb	%bl, 1(%r14)
	addq	$2, %r14
	jmp	LBB0_37
LBB0_36:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_sprintf
	cltq
	addq	%rax, %r14
LBB0_37:
	movb	$109, (%r14)
	incq	%r14
LBB0_38:
	movb	$0, (%r14)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	testl	%ebx, %ebx
	jns	LBB0_34
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_PERF_COLOR_RESET,4,2           ## @PERF_COLOR_RESET
L_.str.1:                               ## @.str.1
	.asciz	"38;5;%d"

L_.str.2:                               ## @.str.2
	.asciz	"48;5;%d"

L_.str.3:                               ## @.str.3
	.asciz	"bad color value '%.*s' for variable '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_color_parse_mem                ; -- Begin function color_parse_mem
	.p2align	2
_color_parse_mem:                       ; @color_parse_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_strncasecmp
	cbz	w0, LBB0_19
; %bb.1:
	cmp	w23, #1
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_20
; %bb.2:
	str	x20, [sp]                       ; 8-byte Folded Spill
	mov	w27, #-1
	mov	w28, #-2
	mov	w20, #-2
	mov	x21, x23
	mov	x25, x22
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x24
	mov	x24, x28
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x24
	cmp	w21, #0
	b.le	LBB0_21
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	mov	x26, #0
	mov	x19, x25
	mov	w24, w21
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x19, x26]
	bl	_isspace
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x26, x26, #1
	cmp	x24, x26
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #0
	add	x25, x19, x24
	mov	x26, x24
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x19, w26, uxtw
	sub	x21, x24, x26
	cmp	w21, #0
	b.le	LBB0_13
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x25]
	bl	_isspace
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x25, x25, #1
	subs	w21, w21, #1
	b.gt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w21, #0
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_parse_color
	cmn	w0, #1
	b.lt	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	cmn	w20, #2
	b.eq	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	cmn	w28, #2
	b.eq	LBB0_4
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_parse_attr
	tbnz	w0, #31, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x28
	cmn	w27, #1
	mov	x27, x0
	b.eq	LBB0_4
LBB0_18:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	ldr	x3, [sp]                        ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_die
LBB0_19:
Lloh4:
	adrp	x8, _PERF_COLOR_RESET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PERF_COLOR_RESET@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_strcpy
LBB0_20:
	mov	w20, #-2
	mov	w27, #-1
	mov	w24, #-2
LBB0_21:
	tbz	w27, #31, LBB0_25
; %bb.22:
	tbz	w20, #31, LBB0_25
; %bb.23:
	tbz	w24, #31, LBB0_25
; %bb.24:
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_38
LBB0_25:
	mov	w8, #23323
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	mov	x21, x9
	strh	w8, [x21], #2
	tbnz	w27, #31, LBB0_28
; %bb.26:
	add	w8, w27, #48
	strb	w8, [x9, #2]
	tbnz	w20, #31, LBB0_32
; %bb.27:
	add	x21, x9, #4
	mov	w8, #59
	strb	w8, [x9, #3]
	b	LBB0_29
LBB0_28:
	tbnz	w20, #31, LBB0_39
LBB0_29:
	cmp	w20, #7
	b.hi	LBB0_31
; %bb.30:
	mov	w8, #51
	strb	w8, [x21]
	add	w8, w20, #48
	strb	w8, [x21, #1]
	add	x21, x21, #2
	tbz	w24, #31, LBB0_33
	b	LBB0_37
LBB0_31:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_sprintf
	add	x21, x21, w0, sxtw
	tbz	w24, #31, LBB0_33
	b	LBB0_37
LBB0_32:
	add	x21, x9, #3
	tbnz	w24, #31, LBB0_37
LBB0_33:
	mov	w8, #59
	strb	w8, [x21], #1
LBB0_34:
	cmp	w24, #7
	b.hi	LBB0_36
; %bb.35:
	mov	w8, #52
	strb	w8, [x21]
	add	w8, w24, #48
	strb	w8, [x21, #1]
	add	x21, x21, #2
	b	LBB0_37
LBB0_36:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x24
	bl	_sprintf
	add	x21, x21, w0, sxtw
LBB0_37:
	mov	w8, #109
	strb	w8, [x21], #1
LBB0_38:
	strb	wzr, [x21]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_39:
	tbz	w24, #31, LBB0_34
	b	LBB0_37
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_PERF_COLOR_RESET,4,2           ; @PERF_COLOR_RESET
l_.str.1:                               ; @.str.1
	.asciz	"38;5;%d"

l_.str.2:                               ; @.str.2
	.asciz	"48;5;%d"

l_.str.3:                               ; @.str.3
	.asciz	"bad color value '%.*s' for variable '%s'"

.subsections_via_symbols
