	.file	"107954036.c"
	.intel_syntax noprefix
	.text
	.globl	head
	.bss
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	tail
	.align 8
	.type	tail, @object
	.size	tail, 8
tail:
	.zero	8
	.globl	search_pid
	.data
	.align 4
	.type	search_pid, @object
	.size	search_pid, 4
search_pid:
	.long	-1
	.globl	search_uid
	.align 4
	.type	search_uid, @object
	.size	search_uid, 4
search_uid:
	.long	-1
	.globl	search_gid
	.align 4
	.type	search_gid, @object
	.size	search_gid, 4
search_gid:
	.long	-1
	.globl	search_cmd
	.bss
	.align 8
	.type	search_cmd, @object
	.size	search_cmd, 8
search_cmd:
	.zero	8
	.globl	ignore_self
	.data
	.align 4
	.type	ignore_self, @object
	.size	ignore_self, 4
ignore_self:
	.long	1
	.section	.rodata
.LC0:
	.string	"/proc"
.LC1:
	.string	"[!] Unable to open /proc"
.LC2:
	.string	"[!] Unknown group name: \"%s\"\n"
	.align 8
.LC3:
	.string	"[!] Unable to get privileges for process id: %s (non-existent or kernel process)\n"
.LC4:
	.string	"[!] Unknown user name: \"%s\"\n"
.LC5:
	.string	"g:p:su:"
