	.file	"977463.c"
	.intel_syntax noprefix
	.text
	.local	verbose
	.comm	verbose,4,4
	.section	.rodata
.LC0:
	.string	"waitpid"
	.align 8
.LC1:
	.string	"\tinit: SIGCHLD handler: PID %ld terminated\n"
	.text
	.type	child_handler, @function
child_handler:
.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L6:
	cmp	DWORD PTR -12[rbp], -1
	jne	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 10
	je	.L8
	lea	rdi, .LC0[rip]
	call	perror@PLT
.L3:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	lea	rax, -16[rbp]
	mov	edx, 11
	mov	rsi, rax
	mov	edi, -1
	call	waitpid@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L6
	jmp	.L5
.L8:
	nop
.L5:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	child_handler, .-child_handler
	.section	.rodata
	.align 8
.LC2:
	.string	"Word expansion failed.\n\tNote that only simple commands plus arguments are supported\n\t(no pipelines, I/O redirection, and so on)\n"
.LC3:
	.string	"calloc"
	.text
	.type	expand_words, @function
expand_words:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	wordexp@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 128
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L15
.L10:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L12
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L13
.L14:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -44[rbp], 1
.L13:
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	cmp	rdx, rax
	jb	.L14
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
.L15:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	expand_words, .-expand_words
	.section	.rodata
	.align 8
.LC4:
	.string	"Usage: %s [-v] [-p proc-mount]\n"
	.align 8
.LC5:
	.string	"\t-v              Provide verbose logging\n"
	.align 8
.LC6:
	.string	"\t-p proc-mount   Mount a procfs at specified path\n"
	.text
	.type	usage, @function
usage:
.LFB8:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 50
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.section	.rodata
.LC7:
	.string	"p:v"
.LC8:
	.string	"sigaction"
.LC9:
	.string	"\tinit: my PID is %ld\n"
.LC10:
	.string	"setpgid"
.LC11:
	.string	"tcsetpgrp-child"
.LC12:
	.string	"Making %s a private mount\n"
.LC13:
	.string	"none"
.LC14:
	.string	"mount-make-slave-/"
.LC15:
	.string	"Mounting procfs at %s\n"
.LC16:
	.string	"proc"
.LC17:
	.string	"mount-procfs"
.LC18:
	.string	"init$ "
.LC19:
	.string	"\tinit: exiting"
.LC20:
	.string	"fork"
.LC21:
	.string	"execvp"
.LC22:
	.string	"\tinit: created child %ld\n"
.LC23:
	.string	"tcsetpgrp-parent"
.LC24:
	.string	"Unmounting procfs at %s\n"
.LC25:
	.string	"umount-procfs"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2032
	mov	DWORD PTR -10212[rbp], edi
	mov	QWORD PTR -10224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -10192[rbp], 0
	jmp	.L19
.L23:
	cmp	DWORD PTR -10200[rbp], 112
	je	.L20
	cmp	DWORD PTR -10200[rbp], 118
	je	.L21
	jmp	.L48
.L20:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -10192[rbp], rax
	jmp	.L19
.L21:
	mov	DWORD PTR verbose[rip], 1
	jmp	.L19
