	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_color_default
_set_color_default:                     ## @set_color_default
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	callq	_r_sys_getenv
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_r_str_endswith
	movq	_COLOR_MODE_16M@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_r_str_endswith
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str.4(%rip), %rdi
	callq	_r_sys_getenv
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_r_str_endswith
	movq	_COLOR_MODE_16M@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_r_str_endswith
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_r_str_endswith
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_COLOR_MODE_256@GOTPCREL(%rip), %r14
LBB0_10:
	movq	_r@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_r_config_set_i
LBB0_11:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	_COLOR_MODE_DISABLED@GOTPCREL(%rip), %r14
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"COLORTERM"

L_.str.1:                               ## @.str.1
	.asciz	"truecolor"

L_.str.2:                               ## @.str.2
	.asciz	"24bit"

	.comm	_r,4,2                          ## @r
L_.str.3:                               ## @.str.3
	.asciz	"scr.color"

	.comm	_COLOR_MODE_16M,4,2             ## @COLOR_MODE_16M
L_.str.4:                               ## @.str.4
	.asciz	"TERM"

L_.str.5:                               ## @.str.5
	.asciz	"256color"

	.comm	_COLOR_MODE_256,4,2             ## @COLOR_MODE_256
L_.str.6:                               ## @.str.6
	.asciz	"dumb"

	.comm	_COLOR_MODE_DISABLED,4,2        ## @COLOR_MODE_DISABLED
	.comm	_COLOR_MODE_16,4,2              ## @COLOR_MODE_16
	.no_dead_strip	_set_color_default
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_color_default
_set_color_default:                     ; @set_color_default
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_sys_getenv
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_r_str_endswith
	cbnz	x0, LBB0_6
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_r_str_endswith
	cbnz	x0, LBB0_6
	b	LBB0_8
LBB0_3:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_r_sys_getenv
	cbz	x0, LBB0_9
; %bb.4:
	mov	x19, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_r_str_endswith
	cbnz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_r_str_endswith
	cbz	x0, LBB0_10
LBB0_6:
Lloh12:
	adrp	x8, _COLOR_MODE_16M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COLOR_MODE_16M@GOTPAGEOFF]
LBB0_7:
Lloh14:
	adrp	x9, _r@GOTPAGE
Lloh15:
	ldr	x9, [x9, _r@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_r_config_set_i
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_r_str_endswith
	cbz	x0, LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _COLOR_MODE_256@GOTPAGE
Lloh22:
	ldr	x8, [x8, _COLOR_MODE_256@GOTPAGEOFF]
	b	LBB0_7
LBB0_12:
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbnz	w0, LBB0_8
; %bb.13:
Lloh25:
	adrp	x8, _COLOR_MODE_DISABLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _COLOR_MODE_DISABLED@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"COLORTERM"

l_.str.1:                               ; @.str.1
	.asciz	"truecolor"

l_.str.2:                               ; @.str.2
	.asciz	"24bit"

	.comm	_r,4,2                          ; @r
l_.str.3:                               ; @.str.3
	.asciz	"scr.color"

	.comm	_COLOR_MODE_16M,4,2             ; @COLOR_MODE_16M
l_.str.4:                               ; @.str.4
	.asciz	"TERM"

l_.str.5:                               ; @.str.5
	.asciz	"256color"

	.comm	_COLOR_MODE_256,4,2             ; @COLOR_MODE_256
l_.str.6:                               ; @.str.6
	.asciz	"dumb"

	.comm	_COLOR_MODE_DISABLED,4,2        ; @COLOR_MODE_DISABLED
	.comm	_COLOR_MODE_16,4,2              ; @COLOR_MODE_16
	.no_dead_strip	_set_color_default
.subsections_via_symbols
