	.file	"extr_httpd_main.c_httpd_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"web server started"
.LC1:
	.string	"web server exiting"
	.text
	.p2align 4
	.type	httpd_thread, @function
httpd_thread:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR THREAD_RUNNING[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	DWORD PTR [rdi], eax
	lea	rdi, .LC0[rip]
	call	LOG_FMT@PLT
	mov	edi, DWORD PTR TAG[rip]
	mov	esi, eax
	call	ESP_LOGD@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbx
	call	httpd_server@PLT
	cmp	DWORD PTR ESP_OK[rip], eax
	je	.L2
	lea	rdi, .LC1[rip]
	call	LOG_FMT@PLT
	mov	edi, DWORD PTR TAG[rip]
	mov	esi, eax
	call	ESP_LOGD@PLT
	mov	edi, DWORD PTR 12[rbx]
	call	close@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	cs_free_ctrl_sock@PLT
	mov	rdi, rbx
	call	httpd_close_all_sessions@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	close@PLT
	mov	eax, DWORD PTR THREAD_STOPPED[rip]
	mov	DWORD PTR [rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	httpd_os_thread_delete@PLT
	.cfi_endproc
.LFE0:
	.size	httpd_thread, .-httpd_thread
	.comm	THREAD_STOPPED,4,4
	.comm	THREAD_RUNNING,4,4
	.comm	TAG,4,4
	.comm	ESP_OK,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_httpd_main.c_httpd_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"web server started\000"
	.align	2
.LC1:
	.ascii	"web server exiting\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	httpd_thread, %function
httpd_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	ldr	r6, .L6+4
	mov	r4, r0
	ldr	r5, [r6]
	str	r3, [r0]
	ldr	r0, .L6+8
	bl	LOG_FMT
	mov	r1, r0
	mov	r0, r5
	bl	ESP_LOGD
	ldr	r5, .L6+12
.L2:
	mov	r0, r4
	bl	httpd_server
	ldr	r3, [r5]
	cmp	r3, r0
	beq	.L2
	ldr	r0, .L6+16
	ldr	r5, [r6]
	bl	LOG_FMT
	mov	r1, r0
	mov	r0, r5
	bl	ESP_LOGD
	ldr	r0, [r4, #12]
	bl	close
	ldr	r0, [r4, #8]
	bl	cs_free_ctrl_sock
	mov	r0, r4
	bl	httpd_close_all_sessions
	ldr	r0, [r4, #4]
	bl	close
	ldr	r3, .L6+20
	ldr	r3, [r3]
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	httpd_os_thread_delete
.L7:
	.align	2
.L6:
	.word	THREAD_RUNNING
	.word	TAG
	.word	.LC0
	.word	ESP_OK
	.word	.LC1
	.word	THREAD_STOPPED
	.size	httpd_thread, .-httpd_thread
	.comm	THREAD_STOPPED,4,4
	.comm	THREAD_RUNNING,4,4
	.comm	TAG,4,4
	.comm	ESP_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