.L48:
	mov	rax, QWORD PTR -10224[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L19:
	mov	rcx, QWORD PTR -10224[rbp]
	mov	eax, DWORD PTR -10212[rbp]
	lea	rdx, .LC7[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -10200[rbp], eax
	cmp	DWORD PTR -10200[rbp], -1
	jne	.L23
	mov	DWORD PTR -10040[rbp], 268435457
	lea	rax, -10176[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, child_handler[rip]
	mov	QWORD PTR -10176[rbp], rax
	lea	rax, -10176[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L24
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L25
	call	getpid@PLT
	cdqe
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L25:
	mov	esi, 1
	mov	edi, 22
	call	signal@PLT
	mov	esi, 0
	mov	edi, 0
	call	setpgid@PLT
	cmp	eax, -1
	jne	.L26
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	call	getpgrp@PLT
	mov	esi, eax
	mov	edi, 0
	call	tcsetpgrp@PLT
	cmp	eax, -1
	jne	.L27
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	cmp	QWORD PTR -10192[rbp], 0
	je	.L44
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR -10192[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L29:
	mov	rax, QWORD PTR -10192[rbp]
	mov	r8d, 0
	mov	ecx, 524288
	mov	edx, 0
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	call	mount@PLT
	cmp	eax, -1
	jne	.L30
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	je	.L30
	lea	rdi, .LC14[rip]
	call	perror@PLT
.L30:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR -10192[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L31:
	mov	rax, QWORD PTR -10192[rbp]
	mov	r8d, 0
	mov	ecx, 0
	lea	rdx, .LC16[rip]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	call	mount@PLT
	cmp	eax, -1
	jne	.L44
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L44:
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -10016[rbp]
	mov	esi, 10000
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L32
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L33
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L33:
	mov	edi, 10
	call	putchar@PLT
	jmp	.L34
.L32:
	lea	rax, -10016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	movzx	eax, BYTE PTR -10016[rbp+rax]
	cmp	al, 10
	jne	.L35
	lea	rax, -10016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -10016[rbp+rax], 0
.L35:
	lea	rax, -10016[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L49
	call	fork@PLT
	mov	DWORD PTR -10196[rbp], eax
	cmp	DWORD PTR -10196[rbp], -1
	jne	.L38
	lea	rdi, .LC20[rip]
	call	perror@PLT
	jmp	.L34
.L38:
	cmp	DWORD PTR -10196[rbp], 0
	jne	.L39
	lea	rax, -10016[rbp]
	mov	rdi, rax
	call	expand_words
	mov	QWORD PTR -10184[rbp], rax
	cmp	QWORD PTR -10184[rbp], 0
	jne	.L40
	mov	edi, 1
	call	exit@PLT
.L40:
	mov	esi, 0
	mov	edi, 0
	call	setpgid@PLT
	cmp	eax, -1
	jne	.L41
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L41:
	call	getpgrp@PLT
	mov	esi, eax
	mov	edi, 0
	call	tcsetpgrp@PLT
	cmp	eax, -1
	jne	.L42
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L42:
	mov	rax, QWORD PTR -10184[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -10184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC21[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L39:
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L43
	mov	eax, DWORD PTR -10196[rbp]
	cdqe
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
.L43:
	call	pause@PLT
	call	getpgrp@PLT
	mov	esi, eax
	mov	edi, 0
	call	tcsetpgrp@PLT
	cmp	eax, -1
	jne	.L44
	lea	rdi, .LC23[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L49:
	nop
	jmp	.L44
.L34:
	cmp	QWORD PTR -10192[rbp], 0
	je	.L45
	mov	eax, DWORD PTR verbose[rip]
	test	eax, eax
	je	.L46
	mov	rax, QWORD PTR -10192[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
.L46:
	mov	rax, QWORD PTR -10192[rbp]
	mov	rdi, rax
	call	umount@PLT
	cmp	eax, -1
	jne	.L45
	lea	rdi, .LC25[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.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	"977463.c"
	.text
	.local	verbose
	.comm	verbose,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"waitpid\000"
	.align	2
.LC1:
	.ascii	"\011init: SIGCHLD handler: PID %ld terminated\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_handler, %function
child_handler:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L2
.L6:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #10
	beq	.L8
	ldr	r0, .L9+4
	bl	perror
.L3:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r1, [fp, #-12]
	ldr	r0, .L9+12
	bl	printf
.L2:
	sub	r3, fp, #16
	mov	r2, #11
	mov	r1, r3
	mvn	r0, #0
	bl	waitpid
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L6
	b	.L5
.L8:
	nop
.L5:
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	.LC0
	.word	verbose
	.word	.LC1
	.size	child_handler, .-child_handler
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Word expansion failed.\012\011Note that only simple"
	.ascii	" commands plus arguments are supported\012\011(no p"
	.ascii	"ipelines, I/O redirection, and so on)\012\000"
	.align	2
.LC4:
	.ascii	"calloc\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	expand_words, %function
expand_words:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	wordexp
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r2, #128
	mov	r1, #1
	ldr	r0, .L19+8
	bl	fwrite
	mov	r3, #0
	b	.L17
.L12:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L19+12
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L15
.L16:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L15:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bhi	.L16
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC5
	.word	stderr
	.word	.LC3
	.word	.LC4
	.size	expand_words, .-expand_words
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Usage: %s [-v] [-p proc-mount]\012\000"
	.align	2
.LC7:
	.ascii	"\011-v              Provide verbose logging\012\000"
	.align	2
.LC8:
	.ascii	"\011-p proc-mount   Mount a procfs at specified pat"
	.ascii	"h\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L22+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L22+8
	bl	fwrite
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r2, #50
	mov	r1, #1
	ldr	r0, .L22+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L23:
	.align	2
.L22:
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC9:
	.ascii	"p:v\000"
	.align	2
.LC10:
	.ascii	"sigaction\000"
	.align	2
.LC11:
	.ascii	"\011init: my PID is %ld\012\000"
	.align	2
.LC12:
	.ascii	"setpgid\000"
	.align	2
.LC13:
	.ascii	"tcsetpgrp-child\000"
	.align	2
.LC14:
	.ascii	"Making %s a private mount\012\000"
	.align	2
.LC15:
	.ascii	"none\000"
	.align	2
.LC16:
	.ascii	"mount-make-slave-/\000"
	.align	2
.LC17:
	.ascii	"Mounting procfs at %s\012\000"
	.align	2
.LC18:
	.ascii	"proc\000"
	.align	2
.LC19:
	.ascii	"mount-procfs\000"
	.align	2
.LC20:
	.ascii	"init$ \000"
	.align	2
.LC21:
	.ascii	"\011init: exiting\000"
	.align	2
.LC22:
	.ascii	"fork\000"
	.align	2
.LC23:
	.ascii	"execvp\000"
	.align	2
.LC24:
	.ascii	"\011init: created child %ld\012\000"
	.align	2
.LC25:
	.ascii	"tcsetpgrp-parent\000"
	.align	2
.LC26:
	.ascii	"Unmounting procfs at %s\012\000"
	.align	2
.LC27:
	.ascii	"umount-procfs\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 10168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #10176
	sub	sp, sp, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-1972]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-1976]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1968]
	b	.L25
.L29:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1964]
	cmp	r3, #112
	beq	.L26
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1964]
	cmp	r3, #118
	beq	.L27
	b	.L54
.L26:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L56+4
	ldr	r3, [r3]
	str	r3, [r2, #-1968]
	b	.L25
.L27:
	ldr	r3, .L56+8
	mov	r2, #1
	str	r2, [r3]
	b	.L25
.L54:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1976]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L25:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, .L56+12
	ldr	r1, [r1, #-1976]
	ldr	r0, [r3, #-1972]
	bl	getopt
	str	r0, [r4, #-1964]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1964]
	cmn	r3, #1
	bne	.L29
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #268435457
	str	r3, [r2, #-1820]
	sub	r3, fp, #10112
	sub	r3, r3, #12
	sub	r3, r3, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L56+16
	str	r3, [r2, #-1952]
	sub	r3, fp, #10112
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L56+20
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, .L56+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L31
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L56+24
	bl	printf
.L31:
	mov	r1, #1
	mov	r0, #22
	bl	signal
	mov	r1, #0
	mov	r0, #0
	bl	setpgid
	mov	r3, r0
	cmn	r3, #1
	bne	.L32
	ldr	r0, .L56+28
	bl	perror
	mov	r0, #1
	bl	exit
.L32:
	bl	getpgrp
	mov	r3, r0
	mov	r1, r3
	mov	r0, #0
	bl	tcsetpgrp
	mov	r3, r0
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L56+32
	bl	perror
	mov	r0, #1
	bl	exit
.L33:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1968]
	cmp	r3, #0
	beq	.L50
	ldr	r3, .L56+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L35
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-1968]
	ldr	r0, .L56+36
	bl	printf
.L35:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #524288
	mov	r2, #0
	ldr	r1, [r1, #-1968]
	ldr	r0, .L56+40
	bl	mount
	mov	r3, r0
	cmn	r3, #1
	bne	.L36
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	beq	.L36
	ldr	r0, .L56+44
	bl	perror
.L36:
	ldr	r3, .L56+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L37
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-1968]
	ldr	r0, .L56+48
	bl	printf
.L37:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L56+52
	ldr	r1, [r1, #-1968]
	ldr	r0, .L56+52
	bl	mount
	mov	r3, r0
	cmn	r3, #1
	bne	.L50
	ldr	r0, .L56+56
	bl	perror
	mov	r0, #1
	bl	exit
.L50:
	ldr	r0, .L56+60
	bl	printf
	ldr	r3, .L56+64
	ldr	r2, [r3]
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L56+68
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L56+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L39
	ldr	r0, .L56+72
	bl	printf
.L39:
	mov	r0, #10
	bl	putchar
	b	.L40
.L38:
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-1812]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L41
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1812]
.L41:
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L55
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4, #-1960]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1960]
	cmn	r3, #1
	bne	.L44
	ldr	r0, .L56+76
	bl	perror
	b	.L40
.L44:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1960]
	cmp	r3, #0
	bne	.L45
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	expand_words
	str	r0, [r4, #-1956]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1956]
	cmp	r3, #0
	bne	.L46
	mov	r0, #1
	bl	exit
.L46:
	mov	r1, #0
	mov	r0, #0
	bl	setpgid
	mov	r3, r0
	cmn	r3, #1
	bne	.L47
	ldr	r0, .L56+28
	bl	perror
	mov	r0, #1
	bl	exit
.L47:
	bl	getpgrp
	mov	r3, r0
	mov	r1, r3
	mov	r0, #0
	bl	tcsetpgrp
	mov	r3, r0
	cmn	r3, #1
	bne	.L48
	ldr	r0, .L56+32
	bl	perror
	mov	r0, #1
	bl	exit
.L48:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1956]
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r1, [r2, #-1956]
	mov	r0, r3
	bl	execvp
	ldr	r0, .L56+80
	bl	perror
	mov	r0, #1
	bl	exit
.L45:
	ldr	r3, .L56+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L49
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-1960]
	ldr	r0, .L56+84
	bl	printf
.L49:
	bl	pause
	bl	getpgrp
	mov	r3, r0
	mov	r1, r3
	mov	r0, #0
	bl	tcsetpgrp
	mov	r3, r0
	cmn	r3, #1
	bne	.L50
	ldr	r0, .L56+88
	bl	perror
	mov	r0, #1
	bl	exit
.L55:
	nop
	b	.L50
.L40:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-1968]
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L56+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L52
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-1968]
	ldr	r0, .L56+92
	bl	printf
.L52:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-1968]
	bl	umount
	mov	r3, r0
	cmn	r3, #1
	bne	.L51
	ldr	r0, .L56+96
	bl	perror
	mov	r0, #1
	bl	exit
.L51:
	mov	r0, #0
	bl	exit
.L57:
	.align	2
.L56:
	.word	.LC28
	.word	optarg
	.word	verbose
	.word	.LC9
	.word	child_handler
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	stdin
	.word	10000
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
