	.file	"extr_extensions_srvr.c_tls_construct_stoc_server_name.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tls_construct_stoc_server_name
	.type	tls_construct_stoc_server_name, @function
tls_construct_stoc_server_name:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 16[rdi], 0
	jne	.L11
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	DWORD PTR [rdi], 1
	je	.L15
.L2:
	mov	eax, DWORD PTR EXT_RETURN_NOT_SENT[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	cmp	QWORD PTR 8[rdi], 0
	je	.L2
	mov	r12, rsi
	mov	esi, DWORD PTR TLSEXT_TYPE_server_name[rip]
	mov	rdi, r12
	call	WPACKET_put_bytes_u16@PLT
	test	eax, eax
	je	.L6
	xor	esi, esi
	mov	rdi, r12
	call	WPACKET_put_bytes_u16@PLT
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR EXT_RETURN_SENT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_def_cfa_offset 8
	.cfi_restore 6
	.cfi_restore 12
	mov	eax, DWORD PTR EXT_RETURN_NOT_SENT[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	mov	ecx, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edx, DWORD PTR SSL_F_TLS_CONSTRUCT_STOC_SERVER_NAME[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	call	SSLfatal@PLT
	mov	eax, DWORD PTR EXT_RETURN_FAIL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tls_construct_stoc_server_name, .-tls_construct_stoc_server_name
	.comm	TLSEXT_TYPE_server_name,4,4
	.comm	SSL_F_TLS_CONSTRUCT_STOC_SERVER_NAME,4,4
	.comm	SSL_AD_INTERNAL_ERROR,4,4
	.comm	EXT_RETURN_SENT,4,4
	.comm	EXT_RETURN_NOT_SENT,4,4
	.comm	EXT_RETURN_FAIL,4,4
	.comm	ERR_R_INTERNAL_ERROR,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_extensions_srvr.c_tls_construct_stoc_server_name.c"
	.text
	.align	2
	.global	tls_construct_stoc_server_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_construct_stoc_server_name, %function
tls_construct_stoc_server_name:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0, #8]
	cmp	r6, #0
	bne	.L2
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, #1
	bne	.L2
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L12
	mov	r0, r1
	mov	r5, r1
	ldr	r1, [r3]
	bl	WPACKET_put_bytes_u16
	cmp	r0, #0
	beq	.L6
	mov	r1, r6
	mov	r0, r5
	bl	WPACKET_put_bytes_u16
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L12+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L12+12
	ldr	r2, .L12+16
	ldr	r1, .L12+20
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	SSLfatal
	ldr	r3, .L12+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	TLSEXT_TYPE_server_name
	.word	EXT_RETURN_SENT
	.word	EXT_RETURN_NOT_SENT
	.word	ERR_R_INTERNAL_ERROR
	.word	SSL_F_TLS_CONSTRUCT_STOC_SERVER_NAME
	.word	SSL_AD_INTERNAL_ERROR
	.word	EXT_RETURN_FAIL
	.size	tls_construct_stoc_server_name, .-tls_construct_stoc_server_name
	.comm	TLSEXT_TYPE_server_name,4,4
	.comm	SSL_F_TLS_CONSTRUCT_STOC_SERVER_NAME,4,4
	.comm	SSL_AD_INTERNAL_ERROR,4,4
	.comm	EXT_RETURN_SENT,4,4
	.comm	EXT_RETURN_NOT_SENT,4,4
	.comm	EXT_RETURN_FAIL,4,4
	.comm	ERR_R_INTERNAL_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
