	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_SerializedOpenStore
_CRYPT_SerializedOpenStore:             ## @CRYPT_SerializedOpenStore
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movslq	%edi, %rsi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_TRACE
	movq	_CERT_STORE_DELETE_FLAG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_ERROR_CALL_NOT_IMPLEMENTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_CERT_STORE_PROV_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CERT_STORE_CREATE_NEW_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_CertOpenStore
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_CRYPT_ReadSerializedStoreFromBlob
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rbx
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_CertCloseStore
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%ld, %08x, %p)\n"

	.comm	_CERT_STORE_DELETE_FLAG,4,2     ## @CERT_STORE_DELETE_FLAG
	.comm	_ERROR_CALL_NOT_IMPLEMENTED,4,2 ## @ERROR_CALL_NOT_IMPLEMENTED
	.comm	_CERT_STORE_PROV_MEMORY,4,2     ## @CERT_STORE_PROV_MEMORY
	.comm	_CERT_STORE_CREATE_NEW_FLAG,4,2 ## @CERT_STORE_CREATE_NEW_FLAG
L_.str.1:                               ## @.str.1
	.asciz	"returning %p\n"

	.no_dead_strip	_CRYPT_SerializedOpenStore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_SerializedOpenStore
_CRYPT_SerializedOpenStore:             ; @CRYPT_SerializedOpenStore
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	stp	x20, x2, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x8, _CERT_STORE_DELETE_FLAG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CERT_STORE_DELETE_FLAG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ERROR_CALL_NOT_IMPLEMENTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR_CALL_NOT_IMPLEMENTED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_SetLastError
	mov	x20, #0
	b	LBB0_6
LBB0_2:
Lloh8:
	adrp	x8, _CERT_STORE_PROV_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CERT_STORE_PROV_MEMORY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_CertOpenStore
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_CRYPT_ReadSerializedStoreFromBlob
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	bl	_CertCloseStore
	mov	x20, #0
LBB0_5:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_TRACE
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%ld, %08x, %p)\n"

	.comm	_CERT_STORE_DELETE_FLAG,4,2     ; @CERT_STORE_DELETE_FLAG
	.comm	_ERROR_CALL_NOT_IMPLEMENTED,4,2 ; @ERROR_CALL_NOT_IMPLEMENTED
	.comm	_CERT_STORE_PROV_MEMORY,4,2     ; @CERT_STORE_PROV_MEMORY
	.comm	_CERT_STORE_CREATE_NEW_FLAG,4,2 ; @CERT_STORE_CREATE_NEW_FLAG
l_.str.1:                               ; @.str.1
	.asciz	"returning %p\n"

	.no_dead_strip	_CRYPT_SerializedOpenStore
.subsections_via_symbols
