	.file	"567198.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: <user-name>"
.LC1:
	.string	"getpwnam failed"
.LC2:
	.string	"/proc"
.LC3:
	.string	"opendir failed"
.LC4:
	.string	"print_proc failed"
	.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, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -308[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -296[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -296[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -300[rbp], eax
	lea	rdi, .LC2[rip]
	call	opendir@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -280[rbp]
	movzx	eax, BYTE PTR 18[rax]
	cmp	al, 4
	je	.L6
	jmp	.L5
.L6:
	lea	rax, -272[rbp]
	mov	DWORD PTR [rax], 1869770799
	mov	WORD PTR 4[rax], 12131
	mov	BYTE PTR 6[rax], 0
	mov	rax, QWORD PTR -280[rbp]
	lea	rdx, 19[rax]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	mov	edx, DWORD PTR -300[rbp]
	lea	rax, -272[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print_proc
	test	eax, eax
	jns	.L5
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L7
	mov	eax, 0
	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
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"%u"
.LC6:
	.string	"r"
.LC7:
	.string	":"
.LC8:
	.string	"Uid"
.LC9:
	.string	"Name"
.LC10:
	.string	"Pid"
.LC11:
	.string	"%s: %s\n"
	.text
	.globl	print_proc
	.type	print_proc, @function
print_proc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -16384[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 320
	mov	QWORD PTR -16696[rbp], rdi
	mov	DWORD PTR -16700[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16684[rbp], 0
	mov	edx, DWORD PTR -16700[rbp]
	lea	rax, -4112[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rdx, QWORD PTR -16696[rbp]
	lea	rax, -16656[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -16656[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -16656[rbp]
	add	rax, rdx
	movabs	rcx, 32498765033403183
	mov	QWORD PTR [rax], rcx
	lea	rax, -16656[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16672[rbp], rax
	cmp	QWORD PTR -16672[rbp], 0
	jne	.L13
	mov	eax, 0
	jmp	.L20
.L18:
	lea	rax, -12304[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -16664[rbp], rax
	lea	rsi, .LC7[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -16680[rbp], rax
	cmp	QWORD PTR -16664[rbp], 0
	je	.L13
	cmp	QWORD PTR -16680[rbp], 0
	je	.L13
	jmp	.L14
.L15:
	add	QWORD PTR -16680[rbp], 1
.L14:
	mov	rax, QWORD PTR -16680[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L15
	mov	rax, QWORD PTR -16680[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	je	.L15
	mov	rax, QWORD PTR -16664[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
	lea	rdx, -4112[rbp]
	mov	rax, QWORD PTR -16680[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L16
	mov	DWORD PTR -16684[rbp], 1
.L16:
	mov	rax, QWORD PTR -16664[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	mov	rdx, QWORD PTR -16680[rbp]
	lea	rax, -16400[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L17:
	mov	rax, QWORD PTR -16664[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L13
	mov	rdx, QWORD PTR -16680[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L13:
	mov	rdx, QWORD PTR -16672[rbp]
	lea	rax, -12304[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L18
	cmp	DWORD PTR -16684[rbp], 0
	je	.L19
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -8208[rbp+rax], 0
	lea	rax, -16400[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -16400[rbp+rax], 0
	lea	rdx, -16400[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	mov	rax, QWORD PTR -16672[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L20:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_proc, .-print_proc
	.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	"567198.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: <user-name>\000"
	.align	2
.LC1:
	.ascii	"getpwnam failed\000"
	.align	2
.LC2:
	.ascii	"/proc\000"
	.align	2
.LC3:
	.ascii	"opendir failed\000"
	.align	2
.LC4:
	.ascii	"/proc/\000"
	.align	2
.LC5:
	.ascii	"print_proc failed\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	str	r0, [fp, #-288]
	str	r1, [fp, #-292]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-288]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L10+4
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-292]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	getpwnam
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L10+8
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-280]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-276]
	ldr	r0, .L10+12
	bl	opendir
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L10+16
	bl	puts
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-268]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	cmp	r3, #4
	beq	.L6
	b	.L5
.L6:
	sub	r3, fp, #264
	ldr	r2, .L10+20
	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]
	ldr	r3, [fp, #-268]
	add	r2, r3, #11
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #264
	ldr	r1, [fp, #-276]
	mov	r0, r3
	bl	print_proc
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L10+24
	bl	puts
	mov	r0, #1
	bl	exit
.L5:
	ldr	r0, [fp, #-272]
	bl	readdir
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L7
	mov	r3, #0
	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	.LC6
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%u\000"
	.align	2
.LC8:
	.ascii	"/status\000"
	.align	2
.LC9:
	.ascii	"r\000"
	.align	2
.LC10:
	.ascii	":\000"
	.align	2
.LC11:
	.ascii	"Uid\000"
	.align	2
.LC12:
	.ascii	"Name\000"
	.align	2
.LC13:
	.ascii	"Pid\000"
	.align	2
.LC14:
	.ascii	"%s: %s\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	print_proc
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_proc, %function
print_proc:
	@ args = 0, pretend = 0, frame = 16672
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16640
	sub	sp, sp, #36
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r0, [r3, #-284]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r1, [r3, #-288]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-272]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-288]
	ldr	r1, .L24+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-284]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L24+8
	mov	r0, r3
	mov	r1, r2
	mov	r3, #8
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L24+12
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-268]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-268]
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
	b	.L22
.L20:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L24+16
	mov	r0, r3
	bl	strtok
	str	r0, [r4, #-264]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L24+16
	mov	r0, #0
	bl	strtok
	str	r0, [r4, #-276]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-272]
	str	r3, [r2, #-272]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-264]
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-272]
	str	r3, [r2, #-272]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	cmp	r3, #0
	beq	.L15
	b	.L16
.L17:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	add	r3, r3, #1
	str	r3, [r2, #-276]
.L16:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L17
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	beq	.L17
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r1, .L24+20
	ldr	r0, [r3, #-264]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-276]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-272]
.L18:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r1, .L24+24
	ldr	r0, [r3, #-264]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-276]
	mov	r0, r3
	bl	strcpy
.L19:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r1, .L24+28
	ldr	r0, [r3, #-264]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-276]
	mov	r0, r3
	bl	strcpy
.L15:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-268]
	mov	r1, #4096
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-272]
	cmp	r3, #0
	beq	.L21
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	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, #-4]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #16384
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-4]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L24+32
	bl	printf
.L21:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r0, [r3, #-268]
	bl	fclose
	mov	r3, #0
.L22:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC15
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	print_proc, .-print_proc
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
