	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_ChainQuality
_CRYPT_ChainQuality:                    ## @CRYPT_ChainQuality
	.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	%rdi, %r14
	movq	_CHAIN_QUALITY_HIGHEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CERT_TRUST_IS_UNTRUSTED_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IS_TRUST_ERROR_SET
	movq	_CHAIN_QUALITY_TRUSTED_ROOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	xorl	%r15d, %r15d
	cmpq	$1, %rax
	movl	$0, %r12d
	sbbl	%r12d, %r12d
	orl	%ecx, %r12d
	andl	%ebx, %r12d
	movq	_CERT_TRUST_INVALID_BASIC_CONSTRAINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IS_TRUST_ERROR_SET
	movq	_CHAIN_QUALITY_BASIC_CONSTRAINTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	$1, %rax
	movl	$0, %r13d
	sbbl	%r13d, %r13d
	notl	%ecx
	orl	%ecx, %r13d
	movq	_CERT_TRUST_IS_PARTIAL_CHAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IS_TRUST_ERROR_SET
	movq	_CHAIN_QUALITY_COMPLETE_CHAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	cmpq	$1, %rax
	movl	$0, %ebx
	sbbl	%ebx, %ebx
	orl	%ecx, %ebx
	andl	%r13d, %ebx
	andl	%r12d, %ebx
	movq	_CERT_TRUST_IS_NOT_TIME_VALID@GOTPCREL(%rip), %rax
	movq	_CERT_TRUST_IS_NOT_TIME_NESTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IS_TRUST_ERROR_SET
	movq	_CHAIN_QUALITY_TIME_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	$1, %rax
	movl	$0, %r12d
	sbbl	%r12d, %r12d
	notl	%ecx
	orl	%ecx, %r12d
	movq	_CERT_TRUST_IS_NOT_SIGNATURE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_IS_TRUST_ERROR_SET
	movq	_CHAIN_QUALITY_SIGNATURE_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	$1, %rax
	sbbl	%r15d, %r15d
	notl	%ecx
	orl	%ecx, %r15d
	andl	%r12d, %r15d
	andl	%ebx, %r15d
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAIN_QUALITY_HIGHEST,4,2      ## @CHAIN_QUALITY_HIGHEST
	.comm	_CERT_TRUST_IS_UNTRUSTED_ROOT,4,2 ## @CERT_TRUST_IS_UNTRUSTED_ROOT
	.comm	_CHAIN_QUALITY_TRUSTED_ROOT,4,2 ## @CHAIN_QUALITY_TRUSTED_ROOT
	.comm	_CERT_TRUST_INVALID_BASIC_CONSTRAINTS,4,2 ## @CERT_TRUST_INVALID_BASIC_CONSTRAINTS
	.comm	_CHAIN_QUALITY_BASIC_CONSTRAINTS,4,2 ## @CHAIN_QUALITY_BASIC_CONSTRAINTS
	.comm	_CERT_TRUST_IS_PARTIAL_CHAIN,4,2 ## @CERT_TRUST_IS_PARTIAL_CHAIN
	.comm	_CHAIN_QUALITY_COMPLETE_CHAIN,4,2 ## @CHAIN_QUALITY_COMPLETE_CHAIN
	.comm	_CERT_TRUST_IS_NOT_TIME_VALID,4,2 ## @CERT_TRUST_IS_NOT_TIME_VALID
	.comm	_CERT_TRUST_IS_NOT_TIME_NESTED,4,2 ## @CERT_TRUST_IS_NOT_TIME_NESTED
	.comm	_CHAIN_QUALITY_TIME_VALID,4,2   ## @CHAIN_QUALITY_TIME_VALID
	.comm	_CERT_TRUST_IS_NOT_SIGNATURE_VALID,4,2 ## @CERT_TRUST_IS_NOT_SIGNATURE_VALID
	.comm	_CHAIN_QUALITY_SIGNATURE_VALID,4,2 ## @CHAIN_QUALITY_SIGNATURE_VALID
	.no_dead_strip	_CRYPT_ChainQuality
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_ChainQuality
_CRYPT_ChainQuality:                    ; @CRYPT_ChainQuality
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CHAIN_QUALITY_HIGHEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHAIN_QUALITY_HIGHEST@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _CERT_TRUST_IS_UNTRUSTED_ROOT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CERT_TRUST_IS_UNTRUSTED_ROOT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_IS_TRUST_ERROR_SET
Lloh6:
	adrp	x8, _CHAIN_QUALITY_TRUSTED_ROOT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CHAIN_QUALITY_TRUSTED_ROOT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	mov	w21, #-1
	csinv	w8, w21, w8, eq
	and	w20, w8, w20
