	.file	"extr_ssl_ciph.c_ssl_cipher_get_evp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"RC4-HMAC-MD5"
.LC1:
	.string	"AES-128-CBC-HMAC-SHA1"
.LC2:
	.string	"AES-256-CBC-HMAC-SHA1"
.LC3:
	.string	"AES-128-CBC-HMAC-SHA256"
.LC4:
	.string	"AES-256-CBC-HMAC-SHA256"
	.text
	.p2align 4
	.globl	ssl_cipher_get_evp
	.type	ssl_cipher_get_evp, @function
ssl_cipher_get_evp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r15, QWORD PTR 8[rdi]
	mov	QWORD PTR 8[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	r15, r15
	je	.L7
	mov	rbp, rdi
	mov	rbx, rsi
	mov	r13, rdx
	mov	r14, rcx
	mov	r12, r9
	test	r9, r9
	je	.L4
	xor	eax, eax
	call	load_builtin_compressions@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	rdi, QWORD PTR ssl_comp_methods[rip]
	mov	QWORD PTR [r12], 0
	mov	DWORD PTR 20[rsp], eax
	test	rdi, rdi
	je	.L5
	lea	rsi, 20[rsp]
	call	sk_SSL_COMP_find@PLT
	mov	rdi, QWORD PTR ssl_comp_methods[rip]
	mov	esi, eax
	call	sk_SSL_COMP_value@PLT
	mov	QWORD PTR [r12], rax
.L5:
	mov	rax, rbx
	or	rax, r13
	je	.L72
.L4:
	test	rbx, rbx
	je	.L7
	test	r13, r13
	je	.L7
	mov	rsi, QWORD PTR [r15]
	mov	edi, DWORD PTR ssl_cipher_table_cipher[rip]
	call	ssl_cipher_info_lookup@PLT
	cmp	eax, -1
	je	.L75
	cmp	DWORD PTR SSL_ENC_NULL_IDX[rip], eax
	je	.L76
	mov	rcx, QWORD PTR ssl_cipher_methods[rip]
	cdqe
	mov	rax, QWORD PTR [rcx+rax*8]
	mov	QWORD PTR [rbx], rax
.L9:
	mov	rsi, QWORD PTR 8[r15]
	mov	edi, DWORD PTR ssl_cipher_table_mac[rip]
	call	ssl_cipher_info_lookup@PLT
	cmp	eax, -1
	je	.L77
	mov	rcx, QWORD PTR ssl_digest_methods[rip]
	cdqe
	mov	rcx, QWORD PTR [rcx+rax*8]
	mov	QWORD PTR 0[r13], rcx
	test	r14, r14
	je	.L15
	mov	rsi, QWORD PTR ssl_mac_pkey_id[rip]
	mov	esi, DWORD PTR [rsi+rax*4]
	mov	DWORD PTR [r14], esi
.L15:
	mov	rdx, QWORD PTR 8[rsp]
	test	rdx, rdx
	je	.L16
	mov	rsi, QWORD PTR ssl_mac_secret_size[rip]
	mov	rax, QWORD PTR [rsi+rax*8]
	mov	QWORD PTR [rdx], rax
.L16:
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L7
	test	rcx, rcx
	je	.L33
.L17:
	test	r14, r14
	je	.L18
	mov	eax, DWORD PTR NID_undef[rip]
	cmp	DWORD PTR [r14], eax
	je	.L7
.L18:
	mov	eax, DWORD PTR 96[rsp]
	test	eax, eax
	jne	.L72
	mov	eax, DWORD PTR 0[rbp]
	mov	ecx, eax
	sar	ecx, 8
	cmp	ecx, DWORD PTR TLS1_VERSION_MAJOR[rip]
	jne	.L72
	cmp	eax, DWORD PTR TLS1_VERSION[rip]
	jl	.L72
	mov	rax, QWORD PTR [r15]
	cmp	rax, QWORD PTR SSL_RC4[rip]
	je	.L78
.L21:
	cmp	rax, QWORD PTR SSL_AES128[rip]
	je	.L79
	cmp	rax, QWORD PTR SSL_AES256[rip]
	jne	.L72
.L26:
	mov	rcx, QWORD PTR 8[r15]
	cmp	rcx, QWORD PTR SSL_SHA1[rip]
	jne	.L28
	lea	rdi, .LC2[rip]
	call	EVP_get_cipherbyname@PLT
	test	rax, rax
	je	.L29
.L73:
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 0[r13], 0
	.p2align 4,,10
	.p2align 3
.L72:
	mov	r12d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L77:
	mov	QWORD PTR 0[r13], 0
	test	r14, r14
	je	.L12
	mov	eax, DWORD PTR NID_undef[rip]
	mov	DWORD PTR [r14], eax
.L12:
	mov	rax, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L13
	mov	QWORD PTR [rax], 0
.L13:
	mov	rdi, QWORD PTR [rbx]
	mov	rax, QWORD PTR SSL_AEAD[rip]
	cmp	QWORD PTR 8[r15], rax
	mov	eax, 0
	cmove	r14, rax
	test	rdi, rdi
	jne	.L33
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L80
	add	rsp, 40
	.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
.L75:
	.cfi_restore_state
	mov	QWORD PTR [rbx], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L33:
	call	EVP_CIPHER_flags@PLT
	test	DWORD PTR EVP_CIPH_FLAG_AEAD_CIPHER[rip], eax
	jne	.L17
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L76:
	xor	eax, eax
	call	EVP_enc_null@PLT
	mov	QWORD PTR [rbx], rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L78:
	mov	rdx, QWORD PTR SSL_MD5[rip]
	cmp	QWORD PTR 8[r15], rdx
	jne	.L21
	lea	rdi, .LC0[rip]
	call	EVP_get_cipherbyname@PLT
	test	rax, rax
	jne	.L73
	mov	rax, QWORD PTR [r15]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L79:
	mov	rcx, QWORD PTR 8[r15]
	cmp	rcx, QWORD PTR SSL_SHA1[rip]
	je	.L81
	cmp	rax, QWORD PTR SSL_AES256[rip]
	jne	.L27
.L28:
	cmp	QWORD PTR SSL_AES128[rip], rax
	je	.L31
.L32:
	cmp	QWORD PTR SSL_SHA256[rip], rcx
	jne	.L72
	lea	rdi, .LC4[rip]
	call	EVP_get_cipherbyname@PLT
	test	rax, rax
	jne	.L73
	jmp	.L72
.L81:
	lea	rdi, .LC1[rip]
	call	EVP_get_cipherbyname@PLT
	test	rax, rax
	jne	.L73
	mov	rax, QWORD PTR [r15]
	cmp	rax, QWORD PTR SSL_AES256[rip]
	je	.L26
.L27:
	cmp	rax, QWORD PTR SSL_AES128[rip]
	jne	.L72
.L71:
	mov	rcx, QWORD PTR 8[r15]
.L31:
	cmp	QWORD PTR SSL_SHA256[rip], rcx
	mov	r12d, 1
	jne	.L1
	lea	rdi, .LC3[rip]
	call	EVP_get_cipherbyname@PLT
	test	rax, rax
	je	.L82
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 0[r13], 0
	jmp	.L1
.L29:
	mov	rax, QWORD PTR [r15]
	cmp	rax, QWORD PTR SSL_AES128[rip]
	je	.L71
.L30:
	cmp	rax, QWORD PTR SSL_AES256[rip]
	jne	.L72
	mov	rcx, QWORD PTR 8[r15]
	jmp	.L32
.L82:
	mov	rax, QWORD PTR [r15]
	jmp	.L30
.L80:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ssl_cipher_get_evp, .-ssl_cipher_get_evp
	.comm	ssl_mac_secret_size,8,8
	.comm	ssl_mac_pkey_id,8,8
	.comm	ssl_digest_methods,8,8
	.comm	ssl_comp_methods,8,8
	.comm	ssl_cipher_table_mac,4,4
	.comm	ssl_cipher_table_cipher,4,4
	.comm	ssl_cipher_methods,8,8
	.comm	TLS1_VERSION_MAJOR,4,4
	.comm	TLS1_VERSION,4,4
	.comm	SSL_SHA256,8,8
	.comm	SSL_SHA1,8,8
	.comm	SSL_RC4,8,8
	.comm	SSL_MD5,8,8
	.comm	SSL_ENC_NULL_IDX,4,4
	.comm	SSL_AES256,8,8
	.comm	SSL_AES128,8,8
	.comm	SSL_AEAD,8,8
	.comm	NID_undef,4,4
	.comm	EVP_CIPH_FLAG_AEAD_CIPHER,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_ciph.c_ssl_cipher_get_evp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RC4-HMAC-MD5\000"
	.align	2
.LC1:
	.ascii	"AES-128-CBC-HMAC-SHA1\000"
	.align	2
.LC2:
	.ascii	"AES-256-CBC-HMAC-SHA1\000"
	.align	2
.LC3:
	.ascii	"AES-128-CBC-HMAC-SHA256\000"
	.align	2
.LC4:
	.ascii	"AES-256-CBC-HMAC-SHA256\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ssl_cipher_get_evp
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_cipher_get_evp, %function
ssl_cipher_get_evp:
	@ args = 12, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r0, #8]
	mov	r7, r3
	ldr	r3, .L82
	sub	sp, sp, #12
	cmp	r9, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r10, [sp, #48]
	ldr	r8, [sp, #52]
	beq	.L7
	cmp	r8, #0
	mov	r5, r0
	mov	r4, r1
	mov	r6, r2
	beq	.L4
	bl	load_builtin_compressions
	mov	r3, #0
	ldr	fp, .L82+4
	str	r3, [r8]
	ldr	r0, [fp]
	ldr	r3, [r5, #4]
	cmp	r0, #0
	str	r3, [sp]
	beq	.L5
	mov	r1, sp
	bl	sk_SSL_COMP_find
	mov	r1, r0
	ldr	r0, [fp]
	bl	sk_SSL_COMP_value
	str	r0, [r8]
.L5:
	orrs	r3, r4, r6
	beq	.L36
.L4:
	clz	r3, r6
	cmp	r4, #0
	lsr	r3, r3, #5
	movne	r8, r3
	moveq	r8, #1
	cmp	r8, #0
	beq	.L75
.L7:
	mov	r0, #0
.L1:
	ldr	r3, .L82
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L76
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L75:
	ldr	r3, .L82+8
	ldr	r1, [r9]
	ldr	r0, [r3]
	bl	ssl_cipher_info_lookup
	cmn	r0, #1
	streq	r8, [r4]
	beq	.L9
	ldr	r3, .L82+12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L77
	ldr	r3, .L82+16
	ldr	r3, [r3]
	ldr	r3, [r3, r0, lsl #2]
	str	r3, [r4]
.L9:
	ldr	r3, .L82+20
	ldr	r1, [r9, #4]
	ldr	r0, [r3]
	bl	ssl_cipher_info_lookup
	cmn	r0, #1
	beq	.L78
	ldr	r3, .L82+24
	cmp	r7, #0
	ldr	r3, [r3]
	ldrne	r2, .L82+28
	ldr	r3, [r3, r0, lsl #2]
	str	r3, [r6]
	ldrne	r2, [r2]
	ldrne	r2, [r2, r0, lsl #2]
	strne	r2, [r7]
	cmp	r10, #0
	ldrne	r2, .L82+32
	ldrne	r2, [r2]
	ldrne	r2, [r2, r0, lsl #2]
	ldr	r0, [r4]
	strne	r2, [r10]
	cmp	r0, #0
	beq	.L7
	cmp	r3, #0
	beq	.L33
.L17:
	cmp	r7, #0
	beq	.L18
	ldr	r3, .L82+36
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L7
.L18:
	ldr	r3, [sp, #56]
	cmp	r3, #0
	bne	.L36
	ldr	r2, .L82+40
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r2, r3, asr #8
	bne	.L36
	ldr	r2, .L82+44
	ldr	r2, [r2]
	cmp	r3, r2
	blt	.L36
	ldr	r2, .L82+48
	ldr	r3, [r9]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L79
.L21:
	ldr	r5, .L82+52
	ldr	r2, [r5]
	cmp	r3, r2
	beq	.L80
	ldr	r7, .L82+56
	ldr	r2, [r7]
	cmp	r3, r2
	bne	.L36
	ldr	r8, .L82+60
.L26:
	ldr	r1, [r8]
	ldr	r2, [r9, #4]
	cmp	r2, r1
	bne	.L28
	ldr	r0, .L82+64
	bl	EVP_get_cipherbyname
	cmp	r0, #0
	beq	.L29
.L73:
	mov	r3, #0
	str	r0, [r4]
	mov	r0, #1
	str	r3, [r6]
	b	.L1
.L80:
	ldr	r8, .L82+60
	ldr	r2, [r9, #4]
	ldr	r1, [r8]
	cmp	r2, r1
	beq	.L81
	ldr	r7, .L82+56
	ldr	r1, [r7]
	cmp	r3, r1
	bne	.L27
.L28:
	ldr	r1, [r5]
	cmp	r1, r3
	beq	.L31
.L32:
	ldr	r3, .L82+68
	ldr	r3, [r3]
	cmp	r3, r2
	bne	.L36
	ldr	r0, .L82+72
	bl	EVP_get_cipherbyname
	cmp	r0, #0
	bne	.L73
.L36:
	mov	r0, #1
	b	.L1
.L78:
	mov	r3, #0
	cmp	r7, r3
	str	r3, [r6]
	ldrne	r3, .L82+36
	ldr	r0, [r4]
	ldrne	r3, [r3]
	strne	r3, [r7]
	cmp	r10, #0
	movne	r3, #0
	strne	r3, [r10]
	ldr	r3, .L82+76
	ldr	r2, [r9, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r7, #0
	cmp	r0, #0
	beq	.L7
.L33:
	bl	EVP_CIPHER_flags
	ldr	r3, .L82+80
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L17
	b	.L7
.L77:
	bl	EVP_enc_null
	str	r0, [r4]
	b	.L9
.L79:
	ldr	r2, .L82+84
	ldr	r1, [r9, #4]
	ldr	r2, [r2]
	cmp	r1, r2
	bne	.L21
	ldr	r0, .L82+88
	bl	EVP_get_cipherbyname
	cmp	r0, #0
	ldreq	r3, [r9]
	beq	.L21
	ldr	r3, [sp, #56]
	str	r0, [r4]
	mov	r0, #1
	str	r3, [r6]
	b	.L1
.L81:
	ldr	r0, .L82+92
	bl	EVP_get_cipherbyname
	cmp	r0, #0
	bne	.L73
	ldr	r7, .L82+56
	ldr	r3, [r9]
	ldr	r2, [r7]
	cmp	r3, r2
	beq	.L26
.L27:
	ldr	r2, [r5]
	cmp	r3, r2
	bne	.L36
.L72:
	ldr	r2, [r9, #4]
.L31:
	ldr	r3, .L82+68
	ldr	r3, [r3]
	cmp	r3, r2
	bne	.L36
	ldr	r0, .L82+96
	bl	EVP_get_cipherbyname
	cmp	r0, #0
	bne	.L73
	ldr	r3, [r9]
.L30:
	ldr	r2, [r7]
	cmp	r3, r2
	bne	.L36
	ldr	r2, [r9, #4]
	b	.L32
.L29:
	ldr	r2, [r5]
	ldr	r3, [r9]
	cmp	r3, r2
	bne	.L30
	b	.L72
.L76:
	bl	__stack_chk_fail
.L83:
	.align	2
.L82:
	.word	.LC5
	.word	ssl_comp_methods
	.word	ssl_cipher_table_cipher
	.word	SSL_ENC_NULL_IDX
	.word	ssl_cipher_methods
	.word	ssl_cipher_table_mac
	.word	ssl_digest_methods
	.word	ssl_mac_pkey_id
	.word	ssl_mac_secret_size
	.word	NID_undef
	.word	TLS1_VERSION_MAJOR
	.word	TLS1_VERSION
	.word	SSL_RC4
	.word	SSL_AES128
	.word	SSL_AES256
	.word	SSL_SHA1
	.word	.LC2
	.word	SSL_SHA256
	.word	.LC4
	.word	SSL_AEAD
	.word	EVP_CIPH_FLAG_AEAD_CIPHER
	.word	SSL_MD5
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.size	ssl_cipher_get_evp, .-ssl_cipher_get_evp
	.comm	ssl_mac_secret_size,4,4
	.comm	ssl_mac_pkey_id,4,4
	.comm	ssl_digest_methods,4,4
	.comm	ssl_comp_methods,4,4
	.comm	ssl_cipher_table_mac,4,4
	.comm	ssl_cipher_table_cipher,4,4
	.comm	ssl_cipher_methods,4,4
	.comm	TLS1_VERSION_MAJOR,4,4
	.comm	TLS1_VERSION,4,4
	.comm	SSL_SHA256,4,4
	.comm	SSL_SHA1,4,4
	.comm	SSL_RC4,4,4
	.comm	SSL_MD5,4,4
	.comm	SSL_ENC_NULL_IDX,4,4
	.comm	SSL_AES256,4,4
	.comm	SSL_AES128,4,4
	.comm	SSL_AEAD,4,4
	.comm	NID_undef,4,4
	.comm	EVP_CIPH_FLAG_AEAD_CIPHER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
