	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_color
_extract_color:                         ## @extract_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_strncasecmp
	movl	$-2, %r15d
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	addq	$5, %rbx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, %r14d
	movq	-32(%rbp), %rax
	cmpq	%rax, %rbx
	je	LBB0_7
## %bb.2:
	cmpb	$0, (%rax)
	jne	LBB0_7
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:
	movq	_COLORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %r14d
	jle	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_FATAL
LBB0_6:
	movl	%r14d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"color"

	.comm	_errno,8,3                      ## @errno
	.comm	_ERANGE,8,3                     ## @ERANGE
	.comm	_COLORS,4,2                     ## @COLORS
L_.str.1:                               ## @.str.1
	.asciz	"Terminal doesn't support color: %d - max colors: %d"

	.no_dead_strip	_extract_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_color
_extract_color:                         ; @extract_color
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_strncasecmp
	cbz	x0, LBB0_3
LBB0_1:
	mov	w19, #-2
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	add	x20, x19, #5
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	cmp	x20, x8
	b.eq	LBB0_1
; %bb.4:
	ldrb	w8, [x8]
	cbnz	w8, LBB0_1
; %bb.5:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _ERANGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ERANGE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.6:
	mov	x19, x0
Lloh8:
	adrp	x8, _COLORS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _COLORS@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	cmp	w0, w2
	b.le	LBB0_2
; %bb.7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_FATAL
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"color"

	.comm	_errno,8,3                      ; @errno
	.comm	_ERANGE,8,3                     ; @ERANGE
	.comm	_COLORS,4,2                     ; @COLORS
l_.str.1:                               ; @.str.1
	.asciz	"Terminal doesn't support color: %d - max colors: %d"

	.no_dead_strip	_extract_color
.subsections_via_symbols
