	.file	"258770.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: modlist [-a] [-l] [-u]\n"
.LC1:
	.string	""
	.align 8
.LC2:
	.string	"-a%-16slist all modules and show their status\n"
	.align 8
.LC3:
	.string	"-l%-16slist all already-loaded modules\n"
	.align 8
.LC4:
	.string	"-u%-16slist all modules that are not loaded\n"
	.align 8
.LC5:
	.string	"-h%-16sshow this usage information\n"
	.align 8
.LC6:
	.string	"modlist without arguments defaults to listing all modules with their status\n"
.LC7:
	.string	"Unrecognized option: -%c\n"
.LC8:
	.string	"aluh"
	.align 8
.LC9:
	.string	"Only one action (-a, -l, or -u) can be specified\n"
.LC10:
	.string	"root\302\273/system/modules"
	.align 8
.LC11:
	.string	"Couldn't open the directory %s: %s.\n"
.LC12:
	.string	"o"
.LC13:
	.string	"[loaded]"
.LC14:
	.string	"%-32s%s\n"
	.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	jmp	.L2
.L17:
	cmp	DWORD PTR -44[rbp], 117
	je	.L3
	cmp	DWORD PTR -44[rbp], 117
	jg	.L4
	cmp	DWORD PTR -44[rbp], 108
	je	.L5
	cmp	DWORD PTR -44[rbp], 108
	jg	.L4
	cmp	DWORD PTR -44[rbp], 97
	je	.L6
	cmp	DWORD PTR -44[rbp], 104
	je	.L7
	jmp	.L4
.L6:
	cmp	DWORD PTR -56[rbp], 0
	jne	.L8
	cmp	DWORD PTR -52[rbp], 0
	je	.L9
.L8:
	mov	DWORD PTR -48[rbp], 1
	jmp	.L10
.L9:
	mov	DWORD PTR -60[rbp], 1
.L10:
	jmp	.L2
.L5:
	cmp	DWORD PTR -60[rbp], 0
	jne	.L11
	cmp	DWORD PTR -52[rbp], 0
	je	.L12
.L11:
	mov	DWORD PTR -48[rbp], 1
	jmp	.L13
.L12:
	mov	DWORD PTR -56[rbp], 1
.L13:
	jmp	.L2
.L3:
	cmp	DWORD PTR -60[rbp], 0
	jne	.L14
	cmp	DWORD PTR -56[rbp], 0
	je	.L15
.L14:
	mov	DWORD PTR -48[rbp], 1
	jmp	.L16
.L15:
	mov	DWORD PTR -52[rbp], 1
.L16:
	jmp	.L2
.L7:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 76
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	DWORD PTR -48[rbp], 3
	jmp	.L2
