	.file	"extr_eng_pkey.c_ENGINE_load_public_key.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ENGINE_load_public_key
	.type	ENGINE_load_public_key, @function
ENGINE_load_public_key:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L8
	mov	rbp, rdi
	mov	edi, DWORD PTR global_engine_lock[rip]
	mov	r12, rsi
	mov	r13, rdx
	mov	r14, rcx
	call	CRYPTO_THREAD_write_lock@PLT
	cmp	QWORD PTR 0[rbp], 0
	mov	edi, DWORD PTR global_engine_lock[rip]
	je	.L9
	call	CRYPTO_THREAD_unlock@PLT
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L10
	mov	rsi, r12
	mov	rcx, r14
	mov	rdx, r13
	mov	rdi, rbp
	call	rax
	mov	r12, rax
	test	rax, rax
	je	.L11
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	call	CRYPTO_THREAD_unlock@PLT
	mov	esi, DWORD PTR ENGINE_R_NOT_INITIALISED[rip]
	mov	edi, DWORD PTR ENGINE_F_ENGINE_LOAD_PUBLIC_KEY[rip]
	xor	r12d, r12d
	call	ENGINEerr@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR ERR_R_PASSED_NULL_PARAMETER[rip]
	mov	edi, DWORD PTR ENGINE_F_ENGINE_LOAD_PUBLIC_KEY[rip]
	xor	r12d, r12d
	call	ENGINEerr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR ENGINE_R_NO_LOAD_FUNCTION[rip]
	mov	edi, DWORD PTR ENGINE_F_ENGINE_LOAD_PUBLIC_KEY[rip]
	xor	r12d, r12d
	call	ENGINEerr@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR ENGINE_R_FAILED_LOADING_PUBLIC_KEY[rip]
	mov	edi, DWORD PTR ENGINE_F_ENGINE_LOAD_PUBLIC_KEY[rip]
	call	ENGINEerr@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ENGINE_load_public_key, .-ENGINE_load_public_key
	.comm	global_engine_lock,4,4
	.comm	ERR_R_PASSED_NULL_PARAMETER,4,4
	.comm	ENGINE_R_NO_LOAD_FUNCTION,4,4
	.comm	ENGINE_R_NOT_INITIALISED,4,4
	.comm	ENGINE_R_FAILED_LOADING_PUBLIC_KEY,4,4
	.comm	ENGINE_F_ENGINE_LOAD_PUBLIC_KEY,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_eng_pkey.c_ENGINE_load_public_key.c"
	.text
	.align	2
	.global	ENGINE_load_public_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	ENGINE_load_public_key, %function
ENGINE_load_public_key:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r0, #0
	beq	.L8
	ldr	r9, .L12
	mov	r6, r1
	ldr	r0, [r9]
	mov	r7, r2
	mov	r8, r3
	bl	CRYPTO_THREAD_write_lock
	ldr	r4, [r5]
	ldr	r0, [r9]
	cmp	r4, #0
	beq	.L9
	bl	CRYPTO_THREAD_unlock
	ldr	r4, [r5, #4]
	cmp	r4, #0
	beq	.L10
	mov	r3, r8
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	blx	r4
	subs	r4, r0, #0
	beq	.L11
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	bl	CRYPTO_THREAD_unlock
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ENGINEerr
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r2, .L12+12
	ldr	r3, .L12+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r4, r5
	bl	ENGINEerr
	b	.L1
.L10:
	ldr	r2, .L12+16
	ldr	r3, .L12+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ENGINEerr
	b	.L1
.L11:
	ldr	r2, .L12+20
	ldr	r3, .L12+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ENGINEerr
	b	.L1
.L13:
	.align	2
.L12:
	.word	global_engine_lock
	.word	ENGINE_R_NOT_INITIALISED
	.word	ENGINE_F_ENGINE_LOAD_PUBLIC_KEY
	.word	ERR_R_PASSED_NULL_PARAMETER
	.word	ENGINE_R_NO_LOAD_FUNCTION
	.word	ENGINE_R_FAILED_LOADING_PUBLIC_KEY
	.size	ENGINE_load_public_key, .-ENGINE_load_public_key
	.comm	global_engine_lock,4,4
	.comm	ERR_R_PASSED_NULL_PARAMETER,4,4
	.comm	ENGINE_R_NO_LOAD_FUNCTION,4,4
	.comm	ENGINE_R_NOT_INITIALISED,4,4
	.comm	ENGINE_R_FAILED_LOADING_PUBLIC_KEY,4,4
	.comm	ENGINE_F_ENGINE_LOAD_PUBLIC_KEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
