	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_color
_parse_color:                           ## @parse_color
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -56(%rbp)
	cmpb	$40, 1(%rsi)
	jne	LBB0_11
## %bb.1:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leaq	2(%r15), %r14
	movq	%r14, -64(%rbp)
	movq	%r14, %rdi
	movl	$41, %esi
	callq	_strchr
	movq	%rax, %rbx
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_COLOR_MAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_want_color
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_9
LBB0_11:
	leaq	1(%r15), %rbx
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_GIT_COLOR_RED@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_2:
	xorl	%ebx, %ebx
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_GIT_COLOR_GREEN@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_4:
	movq	-64(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	-64(%rbp), %rdi
	movl	%ebx, %esi
	subl	%edi, %esi
	movq	%r13, %rdx
	callq	_color_parse_mem
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_8:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_strbuf_addstr
LBB0_9:
	subq	%r15, %rbx
	incq	%rbx
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_GIT_COLOR_BLUE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	leaq	L_.str.6(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_22
## %bb.18:
	movq	_GIT_COLOR_RESET@GOTPCREL(%rip), %rax
LBB0_19:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.20:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_want_color
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_addstr
LBB0_22:
	movq	-56(%rbp), %rbx
	subq	%r15, %rbx
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOR_MAXLEN,4,2               ## @COLOR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auto,"

L_.str.1:                               ## @.str.1
	.asciz	"always,"

L_.str.2:                               ## @.str.2
	.asciz	"unable to parse --pretty format"

L_.str.3:                               ## @.str.3
	.asciz	"red"

	.comm	_GIT_COLOR_RED,8,3              ## @GIT_COLOR_RED
L_.str.4:                               ## @.str.4
	.asciz	"green"

	.comm	_GIT_COLOR_GREEN,8,3            ## @GIT_COLOR_GREEN
L_.str.5:                               ## @.str.5
	.asciz	"blue"

	.comm	_GIT_COLOR_BLUE,8,3             ## @GIT_COLOR_BLUE
L_.str.6:                               ## @.str.6
	.asciz	"reset"

	.comm	_GIT_COLOR_RESET,8,3            ## @GIT_COLOR_RESET
	.no_dead_strip	_parse_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_color
_parse_color:                           ; @parse_color
	.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
	sub	sp, sp, #32
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stur	x1, [x29, #-80]
	mov	x22, x1
	ldrb	w8, [x22, #1]!
	cmp	w8, #40
	b.ne	LBB0_4
; %bb.1:
	add	x24, x19, #2
	stur	x24, [x29, #-88]
	mov	x0, x24
	mov	w1, #41
	bl	_strchr
	mov	x22, x0
	mov	x25, sp
Lloh3:
	adrp	x8, _COLOR_MAXLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COLOR_MAXLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	cbz	x0, LBB0_13
; %bb.2:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #88
	mov	x0, x24
	bl	_skip_prefix
	cbz	x0, LBB0_8
LBB0_3:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_want_color
	cbnz	x0, LBB0_9
	b	LBB0_12
LBB0_4:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	sub	x2, x29, #80
	mov	x0, x22
	bl	_skip_prefix
	cbz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _GIT_COLOR_RED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GIT_COLOR_RED@GOTPAGEOFF]
Lloh14:
	ldr	x22, [x8]
	cbnz	x22, LBB0_18
	b	LBB0_20
LBB0_6:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x2, x29, #80
	mov	x0, x22
	bl	_skip_prefix
	cbz	x0, LBB0_14
; %bb.7:
Lloh17:
	adrp	x8, _GIT_COLOR_GREEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GIT_COLOR_GREEN@GOTPAGEOFF]
Lloh19:
	ldr	x22, [x8]
	cbnz	x22, LBB0_18
	b	LBB0_20
LBB0_8:
	ldur	x0, [x29, #-88]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x2, x29, #88
	bl	_skip_prefix
	cbz	x0, LBB0_3
LBB0_9:
	ldur	x0, [x29, #-88]
	sub	w1, w22, w0
	mov	x2, x23
	bl	_color_parse_mem
	tbz	x0, #63, LBB0_11
; %bb.10:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_die
LBB0_11:
	mov	x0, x20
	mov	x1, x23
	bl	_strbuf_addstr
LBB0_12:
	sub	x8, x22, x19
	add	x0, x8, #1
LBB0_13:
	mov	sp, x25
	b	LBB0_21
LBB0_14:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x2, x29, #80
	mov	x0, x22
	bl	_skip_prefix
	cbz	x0, LBB0_16
; %bb.15:
Lloh26:
	adrp	x8, _GIT_COLOR_BLUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GIT_COLOR_BLUE@GOTPAGEOFF]
Lloh28:
	ldr	x22, [x8]
	cbnz	x22, LBB0_18
	b	LBB0_20
LBB0_16:
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	sub	x2, x29, #80
	mov	x0, x22
	bl	_skip_prefix
	cbz	x0, LBB0_20
; %bb.17:
Lloh31:
	adrp	x8, _GIT_COLOR_RESET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GIT_COLOR_RESET@GOTPAGEOFF]
Lloh33:
	ldr	x22, [x8]
	cbz	x22, LBB0_20
LBB0_18:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_want_color
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x20
	mov	x1, x22
	bl	_strbuf_addstr
LBB0_20:
	ldur	x8, [x29, #-80]
	sub	x0, x8, x19
LBB0_21:
	ldur	x8, [x29, #-72]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	sub	sp, x29, #64
	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
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOR_MAXLEN,4,2               ; @COLOR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auto,"

l_.str.1:                               ; @.str.1
	.asciz	"always,"

l_.str.2:                               ; @.str.2
	.asciz	"unable to parse --pretty format"

l_.str.3:                               ; @.str.3
	.asciz	"red"

	.comm	_GIT_COLOR_RED,8,3              ; @GIT_COLOR_RED
l_.str.4:                               ; @.str.4
	.asciz	"green"

	.comm	_GIT_COLOR_GREEN,8,3            ; @GIT_COLOR_GREEN
l_.str.5:                               ; @.str.5
	.asciz	"blue"

	.comm	_GIT_COLOR_BLUE,8,3             ; @GIT_COLOR_BLUE
l_.str.6:                               ; @.str.6
	.asciz	"reset"

	.comm	_GIT_COLOR_RESET,8,3            ; @GIT_COLOR_RESET
	.no_dead_strip	_parse_color
.subsections_via_symbols
