	.file	"extr_pmeth_lib.c_int_ctx_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	int_ctx_new, @function
int_ctx_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	edx, -1
	je	.L29
.L2:
	test	rbp, rbp
	jne	.L5
	test	r13, r13
	je	.L4
	mov	rbp, QWORD PTR 16[r13]
	test	rbp, rbp
	je	.L30
.L5:
	mov	rdi, rbp
	call	ENGINE_init@PLT
	test	eax, eax
	je	.L31
.L7:
	mov	esi, r12d
	mov	rdi, rbp
	call	ENGINE_get_pkey_meth@PLT
	mov	rbx, rax
.L9:
	test	rbx, rbx
	je	.L32
	mov	edi, 32
	call	OPENSSL_zalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L33
	mov	QWORD PTR 24[rax], rbp
	mov	QWORD PTR [rax], rbx
	mov	eax, DWORD PTR EVP_PKEY_OP_UNDEFINED[rip]
	mov	QWORD PTR 8[r12], r13
	mov	DWORD PTR 16[r12], eax
	test	r13, r13
	je	.L12
	mov	rdi, r13
	call	EVP_PKEY_up_ref@PLT
.L12:
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L1
	mov	rdi, r12
	call	rax
	test	rax, rax
	jle	.L34
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	rbp, QWORD PTR 8[r13]
.L4:
	test	rbp, rbp
	jne	.L5
	mov	edi, r12d
	call	ENGINE_get_pkey_meth_engine@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L7
	mov	edi, r12d
	call	EVP_PKEY_meth_find@PLT
	mov	rbx, rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	test	rdi, rdi
	je	.L13
	mov	r12d, DWORD PTR [rdi]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, rbp
	xor	r12d, r12d
	call	ENGINE_finish@PLT
	mov	esi, DWORD PTR EVP_R_UNSUPPORTED_ALGORITHM[rip]
	mov	edi, DWORD PTR EVP_F_INT_CTX_NEW[rip]
	call	EVPerr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, DWORD PTR ERR_R_ENGINE_LIB[rip]
	mov	edi, DWORD PTR EVP_F_INT_CTX_NEW[rip]
	xor	r12d, r12d
	call	EVPerr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	QWORD PTR [r12], 0
	mov	rdi, r12
	xor	r12d, r12d
	call	EVP_PKEY_CTX_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, rbp
	call	ENGINE_finish@PLT
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR EVP_F_INT_CTX_NEW[rip]
	call	EVPerr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	int_ctx_new, .-int_ctx_new
	.comm	EVP_R_UNSUPPORTED_ALGORITHM,4,4
	.comm	EVP_PKEY_OP_UNDEFINED,4,4
	.comm	EVP_F_INT_CTX_NEW,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	ERR_R_ENGINE_LIB,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_pmeth_lib.c_int_ctx_new.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	int_ctx_new, %function
int_ctx_new:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmn	r2, #1
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r6, r1
	movne	r5, r2
	beq	.L26
.L2:
	subs	r3, r7, #0
	movne	r3, #1
	cmp	r6, #0
	movne	r3, #0
	cmp	r3, #0
	beq	.L4
	ldr	r6, [r7, #8]
	cmp	r6, #0
	beq	.L27
.L5:
	mov	r0, r6
	bl	ENGINE_init
	subs	r4, r0, #0
	beq	.L28
.L7:
	mov	r1, r5
	mov	r0, r6
	bl	ENGINE_get_pkey_meth
	mov	r5, r0
.L9:
	cmp	r5, #0
	beq	.L29
	mov	r0, #16
	bl	OPENSSL_zalloc
	subs	r4, r0, #0
	beq	.L30
	ldr	r3, .L32
	cmp	r7, #0
	ldr	r3, [r3]
	str	r6, [r4, #12]
	stm	r4, {r5, r7}
	str	r3, [r4, #8]
	beq	.L12
	mov	r0, r7
	bl	EVP_PKEY_up_ref
.L12:
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L1
	mov	r0, r4
	blx	r3
	cmp	r0, #0
	ble	.L31
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	ldr	r6, [r7, #4]
.L4:
	cmp	r6, #0
	bne	.L5
	mov	r0, r5
	bl	ENGINE_get_pkey_meth_engine
	subs	r6, r0, #0
	bne	.L7
	mov	r0, r5
	bl	EVP_PKEY_meth_find
	mov	r5, r0
	b	.L9
.L26:
	cmp	r0, #0
	beq	.L13
	ldr	r5, [r0]
	b	.L2
.L29:
	mov	r0, r6
	bl	ENGINE_finish
	ldr	r2, .L32+4
	ldr	r3, .L32+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r4, r5
	bl	EVPerr
	b	.L1
.L28:
	ldr	r2, .L32+12
	ldr	r3, .L32+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	EVPerr
	b	.L1
.L31:
	mov	r5, #0
	mov	r0, r4
	str	r5, [r4]
	bl	EVP_PKEY_CTX_free
	mov	r4, r5
	b	.L1
.L30:
	mov	r0, r6
	bl	ENGINE_finish
	ldr	r2, .L32+16
	ldr	r3, .L32+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	EVPerr
	b	.L1
.L13:
	mov	r4, r0
	b	.L1
.L33:
	.align	2
.L32:
	.word	EVP_PKEY_OP_UNDEFINED
	.word	EVP_R_UNSUPPORTED_ALGORITHM
	.word	EVP_F_INT_CTX_NEW
	.word	ERR_R_ENGINE_LIB
	.word	ERR_R_MALLOC_FAILURE
	.size	int_ctx_new, .-int_ctx_new
	.comm	EVP_R_UNSUPPORTED_ALGORITHM,4,4
	.comm	EVP_PKEY_OP_UNDEFINED,4,4
	.comm	EVP_F_INT_CTX_NEW,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.comm	ERR_R_ENGINE_LIB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
