	.file	"297368.c"
	.intel_syntax noprefix
	.text
	.globl	tmp
	.bss
	.align 4
	.type	tmp, @object
	.size	tmp, 4
tmp:
	.zero	4
	.globl	h
	.align 32
	.type	h, @object
	.size	h, 1600
h:
	.zero	1600
	.section	.rodata
.LC0:
	.string	"Socket fallita"
.LC1:
	.string	"setsockopt fallita"
.LC2:
	.string	"bind fallita"
.LC3:
	.string	"Listen Fallita"
.LC4:
	.string	"Accept Fallita"
.LC5:
	.string	"Command line = %s\n"
.LC6:
	.string	"%s ----> %s\n"
.LC7:
	.string	"method=%s path=%s ver=%s\n"
.LC8:
	.string	"/cgi-bin/"
.LC9:
	.string	"Command %s\n"
.LC10:
	.string	"%s > tmpfile.txt"
.LC11:
	.string	"Eseguo il comando %s\n"
.LC12:
	.string	"rt"
.LC13:
	.string	"HTTP/1.1 404 Not Found\r\n\r\n"
.LC14:
	.string	"HTTP/1.1 200 OK\r\n\r\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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2960
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -15240[rbp], 1
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -15220[rbp], eax
	cmp	DWORD PTR -15220[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L2:
	mov	WORD PTR -15168[rbp], 2
	mov	edi, 7382
	call	htons@PLT
	mov	WORD PTR -15166[rbp], ax
	mov	DWORD PTR -15164[rbp], 0
	lea	rdx, -15240[rbp]
	mov	eax, DWORD PTR -15220[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -15216[rbp], eax
	cmp	DWORD PTR -15216[rbp], -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L4:
	lea	rcx, -15168[rbp]
	mov	eax, DWORD PTR -15220[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L5:
	mov	eax, DWORD PTR -15220[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L6:
	mov	DWORD PTR -15248[rbp], 16
.L27:
	lea	rdx, -15248[rbp]
	lea	rcx, -15152[rbp]
	mov	eax, DWORD PTR -15220[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -15212[rbp], eax
	cmp	DWORD PTR -15212[rbp], -1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L28
.L7:
	lea	rdx, h[rip]
	mov	eax, 0
	mov	ecx, 100
	mov	rdi, rdx
	rep stosq
	lea	rax, -15024[rbp]
	mov	QWORD PTR h[rip], rax
	mov	rax, QWORD PTR h[rip]
	mov	QWORD PTR -15208[rbp], rax
	mov	DWORD PTR -15232[rbp], 0
	mov	DWORD PTR -15228[rbp], 0
	jmp	.L8
.L13:
	mov	eax, DWORD PTR -15232[rbp]
	cdqe
	movzx	eax, BYTE PTR -15024[rbp+rax]
	cmp	al, 58
	jne	.L9
	mov	eax, DWORD PTR -15228[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, h[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L9
	mov	eax, DWORD PTR -15232[rbp]
	cdqe
	mov	BYTE PTR -15024[rbp+rax], 0
	mov	eax, DWORD PTR -15232[rbp]
	cdqe
	lea	rdx, 1[rax]
	lea	rax, -15024[rbp]
	lea	rcx, [rax+rdx]
	mov	eax, DWORD PTR -15228[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, h[rip+8]
	mov	QWORD PTR [rdx+rax], rcx
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -15232[rbp]
	cdqe
	movzx	eax, BYTE PTR -15024[rbp+rax]
	cmp	al, 10
	jne	.L10
	mov	eax, DWORD PTR -15232[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -15024[rbp+rax]
	cmp	al, 13
	jne	.L10
	mov	eax, DWORD PTR -15232[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -15024[rbp+rax], 0
	mov	eax, DWORD PTR -15228[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, h[rip]
	mov	rax, QWORD PTR [rdx+rax]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L30
	mov	eax, DWORD PTR -15232[rbp]
	cdqe
	lea	rdx, 1[rax]
	add	DWORD PTR -15228[rbp], 1
	lea	rax, -15024[rbp]
	lea	rcx, [rax+rdx]
	mov	eax, DWORD PTR -15228[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, h[rip]
	mov	QWORD PTR [rdx+rax], rcx
.L10:
	add	DWORD PTR -15232[rbp], 1
.L8:
	mov	eax, DWORD PTR -15232[rbp]
	cdqe
	lea	rdx, -15024[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -15212[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L13
	jmp	.L12
.L30:
	nop
.L12:
	mov	rax, QWORD PTR -15208[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -15236[rbp], 1
	jmp	.L14
.L15:
	mov	eax, DWORD PTR -15236[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, h[rip+8]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -15236[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	lea	rax, h[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -15236[rbp], 1
.L14:
	mov	eax, DWORD PTR -15236[rbp]
	cmp	eax, DWORD PTR -15228[rbp]
	jl	.L15
	mov	rax, QWORD PTR -15208[rbp]
	mov	QWORD PTR -15200[rbp], rax
	mov	DWORD PTR -15236[rbp], 0
	jmp	.L16
.L17:
	add	DWORD PTR -15236[rbp], 1
.L16:
	mov	eax, DWORD PTR -15236[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -15208[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L17
	mov	eax, DWORD PTR -15236[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -15208[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -15236[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -15208[rbp]
	add	rax, rdx
	mov	QWORD PTR -15192[rbp], rax
	add	DWORD PTR -15236[rbp], 1
	jmp	.L18
.L19:
	add	DWORD PTR -15236[rbp], 1
.L18:
	mov	eax, DWORD PTR -15236[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -15208[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L19
	mov	eax, DWORD PTR -15236[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -15208[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -15236[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -15208[rbp]
	add	rax, rdx
	mov	QWORD PTR -15184[rbp], rax
	mov	rcx, QWORD PTR -15184[rbp]
	mov	rdx, QWORD PTR -15192[rbp]
	mov	rax, QWORD PTR -15200[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -15192[rbp]
	mov	edx, 9
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L20
	mov	DWORD PTR -15224[rbp], 9
	jmp	.L21
.L22:
	add	DWORD PTR -15224[rbp], 1
.L21:
	mov	eax, DWORD PTR -15224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -15192[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 63
	jne	.L22
	mov	eax, DWORD PTR -15224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -15192[rbp]
	lea	rcx, 9[rax]
	lea	rax, -15136[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rax, -15136[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -15136[rbp]
	lea	rax, -15136[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -15136[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -15136[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -15216[rbp], eax
	cmp	DWORD PTR -15216[rbp], -1
	je	.L20
	mov	rax, QWORD PTR -15192[rbp]
	add	rax, 1
	movabs	rsi, 3343197498338471284
	mov	QWORD PTR [rax], rsi
	mov	DWORD PTR 8[rax], 7633012
.L20:
	mov	rax, QWORD PTR -15192[rbp]
	add	rax, 1
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -15176[rbp], rax
	cmp	QWORD PTR -15176[rbp], 0
	jne	.L23
	lea	rax, -10016[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -10016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -10016[rbp]
	mov	eax, DWORD PTR -15212[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L24
.L23:
	lea	rax, -10016[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -10016[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -10016[rbp]
	mov	eax, DWORD PTR -15212[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L25
.L26:
	lea	rcx, -15244[rbp]
	mov	eax, DWORD PTR -15212[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L25:
	mov	rax, QWORD PTR -15176[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -15244[rbp], eax
	mov	eax, DWORD PTR -15244[rbp]
	cmp	eax, -1
	jne	.L26
	mov	rax, QWORD PTR -15176[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L24:
	mov	eax, DWORD PTR -15212[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L27
.L28:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	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	"297368.c"
	.text
	.comm	tmp,4,4
	.comm	h,800,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Socket fallita\000"
	.align	2
.LC1:
	.ascii	"setsockopt fallita\000"
	.align	2
.LC2:
	.ascii	"bind fallita\000"
	.align	2
.LC3:
	.ascii	"Listen Fallita\000"
	.align	2
.LC4:
	.ascii	"Accept Fallita\000"
	.align	2
.LC5:
	.ascii	"Command line = %s\012\000"
	.align	2
.LC6:
	.ascii	"%s ----> %s\012\000"
	.align	2
.LC7:
	.ascii	"method=%s path=%s ver=%s\012\000"
	.align	2
.LC8:
	.ascii	"/cgi-bin/\000"
	.align	2
.LC9:
	.ascii	"Command %s\012\000"
	.align	2
.LC10:
	.ascii	"%s > tmpfile.txt\000"
	.align	2
.LC11:
	.ascii	"Eseguo il comando %s\012\000"
	.align	2
.LC12:
	.ascii	"tmpfile.txt\000"
	.align	2
.LC13:
	.ascii	"rt\000"
	.align	2
.LC14:
	.ascii	"HTTP/1.1 404 Not Found\015\012\015\012\000"
	.align	2
.LC15:
	.ascii	"HTTP/1.1 200 OK\015\012\015\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 15200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #15168
	sub	sp, sp, #44
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2900]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-2880]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2880]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L31+4
	bl	perror
	mov	r3, #1
	b	.L28
.L2:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #2848
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L31+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #2848
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2844]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #15168
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [r0, #-2880]
	bl	setsockopt
	str	r0, [r4, #-2876]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2876]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L31+12
	bl	perror
	mov	r3, #1
	b	.L28
.L4:
	sub	r3, fp, #15104
	sub	r3, r3, #12
	sub	r3, r3, #32
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [r0, #-2880]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L31+16
	bl	perror
	mov	r3, #1
	b	.L28
.L5:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r1, #5
	ldr	r0, [r3, #-2880]
	bl	listen
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L31+20
	bl	perror
	mov	r3, #1
	b	.L28
.L6:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-2908]
.L27:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #15168
	sub	r2, r2, #12
	sub	r2, r2, #28
	sub	r3, fp, #15104
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r1, fp, #12288
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2880]
	bl	accept
	str	r0, [r4, #-2872]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2872]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L31+24
	bl	perror
	mov	r3, #1
	b	.L28
.L7:
	ldr	r3, .L31+28
	mov	r0, r3
	mov	r3, #400
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r2, .L31+28
	sub	r3, fp, #14976
	sub	r3, r3, #12
	sub	r3, r3, #28
	str	r3, [r2]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L31+28
	ldr	r3, [r3]
	str	r3, [r2, #-2868]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2892]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2888]
	b	.L8
.L13:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2892]
	add	r3, r2, r3
	sub	r3, r3, #2704
	sub	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L9
	ldr	r2, .L31+28
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2888]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L9
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2892]
	add	r3, r2, r3
	sub	r3, r3, #2704
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2892]
	add	r2, r3, #1
	sub	r3, fp, #14976
	sub	r3, r3, #12
	sub	r3, r3, #28
	add	r2, r3, r2
	ldr	r1, .L31+28
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2888]
	lsl	r3, r3, #3
	add	r3, r1, r3
	str	r2, [r3, #4]
	b	.L10
.L9:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2892]
	add	r3, r2, r3
	sub	r3, r3, #2704
	sub	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L10
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2892]
	sub	r3, r3, #1
	sub	r2, fp, #12288
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-2716]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L10
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2892]
	sub	r3, r3, #1
	sub	r2, fp, #12288
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2716]
	ldr	r2, .L31+28
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2888]
	ldr	r3, [r2, r3, lsl #3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L30
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2892]
	add	r2, r3, #1
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2888]
	add	r3, r3, #1
	str	r3, [r1, #-2888]
	sub	r3, fp, #14976
	sub	r3, r3, #12
	sub	r3, r3, #28
	add	r2, r3, r2
	ldr	r1, .L31+28
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2888]
	str	r2, [r1, r3, lsl #3]
.L10:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2892]
	add	r3, r3, #1
	str	r3, [r2, #-2892]
.L8:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r2, [r3, #-2892]
	sub	r3, fp, #14976
	sub	r3, r3, #12
	sub	r3, r3, #28
	add	r3, r3, r2
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-2872]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	b	.L12
.L30:
	nop
.L12:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r1, [r3, #-2868]
	ldr	r0, .L31+32
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-2896]
	b	.L14
.L15:
	ldr	r2, .L31+28
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	ldr	r1, [r2, r3, lsl #3]
	ldr	r2, .L31+28
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L31+36
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	add	r3, r3, #1
	str	r3, [r2, #-2896]
.L14:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r2, [r2, #-2896]
	ldr	r3, [r3, #-2888]
	cmp	r2, r3
	blt	.L15
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2868]
	str	r3, [r2, #-2864]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2896]
	b	.L16
.L17:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	add	r3, r3, #1
	str	r3, [r2, #-2896]
.L16:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-2868]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L17
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-2868]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	add	r3, r3, #1
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-2868]
	add	r3, r2, r3
	str	r3, [r1, #-2860]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	add	r3, r3, #1
	str	r3, [r2, #-2896]
	b	.L18
.L19:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	add	r3, r3, #1
	str	r3, [r2, #-2896]
.L18:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-2868]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L19
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-2868]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2896]
	add	r3, r3, #1
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-2868]
	add	r3, r2, r3
	str	r3, [r1, #-2856]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r1, fp, #12288
	sub	r1, r1, #12
	ldr	r3, [r3, #-2856]
	ldr	r2, [r2, #-2860]
	ldr	r1, [r1, #-2864]
	ldr	r0, .L31+40
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, #9
	ldr	r1, .L31+44
	ldr	r0, [r3, #-2860]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #9
	str	r3, [r2, #-2884]
	b	.L21
.L22:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2884]
	add	r3, r3, #1
	str	r3, [r2, #-2884]
.L21:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2884]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-2860]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #63
	bne	.L22
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2860]
	add	r1, r3, #9
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r2, [r3, #-2884]
	sub	r3, fp, #15104
	sub	r3, r3, #12
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #15104
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L31+48
	bl	printf
	sub	r2, fp, #15104
	sub	r2, r2, #12
	sub	r3, fp, #15104
	sub	r3, r3, #12
	ldr	r1, .L31+52
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #15104
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L31+56
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #15104
	sub	r3, r3, #12
	mov	r0, r3
	bl	system
	str	r0, [r4, #-2876]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2876]
	cmn	r3, #1
	beq	.L20
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2860]
	add	r3, r3, #1
	ldr	r2, .L31+60
	mov	r0, r3
	mov	r1, r2
	mov	r3, #12
	mov	r2, r3
	bl	memcpy
.L20:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2860]
	add	r3, r3, #1
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r4, r2
	ldr	r1, .L31+64
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-2852]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2852]
	cmp	r3, #0
	bne	.L23
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L31+68
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r1, fp, #12288
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2872]
	bl	write
	b	.L24
.L23:
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	ldr	r1, .L31+72
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #9984
	sub	r3, r3, #12
	sub	r3, r3, #20
	sub	r1, fp, #12288
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-2872]
	bl	write
	b	.L25
.L26:
	sub	r3, fp, #15168
	sub	r3, r3, #12
	sub	r3, r3, #24
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-2872]
	bl	write
.L25:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-2852]
	bl	fgetc
	mov	r3, r0
	sub	r2, fp, #12288
	sub	r2, r2, #12
	str	r3, [r2, #-2904]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-2904]
	cmn	r3, #1
	bne	.L26
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-2852]
	bl	fclose
.L24:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-2872]
	bl	close
	b	.L27
.L28:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC16
	.word	.LC0
	.word	7382
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	h
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