Lloh9:
	adrp	x8, _CERT_TRUST_INVALID_BASIC_CONSTRAINTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CERT_TRUST_INVALID_BASIC_CONSTRAINTS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IS_TRUST_ERROR_SET
Lloh12:
	adrp	x8, _CHAIN_QUALITY_BASIC_CONSTRAINTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CHAIN_QUALITY_BASIC_CONSTRAINTS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	x0, #0
	csinv	w8, w21, w8, eq
	and	w20, w20, w8
Lloh15:
	adrp	x8, _CERT_TRUST_IS_PARTIAL_CHAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CERT_TRUST_IS_PARTIAL_CHAIN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IS_TRUST_ERROR_SET
Lloh18:
	adrp	x8, _CHAIN_QUALITY_COMPLETE_CHAIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CHAIN_QUALITY_COMPLETE_CHAIN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	x0, #0
	csinv	w8, w21, w8, eq
Lloh21:
	adrp	x9, _CERT_TRUST_IS_NOT_TIME_VALID@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CERT_TRUST_IS_NOT_TIME_VALID@GOTPAGEOFF]
	and	w20, w20, w8
Lloh23:
	ldr	w8, [x9]
Lloh24:
	adrp	x9, _CERT_TRUST_IS_NOT_TIME_NESTED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CERT_TRUST_IS_NOT_TIME_NESTED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_IS_TRUST_ERROR_SET
Lloh27:
	adrp	x8, _CHAIN_QUALITY_TIME_VALID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CHAIN_QUALITY_TIME_VALID@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	x0, #0
	csinv	w8, w21, w8, eq
	and	w20, w20, w8
Lloh30:
	adrp	x8, _CERT_TRUST_IS_NOT_SIGNATURE_VALID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CERT_TRUST_IS_NOT_SIGNATURE_VALID@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IS_TRUST_ERROR_SET
Lloh33:
	adrp	x8, _CHAIN_QUALITY_SIGNATURE_VALID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CHAIN_QUALITY_SIGNATURE_VALID@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	x0, #0
	csinv	w8, w21, w8, eq
	and	w0, w20, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAIN_QUALITY_HIGHEST,4,2      ; @CHAIN_QUALITY_HIGHEST
	.comm	_CERT_TRUST_IS_UNTRUSTED_ROOT,4,2 ; @CERT_TRUST_IS_UNTRUSTED_ROOT
	.comm	_CHAIN_QUALITY_TRUSTED_ROOT,4,2 ; @CHAIN_QUALITY_TRUSTED_ROOT
	.comm	_CERT_TRUST_INVALID_BASIC_CONSTRAINTS,4,2 ; @CERT_TRUST_INVALID_BASIC_CONSTRAINTS
	.comm	_CHAIN_QUALITY_BASIC_CONSTRAINTS,4,2 ; @CHAIN_QUALITY_BASIC_CONSTRAINTS
	.comm	_CERT_TRUST_IS_PARTIAL_CHAIN,4,2 ; @CERT_TRUST_IS_PARTIAL_CHAIN
	.comm	_CHAIN_QUALITY_COMPLETE_CHAIN,4,2 ; @CHAIN_QUALITY_COMPLETE_CHAIN
	.comm	_CERT_TRUST_IS_NOT_TIME_VALID,4,2 ; @CERT_TRUST_IS_NOT_TIME_VALID
	.comm	_CERT_TRUST_IS_NOT_TIME_NESTED,4,2 ; @CERT_TRUST_IS_NOT_TIME_NESTED
	.comm	_CHAIN_QUALITY_TIME_VALID,4,2   ; @CHAIN_QUALITY_TIME_VALID
	.comm	_CERT_TRUST_IS_NOT_SIGNATURE_VALID,4,2 ; @CERT_TRUST_IS_NOT_SIGNATURE_VALID
	.comm	_CHAIN_QUALITY_SIGNATURE_VALID,4,2 ; @CHAIN_QUALITY_SIGNATURE_VALID
	.no_dead_strip	_CRYPT_ChainQuality
.subsections_via_symbols
