	.file	"extr_titanpart.c_titan_get_single_image.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"titan: %s variable not found.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"\""
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"titan: invalid bootcfg format, %s.\n"
	.text
	.p2align 4
	.type	titan_get_single_image, @function
titan_get_single_image:
.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
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	sete	dl
	test	r13, r13
	sete	al
	or	dl, al
	jne	.L7
	mov	rbp, rdi
	test	rdi, rdi
	je	.L7
	mov	r12, rsi
	call	prom_getenv@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L11
	lea	r14, 16[rsp]
	mov	edx, 30
	lea	r15, 8[rsp]
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], r14
	call	strncpy@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	mov	BYTE PTR 45[rsp], 0
	call	strsep@PLT
	mov	rdi, r15
	lea	rsi, .LC1[rip]
	mov	rbp, rax
	call	strsep@PLT
	mov	rdi, rax
	test	rbp, rbp
	je	.L8
	test	rax, rax
	je	.L8
	mov	rdx, r13
	mov	rsi, r12
	call	titan_parse_env_address@PLT
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	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
.L7:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, r14
	lea	rdi, .LC2[rip]
	call	printk@PLT
	mov	eax, -1
	jmp	.L1
.L11:
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	call	printk@PLT
	mov	eax, -1
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	titan_get_single_image, .-titan_get_single_image
	.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_titanpart.c_titan_get_single_image.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"titan: %s variable not found.\012\000"
	.align	2
.LC1:
	.ascii	"\"\000"
	.align	2
.LC2:
	.ascii	"titan: invalid bootcfg format, %s.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	titan_get_single_image, %function
titan_get_single_image:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r2
	cmp	r1, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r0, #0
	push	{r4, r5, r6, r7, lr}
	movne	r4, r3
	moveq	r4, #1
	ldr	r3, .L12
	sub	sp, sp, #44
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bne	.L6
	mov	r5, r1
	mov	r6, r2
	mov	r7, r0
	bl	prom_getenv
	subs	r1, r0, #0
	beq	.L9
	add	r7, sp, #4
	mov	r2, #30
	mov	r0, r7
	str	r7, [sp]
	bl	strncpy
	ldr	r1, .L12+4
	mov	r0, sp
	strb	r4, [sp, #33]
	bl	strsep
	ldr	r1, .L12+4
	mov	r4, r0
	mov	r0, sp
	bl	strsep
	cmp	r0, #0
	cmpne	r4, #0
	beq	.L10
	mov	r2, r6
	mov	r1, r5
	bl	titan_parse_env_address
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mvn	r0, #0
	b	.L1
.L10:
	mov	r1, r7
	ldr	r0, .L12+8
	bl	printk
	mvn	r0, #0
	b	.L1
.L9:
	mov	r1, r7
	ldr	r0, .L12+12
	bl	printk
	mvn	r0, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	titan_get_single_image, .-titan_get_single_image
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
