	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function CRYPT_FindIssuer
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CRYPT_FindIssuer:                      ## @CRYPT_FindIssuer
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movl	%ecx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rbp), %r9
	movl	(%rsi), %esi
	movq	%rdx, %rdi
	xorl	%edx, %edx
	callq	_CertFindCertificateInStore
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	leaq	L_.str(%rip), %rdi
LBB0_2:
	movq	%r13, %rsi
	callq	_TRACE
	jmp	LBB0_23
LBB0_3:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	cmpq	$0, 16(%rbp)
	je	LBB0_5
## %bb.4:
	xorl	%r13d, %r13d
LBB0_23:
	movq	%r13, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
## %bb.6:
	movl	(%r14), %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	xorl	%r9d, %r9d
	callq	_CertFindCertificateInStore
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_8:
	movq	_URL_OID_CERTIFICATE_ISSUER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r8
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_CryptGetObjectUrl
	testq	%rax, %rax
	je	LBB0_23
## %bb.9:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-48(%rbp), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.10:
	movq	%rax, %r15
	movl	(%r12), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%r13d, %r13d
	leaq	-48(%rbp), %r8
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	xorl	%r9d, %r9d
	callq	_CryptGetObjectUrl
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	cmpl	$0, (%r15)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_18
## %bb.12:
	movq	%r15, %rbx
	leaq	L_.str.2(%rip), %r14
	xorl	%r15d, %r15d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_13
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	callq	_GetLastError
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_TRACE
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	cmpq	%rax, %r15
	jae	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r15,4), %edi
	callq	_debugstr_w
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_TRACE
	movq	_CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CRYPT_CACHE_ONLY_RETRIEVAL@GOTPCREL(%rip), %rax
	andl	%r12d, %ecx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_CRYPT_AIA_RETRIEVAL@GOTPCREL(%rip), %rax
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rbx), %rcx
	movl	(%rcx,%r15,4), %edi
	movq	_CONTEXT_OID_CERTIFICATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	$0, 16(%rsp)
	xorl	%ecx, %ecx
	leaq	-88(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_CryptRetrieveObjectByUrlW
	testq	%rax, %rax
	je	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	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
	movq	%rax, %rbx
	movq	-88(%rbp), %rsi
	movq	_CERT_STORE_ADD_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_CertAddCertificateContextToStore
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_CertFindCertificateInStore
	movq	%rax, %r13
	movq	-88(%rbp), %rdi
	callq	_CertFreeCertificateContext
	movq	%rbx, %rdi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	xorl	%esi, %esi
	callq	_CertCloseStore
	testq	%r13, %r13
	je	LBB0_17
## %bb.20:
	leaq	L_.str.4(%rip), %rdi
	movq	%r13, %rsi
	callq	_TRACE
	jmp	LBB0_21
LBB0_18:
	xorl	%r13d, %r13d
LBB0_21:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_22:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_HeapFree
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found in store %p\n"

L_.str.1:                               ## @.str.1
	.asciz	"Found in world %p\n"

	.comm	_URL_OID_CERTIFICATE_ISSUER,4,2 ## @URL_OID_CERTIFICATE_ISSUER
L_.str.2:                               ## @.str.2
	.asciz	"Trying URL %s\n"

	.comm	_CONTEXT_OID_CERTIFICATE,4,2    ## @CONTEXT_OID_CERTIFICATE
	.comm	_CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL,4,2 ## @CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL
	.comm	_CRYPT_CACHE_ONLY_RETRIEVAL,4,2 ## @CRYPT_CACHE_ONLY_RETRIEVAL
	.comm	_CRYPT_AIA_RETRIEVAL,4,2        ## @CRYPT_AIA_RETRIEVAL
L_.str.3:                               ## @.str.3
	.asciz	"CryptRetrieveObjectByUrlW failed: %u\n"

	.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	_CERT_STORE_ADD_NEW,4,2         ## @CERT_STORE_ADD_NEW
L_.str.4:                               ## @.str.4
	.asciz	"Found downloaded issuer %p\n"

	.no_dead_strip	_CRYPT_FindIssuer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_FindIssuer
_CRYPT_FindIssuer:                      ; @CRYPT_FindIssuer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x6
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	mov	x24, x0
	ldr	w1, [x1]
	mov	x0, x2
	mov	w2, #0
	mov	x5, x6
	bl	_CertFindCertificateInStore
	cbz	x0, LBB0_3
; %bb.1:
	mov	x26, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	mov	x1, x26
	bl	_TRACE
	b	LBB0_5
LBB0_3:
	cbz	x23, LBB0_6
LBB0_4:
	mov	x26, #0
LBB0_5:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	ldr	x0, [x24]
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w1, [x22]
	mov	w2, #0
	mov	x3, x21
	mov	x4, x20
	mov	x5, #0
	bl	_CertFindCertificateInStore
	cbz	x0, LBB0_9
; %bb.8:
	mov	x26, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_9:
Lloh4:
	adrp	x24, _URL_OID_CERTIFICATE_ISSUER@GOTPAGE
Lloh5:
	ldr	x24, [x24, _URL_OID_CERTIFICATE_ISSUER@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x4, sp, #28
	mov	x1, x22
	mov	w2, #0
	mov	x3, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_CryptGetObjectUrl
	cbz	x0, LBB0_4
; %bb.10:
	bl	_GetProcessHeap
	ldr	w2, [sp, #28]
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_4
; %bb.11:
	mov	x23, x0
	ldr	w0, [x24]
	add	x4, sp, #28
	mov	x1, x22
	mov	w2, #0
	mov	x3, x23
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_CryptGetObjectUrl
	cbz	x0, LBB0_19
; %bb.12:
	ldr	w8, [x23]
	cbz	w8, LBB0_19
; %bb.13:
	mov	x28, #0
Lloh6:
	adrp	x24, l_.str.2@PAGE
Lloh7:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh8:
	adrp	x25, _CRYPT_AIA_RETRIEVAL@GOTPAGE
Lloh9:
	ldr	x25, [x25, _CRYPT_AIA_RETRIEVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	bl	_GetLastError
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x28, x28, #1
	ldr	w8, [x23]
	cmp	x28, x8
	b.hs	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	lsl	x26, x28, #2
	ldr	w0, [x8, x26]
	bl	_debugstr_w
	mov	x1, x0
	mov	x0, x24
	bl	_TRACE
	ldr	x8, [x23, #8]
	ldr	w0, [x8, x26]
Lloh12:
	adrp	x8, _CONTEXT_OID_CERTIFICATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONTEXT_OID_CERTIFICATE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w19
Lloh18:
	adrp	x8, _CRYPT_CACHE_ONLY_RETRIEVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CRYPT_CACHE_ONLY_RETRIEVAL@GOTPAGEOFF]
	csel	x8, x25, x8, eq
	ldr	w2, [x8]
	str	xzr, [sp]
	add	x4, sp, #16
	mov	w3, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_CryptRetrieveObjectByUrlW
	cbz	x0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh20:
	adrp	x8, _CERT_STORE_PROV_MEMORY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CERT_STORE_PROV_MEMORY@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CERT_STORE_CREATE_NEW_FLAG@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w2, #0
	mov	x4, #0
	bl	_CertOpenStore
	mov	x27, x0
	ldr	x1, [sp, #16]
Lloh26:
	adrp	x8, _CERT_STORE_ADD_NEW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CERT_STORE_ADD_NEW@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x3, #0
	bl	_CertAddCertificateContextToStore
	ldr	w1, [x22]
	mov	x0, x27
	mov	w2, #0
	mov	x3, x21
	mov	x4, x20
	mov	x5, #0
	bl	_CertFindCertificateInStore
	mov	x26, x0
	ldr	x0, [sp, #16]
	bl	_CertFreeCertificateContext
	mov	x0, x27
	mov	w1, #0
	bl	_CertCloseStore
	cbz	x26, LBB0_15
; %bb.18:
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x26
	bl	_TRACE
	b	LBB0_20
LBB0_19:
	mov	x26, #0
LBB0_20:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x23
	bl	_HeapFree
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found in store %p\n"

l_.str.1:                               ; @.str.1
	.asciz	"Found in world %p\n"

	.comm	_URL_OID_CERTIFICATE_ISSUER,4,2 ; @URL_OID_CERTIFICATE_ISSUER
l_.str.2:                               ; @.str.2
	.asciz	"Trying URL %s\n"

	.comm	_CONTEXT_OID_CERTIFICATE,4,2    ; @CONTEXT_OID_CERTIFICATE
	.comm	_CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL,4,2 ; @CERT_CHAIN_CACHE_ONLY_URL_RETRIEVAL
	.comm	_CRYPT_CACHE_ONLY_RETRIEVAL,4,2 ; @CRYPT_CACHE_ONLY_RETRIEVAL
	.comm	_CRYPT_AIA_RETRIEVAL,4,2        ; @CRYPT_AIA_RETRIEVAL
l_.str.3:                               ; @.str.3
	.asciz	"CryptRetrieveObjectByUrlW failed: %u\n"

	.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	_CERT_STORE_ADD_NEW,4,2         ; @CERT_STORE_ADD_NEW
l_.str.4:                               ; @.str.4
	.asciz	"Found downloaded issuer %p\n"

	.no_dead_strip	_CRYPT_FindIssuer
.subsections_via_symbols
