	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compare_crl_issued_by
_compare_crl_issued_by:                 ## @compare_crl_issued_by
	.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
	testq	%rcx, %rcx
	je	LBB0_28
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rdi, %r13
	movl	8(%rcx), %edi
	movq	(%rcx), %rsi
	addq	$4, %rsi
	movq	(%r13), %rdx
	addq	$8, %rdx
	callq	_CertCompareCertificateName
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	_CRL_FIND_ISSUED_BY_SIGNATURE_FLAG@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_5
## %bb.4:
	movl	8(%r14), %esi
	movq	_CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%r13, %rcx
	movq	%r14, %r9
	pushq	$0
	pushq	$0
	callq	_CryptVerifyCertificateSignatureEx
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_29
LBB0_5:
	movq	_CRL_FIND_ISSUED_BY_AKI_FLAG@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_6
## %bb.7:
	movq	_szOID_AUTHORITY_KEY_IDENTIFIER2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_CertFindExtension
	movl	%ebx, %r15d
	testq	%rax, %rax
	je	LBB0_29
## %bb.8:
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %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
	movl	(%rax), %r8d
	leaq	-64(%rbp), %rax
	leaq	-48(%rbp), %rbx
	xorl	%r15d, %r15d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	callq	_CryptDecodeObjectEx
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_29
## %bb.9:
	movq	-48(%rbp), %rcx
	movq	24(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	cmpq	$0, 16(%rcx)
	je	LBB0_19
## %bb.11:
	movq	32(%rcx), %rcx
	movq	_CERT_ALT_NAME_DIRECTORY_NAME@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	-8(%rcx), %rdi
	incq	%rax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	decq	%rax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	16(%rdi), %rdx
	cmpq	%rsi, 8(%rdi)
	movq	%rdx, %rdi
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rdx, %rdi
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.15:
	movl	8(%r14), %edi
	movq	(%r14), %rsi
	addq	$4, %rsi
	callq	_CertCompareCertificateName
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movq	(%r14), %rdi
	movq	-48(%rbp), %rsi
	addq	$16, %rsi
	callq	_CertCompareIntegerBlob
	movl	%eax, %r15d
	jmp	LBB0_27
LBB0_28:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_29
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_29
LBB0_6:
	movl	%ebx, %r15d
	jmp	LBB0_29
LBB0_19:
	cmpq	$0, (%rcx)
	je	LBB0_24
## %bb.20:
	movq	_CERT_KEY_IDENTIFIER_PROP_ID@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_CertGetCertificateContextProperty
	testl	%eax, %eax
	je	LBB0_26
## %bb.21:
	movq	-56(%rbp), %rdi
	movq	-48(%rbp), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_26
## %bb.22:
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.23:
	movq	%rax, %rbx
	movl	(%r15), %esi
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_CertGetCertificateContextProperty
	movq	-48(%rbp), %rax
	movl	8(%rax), %esi
	movq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_memcmp
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
	movq	%rbx, %rdi
	callq	_CryptMemFree
	jmp	LBB0_27
LBB0_24:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_25
LBB0_18:
	leaq	L_.str(%rip), %rdi
LBB0_25:
	callq	_FIXME
LBB0_26:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_27:
	movq	-48(%rbp), %rdi
	callq	_LocalFree
LBB0_29:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_CRL_FIND_ISSUED_BY_SIGNATURE_FLAG,8,3 ## @CRL_FIND_ISSUED_BY_SIGNATURE_FLAG
	.comm	_CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL,4,2 ## @CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL
	.comm	_CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT,4,2 ## @CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT
	.comm	_CRL_FIND_ISSUED_BY_AKI_FLAG,8,3 ## @CRL_FIND_ISSUED_BY_AKI_FLAG
	.comm	_szOID_AUTHORITY_KEY_IDENTIFIER2,4,2 ## @szOID_AUTHORITY_KEY_IDENTIFIER2
	.comm	_X509_ASN_ENCODING,4,2          ## @X509_ASN_ENCODING
	.comm	_X509_AUTHORITY_KEY_ID2,4,2     ## @X509_AUTHORITY_KEY_ID2
	.comm	_CRYPT_DECODE_ALLOC_FLAG,4,2    ## @CRYPT_DECODE_ALLOC_FLAG
	.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	_FALSE,4,2                      ## @FALSE
	.comm	_CERT_KEY_IDENTIFIER_PROP_ID,4,2 ## @CERT_KEY_IDENTIFIER_PROP_ID
L_.str.1:                               ## @.str.1
	.asciz	"unsupported value for AKI extension\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_compare_crl_issued_by
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compare_crl_issued_by
_compare_crl_issued_by:                 ; @compare_crl_issued_by
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	cbz	x3, LBB0_14
; %bb.1:
	mov	x19, x3
	mov	x22, x2
	mov	x21, x0
	ldr	w0, [x3, #8]
	ldr	x8, [x3]
	add	x1, x8, #4
	ldr	x8, [x21]
	add	x2, x8, #8
	bl	_CertCompareCertificateName
	mov	x20, x0
	cbz	w0, LBB0_15
; %bb.2:
Lloh0:
	adrp	x8, _CRL_FIND_ISSUED_BY_SIGNATURE_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRL_FIND_ISSUED_BY_SIGNATURE_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x22
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x19, #8]
Lloh3:
	adrp	x8, _CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	w0, #0
	mov	x3, x21
	mov	x5, x19
	mov	w6, #0
	mov	x7, #0
	bl	_CryptVerifyCertificateSignatureEx
	mov	x20, x0
	cbz	w0, LBB0_15
LBB0_4:
Lloh9:
	adrp	x8, _CRL_FIND_ISSUED_BY_AKI_FLAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CRL_FIND_ISSUED_BY_AKI_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	x8, x22
	b.eq	LBB0_15
; %bb.5:
Lloh12:
	adrp	x8, _szOID_AUTHORITY_KEY_IDENTIFIER2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _szOID_AUTHORITY_KEY_IDENTIFIER2@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldp	w2, w1, [x8]
	bl	_CertFindExtension
	cbz	x0, LBB0_15
; %bb.6:
Lloh15:
	adrp	x8, _X509_ASN_ENCODING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _X509_ASN_ENCODING@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _X509_AUTHORITY_KEY_ID2@GOTPAGE
Lloh19:
	ldr	x9, [x9, _X509_AUTHORITY_KEY_ID2@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	ldp	w3, w2, [x0]
Lloh21:
	adrp	x9, _CRYPT_DECODE_ALLOC_FLAG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CRYPT_DECODE_ALLOC_FLAG@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x9]
	add	x6, sp, #24
	add	x7, sp, #16
	mov	x0, x8
	mov	x5, #0
	bl	_CryptDecodeObjectEx
	cbz	w0, LBB0_21
; %bb.7:
	ldr	x8, [sp, #24]
	ldr	x10, [x8, #24]
	cbz	x10, LBB0_16
; %bb.8:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_16
; %bb.9:
	ldr	x8, [x8, #32]
Lloh24:
	adrp	x9, _CERT_ALT_NAME_DIRECTORY_NAME@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CERT_ALT_NAME_DIRECTORY_NAME@GOTPAGEOFF]
Lloh26:
	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_23
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x2, x11, #16
	ldr	x11, [x11, #8]
	cmp	x11, x9
	ccmp	x8, #0, #4, eq
	mov	x11, x2
	b.eq	LBB0_10
; %bb.12:
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	add	x1, x8, #4
	bl	_CertCompareCertificateName
	cbz	w0, LBB0_27
; %bb.13:
	ldr	x0, [x19]
	ldr	x8, [sp, #24]
	add	x1, x8, #16
	bl	_CertCompareIntegerBlob
	mov	x20, x0
	b	LBB0_26
LBB0_14:
Lloh27:
	adrp	x8, _TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh29:
	ldr	w20, [x8]
LBB0_15:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_16:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.17:
Lloh30:
	adrp	x20, _CERT_KEY_IDENTIFIER_PROP_ID@GOTPAGE
Lloh31:
	ldr	x20, [x20, _CERT_KEY_IDENTIFIER_PROP_ID@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_CertGetCertificateContextProperty
	cbz	w0, LBB0_25
; %bb.18:
	ldr	x0, [sp, #8]
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_25
; %bb.19:
	bl	_CryptMemAlloc
	cbz	x0, LBB0_25
; %bb.20:
	mov	x21, x0
	ldr	w1, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_CertGetCertificateContextProperty
	ldr	x8, [sp, #24]
	ldr	w1, [x8, #8]
	ldr	x2, [sp, #8]
	mov	x0, x21
	bl	_memcmp
	cmp	w0, #0
	cset	w20, eq
	mov	x0, x21
	bl	_CryptMemFree
	b	LBB0_26
LBB0_21:
	mov	w20, #0
	b	LBB0_15
LBB0_22:
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
LBB0_24:
	bl	_FIXME
LBB0_25:
Lloh36:
	adrp	x8, _FALSE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh38:
	ldr	w20, [x8]
LBB0_26:
	ldr	x0, [sp, #24]
	bl	_LocalFree
	b	LBB0_15
LBB0_27:
	mov	w20, #0
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_CRL_FIND_ISSUED_BY_SIGNATURE_FLAG,8,3 ; @CRL_FIND_ISSUED_BY_SIGNATURE_FLAG
	.comm	_CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL,4,2 ; @CRYPT_VERIFY_CERT_SIGN_SUBJECT_CRL
	.comm	_CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT,4,2 ; @CRYPT_VERIFY_CERT_SIGN_ISSUER_CERT
	.comm	_CRL_FIND_ISSUED_BY_AKI_FLAG,8,3 ; @CRL_FIND_ISSUED_BY_AKI_FLAG
	.comm	_szOID_AUTHORITY_KEY_IDENTIFIER2,4,2 ; @szOID_AUTHORITY_KEY_IDENTIFIER2
	.comm	_X509_ASN_ENCODING,4,2          ; @X509_ASN_ENCODING
	.comm	_X509_AUTHORITY_KEY_ID2,4,2     ; @X509_AUTHORITY_KEY_ID2
	.comm	_CRYPT_DECODE_ALLOC_FLAG,4,2    ; @CRYPT_DECODE_ALLOC_FLAG
	.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	_FALSE,4,2                      ; @FALSE
	.comm	_CERT_KEY_IDENTIFIER_PROP_ID,4,2 ; @CERT_KEY_IDENTIFIER_PROP_ID
l_.str.1:                               ; @.str.1
	.asciz	"unsupported value for AKI extension\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_compare_crl_issued_by
.subsections_via_symbols
