	.file	"589685.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/proc/%s/status"
.LC1:
	.string	"r"
.LC2:
	.string	"Pid:"
.LC3:
	.string	"PPid:"
.LC4:
	.string	"Tgid:"
.LC5:
	.string	"Name:"
.LC6:
	.string	"Path:"
.LC7:
	.string	"python"
.LC8:
	.string	"{%s}"
	.text
	.globl	build_entry
	.type	build_entry, @function
build_entry:
.LFB6:
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 504
	.cfi_offset 3, -24
	mov	QWORD PTR -4600[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4600[rbp]
	lea	rdx, 19[rax]
	lea	rax, -4432[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -4432[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -4568[rbp], rax
	mov	edi, 312
	call	malloc@PLT
	mov	QWORD PTR -4560[rbp], rax
	jmp	.L2
.L9:
	lea	rax, -4128[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -4552[rbp], rax
	cmp	QWORD PTR -4552[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -4552[rbp]
	mov	BYTE PTR [rax], 0
.L3:
	lea	rax, -4128[rbp]
	mov	esi, 9
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -4584[rbp], rax
	cmp	QWORD PTR -4584[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -4584[rbp]
	mov	BYTE PTR [rax], 0
	add	QWORD PTR -4584[rbp], 1
.L4:
	lea	rax, -4128[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strstr@PLT
	lea	rdx, -4128[rbp]
	cmp	rax, rdx
	jne	.L5
	mov	rax, QWORD PTR -4584[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -4560[rbp]
	mov	DWORD PTR [rdx], eax
	jmp	.L2
.L5:
	lea	rax, -4128[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strstr@PLT
	lea	rdx, -4128[rbp]
	cmp	rax, rdx
	jne	.L6
	mov	rax, QWORD PTR -4584[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -4560[rbp]
	mov	DWORD PTR 4[rdx], eax
	jmp	.L2
.L6:
	lea	rax, -4128[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strstr@PLT
	lea	rdx, -4128[rbp]
	cmp	rax, rdx
	jne	.L7
	mov	rax, QWORD PTR -4584[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -4560[rbp]
	mov	DWORD PTR 8[rdx], eax
	jmp	.L2
.L7:
	lea	rax, -4128[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strstr@PLT
	lea	rdx, -4128[rbp]
	cmp	rax, rdx
	jne	.L8
	mov	rax, QWORD PTR -4560[rbp]
	lea	rdx, 12[rax]
	mov	rax, QWORD PTR -4584[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	jmp	.L2
.L8:
	lea	rax, -4128[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strstr@PLT
	lea	rdx, -4128[rbp]
	cmp	rax, rdx
	jne	.L2
	mov	rax, QWORD PTR -4560[rbp]
	lea	rdx, 112[rax]
	mov	rax, QWORD PTR -4584[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
.L2:
	mov	rdx, QWORD PTR -4568[rbp]
	lea	rax, -4128[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR -4560[rbp]
	add	rax, 12
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	rdx, QWORD PTR -4560[rbp]
	add	rdx, 12
	cmp	rax, rdx
	jne	.L10
	mov	rax, QWORD PTR -4560[rbp]
	lea	rbx, 112[rax]
	mov	rax, QWORD PTR -4560[rbp]
	add	rax, 112
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	add	rax, rbx
	mov	QWORD PTR -4576[rbp], rax
.L14:
	mov	rax, QWORD PTR -4576[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L11
	add	QWORD PTR -4576[rbp], 1
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -4560[rbp]
	add	rax, 12
	cmp	QWORD PTR -4576[rbp], rax
	je	.L18
	sub	QWORD PTR -4576[rbp], 1
	jmp	.L14
.L18:
	nop
.L12:
	mov	rax, QWORD PTR -4576[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -4560[rbp]
	lea	rcx, 12[rax]
	mov	rax, QWORD PTR -4576[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
.L10:
	mov	rax, QWORD PTR -4560[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -4560[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L15
	mov	QWORD PTR -4544[rbp], 0
	mov	QWORD PTR -4536[rbp], 0
	mov	QWORD PTR -4528[rbp], 0
	mov	QWORD PTR -4520[rbp], 0
	mov	QWORD PTR -4512[rbp], 0
	mov	QWORD PTR -4504[rbp], 0
	mov	QWORD PTR -4496[rbp], 0
	mov	QWORD PTR -4488[rbp], 0
	mov	QWORD PTR -4480[rbp], 0
	mov	QWORD PTR -4472[rbp], 0
	mov	QWORD PTR -4464[rbp], 0
	mov	QWORD PTR -4456[rbp], 0
	mov	DWORD PTR -4448[rbp], 0
	mov	rax, QWORD PTR -4560[rbp]
	lea	rdx, 12[rax]
	lea	rax, -4544[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -4544[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -4560[rbp]
	lea	rcx, 12[rax]
	lea	rax, -4544[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
.L15:
	mov	rax, QWORD PTR -4568[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -4560[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	build_entry, .-build_entry
	.section	.rodata
.LC9:
	.string	"/proc"
.LC10:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 1
	jg	.L20
	mov	eax, 1
	jmp	.L21
.L20:
	mov	DWORD PTR -32[rbp], 0
	lea	rdi, .LC9[rip]
	call	opendir@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -24[rbp], rax
	jmp	.L22
.L25:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 19[rax]
	cmp	al, 47
	jle	.L23
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 19[rax]
	cmp	al, 57
	jg	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	build_entry
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, 12
	mov	rsi, rax
	mov	rdi, rdx
	call	strcmp@PLT
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32[rbp], edx
	test	eax, eax
	je	.L24
	mov	edi, 32
	call	putchar@PLT
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -28[rbp], 1
.L23:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -24[rbp], rax
.L22:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L25
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	closedir@PLT
	cmp	DWORD PTR -28[rbp], 0
	jne	.L26
	mov	eax, 1
	jmp	.L21
.L26:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"589685.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/proc/%s/status\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Pid:\000"
	.align	2
.LC3:
	.ascii	"PPid:\000"
	.align	2
.LC4:
	.ascii	"Tgid:\000"
	.align	2
.LC5:
	.ascii	"Name:\000"
	.align	2
.LC6:
	.ascii	"Path:\000"
	.align	2
.LC7:
	.ascii	"python\000"
	.align	2
.LC8:
	.ascii	"{%s}\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	build_entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_entry, %function
build_entry:
	@ args = 0, pretend = 0, frame = 4528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4480
	sub	sp, sp, #52
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-428]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-428]
	add	r2, r3, #11
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #48
	ldr	r1, .L19+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #48
	ldr	r1, .L19+8
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-416]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #312
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-412]
	b	.L2
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #10
	mov	r0, r3
	bl	strchr
	str	r0, [r4, #-408]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-408]
	cmp	r3, #0
	beq	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-408]
	mov	r2, #0
	strb	r2, [r3]
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #9
	mov	r0, r3
	bl	strchr
	str	r0, [r4, #-424]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-424]
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-424]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-424]
	add	r3, r3, #1
	str	r3, [r2, #-424]
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L19+12
	mov	r0, r3
	bl	strstr
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	cmp	r2, r3
	bne	.L5
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-424]
	bl	atoi
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	str	r2, [r3]
	b	.L2
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L19+16
	mov	r0, r3
	bl	strstr
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	cmp	r2, r3
	bne	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-424]
	bl	atoi
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	str	r2, [r3, #4]
	b	.L2
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L19+20
	mov	r0, r3
	bl	strstr
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	cmp	r2, r3
	bne	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-424]
	bl	atoi
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	str	r2, [r3, #8]
	b	.L2
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L19+24
	mov	r0, r3
	bl	strstr
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	cmp	r2, r3
	bne	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	add	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r1, [r2, #-424]
	mov	r0, r3
	bl	strcpy
	b	.L2
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L19+28
	mov	r0, r3
	bl	strstr
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	cmp	r2, r3
	bne	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	add	r3, r3, #112
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r1, [r2, #-424]
	mov	r0, r3
	bl	strcpy
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-416]
	mov	r1, #4096
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	add	r3, r3, #12
	ldr	r1, .L19+32
	mov	r0, r3
	bl	strstr
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	add	r3, r3, #12
	cmp	r2, r3
	bne	.L10
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	add	r4, r3, #112
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	add	r3, r3, #112
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r4, r3
	str	r3, [r2, #-420]
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-420]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L11
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-420]
	add	r3, r3, #1
	str	r3, [r2, #-420]
	b	.L12
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	add	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-420]
	cmp	r2, r3
	beq	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-420]
	sub	r3, r3, #1
	str	r3, [r2, #-420]
	b	.L14
.L18:
	nop
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	add	r4, r3, #12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-420]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-420]
	mov	r0, r4
	bl	memcpy
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	ldr	r2, [r3, #8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L15
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	str	r2, [r3, #-404]
	sub	r3, r3, #400
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	add	r2, r3, #12
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L19+36
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	add	r4, r3, #12
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	sub	r3, fp, #4480
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r1, r3
	mov	r0, r4
	bl	memcpy
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-416]
	bl	fclose
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	build_entry, .-build_entry
	.section	.rodata
	.align	2
.LC10:
	.ascii	"/proc\000"
	.align	2
.LC11:
	.ascii	"%d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L22
	mov	r3, #1
	b	.L23
.L22:
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r0, .L29
	bl	opendir
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	readdir
	str	r0, [fp, #-16]
	b	.L24
.L27:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L25
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L25
	ldr	r0, [fp, #-16]
	bl	build_entry
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r0, r3, #12
	ldr	r3, .L29+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	cmp	r3, #0
	beq	.L26
	mov	r0, #32
	bl	putchar
.L26:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+8
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-20]
.L25:
	ldr	r0, [fp, #-12]
	bl	readdir
	str	r0, [fp, #-16]
.L24:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L27
	ldr	r0, [fp, #-12]
	bl	closedir
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L28
	mov	r3, #1
	b	.L23
.L28:
	mov	r0, #10
	bl	putchar
	mov	r3, #0
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC10
	.word	optind
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
