	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_load_theme
_cmd_load_theme:                        ## @cmd_load_theme
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.1:
	movq	%rsi, %rbx
	cmpb	$0, (%rsi)
	je	LBB0_16
## %bb.2:
	movq	%rdi, %r13
	movq	%rbx, %rdi
	callq	_strlen
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_r_str_cmp
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %r14
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.4:
	movq	_R2_HOME_THEMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_R_JOIN_2_PATHS
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_r_str_newf
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_r_str_home
	movq	%rax, %r15
	jmp	LBB0_7
LBB0_3:
	movq	_curtheme@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_r_cons_pal_init
	movl	$1, %r15d
	jmp	LBB0_16
LBB0_5:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%rbx, %rdi
	callq	_free
	movq	_R2_THEMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_R_JOIN_2_PATHS
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_r_str_newf
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	callq	_r_str_r2_prefix
	movq	%rax, %r12
	jmp	LBB0_10
LBB0_8:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%rbx, %rdi
	callq	_free
	movq	%r13, %rdi
	movq	%r15, %rbx
	movq	%r15, %rsi
	callq	_load_theme
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_load_theme
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_load_theme
	testq	%rax, %rax
	je	LBB0_14
LBB0_12:
	movq	_curtheme@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_r_str_dup
	movq	%rax, (%r13)
LBB0_15:
	movq	%rbx, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	callq	_r_file_abspath
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	callq	_eprintf
	movq	%r15, %rdi
	callq	_free
	xorl	%r15d, %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"default"

	.comm	_curtheme,8,3                   ## @curtheme
	.comm	_R2_HOME_THEMES,4,2             ## @R2_HOME_THEMES
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_R2_THEMES,4,2                  ## @R2_THEMES
L_.str.2:                               ## @.str.2
	.asciz	"eco: cannot open colorscheme profile (%s)\n"

	.no_dead_strip	_cmd_load_theme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_load_theme
_cmd_load_theme:                        ; @cmd_load_theme
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x1
	ldrb	w8, [x1]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_r_str_cmp
	mov	x20, x0
	mov	x0, x19
	bl	_strdup
	mov	x19, x0
	cbz	w20, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _R2_HOME_THEMES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R2_HOME_THEMES@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_R_JOIN_2_PATHS
	mov	x1, x19
	bl	_r_str_newf
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x22
	bl	_r_str_home
	mov	x20, x0
	b	LBB0_8
LBB0_5:
	mov	w21, #0
	b	LBB0_17
LBB0_6:
Lloh7:
	adrp	x8, _curtheme@GOTPAGE
Lloh8:
	ldr	x8, [x8, _curtheme@GOTPAGEOFF]
Lloh9:
	str	x19, [x8]
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_r_cons_pal_init
	mov	w21, #1
	b	LBB0_17
LBB0_7:
	mov	x20, #0
LBB0_8:
	mov	x0, x22
	bl	_free
Lloh10:
	adrp	x8, _R2_THEMES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _R2_THEMES@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_R_JOIN_2_PATHS
	mov	x1, x19
	bl	_r_str_newf
	mov	x23, x0
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x23
	bl	_r_str_r2_prefix
	mov	x22, x0
	b	LBB0_11
LBB0_10:
	mov	x22, #0
LBB0_11:
	mov	x0, x23
	bl	_free
	mov	x0, x21
	mov	x1, x20
	bl	_load_theme
	cbnz	x0, LBB0_15
; %bb.12:
	mov	x0, x21
	mov	x1, x22
	bl	_load_theme
	cbnz	x0, LBB0_14
; %bb.13:
	mov	x0, x21
	mov	x1, x19
	bl	_load_theme
	cbz	x0, LBB0_18
LBB0_14:
Lloh15:
	adrp	x21, _curtheme@GOTPAGE
Lloh16:
	ldr	x21, [x21, _curtheme@GOTPAGEOFF]
	ldr	x0, [x21]
	mov	x1, x19
	bl	_r_str_dup
	str	x0, [x21]
LBB0_15:
	mov	w21, #1
LBB0_16:
	mov	x0, x20
	bl	_free
	mov	x0, x22
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_17:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x0, x19
	bl	_r_file_abspath
	mov	x21, x0
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_eprintf
	mov	x0, x21
	bl	_free
	mov	w21, #0
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"default"

	.comm	_curtheme,8,3                   ; @curtheme
	.comm	_R2_HOME_THEMES,4,2             ; @R2_HOME_THEMES
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_R2_THEMES,4,2                  ; @R2_THEMES
l_.str.2:                               ; @.str.2
	.asciz	"eco: cannot open colorscheme profile (%s)\n"

	.no_dead_strip	_cmd_load_theme
.subsections_via_symbols
