	.file	"extr_ssl_cert.c_ssl_security_default_callback.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ssl_security_default_callback, @function
ssl_security_default_callback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rsi, rsi
	je	.L2
	mov	rdi, rsi
	call	SSL_CTX_get_security_level@PLT
	mov	r12d, eax
.L3:
	test	r12d, r12d
	jle	.L32
	cmp	r12d, 5
	mov	eax, 5
	lea	rdx, minbits_table.1957[rip]
	cmovle	eax, r12d
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	cmp	ebx, 130
	je	.L6
	jg	.L7
	cmp	ebx, 128
	je	.L8
	cmp	ebx, 129
	jne	.L10
	cmp	r12d, 2
	setle	r12b
	movzx	r12d, r12b
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	sub	ebx, 131
	cmp	ebx, 2
	ja	.L10
	cmp	eax, ebp
	jg	.L12
	mov	edx, DWORD PTR [r14]
	test	DWORD PTR SSL_aNULL[rip], edx
	jne	.L12
	mov	edx, DWORD PTR 4[r14]
	test	DWORD PTR SSL_MD5[rip], edx
	jne	.L12
	cmp	eax, 160
	jle	.L13
	test	DWORD PTR SSL_SHA1[rip], edx
	jne	.L12
.L13:
	cmp	r12d, 1
	je	.L1
	mov	eax, DWORD PTR SSL_RC4[rip]
	cmp	DWORD PTR 16[r14], eax
	je	.L12
	cmp	r12d, 2
	mov	r12d, 1
	je	.L1
	mov	eax, DWORD PTR TLS1_3_VERSION[rip]
	cmp	DWORD PTR 12[r14], eax
	je	.L1
	xor	r12d, r12d
	mov	eax, DWORD PTR SSL_kEDH[rip]
	or	eax, DWORD PTR SSL_kEECDH[rip]
	test	DWORD PTR 8[r14], eax
	setne	r12b
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	cmp	DWORD PTR SSL_SECOP_TMP_DH[rip], ebx
	sete	r12b
	cmp	ebp, 79
	setle	al
	and	r12d, eax
	xor	r12d, 1
	movzx	r12d, r12b
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	call	SSL_get_security_level@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r13
	call	SSL_IS_DTLS@PLT
	test	eax, eax
	jne	.L14
	cmp	DWORD PTR SSL3_VERSION[rip], r15d
	jl	.L19
	cmp	r12d, 1
	jne	.L12
.L19:
	cmp	DWORD PTR TLS1_VERSION[rip], r15d
	jl	.L20
	cmp	r12d, 2
	jg	.L12
.L20:
	cmp	DWORD PTR TLS1_1_VERSION[rip], r15d
	setge	al
	cmp	r12d, 3
	setg	r12b
	and	r12d, eax
	xor	r12d, 1
	movzx	r12d, r12b
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	xor	r12d, r12d
	cmp	eax, ebp
	setle	r12b
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	r12d, 1
	sete	r12b
	movzx	r12d, r12b
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR DTLS1_2_VERSION[rip]
	mov	edi, r15d
	call	DTLS_VERSION_LT@PLT
	cmp	r12d, 3
	setg	r12b
	test	eax, eax
	setne	al
	and	r12d, eax
	xor	r12d, 1
	movzx	r12d, r12b
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ssl_security_default_callback, .-ssl_security_default_callback
	.section	.rodata
	.align 16
	.type	minbits_table.1957, @object
	.size	minbits_table.1957, 20
minbits_table.1957:
	.long	80
	.long	112
	.long	128
	.long	192
	.long	256
	.comm	TLS1_VERSION,4,4
	.comm	TLS1_3_VERSION,4,4
	.comm	TLS1_1_VERSION,4,4
	.comm	SSL_kEECDH,4,4
	.comm	SSL_kEDH,4,4
	.comm	SSL_aNULL,4,4
	.comm	SSL_SHA1,4,4
	.comm	SSL_SECOP_TMP_DH,4,4
	.comm	SSL_RC4,4,4
	.comm	SSL_MD5,4,4
	.comm	SSL3_VERSION,4,4
	.comm	DTLS1_2_VERSION,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_ssl_cert.c_ssl_security_default_callback.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_security_default_callback, %function
ssl_security_default_callback:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r2
	mov	r5, r3
	mov	r6, r0
	beq	.L2
	mov	r0, r1
	bl	SSL_CTX_get_security_level
	mov	r4, r0
