	.file	"extr_cmd_eval.c_cmd_load_theme.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"default"
.LC1:
	.string	"%s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"eco: cannot open colorscheme profile (%s)\n"
	.text
	.p2align 4
	.type	cmd_load_theme, @function
cmd_load_theme:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	test	rsi, rsi
	je	.L9
	xor	r12d, r12d
	cmp	BYTE PTR [rsi], 0
	mov	rbp, rsi
	jne	.L19
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	r13, rdi
	mov	rdi, rsi
	call	strlen@PLT
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	r_str_cmp@PLT
	mov	rdi, rbp
	test	eax, eax
	je	.L20
	call	strdup@PLT
	mov	edi, DWORD PTR R2_HOME_THEMES[rip]
	lea	rsi, .LC1[rip]
	xor	r14d, r14d
	mov	rbp, rax
	call	R_JOIN_2_PATHS@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	r_str_newf@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	rdi, rax
	call	r_str_home@PLT
	mov	r14, rax
.L4:
	mov	rdi, r12
	xor	r15d, r15d
	call	free@PLT
	mov	edi, DWORD PTR R2_THEMES[rip]
	lea	rsi, .LC1[rip]
	call	R_JOIN_2_PATHS@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	r_str_newf@PLT
	mov	r12, rax
	test	rax, rax
	je	.L5
	mov	rdi, rax
	call	r_str_r2_prefix@PLT
	mov	r15, rax
.L5:
	mov	rdi, r12
	mov	r12d, 1
	call	free@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	load_theme@PLT
	test	rax, rax
	je	.L21
.L6:
	mov	rdi, r14
	call	free@PLT
	mov	rdi, r15
	call	free@PLT
	mov	rdi, rbp
	call	free@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rsi, r15
	mov	rdi, r13
	call	load_theme@PLT
	mov	rsi, rbp
	test	rax, rax
	jne	.L17
	mov	rdi, r13
	call	load_theme@PLT
	test	rax, rax
	je	.L8
	mov	rsi, rbp
.L17:
	mov	rdi, QWORD PTR curtheme[rip]
	call	r_str_dup@PLT
	mov	QWORD PTR curtheme[rip], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	xor	r12d, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	call	strdup@PLT
	mov	r12d, 1
	mov	QWORD PTR curtheme[rip], rax
	mov	rax, QWORD PTR 0[r13]
	mov	edi, DWORD PTR [rax]
	call	r_cons_pal_init@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	r_file_abspath@PLT
	lea	rdi, .LC2[rip]
	mov	r12, rax
	mov	rsi, rax
	call	eprintf@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	free@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	cmd_load_theme, .-cmd_load_theme
	.comm	curtheme,8,8
	.comm	R2_THEMES,4,4
	.comm	R2_HOME_THEMES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cmd_eval.c_cmd_load_theme.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"default\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"eco: cannot open colorscheme profile (%s)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_load_theme, %function
cmd_load_theme:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r1, #0
	beq	.L1
	ldrb	r1, [r4]	@ zero_extendqisi2
	cmp	r1, #0
	moveq	r4, r1
	bne	.L17
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r5, r0
	mov	r0, r4
	bl	strlen
	ldr	r1, .L20
	mov	r2, r0
	mov	r0, r4
	bl	r_str_cmp
	cmp	r0, #0
	mov	r0, r4
	beq	.L18
	bl	strdup
	mov	r6, r0
	ldr	r3, .L20+4
	ldr	r1, .L20+8
	ldr	r0, [r3]
	bl	R_JOIN_2_PATHS
	mov	r1, r6
	bl	r_str_newf
	subs	r4, r0, #0
	moveq	r7, r4
	beq	.L4
	bl	r_str_home
	mov	r7, r0
.L4:
	mov	r0, r4
	bl	free
	ldr	r3, .L20+12
	ldr	r1, .L20+8
	ldr	r0, [r3]
	bl	R_JOIN_2_PATHS
	mov	r1, r6
	bl	r_str_newf
	subs	r4, r0, #0
	moveq	r8, r4
	beq	.L5
	bl	r_str_r2_prefix
	mov	r8, r0
.L5:
	mov	r0, r4
	bl	free
	mov	r1, r7
	mov	r0, r5
	bl	load_theme
	cmp	r0, #0
	movne	r4, #1
	beq	.L19
.L6:
	mov	r0, r7
	bl	free
	mov	r0, r8
	bl	free
	mov	r0, r6
	bl	free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r1, r8
	mov	r0, r5
	bl	load_theme
	cmp	r0, #0
	bne	.L15
	mov	r0, r5
	mov	r1, r6
	bl	load_theme
	subs	r4, r0, #0
	bne	.L15
	mov	r0, r6
	bl	r_file_abspath
	mov	r5, r0
	ldr	r0, .L20+16
	mov	r1, r5
	bl	eprintf
	mov	r0, r5
	bl	free
	b	.L6
.L15:
	ldr	r5, .L20+20
	mov	r1, r6
	ldr	r0, [r5]
	bl	r_str_dup
	mov	r4, #1
	str	r0, [r5]
	b	.L6
.L18:
	bl	strdup
	mov	r4, #1
	mov	r2, r0
	ldr	r1, [r5]
	ldr	r3, .L20+20
	ldr	r0, [r1]
	str	r2, [r3]
	bl	r_cons_pal_init
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	R2_HOME_THEMES
	.word	.LC1
	.word	R2_THEMES
	.word	.LC2
	.word	curtheme
	.size	cmd_load_theme, .-cmd_load_theme
	.comm	curtheme,4,4
	.comm	R2_THEMES,4,4
	.comm	R2_HOME_THEMES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
