	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_cert_by_issuer
_find_cert_by_issuer:                   ## @find_cert_by_issuer
	.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, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	_szOID_AUTHORITY_KEY_IDENTIFIER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rcx), %rax
	movl	24(%rax), %edx
	movl	28(%rax), %esi
	callq	_CertFindExtension
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	8(%rbx), %edi
	movq	_X509_AUTHORITY_KEY_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	_CRYPT_DECODE_ALLOC_FLAG@GOTPCREL(%rip), %rax
	movq	_CRYPT_DECODE_NOCOPY_FLAG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	orl	(%rax), %r8d
	leaq	-80(%rbp), %rax
	leaq	-48(%rbp), %r10
	xorl	%ebx, %ebx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_CryptDecodeObjectEx
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_27
## %bb.2:
	movq	-48(%rbp), %rsi
	cmpq	$0, 40(%rsi)
	je	LBB0_14
## %bb.3:
	cmpq	$0, 32(%rsi)
	je	LBB0_14
## %bb.4:
	movq	_CERT_ID_ISSUER_SERIAL_NUMBER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	leaq	-68(%rbp), %rbx
	leaq	-64(%rbp), %rdi
	addq	$40, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-48(%rbp), %rsi
	addq	$32, %rsi
	movq	%rbx, %rdi
	jmp	LBB0_16
LBB0_5:
	movq	_szOID_AUTHORITY_KEY_IDENTIFIER2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	24(%rax), %edx
	movl	28(%rax), %esi
	callq	_CertFindExtension
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	movl	8(%rbx), %edi
	movq	_X509_AUTHORITY_KEY_ID2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	_CRYPT_DECODE_ALLOC_FLAG@GOTPCREL(%rip), %rax
	movq	_CRYPT_DECODE_NOCOPY_FLAG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	orl	(%rax), %r8d
	leaq	-80(%rbp), %rax
	leaq	-48(%rbp), %r10
	xorl	%ebx, %ebx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_CryptDecodeObjectEx
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_27
## %bb.7:
	movq	-48(%rbp), %rsi
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	cmpq	$0, 8(%rsi)
	je	LBB0_18
## %bb.9:
	movq	24(%rsi), %rcx
	movq	_CERT_ALT_NAME_DIRECTORY_NAME@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	-8(%rcx), %rdi
	incq	%rax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	decq	%rax
	je	LBB0_22
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	16(%rdi), %rsi
	cmpq	%rdx, 8(%rdi)
	movq	%rsi, %rdi
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rsi, %rdi
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.13:
	movq	_CERT_ID_ISSUER_SERIAL_NUMBER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	leaq	-68(%rbp), %rbx
	leaq	-64(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	-48(%rbp), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	jmp	LBB0_16
LBB0_14:
	cmpq	$0, (%rsi)
	jne	LBB0_15
## %bb.20:
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_24
## %bb.21:
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	jmp	LBB0_26
LBB0_17:
	movq	_compare_cert_by_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CERT_COMPARE_NAME@GOTPCREL(%rip), %rax
	movq	_CERT_COMPARE_SUBJECT_CERT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	movq	(%rbx), %r9
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r14, %r8
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cert_compare_certs_in_store    ## TAILCALL
LBB0_18:
	cmpq	$0, (%rsi)
	je	LBB0_23
LBB0_15:
	movq	_CERT_ID_KEY_IDENTIFIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	leaq	-72(%rbp), %rdi
LBB0_16:
	movl	$4, %edx
	callq	_memcpy
LBB0_24:
	movq	_compare_cert_by_cert_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %r9
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_cert_compare_certs_in_store
	movq	%rax, %rbx
LBB0_25:
	movq	-48(%rbp), %rdi
LBB0_26:
	callq	_LocalFree
LBB0_27:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
LBB0_23:
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_24
## %bb.28:
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_szOID_AUTHORITY_KEY_IDENTIFIER,4,2 ## @szOID_AUTHORITY_KEY_IDENTIFIER
	.comm	_X509_AUTHORITY_KEY_ID,4,2      ## @X509_AUTHORITY_KEY_ID
	.comm	_CRYPT_DECODE_ALLOC_FLAG,4,2    ## @CRYPT_DECODE_ALLOC_FLAG
	.comm	_CRYPT_DECODE_NOCOPY_FLAG,4,2   ## @CRYPT_DECODE_NOCOPY_FLAG
	.comm	_CERT_ID_ISSUER_SERIAL_NUMBER,8,3 ## @CERT_ID_ISSUER_SERIAL_NUMBER
	.comm	_CERT_ID_KEY_IDENTIFIER,8,3     ## @CERT_ID_KEY_IDENTIFIER
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_compare_cert_by_cert_id,4,2    ## @compare_cert_by_cert_id
	.comm	_szOID_AUTHORITY_KEY_IDENTIFIER2,4,2 ## @szOID_AUTHORITY_KEY_IDENTIFIER2
	.comm	_X509_AUTHORITY_KEY_ID2,4,2     ## @X509_AUTHORITY_KEY_ID2
	.comm	_CERT_ALT_NAME_DIRECTORY_NAME,8,3 ## @CERT_ALT_NAME_DIRECTORY_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no supported name type in authority key id2\n"

	.comm	_compare_cert_by_name,4,2       ## @compare_cert_by_name
	.comm	_CERT_COMPARE_NAME,8,3          ## @CERT_COMPARE_NAME
	.comm	_CERT_COMPARE_SUBJECT_CERT,8,3  ## @CERT_COMPARE_SUBJECT_CERT
	.no_dead_strip	_find_cert_by_issuer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_cert_by_issuer
_find_cert_by_issuer:                   ; @find_cert_by_issuer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x3]
Lloh0:
	adrp	x9, _szOID_AUTHORITY_KEY_IDENTIFIER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _szOID_AUTHORITY_KEY_IDENTIFIER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	ldp	w2, w1, [x8, #24]
	bl	_CertFindExtension
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x23, #8]
Lloh3:
	adrp	x9, _X509_AUTHORITY_KEY_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _X509_AUTHORITY_KEY_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _CRYPT_DECODE_ALLOC_FLAG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CRYPT_DECODE_ALLOC_FLAG@GOTPAGEOFF]
	ldp	w3, w2, [x0]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CRYPT_DECODE_NOCOPY_FLAG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CRYPT_DECODE_NOCOPY_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w4, w10, w9
	add	x6, sp, #32
	add	x7, sp, #40
	mov	x0, x8
	mov	x5, #0
	bl	_CryptDecodeObjectEx
	cbz	w0, LBB0_13
