	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_CheckSimpleChainForCycles
_CRYPT_CheckSimpleChainForCycles:       ## @CRYPT_CheckSimpleChainForCycles
	.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, %r12
	movl	$1, %r14d
	xorl	%ebx, %ebx
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $r15d killed $r15d killed $r15
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	incq	%r14
	testl	%r15d, %r15d
	jne	LBB0_9
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	cmpl	%r14d, %eax
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %r15
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rcx
	movq	8(%rcx), %rcx
	movl	(%rcx), %esi
	movq	(%rax,%r15,8), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edx
	callq	_CertCompareCertificate
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%r15
	cmpl	%r15d, (%r12)
	jg	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_9:
	movq	_CERT_TRUST_IS_CYCLIC@GOTPCREL(%rip), %rax
	movq	_CERT_TRUST_INVALID_BASIC_CONSTRAINTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	8(%r12), %rax
	movslq	%r15d, %rdx
	movq	(%rax,%rdx,8), %rdx
	orl	%ecx, (%rdx)
	incl	%r15d
	cmpl	(%r12), %r15d
	jge	LBB0_13
## %bb.10:
	movslq	%r15d, %rbx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx,8), %rdi
	callq	_CRYPT_FreeChainElement
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r12), %rax
	jmp	LBB0_12
LBB0_13:
	movl	%r15d, (%r12)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_ASN_ENCODING,4,2          ## @X509_ASN_ENCODING
	.comm	_CERT_TRUST_IS_CYCLIC,4,2       ## @CERT_TRUST_IS_CYCLIC
	.comm	_CERT_TRUST_INVALID_BASIC_CONSTRAINTS,4,2 ## @CERT_TRUST_INVALID_BASIC_CONSTRAINTS
	.no_dead_strip	_CRYPT_CheckSimpleChainForCycles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_CheckSimpleChainForCycles
_CRYPT_CheckSimpleChainForCycles:       ; @CRYPT_CheckSimpleChainForCycles
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	mov	x20, #0
	mov	w21, #1
Lloh0:
	adrp	x22, _X509_ASN_ENCODING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _X509_ASN_ENCODING@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	add	x21, x21, #1
	cbnz	w23, LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, w21
	b.le	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x21
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x22]
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x20, lsl #3]
	ldr	x9, [x9, #8]
	ldr	w1, [x9]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8, #8]
	ldr	w2, [x8]
	bl	_CertCompareCertificate
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x23, x23, #1
	ldr	w8, [x19]
	cmp	w8, w23
	b.gt	LBB0_6
	b	LBB0_1
LBB0_8:
Lloh2:
	adrp	x8, _CERT_TRUST_IS_CYCLIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CERT_TRUST_IS_CYCLIC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CERT_TRUST_INVALID_BASIC_CONSTRAINTS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CERT_TRUST_INVALID_BASIC_CONSTRAINTS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w9, w9, w8
	ldr	x8, [x19, #8]
	mov	x10, x23
	sxtw	x10, w10
	ldr	x11, [x8, w23, sxtw #3]
	ldr	w12, [x11]
	orr	w9, w9, w12
	str	w9, [x11]
	add	x20, x10, #1
	ldr	w9, [x19]
	cmp	w20, w9
	b.ge	LBB0_12
; %bb.9:
	ldr	x0, [x8, x20, lsl #3]
	bl	_CRYPT_FreeChainElement
	add	x21, x20, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21, lsl #3]
	bl	_CRYPT_FreeChainElement
	add	x21, x21, #1
	b	LBB0_10
LBB0_12:
	str	w20, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_ASN_ENCODING,4,2          ; @X509_ASN_ENCODING
	.comm	_CERT_TRUST_IS_CYCLIC,4,2       ; @CERT_TRUST_IS_CYCLIC
	.comm	_CERT_TRUST_INVALID_BASIC_CONSTRAINTS,4,2 ; @CERT_TRUST_INVALID_BASIC_CONSTRAINTS
	.no_dead_strip	_CRYPT_CheckSimpleChainForCycles
.subsections_via_symbols
