	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPT_ProvOpenStore            ## -- Begin function CRYPT_ProvOpenStore
	.p2align	4, 0x90
_CRYPT_ProvOpenStore:                   ## @CRYPT_ProvOpenStore
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movl	%esi, %r13d
	movl	%edi, %ebx
	movq	_CRYPT_ProvOpenStore.set(%rip), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_CRYPT_OID_OPEN_STORE_PROV_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CryptInitOIDFunctionSet
	movq	%rax, %rdi
	movq	%rax, _CRYPT_ProvOpenStore.set(%rip)
LBB0_2:
	leaq	-64(%rbp), %r8
	leaq	-52(%rbp), %r9
	movl	%r13d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_CryptGetOIDFunctionAddress
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	$8, -48(%rbp)
	movq	_CERT_STORE_DELETE_FLAG@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_5
## %bb.4:
	leaq	-48(%rbp), %rcx
	movq	%rcx, (%rsp)
	movq	%r14, %r8
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	xorl	%r9d, %r9d
	callq	*%rax
LBB0_9:
	movl	-52(%rbp), %edi
	xorl	%esi, %esi
	callq	_CryptFreeOIDFunctionAddress
	jmp	LBB0_11
LBB0_10:
	movq	_ERROR_FILE_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	_CERT_STORE_PROV_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CERT_STORE_CREATE_NEW_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_CertOpenStore
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	leaq	-48(%rbp), %rcx
	movq	%rcx, (%rsp)
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, %rbx
	movq	%rax, %r9
	callq	*-64(%rbp)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	-48(%rbp), %rdx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_CRYPT_ProvCreateStore
	movq	%rax, %r14
	jmp	LBB0_9
LBB0_8:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_CertCloseStore
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_CRYPT_ProvOpenStore.set,8,3 ## @CRYPT_ProvOpenStore.set
	.comm	_CRYPT_OID_OPEN_STORE_PROV_FUNC,4,2 ## @CRYPT_OID_OPEN_STORE_PROV_FUNC
	.comm	_CERT_STORE_DELETE_FLAG,4,2     ## @CERT_STORE_DELETE_FLAG
	.comm	_CERT_STORE_PROV_MEMORY,4,2     ## @CERT_STORE_PROV_MEMORY
	.comm	_CERT_STORE_CREATE_NEW_FLAG,4,2 ## @CERT_STORE_CREATE_NEW_FLAG
	.comm	_ERROR_FILE_NOT_FOUND,4,2       ## @ERROR_FILE_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPT_ProvOpenStore            ; -- Begin function CRYPT_ProvOpenStore
	.p2align	2
_CRYPT_ProvOpenStore:                   ; @CRYPT_ProvOpenStore
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	adrp	x24, _CRYPT_ProvOpenStore.set@PAGE
	ldr	x0, [x24, _CRYPT_ProvOpenStore.set@PAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CRYPT_OID_OPEN_STORE_PROV_FUNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPT_OID_OPEN_STORE_PROV_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CryptInitOIDFunctionSet
	str	x0, [x24, _CRYPT_ProvOpenStore.set@PAGEOFF]
LBB0_2:
	add	x4, sp, #24
	add	x5, sp, #20
	mov	x1, x22
	mov	x2, x23
	mov	w3, #0
	bl	_CryptGetOIDFunctionAddress
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_7
; %bb.3:
	mov	w9, #8
	str	x9, [sp, #8]
Lloh3:
	adrp	x9, _CERT_STORE_DELETE_FLAG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CERT_STORE_DELETE_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_9
; %bb.4:
	add	x6, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	mov	x4, x20
	mov	x5, #0
	blr	x8
LBB0_5:
	mov	x19, #0
LBB0_6:
	ldr	w0, [sp, #20]
	mov	w1, #0
	bl	_CryptFreeOIDFunctionAddress
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _ERROR_FILE_NOT_FOUND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR_FILE_NOT_FOUND@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_SetLastError
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
Lloh9:
	adrp	x8, _CERT_STORE_PROV_MEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CERT_STORE_PROV_MEMORY@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_CertOpenStore
	cbz	x0, LBB0_5
; %bb.10:
	mov	x24, x0
	ldr	x8, [sp, #24]
	add	x6, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	mov	x4, x20
	mov	x5, x24
	blr	x8
	cbz	x0, LBB0_12
; %bb.11:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x24
	bl	_CRYPT_ProvCreateStore
	mov	x19, x0
	b	LBB0_6
LBB0_12:
	mov	x0, x24
	mov	w1, #0
	bl	_CertCloseStore
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_CRYPT_ProvOpenStore.set,8,3 ; @CRYPT_ProvOpenStore.set
	.comm	_CRYPT_OID_OPEN_STORE_PROV_FUNC,4,2 ; @CRYPT_OID_OPEN_STORE_PROV_FUNC
	.comm	_CERT_STORE_DELETE_FLAG,4,2     ; @CERT_STORE_DELETE_FLAG
	.comm	_CERT_STORE_PROV_MEMORY,4,2     ; @CERT_STORE_PROV_MEMORY
	.comm	_CERT_STORE_CREATE_NEW_FLAG,4,2 ; @CERT_STORE_CREATE_NEW_FLAG
	.comm	_ERROR_FILE_NOT_FOUND,4,2       ; @ERROR_FILE_NOT_FOUND
.subsections_via_symbols
