	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidc_set_colors
_vidc_set_colors:                       ## @vidc_set_colors
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -44(%rbp)
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.1:
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-44(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_color_name_to_teken
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	leaq	-58(%rbp), %r13
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_snprintf
LBB0_3:
	movq	_teken@GOTPCREL(%rip), %rdi
	callq	_teken_get_defattr
	movq	%rax, %r12
	movq	(%rax), %rbx
	movq	%rbx, -56(%rbp)
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movl	-44(%rbp), %eax
	cmpl	%eax, (%r12)
	je	LBB0_16
## %bb.5:
	movl	%eax, -56(%rbp)
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	shrq	$32, %rbx
	jmp	LBB0_13
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, -44(%rbp)
	cmpq	$0, (%rbx)
	jne	LBB0_10
## %bb.9:
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_3
LBB0_10:
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_16
LBB0_11:
	movl	-44(%rbp), %ebx
	cmpl	%ebx, 4(%r12)
	je	LBB0_16
## %bb.12:
	movl	%ebx, -52(%rbp)
LBB0_13:
	movq	_TC_WHITE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_15
## %bb.14:
	movq	_TC_LIGHT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, -52(%rbp)
LBB0_15:
	movl	(%r15), %edi
	movq	_EV_NOHOOK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %esi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_env_setenv
	movq	_teken@GOTPCREL(%rip), %rdi
	leaq	-56(%rbp), %rsi
	callq	_teken_set_defattr
LBB0_16:
	movq	_CMD_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_OK,4,2                     ## @CMD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_errno,8,3                      ## @errno
	.comm	_teken,4,2                      ## @teken
L_.str.2:                               ## @.str.2
	.asciz	"teken.fg_color"

L_.str.3:                               ## @.str.3
	.asciz	"teken.bg_color"

	.comm	_TC_WHITE,4,2                   ## @TC_WHITE
	.comm	_TC_LIGHT,4,2                   ## @TC_LIGHT
	.comm	_EV_NOHOOK,4,2                  ## @EV_NOHOOK
L_str:                                  ## @str
	.asciz	"Allowed values are either ansi color name or number from range [0-7]."

	.no_dead_strip	_vidc_set_colors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidc_set_colors
_vidc_set_colors:                       ; @vidc_set_colors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	str	wzr, [sp, #12]
	cbz	x2, LBB0_16
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #12
	mov	x0, x2
	bl	_color_name_to_teken
	cbz	x0, LBB0_8
; %bb.2:
	add	x19, sp, #10
	ldr	w3, [sp, #12]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #10
	mov	w1, #2
	bl	_snprintf
LBB0_3:
Lloh2:
	adrp	x0, _teken@GOTPAGE
Lloh3:
	ldr	x0, [x0, _teken@GOTPAGEOFF]
	bl	_teken_get_defattr
	mov	x22, x0
	ldr	x23, [x0]
	str	x23, [sp]
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	w9, [x22]
	ldr	w8, [sp, #12]
	cmp	w9, w8
	b.eq	LBB0_16
; %bb.5:
	str	w8, [sp]
LBB0_6:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.7:
	lsr	x8, x23, #32
	b	LBB0_13
LBB0_8:
Lloh8:
	adrp	x22, _errno@GOTPAGE
Lloh9:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #0
	bl	_strtol
	str	w0, [sp, #12]
	ldr	x8, [x22]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x8, [sp]
	ldrb	w8, [x8]
	cbz	w8, LBB0_3
LBB0_10:
Lloh10:
	adrp	x0, l_str@PAGE
Lloh11:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_16
LBB0_11:
	ldr	w9, [x22, #4]
	ldr	w8, [sp, #12]
	cmp	w9, w8
	b.eq	LBB0_16
; %bb.12:
	str	w8, [sp, #4]
LBB0_13:
Lloh12:
	adrp	x9, _TC_WHITE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TC_WHITE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.14:
Lloh15:
	adrp	x9, _TC_LIGHT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TC_LIGHT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #4]
LBB0_15:
	ldr	w0, [x21]
Lloh18:
	adrp	x8, _EV_NOHOOK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EV_NOHOOK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w1, w8, w20
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
	bl	_env_setenv
Lloh21:
	adrp	x0, _teken@GOTPAGE
Lloh22:
	ldr	x0, [x0, _teken@GOTPAGEOFF]
	mov	x1, sp
	bl	_teken_set_defattr
LBB0_16:
Lloh23:
	adrp	x8, _CMD_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CMD_OK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_OK,4,2                     ; @CMD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_errno,8,3                      ; @errno
	.comm	_teken,4,2                      ; @teken
l_.str.2:                               ; @.str.2
	.asciz	"teken.fg_color"

l_.str.3:                               ; @.str.3
	.asciz	"teken.bg_color"

	.comm	_TC_WHITE,4,2                   ; @TC_WHITE
	.comm	_TC_LIGHT,4,2                   ; @TC_LIGHT
	.comm	_EV_NOHOOK,4,2                  ; @EV_NOHOOK
l_str:                                  ; @str
	.asciz	"Allowed values are either ansi color name or number from range [0-7]."

	.no_dead_strip	_vidc_set_colors
.subsections_via_symbols
