	.file	"extr_extensions_srvr.c_tls_parse_ctos_psk_kex_modes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tls_parse_ctos_psk_kex_modes
	.type	tls_parse_ctos_psk_kex_modes, @function
tls_parse_ctos_psk_kex_modes:
.LFB0:
	.cfi_startproc
	endbr64
	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
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rbx, rsp
	mov	rsi, rbx
	call	PACKET_as_length_prefixed_1@PLT
	test	eax, eax
	je	.L2
	mov	rdi, rbx
	lea	r12, 4[rsp]
	call	PACKET_remaining@PLT
	test	rax, rax
	je	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, r12
	mov	rdi, rbx
	call	PACKET_get_1@PLT
	test	rax, rax
	je	.L19
.L7:
	mov	eax, DWORD PTR 4[rsp]
	cmp	eax, DWORD PTR TLSEXT_KEX_MODE_KE_DHE[rip]
	je	.L20
	cmp	eax, DWORD PTR TLSEXT_KEX_MODE_KE[rip]
	jne	.L3
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR SSL_OP_ALLOW_NO_DHE_KEX[rip], eax
	je	.L3
	mov	eax, DWORD PTR TLSEXT_KEX_MODE_FLAG_KE[rip]
	or	DWORD PTR 4[rbp], eax
	mov	rsi, r12
	mov	rdi, rbx
	call	PACKET_get_1@PLT
	test	rax, rax
	jne	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	ecx, DWORD PTR SSL_R_BAD_EXTENSION[rip]
	mov	edx, DWORD PTR SSL_F_TLS_PARSE_CTOS_PSK_KEX_MODES[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR SSL_AD_DECODE_ERROR[rip]
	call	SSLfatal@PLT
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L20:
	.cfi_restore_state
	mov	eax, DWORD PTR TLSEXT_KEX_MODE_FLAG_KE_DHE[rip]
	or	DWORD PTR 4[rbp], eax
	jmp	.L3
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tls_parse_ctos_psk_kex_modes, .-tls_parse_ctos_psk_kex_modes
	.comm	TLSEXT_KEX_MODE_KE_DHE,4,4
	.comm	TLSEXT_KEX_MODE_KE,4,4
	.comm	TLSEXT_KEX_MODE_FLAG_KE_DHE,4,4
	.comm	TLSEXT_KEX_MODE_FLAG_KE,4,4
	.comm	SSL_R_BAD_EXTENSION,4,4
	.comm	SSL_OP_ALLOW_NO_DHE_KEX,4,4
	.comm	SSL_F_TLS_PARSE_CTOS_PSK_KEX_MODES,4,4
	.comm	SSL_AD_DECODE_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_parse_ctos_psk_kex_modes.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tls_parse_ctos_psk_kex_modes
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_parse_ctos_psk_kex_modes, %function
tls_parse_ctos_psk_kex_modes:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L21
	sub	sp, sp, #20
	mov	r4, r0
	mov	r0, r1
	add	r1, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	PACKET_as_length_prefixed_1
	cmp	r0, #0
	beq	.L2
	add	r0, sp, #4
	bl	PACKET_remaining
	cmp	r0, #0
	beq	.L2
	ldr	r5, .L21+4
	ldr	r6, .L21+8
	ldr	r8, .L21+12
	ldr	r9, .L21+16
	ldr	r7, .L21+20
.L3:
	add	r1, sp, #8
	add	r0, sp, #4
	bl	PACKET_get_1
	cmp	r0, #0
	beq	.L18
	ldr	r3, [sp, #8]
	ldr	r2, [r5]
	cmp	r3, r2
	beq	.L19
	ldr	r2, [r6]
	cmp	r3, r2
	bne	.L3
	ldr	r3, [r8]
	ldr	r2, [r4]
	tst	r2, r3
	ldrne	r3, [r4, #4]
	ldrne	r2, [r9]
	orrne	r3, r3, r2
	strne	r3, [r4, #4]
	b	.L3
.L2:
	ldr	r3, .L21+24
	ldr	r2, .L21+28
	ldr	r1, .L21+32
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	SSLfatal
	mov	r0, #0
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L19:
	ldr	r3, [r4, #4]
	ldr	r2, [r7]
	orr	r3, r3, r2
	str	r3, [r4, #4]
	b	.L3
.L18:
	mov	r0, #1
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	TLSEXT_KEX_MODE_KE_DHE
	.word	TLSEXT_KEX_MODE_KE
	.word	SSL_OP_ALLOW_NO_DHE_KEX
	.word	TLSEXT_KEX_MODE_FLAG_KE
	.word	TLSEXT_KEX_MODE_FLAG_KE_DHE
	.word	SSL_R_BAD_EXTENSION
	.word	SSL_F_TLS_PARSE_CTOS_PSK_KEX_MODES
	.word	SSL_AD_DECODE_ERROR
	.size	tls_parse_ctos_psk_kex_modes, .-tls_parse_ctos_psk_kex_modes
	.comm	TLSEXT_KEX_MODE_KE_DHE,4,4
	.comm	TLSEXT_KEX_MODE_KE,4,4
	.comm	TLSEXT_KEX_MODE_FLAG_KE_DHE,4,4
	.comm	TLSEXT_KEX_MODE_FLAG_KE,4,4
	.comm	SSL_R_BAD_EXTENSION,4,4
	.comm	SSL_OP_ALLOW_NO_DHE_KEX,4,4
	.comm	SSL_F_TLS_PARSE_CTOS_PSK_KEX_MODES,4,4
	.comm	SSL_AD_DECODE_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
