	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_FindCertInStore
_CRYPT_FindCertInStore:                 ## @CRYPT_FindCertInStore
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$80, -116(%rbp)
	movq	_CERT_HASH_PROP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %r15
	leaq	-116(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_CertGetCertificateContextProperty
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	$80, -136(%rbp)
	movq	%r15, -128(%rbp)
	movl	(%rbx), %esi
	movq	_CERT_FIND_SHA1_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-136(%rbp), %r8
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_CertFindCertificateInStore
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CERT_HASH_PROP_ID,4,2          ## @CERT_HASH_PROP_ID
	.comm	_CERT_FIND_SHA1_HASH,4,2        ## @CERT_FIND_SHA1_HASH
	.no_dead_strip	_CRYPT_FindCertInStore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_FindCertInStore
_CRYPT_FindCertInStore:                 ; @CRYPT_FindCertInStore
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w21, #80
	str	w21, [sp, #20]
Lloh3:
	adrp	x8, _CERT_HASH_PROP_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CERT_HASH_PROP_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x22, sp, #24
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x20
	bl	_CertGetCertificateContextProperty
	cbz	x0, LBB0_2
; %bb.1:
	str	w21, [sp]
	str	x22, [sp, #8]
	ldr	w1, [x20]
Lloh6:
	adrp	x8, _CERT_FIND_SHA1_HASH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CERT_FIND_SHA1_HASH@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x4, sp
	mov	x0, x19
	mov	w2, #0
	mov	x5, #0
	bl	_CertFindCertificateInStore
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CERT_HASH_PROP_ID,4,2          ; @CERT_HASH_PROP_ID
	.comm	_CERT_FIND_SHA1_HASH,4,2        ; @CERT_FIND_SHA1_HASH
	.no_dead_strip	_CRYPT_FindCertInStore
.subsections_via_symbols
