	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_set_colors
_efi_set_colors:                        ## @efi_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -36(%rbp)
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-36(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_color_name_to_teken
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	leaq	-50(%rbp), %rbx
	movl	-36(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_snprintf
LBB0_3:
	movq	_teken@GOTPCREL(%rip), %rdi
	callq	_teken_get_defattr
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movl	-36(%rbp), %eax
	cmpl	%eax, (%r12)
	je	LBB0_13
## %bb.5:
	movl	%eax, -48(%rbp)
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movl	-36(%rbp), %eax
	cmpl	%eax, 4(%r12)
	je	LBB0_13
## %bb.8:
	movl	%eax, -44(%rbp)
LBB0_9:
	movl	(%r15), %edi
	movq	_EV_NOHOOK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_env_setenv
	movq	_teken@GOTPCREL(%rip), %rdi
	leaq	-48(%rbp), %rsi
	callq	_teken_set_defattr
	jmp	LBB0_13
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, -36(%rbp)
	cmpq	$0, (%r12)
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_3
LBB0_12:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_13:
	movq	_CMD_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	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	_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	_efi_set_colors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_set_colors
_efi_set_colors:                        ; @efi_set_colors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	wzr, [sp, #12]
	cbz	x2, LBB0_13
; %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_10
; %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	x8, [x0]
	str	x8, [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_13
; %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
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	w9, [x22, #4]
	ldr	w8, [sp, #12]
	cmp	w9, w8
	b.eq	LBB0_13
; %bb.8:
	str	w8, [sp, #4]
LBB0_9:
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _EV_NOHOOK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_NOHOOK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w1, w8, w20
	mov	x2, x19
	mov	x3, #0
	mov	x4, #0
	bl	_env_setenv
Lloh11:
	adrp	x0, _teken@GOTPAGE
Lloh12:
	ldr	x0, [x0, _teken@GOTPAGEOFF]
	mov	x1, sp
	bl	_teken_set_defattr
	b	LBB0_13
LBB0_10:
Lloh13:
	adrp	x22, _errno@GOTPAGE
Lloh14:
	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_12
; %bb.11:
	ldr	x8, [sp]
	ldrb	w8, [x8]
	cbz	w8, LBB0_3
LBB0_12:
Lloh15:
	adrp	x0, l_str@PAGE
Lloh16:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_13:
Lloh17:
	adrp	x8, _CMD_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CMD_OK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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	_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	_efi_set_colors
.subsections_via_symbols