; %bb.2:
	ldr	x1, [sp, #32]
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_14
; %bb.3:
	ldr	x8, [x1, #32]
	cbz	x8, LBB0_14
; %bb.4:
Lloh12:
	adrp	x8, _CERT_ID_ISSUER_SERIAL_NUMBER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CERT_ID_ISSUER_SERIAL_NUMBER@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x8, sp, #8
	orr	x23, x8, #0x4
	add	x0, x8, #8
	add	x1, x1, #40
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [sp, #32]
	add	x1, x8, #32
	mov	x0, x23
	b	LBB0_20
LBB0_5:
Lloh15:
	adrp	x8, _szOID_AUTHORITY_KEY_IDENTIFIER2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _szOID_AUTHORITY_KEY_IDENTIFIER2@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x8, [x23]
	ldp	w2, w1, [x8, #24]
	bl	_CertFindExtension
	cbz	x0, LBB0_17
; %bb.6:
	ldr	w8, [x23, #8]
Lloh18:
	adrp	x9, _X509_AUTHORITY_KEY_ID2@GOTPAGE
Lloh19:
	ldr	x9, [x9, _X509_AUTHORITY_KEY_ID2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
Lloh21:
	adrp	x9, _CRYPT_DECODE_ALLOC_FLAG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CRYPT_DECODE_ALLOC_FLAG@GOTPAGEOFF]
	ldp	w3, w2, [x0]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _CRYPT_DECODE_NOCOPY_FLAG@GOTPAGE
Lloh25:
	ldr	x10, [x10, _CRYPT_DECODE_NOCOPY_FLAG@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w4, w10, w9
	add	x6, sp, #32
	add	x7, sp, #40
	mov	x0, x8
	mov	x5, #0
	bl	_CryptDecodeObjectEx
	cbz	w0, LBB0_13
; %bb.7:
	ldr	x1, [sp, #32]
	ldr	x10, [x1, #16]
	cbz	x10, LBB0_18
; %bb.8:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_18
; %bb.9:
	ldr	x8, [x1, #24]
Lloh27:
	adrp	x9, _CERT_ALT_NAME_DIRECTORY_NAME@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CERT_ALT_NAME_DIRECTORY_NAME@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	sub	x11, x8, #8
	add	x10, x10, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	subs	x10, x10, #1
	b.eq	LBB0_25
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, x11, #16
	ldr	x11, [x11, #8]
	cmp	x11, x9
	ccmp	x8, #0, #4, eq
	mov	x11, x1
	b.eq	LBB0_10
; %bb.12:
Lloh30:
	adrp	x8, _CERT_ID_ISSUER_SERIAL_NUMBER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CERT_ID_ISSUER_SERIAL_NUMBER@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x8, sp, #8
	orr	x23, x8, #0x4
	add	x0, x8, #8
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [sp, #32]
	add	x1, x8, #8
	mov	x0, x23
	b	LBB0_20
LBB0_13:
	mov	x19, #0
	b	LBB0_24
LBB0_14:
	ldr	x8, [x1]
	cbnz	x8, LBB0_19
; %bb.15:
Lloh33:
	adrp	x8, _FALSE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cbnz	w8, LBB0_21
; %bb.16:
	mov	x19, #0
	mov	x0, x1
	b	LBB0_23
LBB0_17:
Lloh36:
	adrp	x8, _compare_cert_by_name@GOTPAGE
Lloh37:
	ldr	x8, [x8, _compare_cert_by_name@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
Lloh39:
	adrp	x8, _CERT_COMPARE_NAME@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CERT_COMPARE_NAME@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
Lloh42:
	adrp	x9, _CERT_COMPARE_SUBJECT_CERT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _CERT_COMPARE_SUBJECT_CERT@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	orr	x3, x9, x8
	ldr	x5, [x23]
	mov	x0, x21
	mov	x1, x20
	mov	x4, 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
	add	sp, sp, #112
	b	_cert_compare_certs_in_store
LBB0_18:
	ldr	x8, [x1]
	cbz	x8, LBB0_26
LBB0_19:
Lloh45:
	adrp	x8, _CERT_ID_KEY_IDENTIFIER@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CERT_ID_KEY_IDENTIFIER@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x0, sp, #8
LBB0_20:
	mov	w2, #4
	bl	_memcpy
LBB0_21:
Lloh48:
	adrp	x8, _compare_cert_by_cert_id@GOTPAGE
Lloh49:
	ldr	x8, [x8, _compare_cert_by_cert_id@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	add	x5, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	mov	x4, x19
	bl	_cert_compare_certs_in_store
	mov	x19, x0
LBB0_22:
	ldr	x0, [sp, #32]
LBB0_23:
	bl	_LocalFree
LBB0_24:
	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
	add	sp, sp, #112
	ret
LBB0_25:
Lloh51:
	adrp	x0, l_.str@PAGE
Lloh52:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_26:
Lloh53:
	adrp	x8, _FALSE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	cbnz	w8, LBB0_21
; %bb.27:
	mov	x19, #0
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_szOID_AUTHORITY_KEY_IDENTIFIER,4,2 ; @szOID_AUTHORITY_KEY_IDENTIFIER
	.comm	_X509_AUTHORITY_KEY_ID,4,2      ; @X509_AUTHORITY_KEY_ID
	.comm	_CRYPT_DECODE_ALLOC_FLAG,4,2    ; @CRYPT_DECODE_ALLOC_FLAG
	.comm	_CRYPT_DECODE_NOCOPY_FLAG,4,2   ; @CRYPT_DECODE_NOCOPY_FLAG
	.comm	_CERT_ID_ISSUER_SERIAL_NUMBER,8,3 ; @CERT_ID_ISSUER_SERIAL_NUMBER
	.comm	_CERT_ID_KEY_IDENTIFIER,8,3     ; @CERT_ID_KEY_IDENTIFIER
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_compare_cert_by_cert_id,4,2    ; @compare_cert_by_cert_id
	.comm	_szOID_AUTHORITY_KEY_IDENTIFIER2,4,2 ; @szOID_AUTHORITY_KEY_IDENTIFIER2
	.comm	_X509_AUTHORITY_KEY_ID2,4,2     ; @X509_AUTHORITY_KEY_ID2
	.comm	_CERT_ALT_NAME_DIRECTORY_NAME,8,3 ; @CERT_ALT_NAME_DIRECTORY_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no supported name type in authority key id2\n"

	.comm	_compare_cert_by_name,4,2       ; @compare_cert_by_name
	.comm	_CERT_COMPARE_NAME,8,3          ; @CERT_COMPARE_NAME
	.comm	_CERT_COMPARE_SUBJECT_CERT,8,3  ; @CERT_COMPARE_SUBJECT_CERT
	.no_dead_strip	_find_cert_by_issuer
.subsections_via_symbols
