	.file	"extr_23481.c_server_loop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"HTTP/1.0 200 OK\n"
.LC1:
	.string	"Content-Length: 40\n"
.LC2:
	.string	"Content-Type: text/html\n\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"<html><body>You're owned!</body></html>"
	.text
	.p2align 4
	.type	server_loop, @function
server_loop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	lea	ebp, 1[r13]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 1080
	.cfi_def_cfa_offset 1136
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1064[rsp], rax
	xor	eax, eax
	lea	rbx, 20[rsp]
	lea	r15, 28[rsp]
	mov	rdi, rbx
	lea	r12, 32[rsp]
	call	FD_ZERO@PLT
	mov	rsi, rbx
	mov	edi, r13d
	call	FD_SET@PLT
	lea	rax, 24[rsp]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L3:
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, rbx
	mov	edi, ebp
	mov	DWORD PTR 28[rsp], 4
	call	select@PLT
	cmp	eax, -1
	je	.L3
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdx, r15
	mov	edi, r13d
	call	accept@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L3
	mov	edi, DWORD PTR ctx[rip]
	call	SSL_new@PLT
	mov	QWORD PTR ssl[rip], rax
	mov	rdi, rax
	test	rax, rax
	je	.L5
	mov	esi, r14d
	call	SSL_set_fd@PLT
	mov	rdi, QWORD PTR ssl[rip]
	call	SSL_set_accept_state@PLT
	mov	rdi, QWORD PTR ssl[rip]
	call	SSL_accept@PLT
	cmp	eax, -1
	je	.L13
.L6:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	strcpy@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	strcat@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	call	strcat@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	call	strcat@PLT
	mov	rdi, r12
	call	strlen@PLT
	mov	rdi, QWORD PTR ssl[rip]
	mov	rsi, r12
	mov	edx, eax
	call	SSL_write@PLT
	mov	rdi, QWORD PTR ssl[rip]
	mov	esi, DWORD PTR SSL_SENT_SHUTDOWN[rip]
	or	esi, DWORD PTR SSL_RECEIVED_SHUTDOWN[rip]
	call	SSL_set_shutdown@PLT
	mov	rdi, QWORD PTR ssl[rip]
	call	SSL_free@PLT
	xor	edi, edi
	call	ERR_remove_state@PLT
.L5:
	mov	edi, r14d
	call	close@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, 1
	call	exit@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	server_loop, .-server_loop
	.comm	ssl,8,8
	.comm	ctx,4,4
	.comm	SSL_SENT_SHUTDOWN,4,4
	.comm	SSL_RECEIVED_SHUTDOWN,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_23481.c_server_loop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"HTTP/1.0 200 OK\012\000"
	.align	2
.LC1:
	.ascii	"Content-Length: 40\012\000"
	.align	2
.LC2:
	.ascii	"Content-Type: text/html\012\012\000"
	.align	2
.LC3:
	.ascii	"<html><body>You're owned!</body></html>\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	server_loop, %function
server_loop:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	sub	sp, sp, #1040
	sub	sp, sp, #12
	ldr	r3, .L14
	add	r0, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #1044]
	mov	r3,#0
	bl	FD_ZERO
	mov	r0, r10
	add	r1, sp, #8
	bl	FD_SET
	mov	r7, #4
	mov	r6, #0
	ldr	r8, .L14+4
	ldr	fp, .L14+8
	add	r5, r10, #1
	add	r9, sp, #20
.L3:
	mov	r3, #0
	mov	r0, r5
	mov	r2, r3
	str	r6, [sp]
	add	r1, sp, #8
	str	r7, [sp, #16]
	bl	select
	cmn	r0, #1
	beq	.L3
	mov	r0, r10
	add	r2, sp, #16
	add	r1, sp, #12
	bl	accept
	subs	r4, r0, #0
	blt	.L3
	ldr	r3, .L14+12
	ldr	r0, [r3]
	bl	SSL_new
	cmp	r0, #0
	str	r0, [r8]
	beq	.L5
	mov	r1, r4
	bl	SSL_set_fd
	ldr	r0, [r8]
	bl	SSL_set_accept_state
	ldr	r0, [r8]
	bl	SSL_accept
	cmn	r0, #1
	beq	.L13
.L6:
	ldr	r3, .L14+16
	ldr	lr, .L14+20
	add	ip, sp, #36
	ldm	r3, {r0, r1, r2, r3}
	stm	r9, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	mov	r2, #25
	strh	r3, [ip], #2	@ movhi
	ldr	r1, .L14+24
	lsr	r3, r3, #16
	add	r0, sp, #55
	strb	r3, [ip]
	bl	memcpy
	ldr	lr, .L14+28
	add	ip, sp, #80
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r0, r9
	bl	strlen
	mov	r1, r9
	mov	r2, r0
	ldr	r0, [r8]
	bl	SSL_write
	ldr	r3, .L14+32
	ldr	r1, [fp]
	ldr	r3, [r3]
	ldr	r0, [r8]
	orr	r1, r1, r3
	bl	SSL_set_shutdown
	ldr	r0, [r8]
	bl	SSL_free
	mov	r0, #0
	bl	ERR_remove_state
.L5:
	mov	r0, r4
	bl	close
	b	.L3
.L13:
	mov	r0, #1
	bl	exit
	b	.L6
.L15:
	.align	2
.L14:
	.word	.LC4
	.word	ssl
	.word	SSL_SENT_SHUTDOWN
	.word	ctx
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	SSL_RECEIVED_SHUTDOWN
	.size	server_loop, .-server_loop
	.comm	ssl,4,4
	.comm	ctx,4,4
	.comm	SSL_SENT_SHUTDOWN,4,4
	.comm	SSL_RECEIVED_SHUTDOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
