	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_want_color_fd                  ## -- Begin function want_color_fd
	.p2align	4, 0x90
_want_color_fd:                         ## @want_color_fd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	testl	%edi, %edi
	jle	LBB0_2
## %bb.1:
	leaq	_want_color_fd.want_auto(%rip), %rdi
	callq	_ARRAY_SIZE
	cmpl	%r14d, %eax
	jg	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_BUG
LBB0_3:
	testl	%ebx, %ebx
	jns	LBB0_5
## %bb.4:
	movq	_git_use_color_default@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movq	_GIT_COLOR_AUTO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
## %bb.6:
	movslq	%r14d, %r15
	leaq	_want_color_fd.want_auto(%rip), %r12
	movl	(%r12,%r15,4), %ebx
	testl	%ebx, %ebx
	jns	LBB0_8
## %bb.7:
	movl	%r14d, %edi
	callq	_check_auto_color
	movl	%eax, %ebx
	movl	%eax, (%r12,%r15,4)
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @want_color_fd.want_auto
_want_color_fd.want_auto:
	.space	12,255

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file descriptor out of range: %d"

	.comm	_git_use_color_default,4,2      ## @git_use_color_default
	.comm	_GIT_COLOR_AUTO,4,2             ## @GIT_COLOR_AUTO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_want_color_fd                  ; -- Begin function want_color_fd
	.p2align	2
_want_color_fd:                         ; @want_color_fd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, _want_color_fd.want_auto@PAGE
Lloh1:
	add	x0, x0, _want_color_fd.want_auto@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, w19
	b.gt	LBB0_3
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_BUG
LBB0_3:
Lloh4:
	adrp	x8, _git_use_color_default@GOTPAGE
Lloh5:
	ldr	x8, [x8, _git_use_color_default@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w0, w8, w20, lt
Lloh7:
	adrp	x8, _GIT_COLOR_AUTO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GIT_COLOR_AUTO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:
Lloh10:
	adrp	x20, _want_color_fd.want_auto@PAGE
Lloh11:
	add	x20, x20, _want_color_fd.want_auto@PAGEOFF
	ldr	w0, [x20, w19, sxtw #2]
	tbz	w0, #31, LBB0_6
; %bb.5:
	sxtw	x21, w19
	mov	x0, x19
	bl	_check_auto_color
	str	w0, [x20, x21, lsl #2]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @want_color_fd.want_auto
_want_color_fd.want_auto:
	.space	12,255

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file descriptor out of range: %d"

	.comm	_git_use_color_default,4,2      ; @git_use_color_default
	.comm	_GIT_COLOR_AUTO,4,2             ; @GIT_COLOR_AUTO
.subsections_via_symbols
