	.file	"extr_server-arg.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"*:4433"
.LC1:
	.string	"Missing argument for %s\n"
.LC2:
	.string	"Error in command %s\n"
.LC3:
	.string	"-port"
.LC4:
	.string	"Missing -port argument\n"
.LC5:
	.string	"Unknown argument %s\n"
.LC6:
	.string	"Finish error\n"
.LC7:
	.string	"Done\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	add	rsi, 8
	sub	edi, 1
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	lea	r12, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 544
	.cfi_def_cfa_offset 592
	mov	r14d, DWORD PTR EXIT_FAILURE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 536[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], rsi
	lea	rbx, 8[rsp]
	mov	DWORD PTR 4[rsp], edi
	call	TLS_server_method@PLT
	mov	edi, eax
	call	SSL_CTX_new@PLT
	mov	r13, rax
	xor	eax, eax
	call	SSL_CONF_CTX_new@PLT
	mov	esi, DWORD PTR SSL_CONF_FLAG_SERVER[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	SSL_CONF_CTX_set_flags@PLT
	mov	esi, DWORD PTR SSL_CONF_FLAG_CERTIFICATE[rip]
	mov	rdi, rbp
	call	SSL_CONF_CTX_set_flags@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	SSL_CONF_CTX_set_ssl_ctx@PLT
	mov	rdx, QWORD PTR 8[rsp]
.L6:
	mov	rax, QWORD PTR [rdx]
	test	rax, rax
	je	.L9
.L29:
	cmp	BYTE PTR [rax], 45
	jne	.L9
	lea	rsi, 4[rsp]
	mov	rdx, rbx
	mov	rdi, rbp
	call	SSL_CONF_cmd_argv@PLT
	cmp	eax, -3
	je	.L26
	mov	rdx, QWORD PTR 8[rsp]
	test	eax, eax
	js	.L27
	jne	.L6
	mov	rdi, QWORD PTR [rdx]
	lea	rsi, .LC3[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L7
	mov	rdx, QWORD PTR 8[rsp]
	mov	r12, QWORD PTR 8[rdx]
	test	r12, r12
	je	.L28
	mov	rax, QWORD PTR 16[rdx]
	add	rdx, 16
	sub	DWORD PTR 4[rsp], 2
	mov	QWORD PTR 8[rsp], rdx
	test	rax, rax
	jne	.L29
.L9:
	mov	rdi, rbp
	call	SSL_CONF_CTX_finish@PLT
	test	eax, eax
	je	.L30
	xor	esi, esi
	mov	rdi, r13
	call	BIO_new_ssl@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	BIO_new_accept@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	rsi, rbp
	mov	rdi, rax
	lea	rbx, 16[rsp]
	call	BIO_set_accept_bios@PLT
.L12:
	mov	rdi, r12
	call	BIO_do_accept@PLT
	test	rax, rax
	jg	.L14
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	js	.L4
	mov	ecx, DWORD PTR stdout[rip]
	mov	rdi, rbx
	mov	esi, 1
	call	fwrite@PLT
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
.L14:
	mov	edx, 512
	mov	rsi, rbx
	mov	rdi, r12
	call	BIO_read@PLT
	mov	edx, eax
	test	eax, eax
	jne	.L13
	lea	rdi, .LC7[rip]
	call	printf@PLT
	mov	rdi, r12
	call	BIO_pop@PLT
	mov	rdi, rax
	call	BIO_free_all@PLT
	jmp	.L12
.L28:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	call	fprintf@PLT
.L4:
	cmp	DWORD PTR EXIT_SUCCESS[rip], r14d
	je	.L15
	mov	edi, DWORD PTR stderr[rip]
	call	ERR_print_errors_fp@PLT
.L15:
	mov	rdi, r12
	call	BIO_free@PLT
	mov	rax, QWORD PTR 536[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 544
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L30:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	xor	r12d, r12d
	call	fprintf@PLT
	mov	edi, DWORD PTR stderr[rip]
	call	ERR_print_errors_fp@PLT
	jmp	.L4
.L26:
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	xor	r12d, r12d
	mov	rdx, QWORD PTR [rax]
	xor	eax, eax
	call	fprintf@PLT
	jmp	.L4
.L27:
	mov	rdx, QWORD PTR [rdx]
	mov	edi, DWORD PTR stderr[rip]
	xor	eax, eax
	xor	r12d, r12d
	lea	rsi, .LC2[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR stderr[rip]
	call	ERR_print_errors_fp@PLT
	jmp	.L4
.L7:
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	xor	r12d, r12d
	mov	rdx, QWORD PTR [rax]
	xor	eax, eax
	call	fprintf@PLT
	jmp	.L4
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	XN_FLAG_ONELINE,4,4
	.comm	SSL_CONF_FLAG_SERVER,4,4
	.comm	SSL_CONF_FLAG_CERTIFICATE,4,4
	.comm	SSL_CERT_SET_NEXT,4,4
	.comm	SSL_CERT_SET_FIRST,4,4
	.comm	EXIT_SUCCESS,4,4
	.comm	EXIT_FAILURE,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_server-arg.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"*:4433\000"
	.align	2
.LC1:
	.ascii	"Missing argument for %s\012\000"
	.align	2
.LC2:
	.ascii	"Error in command %s\012\000"
	.align	2
.LC3:
	.ascii	"-port\000"
	.align	2
.LC4:
	.ascii	"Missing -port argument\012\000"
	.align	2
.LC5:
	.ascii	"Unknown argument %s\012\000"
	.align	2
.LC6:
	.ascii	"Finish error\012\000"
	.align	2
.LC7:
	.ascii	"Done\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, .L32
	sub	sp, sp, #528
	ldr	r3, .L32+4
	add	r1, r1, #4
	sub	r0, r0, #1
	str	r1, [sp, #4]
	str	r0, [sp, #8]
	ldr	r2, [r2]
	str	r2, [sp, #524]
	mov	r2,#0
	ldr	r10, [r3]
	bl	TLS_server_method
	bl	SSL_CTX_new
	mov	r8, r0
	bl	SSL_CONF_CTX_new
	mov	r7, r0
	ldr	r3, .L32+8
	ldr	r6, .L32+12
	ldr	r1, [r3]
	bl	SSL_CONF_CTX_set_flags
	ldr	r3, .L32+16
	mov	r0, r7
	ldr	r1, [r3]
	bl	SSL_CONF_CTX_set_flags
	mov	r1, r8
	mov	r0, r7
	bl	SSL_CONF_CTX_set_ssl_ctx
	ldr	r9, .L32+20
	ldr	r4, [sp, #4]
.L6:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L9
.L29:
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L9
	mov	r0, r7
	add	r2, sp, #4
	add	r1, sp, #8
	bl	SSL_CONF_cmd_argv
	cmn	r0, #3
	mov	r5, r0
	beq	.L26
	cmp	r0, #0
	ldr	r4, [sp, #4]
	blt	.L27
	bne	.L6
	ldr	r6, [r4]
	mov	r1, r9
	mov	r0, r6
	bl	strcmp
	cmp	r0, #0
	bne	.L7
	ldr	r6, [r4, #4]
	cmp	r6, #0
	beq	.L28
	ldr	r3, [sp, #8]
	add	r4, r4, #8
	sub	r3, r3, #2
	str	r3, [sp, #8]
	ldr	r3, [r4]
	str	r4, [sp, #4]
	cmp	r3, #0
	bne	.L29
.L9:
	mov	r0, r7
	bl	SSL_CONF_CTX_finish
	subs	r4, r0, #0
	beq	.L30
	mov	r1, #0
	mov	r0, r8
	bl	BIO_new_ssl
	mov	r4, r0
	mov	r0, r6
	bl	BIO_new_accept
	subs	r6, r0, #0
	beq	.L4
	mov	r1, r4
	bl	BIO_set_accept_bios
	ldr	r4, .L32+24
	ldr	r5, .L32+28
.L12:
	mov	r0, r6
	bl	BIO_do_accept
	cmp	r0, #0
	bgt	.L14
	b	.L4
.L13:
	blt	.L4
	mov	r1, #1
	ldr	r3, [r4]
	add	r0, sp, #12
	bl	fwrite
	ldr	r0, [r4]
	bl	fflush
.L14:
	mov	r2, #512
	mov	r0, r6
	add	r1, sp, #12
	bl	BIO_read
	subs	r2, r0, #0
	bne	.L13
	mov	r0, r5
	bl	printf
	mov	r0, r6
	bl	BIO_pop
	bl	BIO_free_all
	b	.L12
.L28:
	ldr	r3, .L32+32
	ldr	r1, .L32+36
	ldr	r0, [r3]
	bl	fprintf
.L4:
	ldr	r3, .L32+40
	ldr	r3, [r3]
	cmp	r3, r10
	beq	.L15
	ldr	r3, .L32+32
	ldr	r0, [r3]
	bl	ERR_print_errors_fp
.L15:
	mov	r0, r6
	bl	BIO_free
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #524]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	mov	r0, r10
	add	sp, sp, #528
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	ldr	r2, [sp, #4]
	ldr	r3, .L32+32
	ldr	r2, [r2]
	ldr	r0, [r3]
	ldr	r1, .L32+44
	bl	fprintf
	mov	r6, #0
	b	.L4
.L27:
	ldr	r5, .L32+32
	ldr	r2, [r4]
	ldr	r1, .L32+48
	ldr	r0, [r5]
	bl	fprintf
	ldr	r0, [r5]
	bl	ERR_print_errors_fp
	mov	r6, #0
	b	.L4
.L30:
	ldr	r5, .L32+32
	ldr	r1, .L32+52
	ldr	r0, [r5]
	bl	fprintf
	ldr	r0, [r5]
	mov	r6, r4
	bl	ERR_print_errors_fp
	b	.L4
.L7:
	ldr	r3, .L32+32
	mov	r2, r6
	ldr	r0, [r3]
	ldr	r1, .L32+56
	mov	r6, r5
	bl	fprintf
	b	.L4
.L31:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC8
	.word	EXIT_FAILURE
	.word	SSL_CONF_FLAG_SERVER
	.word	.LC0
	.word	SSL_CONF_FLAG_CERTIFICATE
	.word	.LC3
	.word	stdout
	.word	.LC7
	.word	stderr
	.word	.LC4
	.word	EXIT_SUCCESS
	.word	.LC1
	.word	.LC2
	.word	.LC6
	.word	.LC5
	.size	main, .-main
	.comm	stdout,4,4
	.comm	stderr,4,4
	.comm	XN_FLAG_ONELINE,4,4
	.comm	SSL_CONF_FLAG_SERVER,4,4
	.comm	SSL_CONF_FLAG_CERTIFICATE,4,4
	.comm	SSL_CERT_SET_NEXT,4,4
	.comm	SSL_CERT_SET_FIRST,4,4
	.comm	EXIT_SUCCESS,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
