	.file	"86074371.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"./killall"
	.align 8
.LC1:
	.string	"Nie podano argumentu z nazwa procesu"
.LC2:
	.string	"/proc"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	DWORD PTR -4164[rbp], edi
	mov	QWORD PTR -4176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4156[rbp], 0
	mov	rax, QWORD PTR -4176[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	DWORD PTR -4156[rbp], 1
.L2:
	cmp	DWORD PTR -4164[rbp], 1
	jg	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L4
.L3:
	lea	rdi, .LC2[rip]
	call	opendir@PLT
	mov	QWORD PTR -4144[rbp], rax
	cmp	QWORD PTR -4144[rbp], 0
	je	.L5
	jmp	.L6
.L9:
	lea	rax, -4112[rbp]
	mov	DWORD PTR [rax], 1869770799
	mov	WORD PTR 4[rax], 12131
	mov	BYTE PTR 6[rax], 0
	mov	rax, QWORD PTR -4136[rbp]
	lea	rdx, 19[rax]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -4112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -4112[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1836016431
	mov	WORD PTR 4[rax], 109
	lea	rax, -4112[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4152[rbp], eax
	cmp	DWORD PTR -4152[rbp], 0
	je	.L6
	lea	rcx, -4128[rbp]
	mov	eax, DWORD PTR -4152[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4148[rbp], eax
	cmp	DWORD PTR -4148[rbp], -1
	je	.L7
	mov	eax, DWORD PTR -4148[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -4128[rbp+rax], 0
	cmp	DWORD PTR -4156[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -4136[rbp]
	add	rax, 19
	mov	rdi, rax
	call	atoi@PLT
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -4176[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -4128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	rax, QWORD PTR -4136[rbp]
	add	rax, 19
	mov	rdi, rax
	call	puts@PLT
.L7:
	mov	eax, DWORD PTR -4152[rbp]
	mov	edi, eax
	call	close@PLT
.L6:
	mov	rax, QWORD PTR -4144[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -4136[rbp], rax
	cmp	QWORD PTR -4136[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -4144[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L5:
	mov	eax, 0
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"86074371.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"./killall\000"
	.align	2
.LC1:
	.ascii	"Nie podano argumentu z nazwa procesu\000"
	.align	2
.LC2:
	.ascii	"/proc\000"
	.align	2
.LC3:
	.ascii	"/proc/\000"
	.align	2
.LC4:
	.ascii	"/comm\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #52
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-44]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-48]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	ldr	r3, [r3]
	ldr	r1, .L11+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-40]
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #1
	bgt	.L3
	ldr	r0, .L11+8
	bl	puts
	mov	r3, #1
	b	.L4
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L11+12
	bl	opendir
	str	r0, [r4, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmp	r3, #0
	beq	.L5
	b	.L6
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L11+16
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strh	r1, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r1, #16
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	add	r2, r3, #11
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L11+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [r4, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	beq	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #15
	mov	r1, r3
	ldr	r0, [r0, #-28]
	bl	read
	str	r0, [r4, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmn	r3, #1
	beq	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	add	r3, r3, #11
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r1, #2
	mov	r0, r3
	bl	kill
	b	.L7
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	add	r3, r3, #11
	mov	r0, r3
	bl	puts
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	close
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	readdir
	str	r0, [r4, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	closedir
.L5:
	mov	r3, #0
.L4:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
