	.file	"extr_ex_data.c_crypto_new_ex_data_ex.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	crypto_new_ex_data_ex
	.type	crypto_new_ex_data_ex, @function
crypto_new_ex_data_ex:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	call	openssl_ctx_get_ex_data_global@PLT
	test	rax, rax
	je	.L26
	mov	esi, r13d
	mov	rdi, rbp
	mov	r12, rax
	call	get_and_lock@PLT
	mov	r13, rax
	test	rax, rax
	je	.L26
	mov	QWORD PTR 8[rbx], rbp
	mov	edi, DWORD PTR [rax]
	mov	QWORD PTR [rbx], 0
	call	sk_EX_CALLBACK_num@PLT
	mov	r14d, eax
	test	eax, eax
	jg	.L28
	mov	edi, DWORD PTR [r12]
	xor	ebp, ebp
	call	CRYPTO_THREAD_unlock@PLT
	mov	rdi, rbp
	call	OPENSSL_free@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	lea	edi, 0[0+r14*8]
	call	OPENSSL_malloc@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR [r12]
	call	CRYPTO_THREAD_unlock@PLT
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR CRYPTO_F_CRYPTO_NEW_EX_DATA_EX[rip]
	call	CRYPTOerr@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 104[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L29
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L28:
	.cfi_restore_state
	lea	rbp, 16[rsp]
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rbp
	call	OSSL_NELEM@PLT
	cmp	r14d, eax
	jge	.L30
.L6:
	sub	r14d, 1
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 0[r13]
	mov	esi, edx
	mov	QWORD PTR [rsp], rdx
	call	sk_EX_CALLBACK_value@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp+rdx*8], rax
	mov	rax, rdx
	add	rdx, 1
	cmp	r14, rax
	jne	.L8
	mov	edi, DWORD PTR [r12]
	xor	r12d, r12d
	call	CRYPTO_THREAD_unlock@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12, rax
.L11:
	mov	rax, QWORD PTR 0[rbp+r12*8]
	test	rax, rax
	je	.L10
	cmp	QWORD PTR 8[rax], 0
	je	.L10
	mov	esi, r12d
	mov	rdi, rbx
	call	CRYPTO_get_ex_data@PLT
	mov	r10, QWORD PTR 0[rbp+r12*8]
	mov	ecx, r12d
	mov	rdx, rbx
	mov	rsi, rax
	mov	rdi, r15
	mov	r9d, DWORD PTR [r10]
	mov	r8d, DWORD PTR 4[r10]
	call	[QWORD PTR 8[r10]]
.L10:
	lea	rax, 1[r12]
	cmp	r14, r12
	jne	.L15
	mov	eax, 1
	cmp	rbp, QWORD PTR 8[rsp]
	je	.L1
	mov	rdi, rbp
	call	OPENSSL_free@PLT
	mov	eax, 1
	jmp	.L1
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	crypto_new_ex_data_ex, .-crypto_new_ex_data_ex
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	CRYPTO_F_CRYPTO_NEW_EX_DATA_EX,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_ex_data.c_crypto_new_ex_data_ex.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	crypto_new_ex_data_ex
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypto_new_ex_data_ex, %function
crypto_new_ex_data_ex:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	ldr	r3, .L33
	sub	sp, sp, #68
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	mov	r6, r1
	mov	r9, r2
	mov	r4, r0
	bl	openssl_ctx_get_ex_data_global
	subs	r3, r0, #0
	str	r3, [sp, #8]
	beq	.L4
	mov	r1, r6
	mov	r0, r4
	bl	get_and_lock
	subs	r8, r0, #0
	beq	.L4
	mov	r6, #0
	ldr	r0, [r8]
	str	r4, [r5, #4]
	str	r6, [r5]
	bl	sk_EX_CALLBACK_num
	subs	r10, r0, #0
	bgt	.L30
	ldr	r3, [sp, #8]
	ldr	r0, [r3]
	bl	CRYPTO_THREAD_unlock
.L12:
	mov	r0, r6
	bl	OPENSSL_free
	mov	r0, #1
	b	.L1
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	add	r0, sp, #20
	bl	OSSL_NELEM
	cmp	r0, r10
	lslgt	r3, r10, #2
	addgt	r6, sp, #20
	strgt	r3, [sp, #12]
	ble	.L32
.L6:
	sub	r4, r6, #4
	mov	r7, r4
	mov	fp, #0
.L8:
	mov	r1, fp
	ldr	r0, [r8]
	bl	sk_EX_CALLBACK_value
	add	fp, fp, #1
	cmp	r10, fp
	str	r0, [r7, #4]!
	bne	.L8
	mov	r7, #0
	ldr	r3, [sp, #8]
	ldr	r0, [r3]
	bl	CRYPTO_THREAD_unlock
	ldr	r3, [sp, #12]
	sub	r8, r3, #4
	add	r8, r6, r8
.L11:
	ldr	r3, [r4, #4]!
	cmp	r3, #0
	beq	.L10
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L10
	mov	r1, r7
	mov	r0, r5
	bl	CRYPTO_get_ex_data
	ldr	ip, [r4]
	mov	r1, r0
	ldr	r2, [ip]
	mov	r3, r7
	str	r2, [sp, #4]
	ldr	r0, [ip, #4]
	mov	r2, r5
	str	r0, [sp]
	ldr	r10, [ip, #8]
	mov	r0, r9
	blx	r10
.L10:
	cmp	r8, r4
	add	r7, r7, #1
	bne	.L11
	add	r3, sp, #20
	cmp	r6, r3
	moveq	r0, #1
	beq	.L1
	b	.L12
.L32:
	lsl	r3, r10, #2
	mov	r0, r3
	str	r3, [sp, #12]
	bl	OPENSSL_malloc
	subs	r6, r0, #0
	bne	.L6
	ldr	r3, [sp, #8]
	ldr	r0, [r3]
	bl	CRYPTO_THREAD_unlock
	ldr	r2, .L33+4
	ldr	r3, .L33+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	CRYPTOerr
	mov	r0, r6
	b	.L1
.L31:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	ERR_R_MALLOC_FAILURE
	.word	CRYPTO_F_CRYPTO_NEW_EX_DATA_EX
	.size	crypto_new_ex_data_ex, .-crypto_new_ex_data_ex
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	CRYPTO_F_CRYPTO_NEW_EX_DATA_EX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
