	.file	"543073.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/bin/ls"
.LC1:
	.string	"-l"
.LC2:
	.string	"pid = %d\n"
.LC3:
	.string	"fork error"
.LC4:
	.string	"running child process"
.LC5:
	.string	"running parent process"
.LC6:
	.string	"parent process completed"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	call	fork@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -36[rbp], 0
	jns	.L2
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L3
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	execv@PLT
	jmp	.L4
.L3:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rcx, -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L4:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"543073.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/bin/ls\000"
	.align	2
.LC1:
	.ascii	"-l\000"
	.text
	.section	.rodata
	.align	2
.LC4:
	.ascii	"pid = %d\012\000"
	.align	2
.LC5:
	.ascii	"fork error\000"
	.align	2
.LC6:
	.ascii	"running child process\000"
	.align	2
.LC7:
	.ascii	"running parent process\000"
	.align	2
.LC8:
	.ascii	"parent process completed\000"
	.align	2
.LC3:
	.word	.LC0
	.word	.LC1
	.word	0
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L6+4
	sub	r3, fp, #20
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L6+8
	bl	printf
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L6+12
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L6+16
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L6+20
	bl	execv
	b	.L4
.L3:
	ldr	r0, .L6+24
	bl	puts
	sub	r3, fp, #28
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	waitpid
	ldr	r0, .L6+28
	bl	puts
.L4:
	mov	r0, #0
	bl	exit
.L7:
	.align	2
.L6:
	.word	.LC9
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC0
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
