	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cb_color
_cb_color:                              ## @cb_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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpl	$0, (%rsi)
	movq	_R_PRINT_FLAGS_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	movq	(%r14), %rcx
	andl	%eax, (%rcx)
LBB0_3:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %eax
	jmp	LBB0_8
LBB0_4:
	movl	$1, (%rbx)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_7:
	movl	$0, (%rbx)
	xorl	%eax, %eax
LBB0_8:
	movq	_COLOR_MODE_16M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	(%rax), %rax
	movl	%ebx, (%rax)
	xorl	%eax, %eax
	callq	_r_cons_pal_update_event
	movq	(%r14), %rdi
	movl	(%rdi), %esi
	callq	_r_print_set_flags
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_PRINT_FLAGS_COLOR,4,2        ## @R_PRINT_FLAGS_COLOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"true"

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

	.comm	_COLOR_MODE_16M,4,2             ## @COLOR_MODE_16M
	.no_dead_strip	_cb_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cb_color
_cb_color:                              ; @cb_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	x20, x1
	mov	x19, x0
	ldr	w9, [x1]
Lloh0:
	adrp	x8, _R_PRINT_FLAGS_COLOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_PRINT_FLAGS_COLOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	x9, [x19]
	ldr	w10, [x9]
	orr	w8, w10, w8
	b	LBB0_3
LBB0_2:
	ldr	x9, [x19]
	ldr	w10, [x9]
	bic	w8, w10, w8
LBB0_3:
	str	w8, [x9]
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w0, [x20, #4]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x20]
	b	LBB0_8
LBB0_6:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_8
LBB0_7:
	mov	w8, #0
	str	wzr, [x20]
LBB0_8:
Lloh7:
	adrp	x9, _COLOR_MODE_16M@GOTPAGE
Lloh8:
	ldr	x9, [x9, _COLOR_MODE_16M@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w20, w8, w9, lt
	bl	_r_cons_singleton
	ldr	x8, [x0]
	str	w20, [x8]
	bl	_r_cons_pal_update_event
	ldr	x0, [x19]
	ldr	w1, [x0]
	bl	_r_print_set_flags
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_R_PRINT_FLAGS_COLOR,4,2        ; @R_PRINT_FLAGS_COLOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"true"

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

	.comm	_COLOR_MODE_16M,4,2             ; @COLOR_MODE_16M
	.no_dead_strip	_cb_color
.subsections_via_symbols
