	.file	"extr_mongoose.c_mg_serve_http.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"."
.LC1:
	.string	".htpasswd"
.LC2:
	.string	"yes"
.LC3:
	.string	"**.cgi$|**.php$"
.LC4:
	.string	"**.shtml$|**.shtm$"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"index.html,index.htm,index.shtml,index.cgi,index.php"
	.section	.rodata.str1.1
.LC6:
	.string	"HTTP/1.1"
.LC7:
	.string	"Connection"
.LC8:
	.string	"keep-alive"
	.text
	.p2align 4
	.globl	mg_serve_http
	.type	mg_serve_http, @function
mg_serve_http:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 4[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rsp], 0
	call	ntohl@PLT
	mov	edi, DWORD PTR 112[rsp]
	mov	esi, eax
	call	mg_check_ip_acl@PLT
	cmp	eax, 1
	jne	.L20
	cmp	QWORD PTR 64[rsp], 0
	je	.L21
	cmp	QWORD PTR 72[rsp], 0
	je	.L22
.L5:
	cmp	QWORD PTR 80[rsp], 0
	je	.L23
.L6:
	cmp	QWORD PTR 88[rsp], 0
	je	.L24
.L7:
	cmp	QWORD PTR 96[rsp], 0
	je	.L25
.L8:
	cmp	QWORD PTR 104[rsp], 0
	je	.L26
