	.file	"extr_store.c_CRYPT_SerializedOpenStore.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"(%ld, %08x, %p)\n"
.LC1:
	.string	"returning %p\n"
	.text
	.p2align 4
	.type	CRYPT_SerializedOpenStore, @function
CRYPT_SerializedOpenStore:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	mov	rcx, rdx
	movsx	rsi, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	xor	eax, eax
	mov	rbp, rdx
	lea	rdi, .LC0[rip]
	mov	edx, r12d
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	TRACE@PLT
	test	DWORD PTR CERT_STORE_DELETE_FLAG[rip], r12d
	jne	.L10
	mov	ecx, DWORD PTR CERT_STORE_CREATE_NEW_FLAG[rip]
	mov	edi, DWORD PTR CERT_STORE_PROV_MEMORY[rip]
	xor	edx, edx
	xor	esi, esi
	xor	r8d, r8d
	call	CertOpenStore@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	rsi, rax
	mov	rdi, rbp
	call	CRYPT_ReadSerializedStoreFromBlob@PLT
	test	eax, eax
	je	.L11
.L4:
	mov	rsi, r12
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	TRACE@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, r12
	xor	esi, esi
	xor	r12d, r12d
	call	CertCloseStore@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR ERROR_CALL_NOT_IMPLEMENTED[rip]
	xor	r12d, r12d
	call	SetLastError@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	CRYPT_SerializedOpenStore, .-CRYPT_SerializedOpenStore
	.comm	ERROR_CALL_NOT_IMPLEMENTED,4,4
	.comm	CERT_STORE_PROV_MEMORY,4,4
	.comm	CERT_STORE_DELETE_FLAG,4,4
	.comm	CERT_STORE_CREATE_NEW_FLAG,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_store.c_CRYPT_SerializedOpenStore.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(%ld, %08x, %p)\012\000"
	.align	2
.LC1:
	.ascii	"returning %p\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CRYPT_SerializedOpenStore, %function
CRYPT_SerializedOpenStore:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r1
	mov	r3, r2
	mov	r1, r0
	mov	r5, r2
	ldr	r0, .L12
	mov	r2, r4
	sub	sp, sp, #12
	bl	TRACE
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ands	r2, r4, r2
	bne	.L10
	ldr	r1, .L12+8
	ldr	r3, .L12+12
	str	r2, [sp]
	ldr	r0, [r1]
	ldr	r3, [r3]
	mov	r1, r2
	bl	CertOpenStore
	subs	r4, r0, #0
	beq	.L4
	mov	r0, r5
	mov	r1, r4
	bl	CRYPT_ReadSerializedStoreFromBlob
	subs	r5, r0, #0
	beq	.L11
.L4:
	mov	r1, r4
	ldr	r0, .L12+16
	bl	TRACE
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	mov	r0, r4
	mov	r1, r5
	bl	CertCloseStore
	mov	r4, r5
	b	.L4
.L10:
	mov	r4, #0
	ldr	r3, .L12+20
	ldr	r0, [r3]
	bl	SetLastError
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	CERT_STORE_DELETE_FLAG
	.word	CERT_STORE_PROV_MEMORY
	.word	CERT_STORE_CREATE_NEW_FLAG
	.word	.LC1
	.word	ERROR_CALL_NOT_IMPLEMENTED
	.size	CRYPT_SerializedOpenStore, .-CRYPT_SerializedOpenStore
	.comm	ERROR_CALL_NOT_IMPLEMENTED,4,4
	.comm	CERT_STORE_PROV_MEMORY,4,4
	.comm	CERT_STORE_DELETE_FLAG,4,4
	.comm	CERT_STORE_CREATE_NEW_FLAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
