	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_QuerySerializedStoreFromBlob
_CRYPT_QuerySerializedStoreFromBlob:    ## @CRYPT_QuerySerializedStoreFromBlob
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_CERT_STORE_PROV_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CERT_STORE_CREATE_NEW_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_CertOpenStore
	movl	%eax, %r12d
	movslq	4(%rbx), %rsi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_CRYPT_ReadSerializedStoreFromBlob
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_3:
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	_CERT_QUERY_CONTENT_SERIALIZED_STORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movl	%r12d, %edi
	callq	_CertDuplicateStore
	movl	%eax, (%r14)
LBB0_7:
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_CertCloseStore
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CERT_STORE_PROV_MEMORY,4,2     ## @CERT_STORE_PROV_MEMORY
	.comm	_CERT_STORE_CREATE_NEW_FLAG,4,2 ## @CERT_STORE_CREATE_NEW_FLAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d, %p)\n"

	.comm	_X509_ASN_ENCODING,4,2          ## @X509_ASN_ENCODING
	.comm	_CERT_QUERY_CONTENT_SERIALIZED_STORE,4,2 ## @CERT_QUERY_CONTENT_SERIALIZED_STORE
L_.str.1:                               ## @.str.1
	.asciz	"returning %d\n"

	.no_dead_strip	_CRYPT_QuerySerializedStoreFromBlob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_QuerySerializedStoreFromBlob
_CRYPT_QuerySerializedStoreFromBlob:    ; @CRYPT_QuerySerializedStoreFromBlob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _CERT_STORE_PROV_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CERT_STORE_PROV_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_CertOpenStore
	mov	x21, x0
	ldp	w8, w1, [x23]
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x1, w1
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x23
	mov	x1, x21
	bl	_CRYPT_ReadSerializedStoreFromBlob
	mov	x23, x0
	cbz	x0, LBB0_7
; %bb.1:
	cbz	x22, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _X509_ASN_ENCODING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _X509_ASN_ENCODING@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_3:
	cbz	x20, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _CERT_QUERY_CONTENT_SERIALIZED_STORE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CERT_QUERY_CONTENT_SERIALIZED_STORE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_5:
	cbz	x19, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_CertDuplicateStore
	str	w0, [x19]
LBB0_7:
	mov	x0, x21
	mov	w1, #0
	bl	_CertCloseStore
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_TRACE
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CERT_STORE_PROV_MEMORY,4,2     ; @CERT_STORE_PROV_MEMORY
	.comm	_CERT_STORE_CREATE_NEW_FLAG,4,2 ; @CERT_STORE_CREATE_NEW_FLAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d, %p)\n"

	.comm	_X509_ASN_ENCODING,4,2          ; @X509_ASN_ENCODING
	.comm	_CERT_QUERY_CONTENT_SERIALIZED_STORE,4,2 ; @CERT_QUERY_CONTENT_SERIALIZED_STORE
l_.str.1:                               ; @.str.1
	.asciz	"returning %d\n"

	.no_dead_strip	_CRYPT_QuerySerializedStoreFromBlob
.subsections_via_symbols
