	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_auto_color
_check_auto_color:                      ## @check_auto_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	cmpl	$1, %edi
	jne	LBB0_1
## %bb.2:
	movq	_color_stdout_is_tty@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_1:
	leaq	_check_auto_color.color_stderr_is_tty(%rip), %rbx
LBB0_3:
	movl	(%rbx), %eax
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_6
LBB0_4:
	movl	%r14d, %edi
	callq	_isatty
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_9
LBB0_6:
	cmpl	$1, %r14d
	jne	LBB0_11
## %bb.7:
	xorl	%eax, %eax
	callq	_pager_in_use
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	_pager_use_color@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
LBB0_9:
	xorl	%eax, %eax
	callq	_is_terminal_dumb
	testl	%eax, %eax
	je	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movl	$1, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @check_auto_color.color_stderr_is_tty
_check_auto_color.color_stderr_is_tty:
	.long	4294967295                      ## 0xffffffff

	.comm	_color_stdout_is_tty,4,2        ## @color_stdout_is_tty
	.comm	_pager_use_color,8,3            ## @pager_use_color
	.no_dead_strip	_check_auto_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_auto_color
_check_auto_color:                      ; @check_auto_color
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _check_auto_color.color_stderr_is_tty@PAGE
Lloh1:
	add	x8, x8, _check_auto_color.color_stderr_is_tty@PAGEOFF
Lloh2:
	adrp	x9, _color_stdout_is_tty@GOTPAGE
Lloh3:
	ldr	x9, [x9, _color_stdout_is_tty@GOTPAGEOFF]
	cmp	w0, #1
	csel	x20, x9, x8, eq
	ldr	w0, [x20]
	tbnz	w0, #31, LBB0_2
; %bb.1:
	cbnz	w0, LBB0_6
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_isatty
	str	w0, [x20]
	cbnz	w0, LBB0_6
LBB0_3:
	cmp	w19, #1
	b.ne	LBB0_7
; %bb.4:
	bl	_pager_in_use
	cbz	x0, LBB0_7
; %bb.5:
Lloh4:
	adrp	x8, _pager_use_color@GOTPAGE
Lloh5:
	ldr	x8, [x8, _pager_use_color@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_6:
	bl	_is_terminal_dumb
	cbz	w0, LBB0_8
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @check_auto_color.color_stderr_is_tty
_check_auto_color.color_stderr_is_tty:
	.long	4294967295                      ; 0xffffffff

	.comm	_color_stdout_is_tty,4,2        ; @color_stdout_is_tty
	.comm	_pager_use_color,8,3            ; @pager_use_color
	.no_dead_strip	_check_auto_color
.subsections_via_symbols
