	.file	"extr_extensions_srvr.c_tls_construct_stoc_psk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tls_construct_stoc_psk
	.type	tls_construct_stoc_psk, @function
tls_construct_stoc_psk:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR 4[rdi]
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR EXT_RETURN_NOT_SENT[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, r12
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR TLSEXT_TYPE_psk[rip]
	call	WPACKET_put_bytes_u16@PLT
	test	eax, eax
	je	.L5
	mov	rdi, r12
	call	WPACKET_start_sub_packet_u16@PLT
	test	eax, eax
	jne	.L19
.L5:
	mov	ecx, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edx, DWORD PTR SSL_F_TLS_CONSTRUCT_STOC_PSK[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	call	SSLfatal@PLT
	mov	eax, DWORD PTR EXT_RETURN_FAIL[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
.L19:
	.cfi_restore_state
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r12
	call	WPACKET_put_bytes_u16@PLT
	test	eax, eax
	je	.L5
	mov	rdi, r12
	call	WPACKET_close@PLT
	test	eax, eax
	je	.L5
	mov	eax, DWORD PTR EXT_RETURN_SENT[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tls_construct_stoc_psk, .-tls_construct_stoc_psk
	.comm	TLSEXT_TYPE_psk,4,4
	.comm	SSL_F_TLS_CONSTRUCT_STOC_PSK,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_psk.c"
	.text
	.align	2
	.global	tls_construct_stoc_psk
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_construct_stoc_psk, %function
tls_construct_stoc_psk:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L20
	ldr	r0, [r3]
	bx	lr
.L2:
	ldr	r3, .L20+4
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	mov	r0, r1
	ldr	r1, [r3]
	bl	WPACKET_put_bytes_u16
	cmp	r0, #0
	beq	.L5
	mov	r0, r5
	bl	WPACKET_start_sub_packet_u16
	cmp	r0, #0
	bne	.L19
.L5:
	ldr	r3, .L20+8
	ldr	r2, .L20+12
	ldr	r1, .L20+16
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	SSLfatal
	ldr	r3, .L20+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L19:
	mov	r0, r5
	ldr	r1, [r4]
	bl	WPACKET_put_bytes_u16
	cmp	r0, #0
	beq	.L5
	mov	r0, r5
	bl	WPACKET_close
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L20+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L21:
	.align	2
.L20:
	.word	EXT_RETURN_NOT_SENT
	.word	TLSEXT_TYPE_psk
	.word	ERR_R_INTERNAL_ERROR
	.word	SSL_F_TLS_CONSTRUCT_STOC_PSK
	.word	SSL_AD_INTERNAL_ERROR
	.word	EXT_RETURN_FAIL
	.word	EXT_RETURN_SENT
	.size	tls_construct_stoc_psk, .-tls_construct_stoc_psk
	.comm	TLSEXT_TYPE_psk,4,4
	.comm	SSL_F_TLS_CONSTRUCT_STOC_PSK,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
