	.file	"349825.c"
	.intel_syntax noprefix
	.text
	.globl	argv
	.section	.rodata
.LC0:
	.string	"sh"
	.section	.data.rel.local,"aw"
	.align 16
	.type	argv, @object
	.size	argv, 16
argv:
	.quad	.LC0
	.quad	0
	.section	.rodata
.LC1:
	.string	"console"
.LC2:
	.string	"min-rt"
.LC3:
	.string	"init: starting sh"
.LC4:
	.string	"init: fork failed\n"
.LC5:
	.string	"init: exec sh failed\n"
.LC6:
	.string	"zombie!"
	.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, 16
	mov	esi, 2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	test	eax, eax
	jns	.L2
	mov	edx, 1
	mov	esi, 1
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	mknod@PLT
	mov	esi, 2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
.L2:
	mov	edx, 1
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	mknod@PLT
	mov	edi, 0
	call	dup@PLT
	mov	edi, 0
	call	dup@PLT
.L8:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	call	fork@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	cmp	DWORD PTR -8[rbp], 0
	jne	.L5
	lea	rsi, argv[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	exec@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L5:
	mov	eax, 0
	call	wait@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L8
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jne	.L7
	jmp	.L8
	.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	"349825.c"
	.text
	.global	argv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"sh\000"
	.data
	.align	2
	.type	argv, %object
	.size	argv, 8
argv:
	.word	.LC0
	.word	0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"console\000"
	.align	2
.LC2:
	.ascii	"min-rt\000"
	.align	2
.LC3:
	.ascii	"init: starting sh\000"
	.align	2
.LC4:
	.ascii	"init: fork failed\012\000"
	.align	2
.LC5:
	.ascii	"init: exec sh failed\012\000"
	.align	2
.LC6:
	.ascii	"zombie!\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r1, #2
	ldr	r0, .L9
	bl	open
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	mov	r2, #1
	mov	r1, #1
	ldr	r0, .L9
	bl	mknod
	mov	r1, #2
	ldr	r0, .L9
	bl	open
.L2:
	mov	r2, #1
	mov	r1, #2
	ldr	r0, .L9+4
	bl	mknod
	mov	r0, #0
	bl	dup
	mov	r0, #0
	bl	dup
.L8:
	ldr	r0, .L9+8
	bl	puts
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L3
	ldr	r3, .L9+12
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L9+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L5
	ldr	r1, .L9+20
	ldr	r0, .L9+24
	bl	exec
	ldr	r3, .L9+12
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L9+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L7:
	ldr	r0, .L9+32
	bl	puts
.L5:
	bl	wait
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L8
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L7
	b	.L8
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	argv
	.word	.LC0
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