.L3:
	cmp	r4, #0
	ble	.L23
	cmp	r4, #5
	movlt	r1, r4
	movge	r1, #5
	ldr	r3, .L24
	sub	r1, r1, #1
	sub	r2, r7, #128
	ldr	r3, [r3, r1, lsl #2]
	cmp	r2, #5
	ldrls	pc, [pc, r2, asl #2]
	b	.L6
.L8:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L7
	.word	.L7
	.word	.L7
.L23:
	ldr	r3, .L24+4
	ldr	r0, [r3]
	cmp	r5, #79
	cmple	r0, r7
	moveq	r4, #1
	movne	r4, #0
	eor	r4, r4, #1
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	SSL_get_security_level
	mov	r4, r0
	b	.L3
.L7:
	cmp	r3, r5
	bgt	.L13
	ldr	r2, .L24+8
	ldr	r1, [sp, #28]
	ldr	r2, [r2]
	ldr	r1, [r1]
	tst	r1, r2
	bne	.L13
	ldr	r1, .L24+12
	ldr	r2, [sp, #28]
	ldr	r1, [r1]
	ldr	r2, [r2, #4]
	tst	r2, r1
	bne	.L13
	cmp	r3, #160
	ble	.L14
	ldr	r3, .L24+16
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L13
.L14:
	cmp	r4, #1
	beq	.L1
	ldr	r3, .L24+20
	ldr	r2, [sp, #28]
	ldr	r3, [r3]
	ldr	r2, [r2, #16]
	cmp	r2, r3
	beq	.L13
	cmp	r4, #2
	beq	.L17
	ldr	r3, .L24+24
	ldr	r2, [sp, #28]
	ldr	r3, [r3]
	ldr	r2, [r2, #12]
	cmp	r2, r3
	beq	.L17
	ldr	r2, .L24+28
	ldr	r3, .L24+32
	ldr	r1, [r2]
	ldr	r2, [sp, #28]
	ldr	r3, [r3]
	ldr	r2, [r2, #8]
	orr	r3, r3, r1
	tst	r3, r2
	movne	r4, #1
	moveq	r4, #0
	b	.L1
.L11:
	mov	r0, r6
	bl	SSL_IS_DTLS
	cmp	r0, #0
	bne	.L15
	ldr	r3, .L24+36
	ldr	r2, [sp, #24]
	ldr	r3, [r3]
	cmp	r3, r2
	movlt	r2, #0
	movge	r2, #1
	cmp	r4, #1
	moveq	r2, #0
	cmp	r2, #0
	bne	.L13
	ldr	r3, .L24+40
	ldr	r2, [sp, #24]
	ldr	r3, [r3]
	cmp	r3, r2
	cmpge	r4, #2
	bgt	.L13
	ldr	r3, .L24+44
	ldr	r3, [r3]
	cmp	r3, r2
	cmpge	r4, #3
	movgt	r4, #1
	movle	r4, #0
	eor	r4, r4, #1
	b	.L1
.L10:
	cmp	r4, #2
	movgt	r4, #0
	movle	r4, #1
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	sub	r4, r4, #1
	clz	r4, r4
	lsr	r4, r4, #5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r3, .L24+48
	ldr	r0, [sp, #24]
	ldr	r1, [r3]
	bl	DTLS_VERSION_LT
	cmp	r0, #0
	cmpne	r4, #3
	movgt	r4, #1
	movle	r4, #0
	eor	r4, r4, #1
	b	.L1
.L17:
	mov	r4, #1
	b	.L1
.L6:
	cmp	r3, r5
	movgt	r4, #0
	movle	r4, #1
	b	.L1
.L25:
	.align	2
.L24:
	.word	.LANCHOR0
	.word	SSL_SECOP_TMP_DH
	.word	SSL_aNULL
	.word	SSL_MD5
	.word	SSL_SHA1
	.word	SSL_RC4
	.word	TLS1_3_VERSION
	.word	SSL_kEECDH
	.word	SSL_kEDH
	.word	SSL3_VERSION
	.word	TLS1_VERSION
	.word	TLS1_1_VERSION
	.word	DTLS1_2_VERSION
	.size	ssl_security_default_callback, .-ssl_security_default_callback
	.comm	TLS1_VERSION,4,4
	.comm	TLS1_3_VERSION,4,4
	.comm	TLS1_1_VERSION,4,4
	.comm	SSL_kEECDH,4,4
	.comm	SSL_kEDH,4,4
	.comm	SSL_aNULL,4,4
	.comm	SSL_SHA1,4,4
	.comm	SSL_SECOP_TMP_DH,4,4
	.comm	SSL_RC4,4,4
	.comm	SSL_MD5,4,4
	.comm	SSL3_VERSION,4,4
	.comm	DTLS1_2_VERSION,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	minbits_table.4241, %object
	.size	minbits_table.4241, 20
minbits_table.4241:
	.word	80
	.word	112
	.word	128
	.word	192
	.word	256
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
