	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function CON_ColorCharToAttrib
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CON_ColorCharToAttrib:                 ## @CON_ColorCharToAttrib
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_COLOR_WHITE@GOTPCREL(%rip), %rax
	cmpb	%dil, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_qconsole_attrib@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_g_color_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movsbl	%dil, %edi
	callq	_ColorIndex
	movq	(%rbx,%rax,8), %rax
	movq	_FOREGROUND_RED@GOTPCREL(%rip), %rcx
	movq	_FOREGROUND_GREEN@GOTPCREL(%rip), %rdx
	movq	_FOREGROUND_BLUE@GOTPCREL(%rip), %rsi
	movups	(%rax), %xmm0
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [5.0E-1,5.0E-1,5.0E-1,5.0E-1]
	cmpleps	%xmm0, %xmm1
	movd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rdx), %xmm0
	pinsrd	$2, (%rsi), %xmm0
	movq	_FOREGROUND_INTENSITY@GOTPCREL(%rip), %rax
	pinsrd	$3, (%rax), %xmm0
	pand	%xmm1, %xmm0
	movq	_qconsole_backgroundAttrib@GOTPCREL(%rip), %rcx
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	orl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOR_WHITE,1,0                ## @COLOR_WHITE
	.comm	_qconsole_attrib,4,2            ## @qconsole_attrib
	.comm	_g_color_table,8,3              ## @g_color_table
	.comm	_FOREGROUND_RED,4,2             ## @FOREGROUND_RED
	.comm	_FOREGROUND_GREEN,4,2           ## @FOREGROUND_GREEN
	.comm	_FOREGROUND_BLUE,4,2            ## @FOREGROUND_BLUE
	.comm	_FOREGROUND_INTENSITY,4,2       ## @FOREGROUND_INTENSITY
	.comm	_qconsole_backgroundAttrib,4,2  ## @qconsole_backgroundAttrib
	.no_dead_strip	_CON_ColorCharToAttrib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CON_ColorCharToAttrib
_CON_ColorCharToAttrib:                 ; @CON_ColorCharToAttrib
	.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	x8, _COLOR_WHITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COLOR_WHITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w0, uxtb
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _qconsole_attrib@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qconsole_attrib@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _g_color_table@GOTPAGE
Lloh6:
	ldr	x8, [x8, _g_color_table@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
	bl	_ColorIndex
	ldr	x8, [x19, x0, lsl #3]
Lloh8:
	adrp	x9, _FOREGROUND_RED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FOREGROUND_RED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	fmov	s0, #0.50000000
	ldp	s1, s2, [x8]
	fcmp	s1, s0
	csel	w9, w9, wzr, ge
Lloh11:
	adrp	x10, _FOREGROUND_GREEN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _FOREGROUND_GREEN@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	fcmp	s2, s0
	csel	w10, w10, wzr, ge
	ldp	s1, s2, [x8, #8]
	fcmp	s1, s0
	orr	w8, w10, w9
Lloh14:
	adrp	x9, _FOREGROUND_BLUE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FOREGROUND_BLUE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	csel	w9, w9, wzr, ge
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _FOREGROUND_INTENSITY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FOREGROUND_INTENSITY@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	fcmp	s2, s0
	csel	w9, w9, wzr, ge
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _qconsole_backgroundAttrib@GOTPAGE
Lloh21:
	ldr	x9, [x9, _qconsole_backgroundAttrib@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w8, w9
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOR_WHITE,1,0                ; @COLOR_WHITE
	.comm	_qconsole_attrib,4,2            ; @qconsole_attrib
	.comm	_g_color_table,8,3              ; @g_color_table
	.comm	_FOREGROUND_RED,4,2             ; @FOREGROUND_RED
	.comm	_FOREGROUND_GREEN,4,2           ; @FOREGROUND_GREEN
	.comm	_FOREGROUND_BLUE,4,2            ; @FOREGROUND_BLUE
	.comm	_FOREGROUND_INTENSITY,4,2       ; @FOREGROUND_INTENSITY
	.comm	_qconsole_backgroundAttrib,4,2  ; @qconsole_backgroundAttrib
	.no_dead_strip	_CON_ColorCharToAttrib
.subsections_via_symbols
