	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_console_attr
_set_console_attr:                      ## @set_console_attr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_negative@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_FOREGROUND_ALL@GOTPCREL(%rip), %rcx
	movq	_BACKGROUND_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	notl	%eax
	andl	%esi, %eax
	movq	_FOREGROUND_BLUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%r8d, %edx
	andl	%esi, %edx
	movq	_BACKGROUND_BLUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovnel	%ecx, %edx
	movq	_FOREGROUND_RED@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r9d
	movq	_BACKGROUND_RED@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r10d
	movq	_FOREGROUND_GREEN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r11d
	movq	_BACKGROUND_GREEN@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movd	%r9d, %xmm0
	pinsrd	$1, %r10d, %xmm0
	pinsrd	$2, %r11d, %xmm0
	pinsrd	$3, %edi, %xmm0
	movd	%esi, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	movd	%r10d, %xmm1
	pinsrd	$1, %r9d, %xmm1
	pinsrd	$2, %edi, %xmm1
	pinsrd	$3, %r11d, %xmm1
	pandn	%xmm1, %xmm0
	andl	%esi, %ecx
	cmovnel	%r8d, %ecx
	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, %esi
	orl	%edx, %ecx
	orl	%eax, %ecx
	orl	%esi, %ecx
	movl	%ecx, %esi
LBB0_2:
	movq	_console@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_SetConsoleTextAttribute        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_attr,4,2                       ## @attr
	.comm	_negative,8,3                   ## @negative
	.comm	_FOREGROUND_ALL,4,2             ## @FOREGROUND_ALL
	.comm	_BACKGROUND_ALL,4,2             ## @BACKGROUND_ALL
	.comm	_FOREGROUND_RED,4,2             ## @FOREGROUND_RED
	.comm	_BACKGROUND_RED,4,2             ## @BACKGROUND_RED
	.comm	_FOREGROUND_GREEN,4,2           ## @FOREGROUND_GREEN
	.comm	_BACKGROUND_GREEN,4,2           ## @BACKGROUND_GREEN
	.comm	_FOREGROUND_BLUE,4,2            ## @FOREGROUND_BLUE
	.comm	_BACKGROUND_BLUE,4,2            ## @BACKGROUND_BLUE
	.comm	_console,4,2                    ## @console
	.no_dead_strip	_set_console_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_console_attr
_set_console_attr:                      ; @set_console_attr
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _attr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _attr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _negative@GOTPAGE
Lloh4:
	ldr	x8, [x8, _negative@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _FOREGROUND_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FOREGROUND_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _BACKGROUND_ALL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BACKGROUND_ALL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w1, w8
Lloh12:
	adrp	x9, _FOREGROUND_RED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FOREGROUND_RED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _BACKGROUND_RED@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BACKGROUND_RED@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w11, wzr, w10, eq
	orr	w8, w11, w8
Lloh18:
	adrp	x11, _FOREGROUND_GREEN@GOTPAGE
Lloh19:
	ldr	x11, [x11, _FOREGROUND_GREEN@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
Lloh21:
	adrp	x12, _BACKGROUND_GREEN@GOTPAGE
Lloh22:
	ldr	x12, [x12, _BACKGROUND_GREEN@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	tst	w11, w1
Lloh24:
	adrp	x13, _FOREGROUND_BLUE@GOTPAGE
Lloh25:
	ldr	x13, [x13, _FOREGROUND_BLUE@GOTPAGEOFF]
	csel	w14, wzr, w12, eq
Lloh26:
	ldr	w13, [x13]
Lloh27:
	adrp	x15, _BACKGROUND_BLUE@GOTPAGE
Lloh28:
	ldr	x15, [x15, _BACKGROUND_BLUE@GOTPAGEOFF]
Lloh29:
	ldr	w15, [x15]
	tst	w13, w1
	csel	w16, wzr, w15, eq
	tst	w10, w1
	csel	w9, wzr, w9, eq
	tst	w12, w1
	csel	w10, wzr, w11, eq
	tst	w15, w1
	csel	w11, wzr, w13, eq
	orr	w8, w8, w9
	orr	w8, w8, w14
	orr	w8, w8, w10
	orr	w8, w8, w16
	orr	w1, w8, w11
LBB0_2:
Lloh30:
	adrp	x8, _console@GOTPAGE
Lloh31:
	ldr	x8, [x8, _console@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	b	_SetConsoleTextAttribute
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_attr,4,2                       ; @attr
	.comm	_negative,8,3                   ; @negative
	.comm	_FOREGROUND_ALL,4,2             ; @FOREGROUND_ALL
	.comm	_BACKGROUND_ALL,4,2             ; @BACKGROUND_ALL
	.comm	_FOREGROUND_RED,4,2             ; @FOREGROUND_RED
	.comm	_BACKGROUND_RED,4,2             ; @BACKGROUND_RED
	.comm	_FOREGROUND_GREEN,4,2           ; @FOREGROUND_GREEN
	.comm	_BACKGROUND_GREEN,4,2           ; @BACKGROUND_GREEN
	.comm	_FOREGROUND_BLUE,4,2            ; @FOREGROUND_BLUE
	.comm	_BACKGROUND_BLUE,4,2            ; @BACKGROUND_BLUE
	.comm	_console,4,2                    ; @console
	.no_dead_strip	_set_console_attr
.subsections_via_symbols
