	.file	"extr_trace-event-read.c_read_saved_cmdline.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"memory allocation failure\n"
.LC1:
	.string	"error reading saved cmdlines\n"
	.text
	.p2align 4
	.type	read_saved_cmdline, @function
read_saved_cmdline:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	read8@PLT
	test	rax, rax
	jne	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdi, 1[rax]
	mov	r12, rax
	call	malloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L11
	mov	rsi, r12
	mov	rdi, rax
	call	do_read@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L12
	mov	rdx, r12
	mov	rsi, r14
	mov	rdi, rbp
	xor	r13d, r13d
	call	parse_saved_cmdline@PLT
.L5:
	mov	rdi, r14
	call	free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	pr_debug@PLT
	jmp	.L5
.L11:
	lea	rdi, .LC0[rip]
	or	r13d, -1
	call	pr_debug@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	read_saved_cmdline, .-read_saved_cmdline
	.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_trace-event-read.c_read_saved_cmdline.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"memory allocation failure\012\000"
	.align	2
.LC1:
	.ascii	"error reading saved cmdlines\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_saved_cmdline, %function
read_saved_cmdline:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	read8
	mov	r4, r0
	mov	r5, r1
	orrs	r3, r4, r5
	moveq	r6, #0
	bne	.L9
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	adds	r0, r0, #1
	adc	r1, r1, #0
	bl	malloc
	subs	r8, r0, #0
	beq	.L10
	mov	r2, r4
	mov	r3, r5
	bl	do_read
	subs	r6, r0, #0
	blt	.L11
	mov	r2, r4
	mov	r3, r5
	mov	r0, r7
	mov	r1, r8
	bl	parse_saved_cmdline
	mov	r6, #0
.L5:
	mov	r0, r8
	bl	free
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r0, .L12
	bl	pr_debug
	b	.L5
.L10:
	ldr	r0, .L12+4
	bl	pr_debug
	mvn	r6, #0
	b	.L1
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.size	read_saved_cmdline, .-read_saved_cmdline
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
