	.file	"511297.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"fork()"
.LC1:
	.string	"-c"
.LC2:
	.string	"sh"
.LC3:
	.string	"/bin/sh"
.LC4:
	.string	"execl()"
	.text
	.type	mysystem, @function
mysystem:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 0
	call	fflush@PLT
	call	fork@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L3
	mov	edi, 0
	call	fflush@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, 0
	mov	rcx, rax
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	execl@PLT
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -4[rbp]
	sar	eax, 8
	movzx	eax, al
	jmp	.L5
.L4:
	mov	eax, -1
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	mysystem, .-mysystem
	.section	.rodata
.LC5:
	.string	"Begin."
.LC6:
	.string	"ls -l /etc/ppp"
.LC7:
	.string	"End."
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	mysystem
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"511297.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fork()\000"
	.align	2
.LC1:
	.ascii	"-c\000"
	.align	2
.LC2:
	.ascii	"sh\000"
	.align	2
.LC3:
	.ascii	"/bin/sh\000"
	.align	2
.LC4:
	.ascii	"execl()\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mysystem, %function
mysystem:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	mov	r0, #0
	bl	fflush
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L6
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L3
	mov	r0, #0
	bl	fflush
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, .L6+4
	ldr	r1, .L6+8
	ldr	r0, .L6+12
	bl	execl
	ldr	r0, .L6+16
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r2, #0
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	waitpid
	ldr	r3, [fp, #-8]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-8]
	asr	r3, r3, #8
	and	r3, r3, #255
	b	.L5
.L4:
	mvn	r3, #0
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	mysystem, .-mysystem
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Begin.\000"
	.align	2
.LC6:
	.ascii	"ls -l /etc/ppp\000"
	.align	2
.LC7:
	.ascii	"End.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L10
	bl	puts
	ldr	r0, .L10+4
	bl	mysystem
	ldr	r0, .L10+8
	bl	puts
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