.L4:
	mov	edx, DWORD PTR optopt[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -48[rbp], 2
.L2:
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -68[rbp]
	lea	rdx, .LC8[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L17
	cmp	DWORD PTR -60[rbp], 0
	jne	.L18
	cmp	DWORD PTR -56[rbp], 0
	jne	.L18
	cmp	DWORD PTR -52[rbp], 0
	jne	.L18
	mov	DWORD PTR -60[rbp], 1
.L18:
	cmp	DWORD PTR -48[rbp], 0
	je	.L19
	cmp	DWORD PTR -48[rbp], 1
	jne	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 49
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	jmp	.L21
.L20:
	cmp	DWORD PTR -48[rbp], 3
	jne	.L21
	mov	eax, 0
	jmp	.L22
.L21:
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L22
.L19:
	lea	rdi, .LC10[rip]
	call	opendir@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L24
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L22
.L29:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 19
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 46
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L24
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	stricmp@PLT
	test	eax, eax
	jne	.L24
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
	cmp	DWORD PTR -60[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pedigree_module_is_loaded@PLT
	test	eax, eax
	je	.L26
	lea	rax, .LC13[rip]
	jmp	.L27
.L26:
	lea	rax, .LC1[rip]
.L27:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L25:
	cmp	DWORD PTR -56[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pedigree_module_is_loaded@PLT
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L24
.L28:
	cmp	DWORD PTR -52[rbp], 0
	je	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pedigree_module_is_loaded@PLT
	test	eax, eax
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	puts@PLT
.L24:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L29
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	eax, 0
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"258770.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: modlist [-a] [-l] [-u]\012\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"-a%-16slist all modules and show their status\012\000"
	.align	2
.LC3:
	.ascii	"-l%-16slist all already-loaded modules\012\000"
	.align	2
.LC4:
	.ascii	"-u%-16slist all modules that are not loaded\012\000"
	.align	2
.LC5:
	.ascii	"-h%-16sshow this usage information\012\000"
	.align	2
.LC6:
	.ascii	"modlist without arguments defaults to listing all m"
	.ascii	"odules with their status\012\000"
	.align	2
.LC7:
	.ascii	"Unrecognized option: -%c\012\000"
	.align	2
.LC8:
	.ascii	"aluh\000"
	.align	2
.LC9:
	.ascii	"Only one action (-a, -l, or -u) can be specified\012"
	.ascii	"\000"
	.align	2
.LC10:
	.ascii	"root\302\273/system/modules\000"
	.align	2
.LC11:
	.ascii	"Couldn't open the directory %s: %s.\012\000"
	.align	2
.LC12:
	.ascii	"o\000"
	.align	2
.LC13:
	.ascii	"[loaded]\000"
	.align	2
.LC14:
	.ascii	"%-32s%s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L2
.L18:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #97
	cmp	r3, #20
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L7
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L4
.L8:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L10
.L9:
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L11
.L10:
	mov	r3, #1
	str	r3, [fp, #-44]
.L11:
	b	.L2
.L6:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L13
.L12:
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L14
.L13:
	mov	r3, #1
	str	r3, [fp, #-40]
.L14:
	b	.L2
.L4:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L16
.L15:
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L17
.L16:
	mov	r3, #1
	str	r3, [fp, #-36]
.L17:
	b	.L2
.L7:
	ldr	r3, .L31
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L31+4
	bl	fwrite
	ldr	r3, .L31
	ldr	r3, [r3]
	ldr	r2, .L31+8
	ldr	r1, .L31+12
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L31
	ldr	r3, [r3]
	ldr	r2, .L31+8
	ldr	r1, .L31+16
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L31
	ldr	r3, [r3]
	ldr	r2, .L31+8
	ldr	r1, .L31+20
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L31
	ldr	r3, [r3]
	ldr	r2, .L31+8
	ldr	r1, .L31+24
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L31
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L31
	ldr	r3, [r3]
	mov	r2, #76
	mov	r1, #1
	ldr	r0, .L31+28
	bl	fwrite
	mov	r3, #3
	str	r3, [fp, #-32]
	b	.L2
.L3:
	ldr	r3, .L31
	ldr	r3, [r3]
	ldr	r2, .L31+32
	ldr	r2, [r2]
	ldr	r1, .L31+36
	mov	r0, r3
	bl	fprintf
	mov	r3, #2
	str	r3, [fp, #-32]
.L2:
	ldr	r2, .L31+40
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	getopt
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L19
	mov	r3, #1
	str	r3, [fp, #-44]
.L19:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L21
	ldr	r3, .L31
	ldr	r3, [r3]
	mov	r2, #49
	mov	r1, #1
	ldr	r0, .L31+44
	bl	fwrite
	b	.L22
.L21:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bne	.L22
	mov	r3, #0
	b	.L23
.L22:
	ldr	r3, [fp, #-32]
	b	.L23
.L20:
	ldr	r0, .L31+48
	bl	opendir
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L25
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L31+48
	ldr	r0, .L31+52
	bl	printf
	mvn	r3, #0
	b	.L23
.L30:
	ldr	r3, [fp, #-20]
	add	r3, r3, #11
	str	r3, [fp, #-16]
	mov	r1, #46
	ldr	r0, [fp, #-16]
	bl	strrchr
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L25
	ldr	r1, .L31+56
	ldr	r0, [fp, #-8]
	bl	stricmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L26
	ldr	r0, [fp, #-16]
	bl	pedigree_module_is_loaded
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L31+60
	b	.L28
.L27:
	ldr	r3, .L31+8
.L28:
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L31+64
	bl	printf
	b	.L25
.L26:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L29
	ldr	r0, [fp, #-16]
	bl	pedigree_module_is_loaded
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r0, [fp, #-16]
	bl	puts
	b	.L25
.L29:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L25
	ldr	r0, [fp, #-16]
	bl	pedigree_module_is_loaded
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r0, [fp, #-16]
	bl	puts
.L25:
	ldr	r0, [fp, #-24]
	bl	readdir
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L30
	ldr	r0, [fp, #-24]
	bl	closedir
	mov	r3, #0
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	optopt
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
