	.file	"extr_chain.c_CRYPT_FindCertInStore.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CRYPT_FindCertInStore, @function
CRYPT_FindCertInStore:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	rdi, rbx
	add	rsp, -128
	.cfi_def_cfa_offset 160
	mov	esi, DWORD PTR CERT_HASH_PROP_ID[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	lea	r12, 32[rsp]
	lea	rcx, 12[rsp]
	mov	DWORD PTR 12[rsp], 80
	mov	rdx, r12
	call	CertGetCertificateContextProperty@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L1
	mov	ecx, DWORD PTR CERT_FIND_SHA1_HASH[rip]
	mov	esi, DWORD PTR [rbx]
	xor	r9d, r9d
	lea	r8, 16[rsp]
	xor	edx, edx
	mov	edi, ebp
	mov	QWORD PTR 24[rsp], r12
	mov	DWORD PTR 16[rsp], 80
	call	CertFindCertificateInStore@PLT
.L1:
	mov	rdx, QWORD PTR 120[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L9
	sub	rsp, -128
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CRYPT_FindCertInStore, .-CRYPT_FindCertInStore
	.comm	CERT_HASH_PROP_ID,4,4
	.comm	CERT_FIND_SHA1_HASH,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_chain.c_CRYPT_FindCertInStore.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CRYPT_FindCertInStore, %function
CRYPT_FindCertInStore:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, #80
	ldr	r3, .L8
	sub	sp, sp, #104
	ldr	ip, .L8+4
	mov	r4, r1
	mov	r5, r0
	add	r2, sp, #20
	mov	r0, r1
	ldr	r1, [r3]
	add	r3, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #100]
	mov	ip,#0
	str	r6, [sp, #8]
	bl	CertGetCertificateContextProperty
	cmp	r0, #0
	beq	.L1
	mov	r2, #0
	ldr	r3, .L8+8
	ldr	r1, [r4]
	add	ip, sp, #12
	str	r2, [sp, #4]
	ldr	r3, [r3]
	mov	r0, r5
	str	ip, [sp]
	add	ip, sp, #20
	str	r6, [sp, #12]
	str	ip, [sp, #16]
	bl	CertFindCertificateInStore
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #104
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	CERT_HASH_PROP_ID
	.word	.LC0
	.word	CERT_FIND_SHA1_HASH
	.size	CRYPT_FindCertInStore, .-CRYPT_FindCertInStore
	.comm	CERT_HASH_PROP_ID,4,4
	.comm	CERT_FIND_SHA1_HASH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
