	.file	"extr_http.c_evhttp_handle_request.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Not Found"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"<html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL %s was not found on this server.</p></body></html>\n"
	.text
	.p2align 4
	.type	evhttp_handle_request, @function
evhttp_handle_request:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	mov	QWORD PTR [rsp], rsi
	mov	QWORD PTR 24[rdi], 0
	test	eax, eax
	je	.L2
	cmp	QWORD PTR 8[rdi], 0
	je	.L2
	mov	edi, DWORD PTR [rsi]
	test	eax, edi
	je	.L22
	mov	rdi, rbp
	call	evhttp_request_get_host@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L6
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, rsp
	call	evhttp_find_vhost@PLT
.L6:
	mov	rax, QWORD PTR [rsp]
	mov	rsi, rbp
	lea	rdi, 16[rax]
	call	evhttp_dispatch_callback@PLT
	test	rax, rax
	je	.L7
	mov	esi, DWORD PTR [rax]
	mov	rdi, rbp
	call	[QWORD PTR 8[rax]]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 16
	.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
.L22:
	.cfi_restore_state
	call	event_debug@PLT
	mov	esi, DWORD PTR HTTP_NOTIMPLEMENTED[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	evhttp_send_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR 16[rbp]
	xor	edx, edx
	mov	rdi, rbp
	call	evhttp_send_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR [rsp]
	mov	rax, QWORD PTR 8[rdx]
	test	rax, rax
	je	.L8
	mov	esi, DWORD PTR 4[rdx]
	mov	rdi, rbp
	call	rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR 8[rbp]
	call	evhttp_htmlescape@PLT
	mov	r12, rax
	test	rax, rax
	je	.L20
	xor	eax, eax
	call	evbuffer_new@PLT
	mov	r13, rax
	test	rax, rax
	je	.L24
	mov	esi, DWORD PTR HTTP_NOTFOUND[rip]
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	call	evhttp_response_code_@PLT
	lea	rax, .LC1[rip]
	mov	rdx, r12
	mov	rdi, r13
	lea	esi, [rax]
	call	evbuffer_add_printf@PLT
	mov	rdi, r12
	call	mm_free@PLT
	mov	rdi, rbp
	mov	rsi, r13
	call	evhttp_send_page_@PLT
	mov	rdi, r13
	call	evbuffer_free@PLT
	jmp	.L1
.L24:
	mov	rdi, r12
	call	mm_free@PLT
.L20:
	mov	edi, DWORD PTR 4[rbp]
	call	evhttp_connection_free@PLT
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	evhttp_handle_request, .-evhttp_handle_request
	.comm	HTTP_NOTIMPLEMENTED,4,4
	.comm	HTTP_NOTFOUND,4,4
	.comm	ERR_FORMAT,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_http.c_evhttp_handle_request.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Not Found\000"
	.align	2
.LC1:
	.ascii	"<html><head><title>404 Not Found</title></head><bod"
	.ascii	"y><h1>Not Found</h1><p>The requested URL %s was not"
	.ascii	" found on this server.</p></body></html>\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	evhttp_handle_request, %function
evhttp_handle_request:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	ldr	r2, [r0]
	sub	sp, sp, #8
	ldr	ip, .L25
	str	r1, [sp]
	cmp	r2, r3
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	mov	r4, r0
	str	r3, [r0, #16]
	beq	.L2
	ldr	r3, [r0, #8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r1]
	ands	r5, r2, r3
	beq	.L22
	bl	evhttp_request_get_host
	subs	r2, r0, #0
	beq	.L6
	mov	r1, sp
	ldr	r0, [sp]
	bl	evhttp_find_vhost
.L6:
	ldr	r0, [sp]
	mov	r1, r4
	add	r0, r0, #12
	bl	evhttp_dispatch_callback
	subs	r3, r0, #0
	beq	.L7
	ldm	r3, {r1, r2}
	mov	r0, r4
	blx	r2
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L22:
	mov	r0, r3
	bl	event_debug
	ldr	r3, .L25+4
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [r3]
	bl	evhttp_send_error
	b	.L1
.L2:
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r4, #12]
	bl	evhttp_send_error
	b	.L1
.L7:
	ldr	r2, [sp]
	ldr	r3, [r2, #8]
	cmp	r3, #0
	beq	.L8
	mov	r0, r4
	ldr	r1, [r2, #4]
	blx	r3
	b	.L1
.L8:
	ldr	r0, [r4, #8]
	bl	evhttp_htmlescape
	subs	r5, r0, #0
	beq	.L20
	bl	evbuffer_new
	subs	r6, r0, #0
	beq	.L24
	ldr	r3, .L25+8
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, .L25+12
	bl	evhttp_response_code_
	mov	r2, r5
	ldr	r1, .L25+16
	mov	r0, r6
	bl	evbuffer_add_printf
	mov	r0, r5
	bl	mm_free
	mov	r1, r6
	mov	r0, r4
	bl	evhttp_send_page_
	mov	r0, r6
	bl	evbuffer_free
	b	.L1
.L24:
	mov	r0, r5
	bl	mm_free
.L20:
	ldr	r0, [r4, #4]
	bl	evhttp_connection_free
	b	.L1
.L23:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	HTTP_NOTIMPLEMENTED
	.word	HTTP_NOTFOUND
	.word	.LC0
	.word	.LC1
	.size	evhttp_handle_request, .-evhttp_handle_request
	.comm	HTTP_NOTIMPLEMENTED,4,4
	.comm	HTTP_NOTFOUND,4,4
	.comm	ERR_FORMAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
