	.file	"351411.c"
	.intel_syntax noprefix
	.text
	.globl	socket_path
	.section	.rodata
.LC0:
	.string	"./socket"
	.section	.data.rel.local,"aw"
	.align 8
	.type	socket_path, @object
	.size	socket_path, 8
socket_path:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"HTTP/1.0 %i %s\r\n"
.LC2:
	.string	"\r\n"
	.text
	.globl	error
	.type	error, @function
error:
.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, 1056
	mov	DWORD PTR -1044[rbp], edi
	mov	DWORD PTR -1048[rbp], esi
	mov	QWORD PTR -1056[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -1056[rbp]
	mov	edx, DWORD PTR -1048[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1044[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -1044[rbp]
	mov	edx, 2
	lea	rsi, .LC2[rip]
	mov	edi, eax
	call	write@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -9[rax]
	lea	rax, -1040[rbp]
	add	rax, 9
	mov	ecx, DWORD PTR -1044[rbp]
	mov	rsi, rax
	mov	edi, ecx
	call	write@PLT
	mov	eax, DWORD PTR -1044[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.globl	expect
	.type	expect, @function
expect:
.LFB7:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L5
	mov	eax, 0
	jmp	.L6
.L5:
	add	QWORD PTR -8[rbp], 1
	add	QWORD PTR -16[rbp], 1
.L4:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	mov	eax, 1
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	expect, .-expect
	.section	.rodata
.LC3:
	.string	"Not Found"
.LC4:
	.string	"Status: "
.LC5:
	.string	"no status line"
.LC6:
	.string	"invalid status code"
.LC7:
	.string	"invalid status line"
.LC8:
	.string	"HTTP/1.0 %i -\r\n"
.LC9:
	.string	"\r\n\r\n"
	.text
	.globl	serve
	.type	serve, @function
serve:
.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, 2112
	mov	DWORD PTR -2100[rbp], edi
	mov	QWORD PTR -2112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2112[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -2072[rbp], eax
	cmp	DWORD PTR -2072[rbp], 0
	jg	.L9
	mov	eax, DWORD PTR -2100[rbp]
	lea	rdx, .LC3[rip]
	mov	esi, 404
	mov	edi, eax
	call	error
	jmp	.L8
.L9:
	mov	DWORD PTR -2080[rbp], 0
	jmp	.L11
.L24:
	cmp	DWORD PTR -2080[rbp], 0
	jne	.L12
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	expect
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR -2100[rbp]
	lea	rdx, .LC5[rip]
	mov	esi, 500
	mov	edi, eax
	call	error
	jmp	.L8
.L13:
	mov	DWORD PTR -2076[rbp], 8
	jmp	.L15
.L22:
	mov	eax, DWORD PTR -2076[rbp]
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	mov	BYTE PTR -2081[rbp], al
	cmp	BYTE PTR -2081[rbp], 10
	je	.L27
	cmp	BYTE PTR -2081[rbp], 13
	je	.L28
	cmp	BYTE PTR -2081[rbp], 47
	jle	.L20
	cmp	BYTE PTR -2081[rbp], 57
	jle	.L21
.L20:
	mov	eax, DWORD PTR -2100[rbp]
	lea	rdx, .LC6[rip]
	mov	esi, 500
	mov	edi, eax
	call	error
.L21:
	mov	edx, DWORD PTR -2080[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -2080[rbp], eax
	movsx	eax, BYTE PTR -2081[rbp]
	sub	eax, 48
	add	DWORD PTR -2080[rbp], eax
	jmp	.L19
.L28:
	nop
.L19:
	add	DWORD PTR -2076[rbp], 1
.L15:
	mov	eax, DWORD PTR -2076[rbp]
	cmp	eax, DWORD PTR -2068[rbp]
	jl	.L22
	jmp	.L17
.L27:
	nop
.L17:
	mov	eax, DWORD PTR -2076[rbp]
	cmp	eax, DWORD PTR -2068[rbp]
	jne	.L23
	mov	eax, DWORD PTR -2100[rbp]
	lea	rdx, .LC7[rip]
	mov	esi, 500
	mov	edi, eax
	call	error
	jmp	.L8
.L23:
	add	DWORD PTR -2076[rbp], 1
	mov	edx, DWORD PTR -2080[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -2100[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -2068[rbp]
	sub	eax, DWORD PTR -2076[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -2076[rbp]
	cdqe
	lea	rcx, -2064[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -2100[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -2068[rbp]
	movsx	rdx, eax
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2100[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L11:
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2072[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -2068[rbp], eax
	cmp	DWORD PTR -2068[rbp], 0
	jg	.L24
	mov	eax, DWORD PTR -2072[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2100[rbp]
	mov	edx, 4
	lea	rsi, .LC9[rip]
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -2100[rbp]
	mov	edi, eax
	call	close@PLT
.L8:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	serve, .-serve
	.section	.rodata
.LC10:
	.string	"--help"
.LC11:
	.string	"Usage: %s [socket_path]\n"
	.align 8
.LC12:
	.string	"Serve current directory's .asis files over Unix socket socket_path."
	.align 8
.LC13:
	.string	"If socket_path is not provided, the default is ./socket"
.LC14:
	.string	"Options: --help, --version"
.LC15:
	.string	"--version"
.LC16:
	.string	"%s 0.5\n"
	.align 8
.LC17:
	.string	"Copyright (C) 2019 Michael Homer"
	.align 8
.LC18:
	.string	"Distributed under the MIT licence."
.LC19:
	.string	"%s: error: unknown option %s\n"
.LC20:
	.string	"%s: error: try %s --help\n"
	.align 8
.LC21:
	.string	"%s: Using socket path %s and awaiting requests\n"
.LC22:
	.string	"socket error"
.LC23:
	.string	"bind error"
.LC24:
	.string	"listen error"
.LC25:
	.string	"accept error"
.LC26:
	.string	"GET "
	.align 8
.LC27:
	.string	"Request method not implemented"
.LC28:
	.string	""
.LC29:
	.string	".."
.LC30:
	.string	"invalid location"
.LC31:
	.string	".%s/index.asis"
.LC32:
	.string	"%s.asis"
	.text
	.globl	main
	.type	main, @function
main:
.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, 3392
	mov	DWORD PTR -3380[rbp], edi
	mov	QWORD PTR -3392[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -3380[rbp], 1
	jle	.L30
	mov	rax, QWORD PTR -3392[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L31
	mov	rax, QWORD PTR -3392[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L60
.L31:
	mov	rax, QWORD PTR -3392[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR -3392[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L60
.L33:
	mov	rax, QWORD PTR -3392[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L34
	mov	rax, QWORD PTR -3392[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -3392[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -3392[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -3392[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L60
.L34:
	mov	rax, QWORD PTR -3392[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR socket_path[rip], rax
.L30:
	mov	rdx, QWORD PTR socket_path[rip]
	mov	rax, QWORD PTR -3392[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR -3356[rbp], eax
	cmp	DWORD PTR -3356[rbp], -1
	jne	.L35
	lea	rdi, .LC22[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L35:
	lea	rax, -3344[rbp]
	mov	edx, 110
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -3344[rbp], 1
	mov	rax, QWORD PTR socket_path[rip]
	lea	rdx, -3344[rbp]
	lea	rcx, 2[rdx]
	mov	edx, 107
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	rax, QWORD PTR socket_path[rip]
	mov	rdi, rax
	call	unlink@PLT
	lea	rcx, -3344[rbp]
	mov	eax, DWORD PTR -3356[rbp]
	mov	edx, 110
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L36
	lea	rdi, .LC23[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L36:
	mov	eax, DWORD PTR -3356[rbp]
	mov	esi, 16
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L62
	lea	rdi, .LC24[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L62:
	nop
.L37:
	mov	eax, DWORD PTR -3356[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -3352[rbp], eax
	cmp	DWORD PTR -3352[rbp], -1
	jne	.L38
	lea	rdi, .LC25[rip]
	call	perror@PLT
	jmp	.L37
.L38:
	mov	BYTE PTR -2064[rbp], 0
	mov	BYTE PTR -3365[rbp], 0
	jmp	.L40
.L53:
	movzx	eax, BYTE PTR -2064[rbp]
	test	al, al
	jne	.L41
	lea	rax, -3088[rbp]
	mov	rsi, rax
	lea	rdi, .LC26[rip]
	call	expect
	test	eax, eax
	jne	.L42
	mov	eax, DWORD PTR -3352[rbp]
	lea	rdx, .LC27[rip]
	mov	esi, 501
	mov	edi, eax
	call	error
	jmp	.L37
.L42:
	mov	DWORD PTR -3364[rbp], 4
	jmp	.L43
.L45:
	mov	eax, DWORD PTR -3364[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -3364[rbp], edx
	mov	edx, DWORD PTR -3364[rbp]
	lea	ecx, -4[rdx]
	cdqe
	movzx	edx, BYTE PTR -3088[rbp+rax]
	movsx	rax, ecx
	mov	BYTE PTR -2064[rbp+rax], dl
.L43:
	mov	eax, DWORD PTR -3364[rbp]
	cdqe
	movzx	eax, BYTE PTR -3088[rbp+rax]
	cmp	al, 32
	je	.L44
	mov	eax, DWORD PTR -3364[rbp]
	cmp	eax, DWORD PTR -3348[rbp]
	jl	.L45
.L44:
	mov	eax, DWORD PTR -3364[rbp]
	cmp	eax, DWORD PTR -3348[rbp]
	jne	.L46
	mov	eax, DWORD PTR -3352[rbp]
	lea	rdx, .LC28[rip]
	mov	esi, 403
	mov	edi, eax
	call	error
	jmp	.L37
.L46:
	mov	eax, DWORD PTR -3364[rbp]
	sub	eax, 4
	cdqe
	mov	BYTE PTR -2064[rbp+rax], 0
.L41:
	mov	DWORD PTR -3360[rbp], 0
	jmp	.L47
.L52:
	mov	eax, DWORD PTR -3360[rbp]
	cdqe
	movzx	eax, BYTE PTR -3088[rbp+rax]
	cmp	al, 10
	jne	.L48
	cmp	BYTE PTR -3365[rbp], 10
	je	.L63
.L48:
	cmp	BYTE PTR -3365[rbp], 10
	jne	.L50
	mov	eax, DWORD PTR -3360[rbp]
	cdqe
	movzx	eax, BYTE PTR -3088[rbp+rax]
	cmp	al, 13
	je	.L51
.L50:
	mov	eax, DWORD PTR -3360[rbp]
	cdqe
	movzx	eax, BYTE PTR -3088[rbp+rax]
	mov	BYTE PTR -3365[rbp], al
.L51:
	add	DWORD PTR -3360[rbp], 1
.L47:
	mov	eax, DWORD PTR -3360[rbp]
	cmp	eax, DWORD PTR -3348[rbp]
	jl	.L52
.L40:
	lea	rcx, -3088[rbp]
	mov	eax, DWORD PTR -3352[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -3348[rbp], eax
	cmp	DWORD PTR -3348[rbp], 0
	jg	.L53
	jmp	.L49
.L63:
	nop
.L49:
	movzx	eax, BYTE PTR -2064[rbp]
	cmp	al, 47
	jne	.L54
	lea	rax, -2064[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L55
.L54:
	mov	eax, DWORD PTR -3352[rbp]
	lea	rdx, .LC30[rip]
	mov	esi, 403
	mov	edi, eax
	call	error
	jmp	.L39
.L55:
	lea	rdx, -2064[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -3232[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L57
	lea	rdx, -1040[rbp]
	mov	eax, DWORD PTR -3352[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	serve
	jmp	.L37
.L57:
	lea	rdx, -2064[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -3232[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L59
	lea	rdx, -1040[rbp]
	mov	eax, DWORD PTR -3352[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	serve
	jmp	.L37
.L59:
	mov	eax, DWORD PTR -3352[rbp]
	lea	rdx, .LC3[rip]
	mov	esi, 404
	mov	edi, eax
	call	error
	jmp	.L37
.L39:
	jmp	.L37
.L60:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"351411.c"
	.text
	.global	socket_path
	.section	.rodata
	.align	2
.LC0:
	.ascii	"./socket\000"
	.data
	.align	2
	.type	socket_path, %object
	.size	socket_path, 4
socket_path:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"HTTP/1.0 %i %s\015\012\000"
	.align	2
.LC2:
	.ascii	"\015\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1040
	sub	sp, sp, #12
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	str	r2, [fp, #-1056]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-1056]
	ldr	r2, [fp, #-1052]
	ldr	r1, .L3+4
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1048]
	bl	write
	mov	r2, #2
	ldr	r1, .L3+8
	ldr	r0, [fp, #-1048]
	bl	write
	sub	r4, fp, #1024
	sub	r4, r4, #12
	sub	r4, r4, #4
	add	r4, r4, #9
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #9
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-1048]
	bl	write
	ldr	r0, [fp, #-1048]
	bl	close
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	error, .-error
	.align	2
	.global	expect
	.syntax unified
	.arm
	.fpu softvfp
	.type	expect, %function
expect:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	b	.L6
.L9:
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L7
	mov	r3, #0
	b	.L8
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	mov	r3, #1
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	expect, .-expect
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Not Found\000"
	.align	2
.LC5:
	.ascii	"Status: \000"
	.align	2
.LC6:
	.ascii	"no status line\000"
	.align	2
.LC7:
	.ascii	"invalid status code\000"
	.align	2
.LC8:
	.ascii	"invalid status line\000"
	.align	2
.LC9:
	.ascii	"HTTP/1.0 %i -\015\012\000"
	.align	2
.LC10:
	.ascii	"\015\012\015\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	serve
	.syntax unified
	.arm
	.fpu softvfp
	.type	serve, %function
serve:
	@ args = 0, pretend = 0, frame = 2080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2080
	str	r0, [fp, #-2080]
	str	r1, [fp, #-2084]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, [fp, #-2084]
	bl	open
	str	r0, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	bgt	.L11
	ldr	r2, .L31+4
	mov	r1, #404
	ldr	r0, [fp, #-2080]
	bl	error
	b	.L10
.L11:
	mov	r3, #0
	str	r3, [fp, #-2072]
	b	.L13
.L26:
	ldr	r3, [fp, #-2072]
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L31+8
	bl	expect
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r2, .L31+12
	mov	r1, #500
	ldr	r0, [fp, #-2080]
	bl	error
	b	.L10
.L15:
	mov	r3, #8
	str	r3, [fp, #-2068]
	b	.L17
.L24:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2068]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-2073]
	ldrb	r3, [fp, #-2073]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L29
	ldrb	r3, [fp, #-2073]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L30
	ldrb	r3, [fp, #-2073]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L22
	ldrb	r3, [fp, #-2073]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L23
.L22:
	ldr	r2, .L31+16
	mov	r1, #500
	ldr	r0, [fp, #-2080]
	bl	error
.L23:
	ldr	r2, [fp, #-2072]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-2072]
	ldrb	r3, [fp, #-2073]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-2072]
	add	r3, r2, r3
	str	r3, [fp, #-2072]
	b	.L21
.L30:
	nop
.L21:
	ldr	r3, [fp, #-2068]
	add	r3, r3, #1
	str	r3, [fp, #-2068]
.L17:
	ldr	r2, [fp, #-2068]
	ldr	r3, [fp, #-2060]
	cmp	r2, r3
	blt	.L24
	b	.L19
.L29:
	nop
.L19:
	ldr	r2, [fp, #-2068]
	ldr	r3, [fp, #-2060]
	cmp	r2, r3
	bne	.L25
	ldr	r2, .L31+20
	mov	r1, #500
	ldr	r0, [fp, #-2080]
	bl	error
	b	.L10
.L25:
	ldr	r3, [fp, #-2068]
	add	r3, r3, #1
	str	r3, [fp, #-2068]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	ldr	r1, .L31+24
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2080]
	bl	write
	ldr	r2, [fp, #-2068]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r1, r3, r2
	ldr	r2, [fp, #-2060]
	ldr	r3, [fp, #-2068]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-2080]
	bl	write
	b	.L13
.L14:
	ldr	r2, [fp, #-2060]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2080]
	bl	write
.L13:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-2064]
	bl	read
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	bgt	.L26
	ldr	r0, [fp, #-2064]
	bl	close
	mov	r2, #4
	ldr	r1, .L31+28
	ldr	r0, [fp, #-2080]
	bl	write
	ldr	r0, [fp, #-2080]
	bl	close
.L10:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC11
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	serve, .-serve
	.section	.rodata
	.align	2
.LC12:
	.ascii	"--help\000"
	.align	2
.LC13:
	.ascii	"Usage: %s [socket_path]\012\000"
	.align	2
.LC14:
	.ascii	"Serve current directory's .asis files over Unix soc"
	.ascii	"ket socket_path.\000"
	.align	2
.LC15:
	.ascii	"If socket_path is not provided, the default is ./so"
	.ascii	"cket\000"
	.align	2
.LC16:
	.ascii	"Options: --help, --version\000"
	.align	2
.LC17:
	.ascii	"--version\000"
	.align	2
.LC18:
	.ascii	"%s 0.5\012\000"
	.align	2
.LC19:
	.ascii	"Copyright (C) 2019 Michael Homer\000"
	.align	2
.LC20:
	.ascii	"Distributed under the MIT licence.\000"
	.align	2
.LC21:
	.ascii	"%s: error: unknown option %s\012\000"
	.align	2
.LC22:
	.ascii	"%s: error: try %s --help\012\000"
	.align	2
.LC23:
	.ascii	"%s: Using socket path %s and awaiting requests\012\000"
	.align	2
.LC24:
	.ascii	"socket error\000"
	.align	2
.LC25:
	.ascii	"bind error\000"
	.align	2
.LC26:
	.ascii	"listen error\000"
	.align	2
.LC27:
	.ascii	"accept error\000"
	.align	2
.LC28:
	.ascii	"GET \000"
	.align	2
.LC29:
	.ascii	"Request method not implemented\000"
	.align	2
.LC30:
	.ascii	"\000"
	.align	2
.LC31:
	.ascii	"..\000"
	.align	2
.LC32:
	.ascii	"invalid location\000"
	.align	2
.LC33:
	.ascii	".%s/index.asis\000"
	.align	2
.LC34:
	.ascii	"%s.asis\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3312
	str	r0, [fp, #-3312]
	str	r1, [fp, #-3316]
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-3312]
	cmp	r3, #1
	ble	.L34
	ldr	r3, [fp, #-3316]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L68+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-3316]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L68+8
	bl	printf
	ldr	r0, .L68+12
	bl	puts
	ldr	r0, .L68+16
	bl	puts
	ldr	r0, .L68+20
	bl	puts
	mov	r3, #0
	b	.L64
.L35:
	ldr	r3, [fp, #-3316]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L68+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-3316]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L68+28
	bl	printf
	ldr	r0, .L68+32
	bl	puts
	ldr	r0, .L68+36
	bl	puts
	mov	r3, #0
	b	.L64
.L37:
	ldr	r3, [fp, #-3316]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L38
	ldr	r3, [fp, #-3316]
	ldr	r1, [r3]
	ldr	r3, [fp, #-3316]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L68+40
	bl	printf
	ldr	r3, [fp, #-3316]
	ldr	r1, [r3]
	ldr	r3, [fp, #-3316]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L68+44
	bl	printf
	mov	r3, #1
	b	.L64
.L38:
	ldr	r3, [fp, #-3316]
	ldr	r3, [r3, #4]
	ldr	r2, .L68+48
	str	r3, [r2]
.L34:
	ldr	r3, [fp, #-3316]
	ldr	r3, [r3]
	ldr	r2, .L68+48
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L68+52
	bl	printf
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socket
	str	r0, [fp, #-3296]
	ldr	r3, [fp, #-3296]
	cmn	r3, #1
	bne	.L39
	ldr	r0, .L68+56
	bl	perror
	mvn	r0, #0
	bl	exit
.L39:
	sub	r3, fp, #3184
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #110
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4
	sub	r3, r3, #3184
	sub	r3, r3, #4
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r3, .L68+48
	ldr	r1, [r3]
	sub	r3, fp, #3184
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #2
	mov	r2, #107
	mov	r0, r3
	bl	strncpy
	ldr	r3, .L68+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	unlink
	sub	r3, fp, #3184
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #110
	mov	r1, r3
	ldr	r0, [fp, #-3296]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L40
	ldr	r0, .L68+60
	bl	perror
	mvn	r0, #0
	bl	exit
.L40:
	mov	r1, #16
	ldr	r0, [fp, #-3296]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L66
	ldr	r0, .L68+64
	bl	perror
	mvn	r0, #0
	bl	exit
.L66:
	nop
.L41:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-3296]
	bl	accept
	str	r0, [fp, #-3292]
	ldr	r3, [fp, #-3292]
	cmn	r3, #1
	bne	.L42
	ldr	r0, .L68+68
	bl	perror
	b	.L41
.L42:
	mov	r3, #0
	strb	r3, [fp, #-2056]
	mov	r3, #0
	strb	r3, [fp, #-3305]
	b	.L44
.L57:
	ldrb	r3, [fp, #-2056]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L45
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L68+72
	bl	expect
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
	ldr	r2, .L68+76
	ldr	r1, .L68+80
	ldr	r0, [fp, #-3292]
	bl	error
	b	.L41
.L46:
	mov	r3, #4
	str	r3, [fp, #-3304]
	b	.L47
.L49:
	ldr	r3, [fp, #-3304]
	add	r2, r3, #1
	str	r2, [fp, #-3304]
	ldr	r2, [fp, #-3304]
	sub	r2, r2, #4
	sub	r1, fp, #4
	add	r3, r1, r3
	ldrb	r1, [r3, #-3076]	@ zero_extendqisi2
	sub	r3, fp, #4
	add	r3, r3, r2
	mov	r2, r1
	strb	r2, [r3, #-2052]
.L47:
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-3304]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L48
	ldr	r2, [fp, #-3304]
	ldr	r3, [fp, #-3288]
	cmp	r2, r3
	blt	.L49
.L48:
	ldr	r2, [fp, #-3304]
	ldr	r3, [fp, #-3288]
	cmp	r2, r3
	bne	.L50
	ldr	r2, .L68+84
	ldr	r1, .L68+88
	ldr	r0, [fp, #-3292]
	bl	error
	b	.L41
.L50:
	ldr	r3, [fp, #-3304]
	sub	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2052]
.L45:
	mov	r3, #0
	str	r3, [fp, #-3300]
	b	.L51
.L56:
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-3300]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L52
	ldrb	r3, [fp, #-3305]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L67
.L52:
	ldrb	r3, [fp, #-3305]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L54
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-3300]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L55
.L54:
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-3300]
	add	r3, r3, r2
	ldrb	r3, [r3]
	strb	r3, [fp, #-3305]
.L55:
	ldr	r3, [fp, #-3300]
	add	r3, r3, #1
	str	r3, [fp, #-3300]
.L51:
	ldr	r2, [fp, #-3300]
	ldr	r3, [fp, #-3288]
	cmp	r2, r3
	blt	.L56
.L44:
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-3292]
	bl	read
	str	r0, [fp, #-3288]
	ldr	r3, [fp, #-3288]
	cmp	r3, #0
	bgt	.L57
	b	.L53
.L67:
	nop
.L53:
	ldrb	r3, [fp, #-2056]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L58
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L68+92
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
.L58:
	ldr	r2, .L68+96
	ldr	r1, .L68+88
	ldr	r0, [fp, #-3292]
	bl	error
	b	.L43
.L59:
	sub	r2, fp, #2048
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L68+100
	mov	r0, r3
	bl	sprintf
	sub	r2, fp, #3280
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-3292]
	bl	serve
	b	.L41
.L61:
	sub	r2, fp, #2048
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L68+104
	mov	r0, r3
	bl	sprintf
	sub	r2, fp, #3280
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-3292]
	bl	serve
	b	.L41
.L63:
	ldr	r2, .L68+108
	mov	r1, #404
	ldr	r0, [fp, #-3292]
	bl	error
	b	.L41
.L43:
	b	.L41
.L64:
	ldr	r2, .L68
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC35
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	socket_path
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	501
	.word	.LC30
	.word	403
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
