	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_PKCSOpenStore
_CRYPT_PKCSOpenStore:                   ## @CRYPT_PKCSOpenStore
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ecx
	movq	_CERT_STORE_NO_CRYPT_RELEASE_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, %r14d
	andl	%esi, %eax
	jne	LBB0_2
## %bb.1:
	movq	_CMSG_CRYPT_RELEASE_CONTEXT_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	movslq	%edi, %rbx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_TRACE
	movq	_PKCS_7_ASN_ENCODING@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_CMSG_SIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %esi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CryptMsgOpenToDecode
	movl	%eax, %r15d
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	_TRUE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	%eax, %edi
	callq	_CryptMsgUpdate
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	xorl	%edi, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	callq	_CRYPT_MsgOpenStore
	movq	%rax, %r13
LBB0_4:
	movl	%r15d, %edi
	callq	_CryptMsgClose
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r15d, %edi
	callq	_CryptMsgClose
	movl	(%r13), %edi
	xorl	%r13d, %r13d
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CryptMsgOpenToDecode
	movl	%eax, %r15d
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movl	(%rbx), %ecx
	movl	%eax, %edi
	callq	_CryptMsgUpdate
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movl	$4, -52(%rbp)
	movq	_CMSG_TYPE_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_CryptMsgGetParam
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	-56(%rbp), %eax
	movq	_CMSG_SIGNED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.8:
	movq	_CRYPT_E_INVALID_MSG_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
LBB0_10:
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_CERT_STORE_NO_CRYPT_RELEASE_FLAG,4,2 ## @CERT_STORE_NO_CRYPT_RELEASE_FLAG
	.comm	_CMSG_CRYPT_RELEASE_CONTEXT_FLAG,4,2 ## @CMSG_CRYPT_RELEASE_CONTEXT_FLAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%ld, %08x, %p)\n"

	.comm	_PKCS_7_ASN_ENCODING,4,2        ## @PKCS_7_ASN_ENCODING
	.comm	_CMSG_SIGNED,4,2                ## @CMSG_SIGNED
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CMSG_TYPE_PARAM,4,2            ## @CMSG_TYPE_PARAM
	.comm	_CRYPT_E_INVALID_MSG_TYPE,4,2   ## @CRYPT_E_INVALID_MSG_TYPE
	.comm	_FALSE,8,3                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"returning %p\n"

	.no_dead_strip	_CRYPT_PKCSOpenStore
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_PKCSOpenStore
_CRYPT_PKCSOpenStore:                   ; @CRYPT_PKCSOpenStore
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _CERT_STORE_NO_CRYPT_RELEASE_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CERT_STORE_NO_CRYPT_RELEASE_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CMSG_CRYPT_RELEASE_CONTEXT_FLAG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMSG_CRYPT_RELEASE_CONTEXT_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w1
	csel	w23, w9, wzr, eq
	sxtw	x1, w22
	stp	x19, x2, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh8:
	adrp	x25, _PKCS_7_ASN_ENCODING@GOTPAGE
Lloh9:
	ldr	x25, [x25, _PKCS_7_ASN_ENCODING@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh10:
	adrp	x24, _CMSG_SIGNED@GOTPAGE
Lloh11:
	ldr	x24, [x24, _CMSG_SIGNED@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x1, x23
	mov	x3, x22
	mov	x4, #0
	mov	x5, #0
	bl	_CryptMsgOpenToDecode
	mov	x20, x0
	ldp	w2, w1, [x21]
Lloh12:
	adrp	x26, _TRUE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _TRUE@GOTPAGEOFF]
	ldr	w3, [x26]
	bl	_CryptMsgUpdate
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	mov	x1, x19
	mov	x2, x20
	bl	_CRYPT_MsgOpenStore
	mov	x19, x0
	b	LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_CryptMsgClose
	ldr	w0, [x25]
	mov	x1, x23
	mov	w2, #0
	mov	x3, x22
	mov	x4, #0
	mov	x5, #0
	bl	_CryptMsgOpenToDecode
	mov	x20, x0
	ldp	w2, w1, [x21]
	ldr	w3, [x26]
	bl	_CryptMsgUpdate
	cbz	x0, LBB0_6
; %bb.3:
	mov	w8, #4
	str	w8, [sp, #24]
Lloh14:
	adrp	x8, _CMSG_TYPE_PARAM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMSG_TYPE_PARAM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x3, sp, #28
	add	x4, sp, #24
	mov	x0, x20
	mov	w2, #0
	bl	_CryptMsgGetParam
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #28]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_1
; %bb.5:
Lloh17:
	adrp	x8, _CRYPT_E_INVALID_MSG_TYPE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CRYPT_E_INVALID_MSG_TYPE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_SetLastError
Lloh20:
	adrp	x8, _FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbnz	x8, LBB0_1
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, x20
	bl	_CryptMsgClose
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CERT_STORE_NO_CRYPT_RELEASE_FLAG,4,2 ; @CERT_STORE_NO_CRYPT_RELEASE_FLAG
	.comm	_CMSG_CRYPT_RELEASE_CONTEXT_FLAG,4,2 ; @CMSG_CRYPT_RELEASE_CONTEXT_FLAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%ld, %08x, %p)\n"

	.comm	_PKCS_7_ASN_ENCODING,4,2        ; @PKCS_7_ASN_ENCODING
	.comm	_CMSG_SIGNED,4,2                ; @CMSG_SIGNED
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CMSG_TYPE_PARAM,4,2            ; @CMSG_TYPE_PARAM
	.comm	_CRYPT_E_INVALID_MSG_TYPE,4,2   ; @CRYPT_E_INVALID_MSG_TYPE
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"returning %p\n"

	.no_dead_strip	_CRYPT_PKCSOpenStore
.subsections_via_symbols