.L9:
	lea	rdi, 4[r12]
	mov	rsi, rdi
	call	mg_normalize_uri_path@PLT
	test	eax, eax
	je	.L27
	lea	r13, 12[rsp]
	lea	rdx, 16[rsp]
	mov	rdi, r12
	mov	rcx, r13
	lea	rsi, 64[rsp]
	call	mg_uri_to_local_path@PLT
	test	rax, rax
	je	.L28
	mov	rsi, QWORD PTR 16[rsp]
	lea	r8, 64[rsp]
	mov	rcx, r12
	mov	rdx, r13
	mov	rdi, rbp
	call	mg_send_http_file@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	MG_FREE@PLT
	lea	rsi, .LC6[rip]
	mov	rdi, r12
	mov	QWORD PTR 16[rsp], 0
	call	mg_vcmp@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, r12
	lea	rsi, .LC7[rip]
	call	mg_get_http_header@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L1
	lea	rsi, .LC8[rip]
	call	mg_vcmp@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	xor	edx, edx
	mov	esi, 400
	mov	rdi, rbp
	call	mg_http_send_error@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	lea	rax, .LC5[rip]
	mov	QWORD PTR 104[rsp], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rax, .LC4[rip]
	cmp	QWORD PTR 104[rsp], 0
	mov	QWORD PTR 96[rsp], rax
	jne	.L9
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rax, .LC3[rip]
	cmp	QWORD PTR 96[rsp], 0
	mov	QWORD PTR 88[rsp], rax
	jne	.L8
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rax, .LC2[rip]
	cmp	QWORD PTR 88[rsp], 0
	mov	QWORD PTR 80[rsp], rax
	jne	.L7
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rax, .LC1[rip]
	cmp	QWORD PTR 80[rsp], 0
	mov	QWORD PTR 72[rsp], rax
	jne	.L6
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rax, .LC0[rip]
	cmp	QWORD PTR 72[rsp], 0
	mov	QWORD PTR 64[rsp], rax
	jne	.L5
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L20:
	xor	edx, edx
	mov	esi, 403
	mov	rdi, rbp
	call	mg_http_send_error@PLT
	mov	eax, DWORD PTR MG_F_SEND_AND_CLOSE[rip]
	or	DWORD PTR 0[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	xor	edx, edx
	mov	esi, 404
	mov	rdi, rbp
	call	mg_http_send_error@PLT
	jmp	.L1
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mg_serve_http, .-mg_serve_http
	.comm	MG_F_SEND_AND_CLOSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mongoose.c_mg_serve_http.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".\000"
	.align	2
.LC1:
	.ascii	".htpasswd\000"
	.align	2
.LC2:
	.ascii	"yes\000"
	.align	2
.LC3:
	.ascii	"**.cgi$|**.php$\000"
	.align	2
.LC4:
	.ascii	"**.shtml$|**.shtm$\000"
	.align	2
.LC5:
	.ascii	"index.html,index.htm,index.shtml,index.cgi,index.ph"
	.ascii	"p\000"
	.align	2
.LC6:
	.ascii	"HTTP/1.1\000"
	.align	2
.LC7:
	.ascii	"Connection\000"
	.align	2
.LC8:
	.ascii	"keep-alive\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mg_serve_http
	.syntax unified
	.arm
	.fpu softvfp
	.type	mg_serve_http, %function
mg_serve_http:
	@ args = 28, pretend = 8, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{r4, r5, r6, r7, lr}
	mov	r7, #0
	sub	sp, sp, #28
	mov	r5, r1
	ldr	r1, .L24
	mov	r4, r0
	add	r6, sp, #48
	ldr	r0, [r0, #4]
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	stm	r6, {r2, r3}
	str	r7, [sp, #12]
	bl	ntohl
	mov	r1, r0
	ldr	r0, [sp, #72]
	bl	mg_check_ip_acl
	cmp	r0, #1
	bne	.L20
	ldr	r3, [sp, #48]
	add	r1, r5, #4
	cmp	r3, #0
	ldreq	r3, .L24+4
	mov	r0, r1
	streq	r3, [sp, #48]
	ldr	r3, [sp, #52]
	cmp	r3, #0
	ldreq	r3, .L24+8
	streq	r3, [sp, #52]
	ldr	r3, [sp, #56]
	cmp	r3, #0
	ldreq	r3, .L24+12
	streq	r3, [sp, #56]
	ldr	r3, [sp, #60]
	cmp	r3, #0
	ldreq	r3, .L24+16
	streq	r3, [sp, #60]
	ldr	r3, [sp, #64]
	cmp	r3, #0
	ldreq	r3, .L24+20
	streq	r3, [sp, #64]
	ldr	r3, [sp, #68]
	cmp	r3, #0
	ldreq	r3, .L24+24
	streq	r3, [sp, #68]
	bl	mg_normalize_uri_path
	subs	r2, r0, #0
	beq	.L21
	add	r2, sp, #12
	mov	r1, r6
	mov	r0, r5
	add	r3, sp, #16
	bl	mg_uri_to_local_path
	subs	r2, r0, #0
	beq	.L22
	mov	r3, r5
	ldr	r1, [sp, #12]
	add	r2, sp, #16
	mov	r0, r4
	str	r6, [sp]
	bl	mg_send_http_file
	ldr	r0, [sp, #12]
	bl	MG_FREE
	mov	r3, #0
	mov	r0, r5
	ldr	r1, .L24+28
	str	r3, [sp, #12]
	bl	mg_vcmp
	cmp	r0, #0
	bne	.L1
	mov	r0, r5
	ldr	r1, .L24+32
	bl	mg_get_http_header
	cmp	r0, #0
	beq	.L1
	ldr	r1, .L24+36
	bl	mg_vcmp
	b	.L1
.L21:
	mov	r0, r4
	mov	r1, #400
	bl	mg_http_send_error
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	add	sp, sp, #8
	bx	lr
.L20:
	mov	r2, r7
	mov	r0, r4
	ldr	r1, .L24+40
	bl	mg_http_send_error
	ldr	r2, .L24+44
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L22:
	mov	r0, r4
	mov	r1, #404
	bl	mg_http_send_error
	b	.L1
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	403
	.word	MG_F_SEND_AND_CLOSE
	.size	mg_serve_http, .-mg_serve_http
	.comm	MG_F_SEND_AND_CLOSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
