	.file	"extr_statem_srvr.c_tls_handle_alpn.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tls_handle_alpn
	.type	tls_handle_alpn, @function
tls_handle_alpn:
.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
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rdx, QWORD PTR 64[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	BYTE PTR 15[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	rax, QWORD PTR [rdx]
	test	rax, rax
	je	.L2
	mov	rcx, QWORD PTR 56[rdi]
	test	rcx, rcx
	je	.L2
	lea	r10, 15[rsp]
	mov	r9d, DWORD PTR 8[rdx]
	mov	r8d, DWORD PTR 48[rdi]
	lea	rsi, 16[rsp]
	mov	rdx, r10
	call	rax
	cmp	DWORD PTR SSL_TLSEXT_ERR_OK[rip], eax
	je	.L23
	cmp	DWORD PTR SSL_TLSEXT_ERR_NOACK[rip], eax
	jne	.L24
.L2:
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR 8[rax], 0
	je	.L21
	mov	QWORD PTR 0[rbp], 0
.L21:
	mov	r12d, 1
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	ecx, DWORD PTR SSL_R_NO_APPLICATION_PROTOCOL[rip]
	mov	edx, DWORD PTR SSL_F_TLS_HANDLE_ALPN[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	mov	esi, DWORD PTR SSL_AD_NO_APPLICATION_PROTOCOL[rip]
	call	SSLfatal@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR 40[rbp]
	call	OPENSSL_free@PLT
	movzx	esi, BYTE PTR 15[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	call	OPENSSL_memdup@PLT
	mov	QWORD PTR 40[rbp], rax
	test	rax, rax
	je	.L20
	movzx	eax, BYTE PTR 15[rsp]
	mov	rdx, QWORD PTR 8[rbp]
	mov	QWORD PTR 32[rbp], 0
	mov	BYTE PTR 24[rbp], al
	mov	rsi, QWORD PTR 8[rdx]
	test	rsi, rsi
	je	.L9
	cmp	al, BYTE PTR [rdx]
	je	.L26
.L9:
	mov	eax, DWORD PTR 16[rbp]
	mov	QWORD PTR 0[rbp], 0
	test	eax, eax
	jne	.L21
	mov	rax, QWORD PTR 8[rbp]
	xor	edi, edi
	cmp	QWORD PTR 8[rax], 0
	sete	dil
	call	ossl_assert@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L27
	movzx	esi, BYTE PTR 15[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	r12, QWORD PTR 8[rbp]
	call	OPENSSL_memdup@PLT
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR 8[rax], 0
	je	.L20
	movzx	edx, BYTE PTR 15[rsp]
	mov	r12d, 1
	mov	BYTE PTR [rax], dl
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, QWORD PTR 16[rsp]
	movzx	edx, al
	call	memcmp@PLT
	test	rax, rax
	jne	.L9
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L20:
	mov	ecx, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edx, DWORD PTR SSL_F_TLS_HANDLE_ALPN[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	call	SSLfatal@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	ecx, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edx, DWORD PTR SSL_F_TLS_HANDLE_ALPN[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR SSL_AD_INTERNAL_ERROR[rip]
	call	SSLfatal@PLT
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tls_handle_alpn, .-tls_handle_alpn
	.comm	SSL_TLSEXT_ERR_OK,4,4
	.comm	SSL_TLSEXT_ERR_NOACK,4,4
	.comm	SSL_R_NO_APPLICATION_PROTOCOL,4,4
	.comm	SSL_F_TLS_HANDLE_ALPN,4,4
	.comm	SSL_AD_NO_APPLICATION_PROTOCOL,4,4
	.comm	SSL_AD_INTERNAL_ERROR,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_statem_srvr.c_tls_handle_alpn.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tls_handle_alpn
	.syntax unified
	.arm
	.fpu softvfp
	.type	tls_handle_alpn, %function
tls_handle_alpn:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, #0
	sub	sp, sp, #24
	ldr	r2, [r0, #32]
	strb	r5, [sp, #15]
	ldr	r6, [r2]
	ldr	r3, .L32
	cmp	r6, r5
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r0
	str	r5, [sp, #16]
	beq	.L2
	ldr	r3, [r0, #28]
	cmp	r3, r5
	beq	.L2
	ldr	r1, [r2, #4]
	ldr	r2, [r0, #24]
	str	r1, [sp, #4]
	str	r2, [sp]
	add	r1, sp, #16
	add	r2, sp, #15
	blx	r6
	ldr	r3, .L32+4
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L26
	ldr	r3, .L32+8
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L27
.L2:
	ldr	r3, [r4, #4]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L8
	mov	r3, #0
	mov	r5, #1
	str	r3, [r4]
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L26:
	ldr	r0, [r4, #20]
	bl	OPENSSL_free
	ldrb	r1, [sp, #15]	@ zero_extendqisi2
	ldr	r0, [sp, #16]
	bl	OPENSSL_memdup
	cmp	r0, r5
	mov	ip, r0
	str	r0, [r4, #20]
	beq	.L29
	ldrb	r3, [sp, #15]	@ zero_extendqisi2
	ldr	r2, [r4, #4]
	strb	r3, [r4, #12]
	ldr	r1, [r2, #4]
	str	r5, [r4, #16]
	cmp	r1, #0
	beq	.L9
	ldrb	r2, [r2]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L30
.L9:
	mov	r2, #0
	ldr	r3, [r4, #8]
	str	r2, [r4]
	cmp	r3, r2
	beq	.L31
.L8:
	mov	r5, #1
	b	.L1
.L27:
	ldr	r3, .L32+12
	ldr	r2, .L32+16
	ldr	r1, .L32+20
.L24:
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	SSLfatal
	b	.L1
.L31:
	ldr	r3, [r4, #4]
	ldr	r0, [r3, #4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ossl_assert
	subs	r5, r0, #0
	beq	.L23
	ldrb	r1, [sp, #15]	@ zero_extendqisi2
	ldr	r0, [sp, #16]
	ldr	r5, [r4, #4]
	bl	OPENSSL_memdup
	ldr	r3, [r4, #4]
	str	r0, [r5, #4]
	ldr	r5, [r3, #4]
	cmp	r5, #0
	beq	.L23
	ldrb	r2, [sp, #15]	@ zero_extendqisi2
	mov	r5, #1
	strb	r2, [r3]
	b	.L1
.L30:
	ldr	r0, [sp, #16]
	bl	memcmp
	cmp	r0, #0
	bne	.L9
	b	.L8
.L23:
	ldr	r3, .L32+24
	ldr	r2, .L32+16
	ldr	r1, .L32+28
	b	.L24
.L29:
	ldr	r3, .L32+24
	ldr	r2, .L32+16
	ldr	r1, .L32+28
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r5, ip
	bl	SSLfatal
	b	.L1
.L28:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	SSL_TLSEXT_ERR_OK
	.word	SSL_TLSEXT_ERR_NOACK
	.word	SSL_R_NO_APPLICATION_PROTOCOL
	.word	SSL_F_TLS_HANDLE_ALPN
	.word	SSL_AD_NO_APPLICATION_PROTOCOL
	.word	ERR_R_INTERNAL_ERROR
	.word	SSL_AD_INTERNAL_ERROR
	.size	tls_handle_alpn, .-tls_handle_alpn
	.comm	SSL_TLSEXT_ERR_OK,4,4
	.comm	SSL_TLSEXT_ERR_NOACK,4,4
	.comm	SSL_R_NO_APPLICATION_PROTOCOL,4,4
	.comm	SSL_F_TLS_HANDLE_ALPN,4,4
	.comm	SSL_AD_NO_APPLICATION_PROTOCOL,4,4
	.comm	SSL_AD_INTERNAL_ERROR,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