.LC6:
	.string	"0123456789"
	.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
	lea	r11, -270336[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 144
	mov	DWORD PTR -270468[rbp], edi
	mov	QWORD PTR -270480[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	opendir@PLT
	mov	QWORD PTR -270432[rbp], rax
	cmp	QWORD PTR -270432[rbp], 0
	jne	.L4
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	perror_str
	mov	eax, 1
	jmp	.L3
.L25:
	mov	QWORD PTR -270448[rbp], 0
	cmp	DWORD PTR -270456[rbp], 117
	je	.L5
	cmp	DWORD PTR -270456[rbp], 117
	jg	.L6
	cmp	DWORD PTR -270456[rbp], 115
	je	.L7
	cmp	DWORD PTR -270456[rbp], 115
	jg	.L6
	cmp	DWORD PTR -270456[rbp], 103
	je	.L8
	cmp	DWORD PTR -270456[rbp], 112
	je	.L9
	jmp	.L6
.L8:
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -270448[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -270452[rbp], eax
	mov	rax, QWORD PTR -270448[rbp]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -270448[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L11
.L10:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	getgrnam@PLT
	mov	QWORD PTR -270408[rbp], rax
	cmp	QWORD PTR -270408[rbp], 0
	jne	.L12
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L3
.L12:
	mov	rax, QWORD PTR -270408[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR search_gid[rip], eax
	nop
	jmp	.L4
.L11:
	mov	eax, DWORD PTR -270452[rbp]
	mov	DWORD PTR search_gid[rip], eax
	jmp	.L4
.L9:
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -270448[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -270452[rbp], eax
	mov	rax, QWORD PTR -270448[rbp]
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -270448[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L17
.L16:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR search_cmd[rip], rax
	jmp	.L4
.L17:
	lea	rax, -270400[rbp]
	mov	edx, 270384
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR optarg[rip]
	lea	rax, -270400[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_process_info
	test	eax, eax
	je	.L18
	lea	rax, -270400[rbp]
	mov	rdi, rax
	call	show_process_info
	mov	eax, 0
	jmp	.L3
.L18:
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L3
.L5:
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -270448[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -270452[rbp], eax
	mov	rax, QWORD PTR -270448[rbp]
	test	rax, rax
	je	.L21
	mov	rax, QWORD PTR -270448[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L22
.L21:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -270416[rbp], rax
	cmp	QWORD PTR -270416[rbp], 0
	jne	.L23
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L3
.L23:
	mov	rax, QWORD PTR -270416[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR search_uid[rip], eax
	nop
	jmp	.L4
.L22:
	mov	eax, DWORD PTR -270452[rbp]
	mov	DWORD PTR search_uid[rip], eax
	jmp	.L4
.L7:
	mov	eax, DWORD PTR ignore_self[rip]
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR ignore_self[rip], eax
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -270480[rbp]
	mov	rdi, rax
	call	usage
	mov	eax, 1
	jmp	.L3
.L4:
	mov	rcx, QWORD PTR -270480[rbp]
	mov	eax, DWORD PTR -270468[rbp]
	lea	rdx, .LC5[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -270456[rbp], eax
	cmp	DWORD PTR -270456[rbp], -1
	jne	.L25
	jmp	.L26
.L29:
	lea	rax, -270400[rbp]
	mov	edx, 270384
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -270424[rbp]
	add	rax, 19
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strtok@PLT
	test	rax, rax
	je	.L27
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -270424[rbp]
	add	rax, 19
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -270400[rbp], eax
	mov	rax, QWORD PTR -270424[rbp]
	lea	rdx, 19[rax]
	lea	rax, -270400[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_process_info
	test	eax, eax
	je	.L26
	lea	rax, -270400[rbp]
	mov	rdi, rax
	call	add_process
.L26:
	mov	rax, QWORD PTR -270432[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -270424[rbp], rax
	cmp	QWORD PTR -270424[rbp], 0
	jne	.L29
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -270440[rbp], rax
	jmp	.L30
.L32:
	mov	rax, QWORD PTR -270440[rbp]
	mov	rdi, rax
	call	process_matches
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR -270440[rbp]
	mov	rdi, rax
	call	show_process_info
.L31:
	mov	rax, QWORD PTR -270440[rbp]
	mov	rax, QWORD PTR 270376[rax]
	mov	QWORD PTR -270440[rbp], rax
.L30:
	cmp	QWORD PTR -270440[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -270432[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	eax, 0
.L3:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	perror_str
	.type	perror_str, @function
perror_str:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L35
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L35:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -216[rbp], 0
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -232[rbp]
	lea	rax, -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	vasprintf@PLT
	cmp	eax, -1
	jne	.L36
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L34
.L36:
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	free@PLT
.L34:
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	perror_str, .-perror_str
	.globl	my_stpcpy
	.type	my_stpcpy, @function
my_stpcpy:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L40
.L41:
	mov	rdx, QWORD PTR -8[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -16[rbp], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L40:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L41
	mov	rax, QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	my_stpcpy, .-my_stpcpy
	.section	.rodata
	.align 8
.LC7:
	.string	"[!] name too long \"/proc/%s/%s\"\n"
.LC8:
	.string	"/proc/"
.LC9:
	.string	"r"
	.text
	.globl	open_proc_entry
	.type	open_proc_entry, @function
open_proc_entry:
.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, 64
	mov	DWORD PTR -4132[rbp], edi
	mov	QWORD PTR -4144[rbp], rsi
	mov	QWORD PTR -4152[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -4112[rbp], 0
	mov	QWORD PTR -4104[rbp], 0
	lea	rdx, -4096[rbp]
	mov	eax, 0
	mov	ecx, 510
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	mov	rax, QWORD PTR -4152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -4128[rbp], rax
	mov	rax, QWORD PTR -4144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -4128[rbp]
	add	rax, rdx
	add	rax, 8
	cmp	rax, 4095
	jbe	.L44
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -4152[rbp]
	mov	rdx, QWORD PTR -4144[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L46
.L44:
	lea	rax, -4112[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	my_stpcpy
	mov	QWORD PTR -4120[rbp], rax
	mov	rdx, QWORD PTR -4144[rbp]
	mov	rax, QWORD PTR -4120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	my_stpcpy
	mov	QWORD PTR -4120[rbp], rax
	mov	rax, QWORD PTR -4120[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -4120[rbp], rdx
	mov	BYTE PTR [rax], 47
	mov	rdx, QWORD PTR -4152[rbp]
	mov	rax, QWORD PTR -4120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -4112[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
.L46:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	open_proc_entry, .-open_proc_entry
	.section	.rodata
.LC10:
	.string	"?"
	.text
	.globl	get_user_name
	.type	get_user_name, @function
get_user_name:
.LFB10:
	.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	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	getpwuid@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L49
	lea	rax, .LC10[rip]
	jmp	.L50
.L49:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_user_name, .-get_user_name
	.globl	get_group_name
	.type	get_group_name, @function
get_group_name:
.LFB11:
	.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	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	getgrgid@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L52
	lea	rax, .LC10[rip]
	jmp	.L53
.L52:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_group_name, .-get_group_name
	.section	.rodata
.LC11:
	.string	"cmdline"
	.text
	.globl	get_process_info
	.type	get_process_info, @function
get_process_info:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	eax, DWORD PTR ignore_self[rip]
	test	eax, eax
	je	.L55
	mov	rax, QWORD PTR -56[rbp]
	mov	ebx, DWORD PTR [rax]
	call	getpid@PLT
	cmp	ebx, eax
	jne	.L55
	mov	eax, 0
	jmp	.L56
.L55:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -64[rbp]
	lea	rdx, .LC11[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	open_proc_entry
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L57
	mov	rax, QWORD PTR -56[rbp]
	lea	rdi, 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	edx, 8191
	mov	esi, 1
	call	fread@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L58
	mov	QWORD PTR -40[rbp], 0
	jmp	.L59
.L61:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L60
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	add	rax, 4
	mov	BYTE PTR [rax], 32
.L60:
	add	QWORD PTR -40[rbp], 1
.L59:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jb	.L61
.L58:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	jne	.L63
	jmp	.L64
.L57:
	mov	eax, 0
	jmp	.L56
.L64:
	mov	eax, 0
	jmp	.L56
.L63:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_privileges
.L56:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	get_process_info, .-get_process_info
	.section	.rodata
.LC12:
	.string	"[*] pid: %d, cmd: %s\n"
.LC13:
	.string	"uid"
	.align 8
.LC14:
	.string	"%11s: %d(%s), %d(%s), %d(%s), %d(%s)\n"
.LC15:
	.string	"gid"
.LC16:
	.string	"groups"
.LC17:
	.string	"%11s: "
.LC18:
	.string	"%d(%s)"
.LC19:
	.string	", "
	.text
	.globl	show_process_info
	.type	show_process_info, @function
show_process_info:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8208[rax]
	mov	edi, eax
	call	get_user_name
	mov	r12, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	r14d, DWORD PTR 8208[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8204[rax]
	mov	edi, eax
	call	get_user_name
	mov	rbx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	r13d, DWORD PTR 8204[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8200[rax]
	mov	edi, eax
	call	get_user_name
	mov	r15, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8200[rax]
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8196[rax]
	mov	edi, eax
	call	get_user_name
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8196[rax]
	push	r12
	push	r14
	push	rbx
	push	r13
	mov	r9, r15
	mov	r8d, DWORD PTR -76[rbp]
	mov	rcx, rdx
	mov	edx, eax
	lea	rsi, .LC13[rip]
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8224[rax]
	mov	edi, eax
	call	get_group_name
	mov	r12, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	r14d, DWORD PTR 8224[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8220[rax]
	mov	edi, eax
	call	get_group_name
	mov	rbx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	r13d, DWORD PTR 8220[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8216[rax]
	mov	edi, eax
	call	get_group_name
	mov	r15, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8216[rax]
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8212[rax]
	mov	edi, eax
	call	get_group_name
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8212[rax]
	push	r12
	push	r14
	push	rbx
	push	r13
	mov	r9, r15
	mov	r8d, DWORD PTR -76[rbp]
	mov	rcx, rdx
	mov	edx, eax
	lea	rsi, .LC15[rip]
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8228[rax]
	test	eax, eax
	jle	.L66
	lea	rsi, .LC16[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L67
.L69:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	add	rdx, 2056
	mov	eax, DWORD PTR 8[rax+rdx*4]
	mov	edi, eax
	call	get_group_name
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR -52[rbp]
	movsx	rcx, ecx
	add	rcx, 2056
	mov	eax, DWORD PTR 8[rax+rcx*4]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8228[rax]
	sub	eax, 1
	cmp	DWORD PTR -52[rbp], eax
	je	.L68
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L68:
	add	DWORD PTR -52[rbp], 1
.L67:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 8228[rax]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L69
	mov	edi, 10
	call	putchar@PLT
.L66:
	mov	edi, 10
	call	putchar@PLT
	nop
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	show_process_info, .-show_process_info
	.section	.rodata
.LC20:
	.string	"status"
	.align 8
.LC21:
	.string	"[!] Unable to open status for pid: %s\n"
.LC22:
	.string	"Uid:\t"
.LC23:
	.string	"Uid:\t%d\t%d\t%d\t%d\n"
.LC24:
	.string	"Gid:\t"
.LC25:
	.string	"Gid:\t%d\t%d\t%d\t%d\n"
.LC26:
	.string	"Groups:\t"
.LC27:
	.string	" \t"
	.align 8
.LC28:
	.string	"[!] Too many groups for pid: %s\n"
	.text
	.globl	get_privileges
	.type	get_privileges, @function
get_privileges:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1104
	mov	QWORD PTR -1096[rbp], rdi
	mov	QWORD PTR -1104[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -1096[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -1104[rbp]
	lea	rdx, .LC20[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	open_proc_entry
	mov	QWORD PTR -1072[rbp], rax
	cmp	QWORD PTR -1072[rbp], 0
	jne	.L73
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1104[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L84
.L83:
	lea	rax, -1040[rbp]
	mov	edx, 5
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L74
	lea	rax, -1056[rbp]
	lea	rdi, 12[rax]
	lea	rax, -1056[rbp]
	lea	rsi, 8[rax]
	lea	rax, -1056[rbp]
	lea	rcx, 4[rax]
	lea	rdx, -1056[rbp]
	lea	rax, -1040[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 4
	jne	.L73
	mov	rcx, QWORD PTR -1096[rbp]
	mov	rax, QWORD PTR -1056[rbp]
	mov	rdx, QWORD PTR -1048[rbp]
	mov	QWORD PTR 8196[rcx], rax
	mov	QWORD PTR 8204[rcx], rdx
	jmp	.L73
.L74:
	lea	rax, -1040[rbp]
	mov	edx, 5
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L76
	lea	rax, -1056[rbp]
	lea	rdi, 12[rax]
	lea	rax, -1056[rbp]
	lea	rsi, 8[rax]
	lea	rax, -1056[rbp]
	lea	rcx, 4[rax]
	lea	rdx, -1056[rbp]
	lea	rax, -1040[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 4
	jne	.L73
	mov	rcx, QWORD PTR -1096[rbp]
	mov	rax, QWORD PTR -1056[rbp]
	mov	rdx, QWORD PTR -1048[rbp]
	mov	QWORD PTR 8212[rcx], rax
	mov	QWORD PTR 8220[rcx], rdx
	jmp	.L73
.L76:
	lea	rax, -1040[rbp]
	mov	edx, 8
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L73
	lea	rax, -1040[rbp]
	add	rax, 8
	mov	QWORD PTR -1064[rbp], rax
	mov	rax, QWORD PTR -1064[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L73
	mov	rax, QWORD PTR -1064[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L79
	jmp	.L73
.L79:
	mov	rax, QWORD PTR -1064[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -1080[rbp], rax
	jmp	.L80
.L82:
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -1084[rbp], eax
	mov	rax, QWORD PTR -1096[rbp]
	mov	eax, DWORD PTR 8228[rax]
	cmp	eax, 65535
	jle	.L81
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1104[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L84
.L81:
	mov	rax, QWORD PTR -1096[rbp]
	mov	eax, DWORD PTR 8228[rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -1096[rbp]
	mov	DWORD PTR 8228[rdx], ecx
	mov	rdx, QWORD PTR -1096[rbp]
	cdqe
	lea	rcx, 2056[rax]
	mov	eax, DWORD PTR -1084[rbp]
	mov	DWORD PTR 8[rdx+rcx*4], eax
	lea	rsi, .LC27[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -1080[rbp], rax
.L80:
	cmp	QWORD PTR -1080[rbp], 0
	je	.L73
	mov	rax, QWORD PTR -1080[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L73
	mov	rax, QWORD PTR -1080[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L82
.L73:
	mov	rdx, QWORD PTR -1072[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1023
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L83
	mov	rax, QWORD PTR -1072[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
.L84:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L85
	call	__stack_chk_fail@PLT
.L85:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	get_privileges, .-get_privileges
	.section	.rodata
	.align 8
.LC29:
	.string	"[!] Out of memory adding a process!\n"
	.text
	.globl	add_process
	.type	add_process, @function
add_process:
.LFB15:
	.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	QWORD PTR -24[rbp], rdi
	mov	edi, 270384
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L87
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L87:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 270384
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L88
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR head[rip], rax
.L88:
	mov	rax, QWORD PTR tail[rip]
	test	rax, rax
	je	.L89
	mov	rax, QWORD PTR tail[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 270376[rax], rdx
.L89:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR tail[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	add_process, .-add_process
	.globl	process_matches
	.type	process_matches, @function
process_matches:
.LFB16:
	.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	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR search_pid[rip]
	cmp	eax, -1
	jne	.L91
	mov	eax, DWORD PTR search_uid[rip]
	cmp	eax, -1
	jne	.L91
	mov	eax, DWORD PTR search_gid[rip]
	cmp	eax, -1
	jne	.L91
	mov	rax, QWORD PTR search_cmd[rip]
	test	rax, rax
	jne	.L91
	mov	eax, 1
	jmp	.L92
.L91:
	mov	eax, DWORD PTR search_pid[rip]
	cmp	eax, -1
	je	.L93
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR search_pid[rip]
	cmp	edx, eax
	jne	.L93
	mov	eax, 1
	jmp	.L92
.L93:
	mov	eax, DWORD PTR search_uid[rip]
	cmp	eax, -1
	je	.L94
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8196[rax]
	mov	eax, DWORD PTR search_uid[rip]
	cmp	edx, eax
	je	.L95
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8200[rax]
	mov	eax, DWORD PTR search_uid[rip]
	cmp	edx, eax
	je	.L95
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8204[rax]
	mov	eax, DWORD PTR search_uid[rip]
	cmp	edx, eax
	je	.L95
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8208[rax]
	mov	eax, DWORD PTR search_uid[rip]
	cmp	edx, eax
	jne	.L94
.L95:
	mov	eax, 1
	jmp	.L92
.L94:
	mov	eax, DWORD PTR search_gid[rip]
	cmp	eax, -1
	je	.L96
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8212[rax]
	mov	eax, DWORD PTR search_gid[rip]
	cmp	edx, eax
	je	.L97
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8216[rax]
	mov	eax, DWORD PTR search_gid[rip]
	cmp	edx, eax
	je	.L97
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8220[rax]
	mov	eax, DWORD PTR search_gid[rip]
	cmp	edx, eax
	je	.L97
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8224[rax]
	mov	eax, DWORD PTR search_gid[rip]
	cmp	edx, eax
	jne	.L98
.L97:
	mov	eax, 1
	jmp	.L92
.L98:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L99
.L101:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	add	rdx, 2056
	mov	edx, DWORD PTR 8[rax+rdx*4]
	mov	eax, DWORD PTR search_gid[rip]
	cmp	edx, eax
	jne	.L100
	mov	eax, 1
	jmp	.L92
.L100:
	add	DWORD PTR -4[rbp], 1
.L99:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8228[rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L101
.L96:
	mov	rax, QWORD PTR search_cmd[rip]
	test	rax, rax
	je	.L102
	mov	rax, QWORD PTR search_cmd[rip]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	rdi, rdx
	call	strstr@PLT
	test	rax, rax
	je	.L102
	mov	eax, 1
	jmp	.L92
.L102:
	mov	eax, 0
.L92:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	process_matches, .-process_matches
	.section	.rodata
.LC30:
	.string	"privmap"
	.align 8
.LC31:
	.ascii	"usage: %s [opts]\n\nsupported options:\n-g <gi"
	.string	"d> \tshow only processes with the specified group id or name\n-p <pid> \tshow only processes with the specified process id or name\n-u <uid> \tshow only processes with the specified user id or name\n-s \tshow privileges for itself too (defaults to hiding itself)\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB17:
	.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	QWORD PTR -24[rbp], rdi
	lea	rax, .LC30[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L104
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L104
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L104:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	usage, .-usage
	.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	"107954036.c"
	.text
	.global	head
	.bss
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.space	4
	.global	tail
	.align	2
	.type	tail, %object
	.size	tail, 4
tail:
	.space	4
	.global	search_pid
	.data
	.align	2
	.type	search_pid, %object
	.size	search_pid, 4
search_pid:
	.word	-1
	.global	search_uid
	.align	2
	.type	search_uid, %object
	.size	search_uid, 4
search_uid:
	.word	-1
	.global	search_gid
	.align	2
	.type	search_gid, %object
	.size	search_gid, 4
search_gid:
	.word	-1
	.global	search_cmd
	.bss
	.align	2
	.type	search_cmd, %object
	.size	search_cmd, 4
search_cmd:
	.space	4
	.global	ignore_self
	.data
	.align	2
	.type	ignore_self, %object
	.size	ignore_self, 4
ignore_self:
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/proc\000"
	.align	2
.LC1:
	.ascii	"[!] Unable to open /proc\000"
	.align	2
.LC2:
	.ascii	"[!] Unknown group name: \"%s\"\012\000"
	.align	2
.LC3:
	.ascii	"[!] Unable to get privileges for process id: %s (no"
	.ascii	"n-existent or kernel process)\012\000"
	.align	2
.LC4:
	.ascii	"[!] Unknown user name: \"%s\"\012\000"
	.align	2
.LC5:
	.ascii	"g:p:su:\000"
	.align	2
.LC6:
	.ascii	"0123456789\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 270424
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #270336
	sub	sp, sp, #92
	sub	r3, fp, #270336
	sub	r3, r3, #12
	str	r0, [r3, #-84]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	str	r1, [r3, #-88]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #270336
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L35+4
	bl	opendir
	str	r0, [r4, #-72]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-72]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L35+8
	bl	perror_str
	mov	r3, #1
	b	.L3
.L26:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-80]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	sub	r3, r3, #103
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L9
	.word	.L5
	.word	.L5
	.word	.L8
	.word	.L5
	.word	.L6
.L10:
	ldr	r3, .L35+12
	ldr	r0, [r3]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #270336
	sub	r3, r3, #12
	sub	r3, r3, #80
	mov	r2, #0
	mov	r1, r3
	bl	strtol
	str	r0, [r4, #-60]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
.L11:
	ldr	r3, .L35+12
	ldr	r3, [r3]
	sub	r2, fp, #270336
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	getgrnam
	str	r0, [r4, #-52]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L35+16
	ldr	r3, [r3]
	ldr	r2, .L35+12
	ldr	r2, [r2]
	ldr	r1, .L35+20
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L3
.L13:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	ldr	r3, [r3, #8]
	ldr	r2, .L35+24
	str	r3, [r2]
	nop
	b	.L4
.L12:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	ldr	r2, .L35+24
	str	r3, [r2]
	b	.L4
.L9:
	ldr	r3, .L35+12
	ldr	r0, [r3]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #270336
	sub	r3, r3, #12
	sub	r3, r3, #80
	mov	r2, #0
	mov	r1, r3
	bl	strtol
	str	r0, [r4, #-60]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
.L17:
	ldr	r3, .L35+12
	ldr	r3, [r3]
	ldr	r2, .L35+28
	str	r3, [r2]
	b	.L4
.L18:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	sub	r3, r3, #48
	ldr	r2, .L35+32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L35+12
	ldr	r2, [r3]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r1, r2
	mov	r0, r3
	bl	get_process_info
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #270336
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r0, r3
	bl	show_process_info
	mov	r3, #0
	b	.L3
.L19:
	ldr	r3, .L35+16
	ldr	r3, [r3]
	ldr	r2, .L35+12
	ldr	r2, [r2]
	ldr	r1, .L35+36
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L3
.L6:
	ldr	r3, .L35+12
	ldr	r0, [r3]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #270336
	sub	r3, r3, #12
	sub	r3, r3, #80
	mov	r2, #0
	mov	r1, r3
	bl	strtol
	str	r0, [r4, #-60]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	beq	.L22
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L23
.L22:
	ldr	r3, .L35+12
	ldr	r3, [r3]
	sub	r2, fp, #270336
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	getpwnam
	str	r0, [r4, #-56]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L35+16
	ldr	r3, [r3]
	ldr	r2, .L35+12
	ldr	r2, [r2]
	ldr	r1, .L35+40
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L3
.L24:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	ldr	r3, [r3, #8]
	ldr	r2, .L35+44
	str	r3, [r2]
	nop
	b	.L4
.L23:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	ldr	r2, .L35+44
	str	r3, [r2]
	b	.L4
.L8:
	ldr	r3, .L35+48
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L35+48
	str	r2, [r3]
	b	.L4
.L5:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r0, [r3, #-88]
	bl	usage
	mov	r3, #1
	b	.L3
.L4:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #270336
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r2, .L35+52
	ldr	r1, [r1, #-88]
	ldr	r0, [r3, #-84]
	bl	getopt
	str	r0, [r4, #-68]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-68]
	cmn	r3, #1
	bne	.L26
	b	.L27
.L30:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	sub	r3, r3, #48
	ldr	r2, .L35+32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #11
	ldr	r1, .L35+56
	mov	r0, r3
	bl	strtok
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	b	.L27
.L28:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #11
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	sub	r2, fp, #270336
	sub	r2, r2, #12
	str	r3, [r2, #-48]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r2, r3, #11
	sub	r3, fp, #270336
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r1, r2
	mov	r0, r3
	bl	get_process_info
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	sub	r3, fp, #270336
	sub	r3, r3, #12
	sub	r3, r3, #48
	mov	r0, r3
	bl	add_process
.L27:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r0, [r3, #-72]
	bl	readdir
	str	r0, [r4, #-64]
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	cmp	r3, #0
	bne	.L30
	sub	r3, fp, #270336
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L35+60
	ldr	r3, [r3]
	str	r3, [r2, #-76]
	b	.L31
.L33:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r0, [r3, #-76]
	bl	process_matches
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r0, [r3, #-76]
	bl	show_process_info
.L32:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	add	r3, r3, #270336
	ldr	r3, [r3, #40]
	str	r3, [r2, #-76]
.L31:
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r3, [r3, #-76]
	cmp	r3, #0
	bne	.L33
	sub	r3, fp, #270336
	sub	r3, r3, #12
	ldr	r0, [r3, #-72]
	bl	closedir
	mov	r3, #0
.L3:
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	optarg
	.word	stderr
	.word	.LC2
	.word	search_gid
	.word	search_cmd
	.word	270380
	.word	.LC3
	.word	.LC4
	.word	search_uid
	.word	ignore_self
	.word	.LC5
	.word	.LC6
	.word	head
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	perror_str
	.syntax unified
	.arm
	.fpu softvfp
	.type	perror_str, %function
perror_str:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	add	r3, fp, #8
	str	r3, [fp, #-12]
	sub	r3, fp, #16
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	vasprintf
	mov	r3, r0
	cmn	r3, #1
	bne	.L38
	ldr	r0, [fp, #-24]
	bl	perror
	b	.L37
.L38:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	perror
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	free
.L37:
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L42:
	.align	2
.L41:
	.word	.LC8
	.size	perror_str, .-perror_str
	.align	2
	.global	my_stpcpy
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_stpcpy, %function
my_stpcpy:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L44
.L45:
	ldr	r2, [fp, #-8]
	add	r3, r2, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L44:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	my_stpcpy, .-my_stpcpy
	.section	.rodata
	.align	2
.LC9:
	.ascii	"[!] name too long \"/proc/%s/%s\"\012\000"
	.align	2
.LC10:
	.ascii	"/proc/\000"
	.align	2
.LC11:
	.ascii	"r\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	open_proc_entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_proc_entry, %function
open_proc_entry:
	@ 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, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-28]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3, #-8]
	sub	r3, r3, #4
	ldr	r2, .L52+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-28]
	bl	strlen
	str	r0, [r4, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-24]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r2, r3
	add	r3, r3, #8
	cmp	r3, #4096
	bcc	.L48
	ldr	r3, .L52+8
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3, #-28]
	ldr	r2, [r2, #-24]
	ldr	r1, .L52+12
	bl	fprintf
	mov	r3, #0
	b	.L50
.L48:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r1, .L52+16
	mov	r0, r3
	bl	my_stpcpy
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-24]
	ldr	r0, [r3, #-12]
	bl	my_stpcpy
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-12]
	mov	r2, #47
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-28]
	ldr	r0, [r3, #-12]
	bl	strcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r1, .L52+20
	mov	r0, r3
	bl	fopen
	mov	r3, r0
.L50:
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC12
	.word	4093
	.word	stderr
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	open_proc_entry, .-open_proc_entry
	.section	.rodata
	.align	2
.LC13:
	.ascii	"?\000"
	.text
	.align	2
	.global	get_user_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_user_name, %function
get_user_name:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	getpwuid
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L55
	ldr	r3, .L57
	b	.L56
.L55:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC13
	.size	get_user_name, .-get_user_name
	.align	2
	.global	get_group_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_group_name, %function
get_group_name:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	getgrgid
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L60
	ldr	r3, .L62
	b	.L61
.L60:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC13
	.size	get_group_name, .-get_group_name
	.section	.rodata
	.align	2
.LC14:
	.ascii	"cmdline\000"
	.text
	.align	2
	.global	get_process_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_process_info, %function
get_process_info:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L75
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L65
	ldr	r3, [fp, #-32]
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	cmp	r4, r3
	bne	.L65
	mov	r3, #0
	b	.L66
.L65:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, .L75+4
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	open_proc_entry
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-32]
	add	r0, r3, #4
	ldr	r3, [fp, #-20]
	ldr	r2, .L75+8
	mov	r1, #1
	bl	fread
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L68
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L69
.L71:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L70
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #32
	strb	r2, [r3]
.L70:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L69:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L71
.L68:
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L73
	b	.L74
.L67:
	mov	r3, #0
	b	.L66
.L74:
	mov	r3, #0
	b	.L66
.L73:
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	get_privileges
	mov	r3, r0
.L66:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L76:
	.align	2
.L75:
	.word	ignore_self
	.word	.LC14
	.word	8191
	.size	get_process_info, .-get_process_info
	.section	.rodata
	.align	2
.LC15:
	.ascii	"[*] pid: %d, cmd: %s\012\000"
	.align	2
.LC16:
	.ascii	"uid\000"
	.align	2
.LC17:
	.ascii	"%11s: %d(%s), %d(%s), %d(%s), %d(%s)\012\000"
	.align	2
.LC18:
	.ascii	"gid\000"
	.align	2
.LC19:
	.ascii	"groups\000"
	.align	2
.LC20:
	.ascii	"%11s: \000"
	.align	2
.LC21:
	.ascii	"%d(%s)\000"
	.align	2
.LC22:
	.ascii	", \000"
	.text
	.align	2
	.global	show_process_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_process_info, %function
show_process_info:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	ldr	r1, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L82
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r7, [r3, #4]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	get_user_name
	mov	r10, r0
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r4, [r3, #8]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	get_user_name
	mov	r8, r0
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r5, [r3, #12]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	get_user_name
	mov	r9, r0
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r6, [r3, #16]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #16]
	mov	r0, r3
	bl	get_user_name
	mov	r3, r0
	str	r3, [sp, #20]
	str	r6, [sp, #16]
	str	r9, [sp, #12]
	str	r5, [sp, #8]
	str	r8, [sp, #4]
	str	r4, [sp]
	mov	r3, r10
	mov	r2, r7
	ldr	r1, .L82+4
	ldr	r0, .L82+8
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r7, [r3, #20]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	get_group_name
	mov	r10, r0
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r4, [r3, #24]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	get_group_name
	mov	r8, r0
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r5, [r3, #28]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #28]
	mov	r0, r3
	bl	get_group_name
	mov	r9, r0
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r6, [r3, #32]
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #32]
	mov	r0, r3
	bl	get_group_name
	mov	r3, r0
	str	r3, [sp, #20]
	str	r6, [sp, #16]
	str	r9, [sp, #12]
	str	r5, [sp, #8]
	str	r8, [sp, #4]
	str	r4, [sp]
	mov	r3, r10
	mov	r2, r7
	ldr	r1, .L82+12
	ldr	r0, .L82+8
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #36]
	cmp	r3, #0
	ble	.L78
	ldr	r1, .L82+16
	ldr	r0, .L82+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L79
.L81:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	add	r3, r3, #2048
	add	r3, r3, #10
	ldr	r4, [r2, r3, lsl #2]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	add	r3, r3, #2048
	add	r3, r3, #10
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	get_group_name
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L82+24
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #36]
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	beq	.L80
	ldr	r0, .L82+28
	bl	printf
.L80:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L79:
	ldr	r3, [fp, #-48]
	add	r3, r3, #8192
	ldr	r3, [r3, #36]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L81
	mov	r0, #10
	bl	putchar
.L78:
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	show_process_info, .-show_process_info
	.section	.rodata
	.align	2
.LC23:
	.ascii	"status\000"
	.align	2
.LC24:
	.ascii	"[!] Unable to open status for pid: %s\012\000"
	.align	2
.LC25:
	.ascii	"Uid:\011\000"
	.align	2
.LC26:
	.ascii	"Uid:\011%d\011%d\011%d\011%d\012\000"
	.align	2
.LC27:
	.ascii	"Gid:\011\000"
	.align	2
.LC28:
	.ascii	"Gid:\011%d\011%d\011%d\011%d\012\000"
	.align	2
.LC29:
	.ascii	"Groups:\011\000"
	.align	2
.LC30:
	.ascii	" \011\000"
	.align	2
.LC31:
	.ascii	"[!] Too many groups for pid: %s\012\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_privileges
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_privileges, %function
get_privileges:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	sub	sp, sp, #8
	str	r0, [fp, #-1072]
	str	r1, [fp, #-1076]
	ldr	r3, .L100
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-1072]
	ldr	r3, [r3]
	ldr	r2, .L100+4
	ldr	r1, [fp, #-1076]
	mov	r0, r3
	bl	open_proc_entry
	str	r0, [fp, #-1060]
	ldr	r3, [fp, #-1060]
	cmp	r3, #0
	bne	.L87
	ldr	r3, .L100+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-1076]
	ldr	r1, .L100+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L98
.L97:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #5
	ldr	r1, .L100+16
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L88
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r1, r3, #4
	sub	r2, fp, #1040
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #12
	str	r3, [sp, #4]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #8
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L100+20
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #4
	bne	.L87
	ldr	r3, [fp, #-1072]
	add	r3, r3, #8192
	add	ip, r3, #4
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L87
.L88:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #5
	ldr	r1, .L100+24
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L90
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r1, r3, #4
	sub	r2, fp, #1040
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #12
	str	r3, [sp, #4]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #8
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L100+28
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #4
	bne	.L87
	ldr	r3, [fp, #-1072]
	add	r3, r3, #8192
	add	ip, r3, #20
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L87
.L90:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #8
	ldr	r1, .L100+32
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L87
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #8
	str	r3, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L87
	ldr	r3, [fp, #-1056]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L93
	b	.L87
.L93:
	ldr	r1, .L100+36
	ldr	r0, [fp, #-1056]
	bl	strtok
	str	r0, [fp, #-1064]
	b	.L94
.L96:
	ldr	r0, [fp, #-1064]
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-1052]
	ldr	r3, [fp, #-1072]
	add	r3, r3, #8192
	ldr	r3, [r3, #36]
	cmp	r3, #65536
	blt	.L95
	ldr	r3, .L100+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-1076]
	ldr	r1, .L100+40
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L98
.L95:
	ldr	r3, [fp, #-1072]
	add	r3, r3, #8192
	ldr	r3, [r3, #36]
	add	r2, r3, #1
	ldr	r1, [fp, #-1072]
	add	r1, r1, #8192
	str	r2, [r1, #36]
	ldr	r2, [fp, #-1072]
	add	r3, r3, #2048
	add	r3, r3, #10
	ldr	r1, [fp, #-1052]
	str	r1, [r2, r3, lsl #2]
	ldr	r1, .L100+36
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-1064]
.L94:
	ldr	r3, [fp, #-1064]
	cmp	r3, #0
	beq	.L87
	ldr	r3, [fp, #-1064]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L87
	ldr	r3, [fp, #-1064]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L96
.L87:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1060]
	ldr	r1, .L100+44
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L97
	ldr	r0, [fp, #-1060]
	bl	fclose
	mov	r3, #1
.L98:
	ldr	r2, .L100
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L99
	bl	__stack_chk_fail
.L99:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L101:
	.align	2
.L100:
	.word	.LC32
	.word	.LC23
	.word	stderr
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	1023
	.size	get_privileges, .-get_privileges
	.section	.rodata
	.align	2
.LC33:
	.ascii	"[!] Out of memory adding a process!\012\000"
	.text
	.align	2
	.global	add_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_process, %function
add_process:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L106
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L103
	ldr	r3, .L106+4
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L106+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L103:
	ldr	r2, .L106
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	memcpy
	ldr	r3, .L106+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L104
	ldr	r2, .L106+12
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L104:
	ldr	r3, .L106+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L105
	ldr	r3, .L106+16
	ldr	r3, [r3]
	add	r3, r3, #270336
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r3, [r2, #40]
.L105:
	ldr	r2, .L106+16
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L107:
	.align	2
.L106:
	.word	270380
	.word	stderr
	.word	.LC33
	.word	head
	.word	tail
	.size	add_process, .-add_process
	.align	2
	.global	process_matches
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_matches, %function
process_matches:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L121
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L109
	ldr	r3, .L121+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L109
	ldr	r3, .L121+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L109
	ldr	r3, .L121+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L109
	mov	r3, #1
	b	.L110
.L109:
	ldr	r3, .L121
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L111
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, .L121
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L111
	mov	r3, #1
	b	.L110
.L111:
	ldr	r3, .L121+4
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L112
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #4]
	ldr	r3, .L121+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L113
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #8]
	ldr	r3, .L121+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L113
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #12]
	ldr	r3, .L121+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L113
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #16]
	ldr	r3, .L121+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L112
.L113:
	mov	r3, #1
	b	.L110
.L112:
	ldr	r3, .L121+8
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L114
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #20]
	ldr	r3, .L121+8
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L115
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #24]
	ldr	r3, .L121+8
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L115
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #28]
	ldr	r3, .L121+8
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L115
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #32]
	ldr	r3, .L121+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L116
.L115:
	mov	r3, #1
	b	.L110
.L116:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L117
.L119:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #2048
	add	r3, r3, #10
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, .L121+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L118
	mov	r3, #1
	b	.L110
.L118:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L117:
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r3, [r3, #36]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L119
.L114:
	ldr	r3, .L121+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r2, .L121+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L120
	mov	r3, #1
	b	.L110
.L120:
	mov	r3, #0
.L110:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L122:
	.align	2
.L121:
	.word	search_pid
	.word	search_uid
	.word	search_gid
	.word	search_cmd
	.size	process_matches, .-process_matches
	.section	.rodata
	.align	2
.LC34:
	.ascii	"privmap\000"
	.align	2
.LC35:
	.ascii	"usage: %s [opts]\012\012supported options:\012-g <g"
	.ascii	"id> \011show only processes with the specified grou"
	.ascii	"p id or name\012-p <pid> \011show only processes wi"
	.ascii	"th the specified process id or name\012-u <uid> \011"
	.ascii	"show only processes with the specified user id or n"
	.ascii	"ame\012-s \011show privileges for itself too (defau"
	.ascii	"lts to hiding itself)\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L125
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L124
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L124
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L124:
	ldr	r3, .L125+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L125+8
	mov	r0, r3
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L126:
	.align	2
.L125:
	.word	.LC34
	.word	stderr
	.word	.LC35
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
