	.file	"extr_extensions_clnt.c_tls_parse_stoc_psk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tls_parse_stoc_psk
	.type	tls_parse_stoc_psk, @function
tls_parse_stoc_psk:
.LFB0:
	.cfi_startproc
	endbr64
	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, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rsi, 4[rsp]
	call	PACKET_get_net_2@PLT
	test	eax, eax
	je	.L4
	mov	rdi, r12
	call	PACKET_remaining@PLT
	test	rax, rax
	jne	.L4
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR 4[rsp]
	cmp	edx, eax
	jbe	.L20
	mov	rdi, QWORD PTR 32[rbp]
	test	eax, eax
	je	.L21
	test	rdi, rdi
	je	.L22
.L7:
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR SSL_EARLY_DATA_WRITE_RETRY[rip]
	je	.L9
	cmp	rax, QWORD PTR SSL_EARLY_DATA_FINISHED_WRITING[rip]
	je	.L9
.L10:
	mov	r8d, DWORD PTR 48[rbp]
	mov	esi, DWORD PTR [rdi]
	mov	edx, DWORD PTR EVP_MAX_MD_SIZE[rip]
	mov	edi, r8d
	call	memcpy@PLT
	mov	r8, QWORD PTR 40[rbp]
.L11:
	mov	rdi, r8
	call	SSL_SESSION_free@PLT
	mov	rax, QWORD PTR 32[rbp]
	mov	edx, DWORD PTR 4[rsp]
	mov	QWORD PTR 32[rbp], 0
	mov	DWORD PTR 0[rbp], 1
	mov	QWORD PTR 40[rbp], rax
	mov	eax, 1
	test	edx, edx
	je	.L1
	mov	QWORD PTR 24[rbp], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, DWORD PTR SSL_R_LENGTH_MISMATCH[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PARSE_STOC_PSK[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR SSL_AD_DECODE_ERROR[rip]
	call	SSLfatal@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L23
	add	rsp, 24
	.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
.L21:
	.cfi_restore_state
	test	rdi, rdi
	je	.L14
	cmp	edx, 2
	jne	.L7
.L14:
	mov	DWORD PTR 0[rbp], 1
	call	SSL_SESSION_free@PLT
	mov	QWORD PTR 32[rbp], 0
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8, QWORD PTR 40[rbp]
	cmp	QWORD PTR 8[r8], 0
	jg	.L10
	cmp	QWORD PTR 8[rdi], 0
	jne	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L20:
	mov	ecx, DWORD PTR SSL_R_BAD_PSK_IDENTITY[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PARSE_STOC_PSK[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR SSL_AD_ILLEGAL_PARAMETER[rip]
	call	SSLfatal@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	ecx, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PARSE_STOC_PSK[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	call	SSLfatal@PLT
	xor	eax, eax
	jmp	.L1
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tls_parse_stoc_psk, .-tls_parse_stoc_psk
	.comm	SSL_R_LENGTH_MISMATCH,4,4
	.comm	SSL_R_BAD_PSK_IDENTITY,4,4
	.comm	SSL_F_TLS_PARSE_STOC_PSK,4,4
	.comm	SSL_EARLY_DATA_WRITE_RETRY,8,8
	.comm	SSL_EARLY_DATA_FINISHED_WRITING,8,8
	.comm	SSL_AD_INTERNAL_ERROR,4,4
	.comm	SSL_AD_ILLEGAL_PARAMETER,4,4
	.comm	SSL_AD_DECODE_ERROR,4,4
	.comm	EVP_MAX_MD_SIZE,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_clnt.c_tls_parse_stoc_psk.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tls_parse_stoc_psk
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_parse_stoc_psk, %function
tls_parse_stoc_psk:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	sub	sp, sp, #8
	ldr	r3, .L23
	mov	r4, r0
	mov	r1, sp
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	PACKET_get_net_2
	cmp	r0, #0
	beq	.L4
	mov	r0, r5
	bl	PACKET_remaining
	subs	r5, r0, #0
	bne	.L4
	ldr	r2, [r4, #8]
	ldr	r3, [sp]
	cmp	r2, r3
	bls	.L19
	cmp	r3, #0
	ldr	r3, [r4, #16]
	beq	.L20
	cmp	r3, #0
	beq	.L21
.L7:
	ldr	r1, .L23+4
	ldr	r2, [r4, #4]
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L8
	ldr	r1, .L23+8
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L8
.L9:
	ldr	r2, .L23+12
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [r4, #24]
	bl	memcpy
	ldr	r0, [r4, #20]
.L10:
	bl	SSL_SESSION_free
	mov	r3, #0
	mov	r5, #1
	ldr	r1, [sp]
	ldr	r2, [r4, #16]
	cmp	r1, r3
	str	r3, [r4, #16]
	str	r2, [r4, #20]
	str	r5, [r4]
	strne	r3, [r4, #12]
	b	.L1
.L4:
	ldr	r3, .L23+16
	ldr	r2, .L23+20
	ldr	r1, .L23+24
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	SSLfatal
	mov	r5, #0
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L20:
	cmp	r2, #2
	cmpne	r3, #0
	bne	.L7
	mov	r6, #1
	mov	r0, r3
	str	r6, [r4]
	bl	SSL_SESSION_free
	str	r5, [r4, #16]
	mov	r5, r6
	b	.L1
.L8:
	ldr	r0, [r4, #20]
	ldr	r2, [r0, #4]
	cmp	r2, #0
	bgt	.L9
	ldr	r2, [r3, #4]
	cmp	r2, #0
	bne	.L10
	b	.L9
.L19:
	ldr	r3, .L23+28
	ldr	r2, .L23+20
	ldr	r1, .L23+32
.L17:
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	SSLfatal
	b	.L1
.L21:
	ldr	r3, .L23+36
	ldr	r2, .L23+20
	ldr	r1, .L23+40
	b	.L17
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	SSL_EARLY_DATA_WRITE_RETRY
	.word	SSL_EARLY_DATA_FINISHED_WRITING
	.word	EVP_MAX_MD_SIZE
	.word	SSL_R_LENGTH_MISMATCH
	.word	SSL_F_TLS_PARSE_STOC_PSK
	.word	SSL_AD_DECODE_ERROR
	.word	SSL_R_BAD_PSK_IDENTITY
	.word	SSL_AD_ILLEGAL_PARAMETER
	.word	ERR_R_INTERNAL_ERROR
	.word	SSL_AD_INTERNAL_ERROR
	.size	tls_parse_stoc_psk, .-tls_parse_stoc_psk
	.comm	SSL_R_LENGTH_MISMATCH,4,4
	.comm	SSL_R_BAD_PSK_IDENTITY,4,4
	.comm	SSL_F_TLS_PARSE_STOC_PSK,4,4
	.comm	SSL_EARLY_DATA_WRITE_RETRY,4,4
	.comm	SSL_EARLY_DATA_FINISHED_WRITING,4,4
	.comm	SSL_AD_INTERNAL_ERROR,4,4
	.comm	SSL_AD_ILLEGAL_PARAMETER,4,4
	.comm	SSL_AD_DECODE_ERROR,4,4
	.comm	EVP_MAX_MD_SIZE,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
