	.file	"540829.c"
	.intel_syntax noprefix
	.text
	.globl	Release
	.section	.rodata
.LC0:
	.string	"chkrootkit package"
	.section	.data.rel.local,"aw"
	.align 8
	.type	Release, @object
	.size	Release, 8
Release:
	.quad	.LC0
	.globl	Version
	.section	.rodata
	.align 8
.LC1:
	.string	"@(#) ifpromisc 0.8 (2003/11/30)"
	.section	.data.rel.local
	.align 8
	.type	Version, @object
	.size	Version, 8
Version:
	.quad	.LC1
	.globl	skfd
	.data
	.align 4
	.type	skfd, @object
	.size	skfd, 4
skfd:
	.long	-1
	.globl	q
	.bss
	.align 4
	.type	q, @object
	.size	q, 4
q:
	.zero	4
	.local	proc_net_packet
	.comm	proc_net_packet,8,8
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"/proc/net/packet"
.LC4:
	.string	"opening /proc/net/packet"
	.align 8
.LC5:
	.string	"%*p %*d %d %x   %d %*d %*u %*u %u"
	.align 8
.LC6:
	.string	"cannot grok /proc/net/packet: %s"
	.text
	.type	read_proc_net_packet, @function
read_proc_net_packet:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L10
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L1
.L2:
	mov	rdx, QWORD PTR -112[rbp]
	lea	rax, -96[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	fgets@PLT
	jmp	.L5
.L8:
	mov	DWORD PTR -128[rbp], 0
	mov	DWORD PTR -124[rbp], 0
	mov	DWORD PTR -120[rbp], 0
	mov	DWORD PTR -116[rbp], 0
	lea	rdi, -116[rbp]
	lea	rsi, -120[rbp]
	lea	rcx, -124[rbp]
	lea	rdx, -128[rbp]
	lea	rax, -96[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 4
	jne	.L6
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	edx, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rdx, QWORD PTR proc_net_packet[rip]
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR proc_net_packet[rip], rax
	jmp	.L5
.L6:
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -96[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L5:
	mov	rdx, QWORD PTR -112[rbp]
	lea	rax, -96[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L8
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L1
.L10:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_proc_net_packet, .-read_proc_net_packet
	.type	find_packet_info, @function
find_packet_info:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR proc_net_packet[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L12
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
.L12:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	mov	eax, 0
.L14:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	find_packet_info, .-find_packet_info
	.section	.rodata
.LC7:
	.string	"/proc/%s/fd"
.LC8:
	.string	"giant process name! %s\n"
.LC9:
	.string	"/proc/%s/fd/%s"
.LC10:
	.string	"giant fd name /proc/%s/fd/%s\n"
.LC11:
	.string	"/proc/%s/exe"
	.text
	.type	walk_process, @function
walk_process:
.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, 2256
	mov	QWORD PTR -2248[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -2248[rbp]
	lea	rax, -2064[rbp]
	mov	rcx, rdx
	lea	rdx, .LC7[rip]
	mov	esi, 1024
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	cmp	eax, -1
	jne	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -2248[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L16
.L17:
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -2232[rbp], rax
	cmp	QWORD PTR -2232[rbp], 0
	jne	.L20
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L16
.L25:
	mov	rax, QWORD PTR -2224[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -2248[rbp]
	lea	rax, -2064[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC9[rip]
	mov	esi, 1024
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	cmp	eax, -1
	jne	.L21
	mov	rax, QWORD PTR -2224[rbp]
	lea	rcx, 19[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -2248[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L20
.L21:
	lea	rdx, -2208[rbp]
	lea	rax, -2064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L23
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -2184[rbp]
	and	eax, 61440
	cmp	eax, 49152
	jne	.L20
	mov	rax, QWORD PTR -2200[rbp]
	mov	edi, eax
	call	find_packet_info
	mov	QWORD PTR -2216[rbp], rax
	cmp	QWORD PTR -2216[rbp], 0
	je	.L20
	lea	rax, -1040[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR -2248[rbp]
	lea	rax, -2064[rbp]
	mov	rcx, rdx
	lea	rdx, .LC11[rip]
	mov	esi, 1024
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rcx, -1040[rbp]
	lea	rax, -2064[rbp]
	mov	edx, 1023
	mov	rsi, rcx
	mov	rdi, rax
	call	readlink@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -2216[rbp]
	mov	QWORD PTR 16[rax], rdx
.L20:
	mov	rax, QWORD PTR -2232[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -2224[rbp], rax
	cmp	QWORD PTR -2224[rbp], 0
	jne	.L25
	mov	rax, QWORD PTR -2232[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L16:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	walk_process, .-walk_process
	.section	.rodata
.LC12:
	.string	"/proc"
.LC13:
	.string	"0123456789"
	.text
	.type	walk_processes, @function
walk_processes:
.LFB9:
	.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, 24
	.cfi_offset 3, -24
	lea	rdi, .LC12[rip]
	call	opendir@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L31
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L28
.L32:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 19
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strspn@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jne	.L31
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 19
	mov	rdi, rax
	call	walk_process
.L31:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	closedir@PLT
.L28:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	walk_processes, .-walk_processes
	.type	has_packet_socket, @function
has_packet_socket:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR proc_net_packet[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L34
.L37:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L35
	mov	eax, 1
	jmp	.L36
.L35:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
.L34:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L37
	mov	eax, 0
.L36:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	has_packet_socket, .-has_packet_socket
	.section	.rodata
.LC14:
	.string	"%s:"
.LC15:
	.string	" PROMISC"
.LC16:
	.string	" PF_PACKET("
.LC17:
	.string	"%s"
.LC18:
	.string	", %s"
	.align 8
.LC19:
	.string	"%s: not promisc and no PF_PACKET sockets\n"
	.text
	.type	ife_print, @function
ife_print:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 18[rax]
	cwde
	and	eax, 256
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	edi, eax
	call	has_packet_socket
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jne	.L39
	cmp	DWORD PTR -12[rbp], 0
	je	.L40
.L39:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -16[rbp], 0
	je	.L41
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L41:
	cmp	DWORD PTR -12[rbp], 0
	je	.L42
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR proc_net_packet[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L44
.L46:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	edx, eax
	jne	.L45
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
.L45:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
.L44:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L46
.L43:
	mov	edi, 41
	call	putchar@PLT
.L42:
	mov	edi, 10
	call	putchar@PLT
	jmp	.L48
.L40:
	mov	eax, DWORD PTR q[rip]
	test	eax, eax
	jne	.L48
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
.L48:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ife_print, .-ife_print
	.type	if_fetch, @function
if_fetch:
.LFB12:
	.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	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR skfd[rip]
	lea	rdx, -48[rbp]
	mov	esi, 35091
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L50
	mov	eax, -1
	jmp	.L53
.L50:
	movzx	edx, WORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	WORD PTR 18[rax], dx
	mov	eax, DWORD PTR skfd[rip]
	lea	rdx, -48[rbp]
	mov	esi, 35123
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L52
	mov	eax, -1
	jmp	.L53
.L52:
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	eax, 0
.L53:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	if_fetch, .-if_fetch
	.section	.rodata
.LC20:
	.string	"SIOCGIFCONF: %s\n"
.LC21:
	.string	"%s: unknown interface.\n"
.LC22:
	.string	"lo"
	.text
	.type	if_print, @function
if_print:
.LFB13:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1088[rbp], 1024
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1080[rbp], rax
	mov	eax, DWORD PTR skfd[rip]
	lea	rdx, -1088[rbp]
	mov	esi, 35090
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L56
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L55
.L56:
	mov	rax, QWORD PTR -1080[rbp]
	mov	QWORD PTR -1096[rbp], rax
	mov	eax, DWORD PTR -1088[rbp]
	cdqe
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 5
	mov	DWORD PTR -1100[rbp], eax
	jmp	.L58
.L62:
	mov	rax, QWORD PTR -1096[rbp]
	lea	rdx, -1072[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	if_fetch
	test	eax, eax
	jns	.L59
	mov	rdx, QWORD PTR -1096[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L60
.L59:
	mov	rax, QWORD PTR -1096[rbp]
	mov	edx, 2
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L64
	lea	rax, -1072[rbp]
	mov	rdi, rax
	call	ife_print
	jmp	.L60
.L64:
	nop
.L60:
	add	QWORD PTR -1096[rbp], 40
.L58:
	sub	DWORD PTR -1100[rbp], 1
	cmp	DWORD PTR -1100[rbp], 0
	jns	.L62
.L55:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	if_print, .-if_print
	.section	.rodata
.LC23:
	.string	"-q"
.LC24:
	.string	"socket"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 2
	jne	.L66
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L66
	mov	eax, DWORD PTR q[rip]
	add	eax, 1
	mov	DWORD PTR q[rip], eax
.L66:
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR skfd[rip], eax
	mov	eax, DWORD PTR skfd[rip]
	test	eax, eax
	jns	.L67
	lea	rdi, .LC24[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L67:
	mov	eax, 0
	call	read_proc_net_packet
	mov	eax, 0
	call	walk_processes
	mov	eax, 0
	call	if_print
	mov	eax, DWORD PTR skfd[rip]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE14:
	.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	"540829.c"
	.text
	.global	Release
	.section	.rodata
	.align	2
.LC0:
	.ascii	"chkrootkit package\000"
	.data
	.align	2
	.type	Release, %object
	.size	Release, 4
Release:
	.word	.LC0
	.global	Version
	.section	.rodata
	.align	2
.LC1:
	.ascii	"@(#) ifpromisc 0.8 (2003/11/30)\000"
	.data
	.align	2
	.type	Version, %object
	.size	Version, 4
Version:
	.word	.LC1
	.global	skfd
	.align	2
	.type	skfd, %object
	.size	skfd, 4
skfd:
	.word	-1
	.global	q
	.bss
	.align	2
	.type	q, %object
	.size	q, 4
q:
	.space	4
	.local	proc_net_packet
	.comm	proc_net_packet,4,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"/proc/net/packet\000"
	.align	2
.LC4:
	.ascii	"opening /proc/net/packet\000"
	.align	2
.LC5:
	.ascii	"%*p %*d %d %x   %d %*d %*u %*u %u\000"
	.align	2
.LC6:
	.ascii	"cannot grok /proc/net/packet: %s\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_proc_net_packet, %function
read_proc_net_packet:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	bl	fopen
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L10
	ldr	r0, .L11+12
	bl	perror
	b	.L1
.L2:
	sub	r3, fp, #88
	ldr	r2, [fp, #-96]
	mov	r1, #80
	mov	r0, r3
	bl	fgets
	b	.L5
.L8:
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	sub	r1, fp, #108
	sub	r2, fp, #112
	sub	r0, fp, #88
	sub	r3, fp, #100
	str	r3, [sp, #4]
	sub	r3, fp, #104
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L11+16
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #4
	bne	.L6
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-92]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-108]
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3, #8]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-92]
	str	r2, [r3]
	ldr	r3, [fp, #-100]
	mov	r2, r3
	ldr	r3, [fp, #-92]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-92]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, .L11+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-92]
	str	r2, [r3, #20]
	ldr	r2, .L11+20
	ldr	r3, [fp, #-92]
	str	r3, [r2]
	b	.L5
.L6:
	ldr	r3, .L11+24
	ldr	r3, [r3]
	sub	r2, fp, #88
	ldr	r1, .L11+28
	mov	r0, r3
	bl	fprintf
.L5:
	sub	r3, fp, #88
	ldr	r2, [fp, #-96]
	mov	r1, #80
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r0, [fp, #-96]
	bl	fclose
	b	.L1
.L10:
	nop
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC7
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	proc_net_packet
	.word	stderr
	.word	.LC6
	.size	read_proc_net_packet, .-read_proc_net_packet
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_packet_info, %function
find_packet_info:
	@ 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]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L14
.L17:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L15
	ldr	r3, [fp, #-8]
	b	.L16
.L15:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-8]
.L14:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L17
	mov	r3, #0
.L16:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	proc_net_packet
	.size	find_packet_info, .-find_packet_info
	.section	.rodata
	.align	2
.LC8:
	.ascii	"/proc/%s/fd\000"
	.align	2
.LC9:
	.ascii	"giant process name! %s\012\000"
	.align	2
.LC10:
	.ascii	"/proc/%s/fd/%s\000"
	.align	2
.LC11:
	.ascii	"giant fd name /proc/%s/fd/%s\012\000"
	.align	2
.LC12:
	.ascii	"/proc/%s/exe\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	walk_process, %function
walk_process:
	@ args = 0, pretend = 0, frame = 2168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2176
	str	r0, [fp, #-2168]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-2168]
	ldr	r2, .L32+4
	mov	r1, #1024
	bl	snprintf
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-2168]
	ldr	r1, .L32+12
	mov	r0, r3
	bl	fprintf
	b	.L20
.L21:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	opendir
	str	r0, [fp, #-2160]
	ldr	r3, [fp, #-2160]
	cmp	r3, #0
	bne	.L24
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	perror
	b	.L20
.L29:
	ldr	r3, [fp, #-2156]
	add	r3, r3, #11
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	str	r3, [sp]
	ldr	r3, [fp, #-2168]
	ldr	r2, .L32+16
	mov	r1, #1024
	bl	snprintf
	mov	r3, r0
	cmn	r3, #1
	bne	.L25
	ldr	r3, .L32+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-2156]
	add	r3, r3, #11
	ldr	r2, [fp, #-2168]
	ldr	r1, .L32+20
	bl	fprintf
	b	.L24
.L25:
	sub	r2, fp, #2144
	sub	r2, r2, #4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L27
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	perror
	b	.L24
.L27:
	ldr	r3, [fp, #-2132]
	and	r3, r3, #61440
	cmp	r3, #49152
	bne	.L24
	ldr	r3, [fp, #-2136]
	mov	r0, r3
	bl	find_packet_info
	str	r0, [fp, #-2152]
	ldr	r3, [fp, #-2152]
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r0, fp, #2048
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-2168]
	ldr	r2, .L32+24
	mov	r1, #1024
	bl	snprintf
	sub	r1, fp, #1024
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, .L32+28
	mov	r0, r3
	bl	readlink
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-2152]
	str	r2, [r3, #16]
.L24:
	ldr	r0, [fp, #-2160]
	bl	readdir
	str	r0, [fp, #-2156]
	ldr	r3, [fp, #-2156]
	cmp	r3, #0
	bne	.L29
	ldr	r0, [fp, #-2160]
	bl	closedir
.L20:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC13
	.word	.LC8
	.word	stderr
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	1023
	.size	walk_process, .-walk_process
	.section	.rodata
	.align	2
.LC14:
	.ascii	"/proc\000"
	.align	2
.LC15:
	.ascii	"0123456789\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	walk_processes, %function
walk_processes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r0, .L39
	bl	opendir
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L37
	ldr	r0, .L39
	bl	perror
	b	.L34
.L38:
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	ldr	r1, .L39+4
	mov	r0, r3
	bl	strspn
	mov	r4, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bne	.L37
	ldr	r3, [fp, #-16]
	add	r3, r3, #11
	mov	r0, r3
	bl	walk_process
.L37:
	ldr	r0, [fp, #-20]
	bl	readdir
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L38
	ldr	r0, [fp, #-20]
	bl	closedir
.L34:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC14
	.word	.LC15
	.size	walk_processes, .-walk_processes
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	has_packet_socket, %function
has_packet_socket:
	@ 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]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L42
.L45:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L43
	mov	r3, #1
	b	.L44
.L43:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-8]
.L42:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L45
	mov	r3, #0
.L44:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L47:
	.align	2
.L46:
	.word	proc_net_packet
	.size	has_packet_socket, .-has_packet_socket
	.section	.rodata
	.align	2
.LC16:
	.ascii	"%s:\000"
	.align	2
.LC17:
	.ascii	" PROMISC\000"
	.align	2
.LC18:
	.ascii	" PF_PACKET(\000"
	.align	2
.LC19:
	.ascii	"%s\000"
	.align	2
.LC20:
	.ascii	", %s\000"
	.align	2
.LC21:
	.ascii	"%s: not promisc and no PF_PACKET sockets\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ife_print, %function
ife_print:
	@ 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, [fp, #-24]
	ldrsh	r3, [r3, #18]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #256
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	has_packet_socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L49
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L50
.L49:
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L59
	bl	printf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L51
	ldr	r0, .L59+4
	bl	printf
.L51:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L52
	ldr	r0, .L59+8
	bl	printf
	ldr	r3, .L59+12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, .L59+16
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-16]
	b	.L54
.L56:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	cmp	r2, r3
	bne	.L55
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, .L59+20
	bl	printf
.L55:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-16]
.L54:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L56
.L53:
	mov	r0, #41
	bl	putchar
.L52:
	mov	r0, #10
	bl	putchar
	b	.L58
.L50:
	ldr	r3, .L59+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L59+28
	bl	printf
.L58:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	proc_net_packet
	.word	.LC19
	.word	.LC20
	.word	q
	.word	.LC21
	.size	ife_print, .-ife_print
	.section	.rodata
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	if_fetch, %function
if_fetch:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #24
	mov	r1, #0
	ldr	r0, [fp, #-52]
	bl	memset
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #40
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L67+4
	ldr	r3, [r3]
	sub	r2, fp, #40
	ldr	r1, .L67+8
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L62
	mvn	r3, #0
	b	.L65
.L62:
	ldrsh	r2, [fp, #-24]
	ldr	r3, [fp, #-52]
	strh	r2, [r3, #18]	@ movhi
	ldr	r3, .L67+4
	ldr	r3, [r3]
	sub	r2, fp, #40
	ldr	r1, .L67+12
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L64
	mvn	r3, #0
	b	.L65
.L64:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-52]
	str	r2, [r3, #20]
	mov	r3, #0
.L65:
	ldr	r2, .L67
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC22
	.word	skfd
	.word	35091
	.word	35123
	.size	if_fetch, .-if_fetch
	.section	.rodata
	.align	2
.LC23:
	.ascii	"SIOCGIFCONF: %s\012\000"
	.align	2
.LC24:
	.ascii	"%s: unknown interface.\012\000"
	.align	2
.LC25:
	.ascii	"lo\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	if_print, %function
if_print:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1072
	sub	sp, sp, #4
	ldr	r3, .L79
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1024
	str	r3, [fp, #-1072]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1068]
	ldr	r3, .L79+4
	ldr	r0, [r3]
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L79+8
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L70
	ldr	r3, .L79+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L79+16
	mov	r0, r4
	bl	fprintf
	b	.L69
.L70:
	ldr	r3, [fp, #-1068]
	str	r3, [fp, #-1080]
	ldr	r3, [fp, #-1072]
	lsr	r3, r3, #5
	str	r3, [fp, #-1076]
	b	.L72
.L76:
	ldr	r2, [fp, #-1080]
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	if_fetch
	mov	r3, r0
	cmp	r3, #0
	bge	.L73
	ldr	r3, .L79+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-1080]
	ldr	r1, .L79+20
	mov	r0, r3
	bl	fprintf
	b	.L74
.L73:
	ldr	r3, [fp, #-1080]
	mov	r2, #2
	ldr	r1, .L79+24
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L78
	sub	r3, fp, #1040
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	ife_print
	b	.L74
.L78:
	nop
.L74:
	ldr	r3, [fp, #-1080]
	add	r3, r3, #32
	str	r3, [fp, #-1080]
.L72:
	ldr	r3, [fp, #-1076]
	sub	r3, r3, #1
	str	r3, [fp, #-1076]
	ldr	r3, [fp, #-1076]
	cmp	r3, #0
	bge	.L76
.L69:
	ldr	r3, .L79
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L80:
	.align	2
.L79:
	.word	.LC26
	.word	skfd
	.word	35090
	.word	stderr
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	if_print, .-if_print
	.section	.rodata
	.align	2
.LC27:
	.ascii	"-q\000"
	.align	2
.LC28:
	.ascii	"socket\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	cmp	r3, #2
	bne	.L82
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L84
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L82
	ldr	r3, .L84+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L84+4
	str	r3, [r2]
.L82:
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L84+8
	str	r3, [r2]
	ldr	r3, .L84+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L83
	ldr	r0, .L84+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L83:
	bl	read_proc_net_packet
	bl	walk_processes
	bl	if_print
	ldr	r3, .L84+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	exit
.L85:
	.align	2
.L84:
	.word	.LC27
	.word	q
	.word	skfd
	.word	.LC28
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
