	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finalize_colopts               ## -- Begin function finalize_colopts
	.p2align	4, 0x90
_finalize_colopts:                      ## @finalize_colopts
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	movq	_COL_ENABLE_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, %edx
	andl	%ecx, %edx
	movq	_COL_AUTO@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	jne	LBB0_7
## %bb.1:
	testl	%esi, %esi
	jns	LBB0_3
## %bb.2:
	movl	$1, %edi
	callq	_isatty
	movl	%eax, %esi
	movl	(%r14), %eax
	movl	(%rbx), %ecx
LBB0_3:
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	testl	%esi, %esi
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_pager_in_use
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %eax
LBB0_6:
	movq	_COL_ENABLED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COL_ENABLE_MASK,4,2            ## @COL_ENABLE_MASK
	.comm	_COL_AUTO,4,2                   ## @COL_AUTO
	.comm	_COL_ENABLED,4,2                ## @COL_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finalize_colopts               ; -- Begin function finalize_colopts
	.p2align	2
_finalize_colopts:                      ; @finalize_colopts
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _COL_ENABLE_MASK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _COL_ENABLE_MASK@GOTPAGEOFF]
	ldr	w9, [x20]
	and	w10, w9, w8
Lloh2:
	adrp	x11, _COL_AUTO@GOTPAGE
Lloh3:
	ldr	x11, [x11, _COL_AUTO@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
	tbz	w1, #31, LBB0_3
; %bb.2:
	mov	w0, #1
	bl	_isatty
	mov	x1, x0
	ldr	w9, [x20]
	ldr	w8, [x19]
LBB0_3:
	bic	w8, w8, w9
	str	w8, [x19]
	cbnz	w1, LBB0_6
; %bb.4:
	bl	_pager_in_use
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x19]
LBB0_6:
Lloh5:
	adrp	x9, _COL_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _COL_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_COL_ENABLE_MASK,4,2            ; @COL_ENABLE_MASK
	.comm	_COL_AUTO,4,2                   ; @COL_AUTO
	.comm	_COL_ENABLED,4,2                ; @COL_ENABLED
.subsections_via_symbols
