	.file	"extr_statem_lib.c_ssl_check_version_downgrade.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ssl_check_version_downgrade
	.type	ssl_check_version_downgrade, @function
ssl_check_version_downgrade:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR [rax]
	mov	eax, 1
	cmp	QWORD PTR [rdi], rbx
	je	.L1
	xor	eax, eax
	mov	rbp, rdi
	call	TLS_method@PLT
	cmp	rbx, QWORD PTR [rax]
	jne	.L3
	mov	rbx, QWORD PTR tls_version_table[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	je	.L7
	xor	eax, eax
	call	rdx
	mov	rdi, rbp
	mov	esi, eax
	call	ssl_method_error@PLT
	test	rax, rax
	je	.L17
.L7:
	add	rbx, 16
.L15:
	cmp	QWORD PTR [rbx], 0
	jne	.L4
.L5:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR [rax]
	xor	eax, eax
	call	DTLS_method@PLT
	cmp	rbx, QWORD PTR [rax]
	jne	.L5
	mov	rbx, QWORD PTR dtls_version_table[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 0[rbp], rax
	sete	al
	add	rsp, 8
	.cfi_def_cfa_offset 24
	movzx	eax, al
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ssl_check_version_downgrade, .-ssl_check_version_downgrade
	.comm	tls_version_table,8,8
	.comm	dtls_version_table,8,8
	.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_lib.c_ssl_check_version_downgrade.c"
	.text
	.align	2
	.global	ssl_check_version_downgrade
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_check_version_downgrade, %function
ssl_check_version_downgrade:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #4]
	push	{r4, r5, r6, lr}
	ldr	r2, [r2]
	ldr	r3, [r0]
	ldr	r4, [r2]
	cmp	r3, r4
	beq	.L9
	mov	r5, r0
	bl	TLS_method
	ldr	r3, [r0]
	cmp	r4, r3
	bne	.L3
	ldr	r3, .L17
	ldr	r4, [r3]
.L6:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L5
.L8:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L7
	blx	r3
	mov	r1, r0
	mov	r0, r5
	bl	ssl_method_error
	cmp	r0, #0
	beq	.L16
.L7:
	ldr	r3, [r4, #8]!
	cmp	r3, #0
	bne	.L8
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, [r5, #4]
	ldr	r3, [r3]
	ldr	r4, [r3]
	bl	DTLS_method
	ldr	r3, [r0]
	cmp	r4, r3
	bne	.L5
	ldr	r3, .L17+4
	ldr	r4, [r3]
	b	.L6
.L9:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r0, [r5]
	ldr	r3, [r4]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	tls_version_table
	.word	dtls_version_table
	.size	ssl_check_version_downgrade, .-ssl_check_version_downgrade
	.comm	tls_version_table,4,4
	.comm	dtls_version_table,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
