	.file	"644971.c"
	.intel_syntax noprefix
	.text
	.globl	indir
	.type	indir, @function
indir:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	cmp	QWORD PTR -16[rbp], rax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	indir, .-indir
	.section	.rodata
.LC0:
	.string	"out of memory"
.LC1:
	.string	"name="
.LC2:
	.string	","
	.text
	.globl	mountedby
	.type	mountedby, @function
mountedby:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	jne	.L4
	lea	rsi, .LC0[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L4:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L5
.L7:
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strstr@PLT
	cmp	QWORD PTR -16[rbp], rax
	jne	.L5
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 5[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR -28[rbp], eax
	jmp	.L6
.L5:
	lea	rax, -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L7
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mountedby, .-mountedby
	.section	.rodata
.LC3:
	.string	"usage: 9umount mountpt...\n"
.LC4:
	.string	"who are you? getpwuid failed"
.LC5:
	.string	"r"
.LC6:
	.string	"/proc/mounts"
.LC7:
	.string	"couldn't open /proc/mounts"
.LC8:
	.string	"9p"
	.align 8
.LC9:
	.string	"%s: refusing to unmount non-9p fs"
.LC10:
	.string	"%s: not mounted by you"
.LC11:
	.string	"umount %s"
.LC12:
	.string	"%s not found in /proc/mounts"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	DWORD PTR -4148[rbp], edi
	mov	QWORD PTR -4160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -4148[rbp], 1
	jg	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L12
.L11:
	call	getuid@PLT
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR -4136[rbp], rax
	cmp	QWORD PTR -4136[rbp], 0
	jne	.L13
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L13:
	mov	DWORD PTR -4144[rbp], 0
	jmp	.L14
.L22:
	mov	rax, QWORD PTR -4160[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realpath@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	setmntent@PLT
	mov	QWORD PTR -4128[rbp], rax
	cmp	QWORD PTR -4128[rbp], 0
	jne	.L16
	lea	rsi, .LC7[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L21:
	mov	rax, QWORD PTR -4120[rbp]
	mov	rdx, QWORD PTR 8[rax]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -4120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	indir
	mov	DWORD PTR -4140[rbp], eax
	cmp	DWORD PTR -4140[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR -4120[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L17
	lea	rax, -4112[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	warn@PLT
	mov	DWORD PTR -4144[rbp], 1
	jmp	.L18
.L17:
	cmp	DWORD PTR -4140[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR -4136[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -4120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	mountedby
	test	eax, eax
	jne	.L19
	lea	rax, -4112[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	warn@PLT
	mov	DWORD PTR -4144[rbp], 1
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -4120[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	umount@PLT
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR -4120[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	warn@PLT
	mov	DWORD PTR -4144[rbp], 1
	jmp	.L24
.L18:
	jmp	.L24
.L16:
	mov	rax, QWORD PTR -4128[rbp]
	mov	rdi, rax
	call	getmntent@PLT
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 0
	jne	.L21
	lea	rax, -4112[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	warn@PLT
	mov	DWORD PTR -4144[rbp], 1
	jmp	.L20
.L24:
	nop
.L20:
	mov	rax, QWORD PTR -4128[rbp]
	mov	rdi, rax
	call	endmntent@PLT
.L14:
	add	QWORD PTR -4160[rbp], 8
	mov	rax, QWORD PTR -4160[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L22
	mov	eax, DWORD PTR -4144[rbp]
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"644971.c"
	.text
	.align	2
	.global	indir
	.syntax unified
	.arm
	.fpu softvfp
	.type	indir, %function
indir:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	strstr
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	indir, .-indir
	.section	.rodata
	.align	2
.LC0:
	.ascii	"out of memory\000"
	.align	2
.LC1:
	.ascii	"name=\000"
	.align	2
.LC2:
	.ascii	",\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mountedby
	.syntax unified
	.arm
	.fpu softvfp
	.type	mountedby, %function
mountedby:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L4
	ldr	r1, .L10+4
	mov	r0, #1
	bl	errx
.L4:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L5
.L7:
	ldr	r1, .L10+8
	ldr	r0, [fp, #-12]
	bl	strstr
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	bne	.L5
	ldr	r3, [fp, #-12]
	add	r3, r3, #5
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
	b	.L6
.L5:
	sub	r3, fp, #20
	ldr	r1, .L10+12
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
.L6:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	mountedby, .-mountedby
	.section	.rodata
	.align	2
.LC4:
	.ascii	"usage: 9umount mountpt...\012\000"
	.align	2
.LC5:
	.ascii	"who are you? getpwuid failed\000"
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"/proc/mounts\000"
	.align	2
.LC8:
	.ascii	"couldn't open /proc/mounts\000"
	.align	2
.LC9:
	.ascii	"9p\000"
	.align	2
.LC10:
	.ascii	"%s: refusing to unmount non-9p fs\000"
	.align	2
.LC11:
	.ascii	"%s: not mounted by you\000"
	.align	2
.LC12:
	.ascii	"umount %s\000"
	.align	2
.LC13:
	.ascii	"%s not found in /proc/mounts\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #36
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-32]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #1
	bgt	.L13
	ldr	r3, .L27+4
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L27+8
	bl	fwrite
	mov	r3, #1
	b	.L14
.L13:
	bl	getuid
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	getpwuid
	str	r0, [r4, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	bne	.L15
	ldr	r1, .L27+12
	mov	r0, #1
	bl	err
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	b	.L16
.L24:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	realpath
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L27+16
	ldr	r0, .L27+20
	bl	setmntent
	str	r0, [r4, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L18
	ldr	r1, .L27+24
	mov	r0, #1
	bl	err
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	ldr	r2, [r3, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	ldr	r3, [r3, #20]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-12]
	bl	indir
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	ldr	r3, [r3, #8]
	ldr	r1, .L27+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L27+32
	bl	warn
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-24]
	b	.L20
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L21
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-12]
	bl	mountedby
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L27+36
	bl	warn
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-24]
	b	.L20
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	umount
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L27+40
	bl	warn
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-24]
	b	.L26
.L20:
	b	.L26
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	getmntent
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bne	.L23
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L27+44
	bl	warn
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-24]
	b	.L22
.L26:
	nop
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	endmntent
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	add	r3, r3, #4
	str	r3, [r2, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
.L14:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC14
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
