	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_CheckChainNameConstraints
_CRYPT_CheckChainNameConstraints:       ## @CRYPT_CheckChainNameConstraints
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r14d
	cmpl	$2, %r14d
	jl	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	leaq	16(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leal	-2(%r14), %r15d
	leal	-1(%r14), %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_LocalFree
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	decq	%r15
	decl	%r13d
	cmpq	$2, %r14
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	leaq	-1(%r14), %rcx
	movq	8(%rbx), %rax
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_CRYPT_GetNameConstraints
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_CRYPT_IsValidNameConstraint
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	_CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	orl	%eax, 4(%rcx)
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	decl	%r13d
	testl	%r13d, %r13d
	jle	LBB0_11
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %r15
	movl	$0, -44(%rbp)
	subq	$1, %r14
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	8(%rax), %rdi
	callq	_CRYPT_IsCertificateSelfSigned
	testl	%eax, %eax
	jne	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	leaq	-44(%rbp), %rdx
	callq	_CRYPT_CheckNameConstraints
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%rbx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rsi
	orl	%eax, (%rsi)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_CRYPT_CombineTrustStatus
	jmp	LBB0_10
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT,4,2 ## @CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT
	.comm	_CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS,4,2 ## @CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS
	.no_dead_strip	_CRYPT_CheckChainNameConstraints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_CheckChainNameConstraints
_CRYPT_CheckChainNameConstraints:       ; @CRYPT_CheckChainNameConstraints
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w22, [x0]
	cmp	w22, #2
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x0
	add	x20, x0, #16
	sub	w8, w22, #2
	sub	w26, w22, #1
	lsl	x25, x8, #3
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_LocalFree
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w26, w26, #1
	sub	x25, x25, #8
	cmp	x22, #2
	mov	x22, x27
	b.le	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	sub	x27, x22, #1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, w27, uxtw #3]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_CRYPT_GetNameConstraints
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	and	x28, x27, #0xffffffff
	bl	_CRYPT_IsValidNameConstraint
	mov	x24, x25
	mov	x23, x26
	cbnz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x8, _CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x28, lsl #3]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
Lloh3:
	adrp	x8, _CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x28, lsl #3]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	sub	w23, w23, #1
	sub	x24, x24, #8
	cmp	w23, #0
	b.le	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	wzr, [sp, #12]
	cbz	x24, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x24]
	ldr	x0, [x8, #8]
	bl	_CRYPT_IsCertificateSelfSigned
	cbnz	w0, LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x24]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	bl	_CRYPT_CheckNameConstraints
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x9, [x19, #8]
	ldr	x1, [x9, x28, lsl #3]
	ldr	w9, [x1]
	orr	w8, w9, w8
	str	w8, [x1]
	mov	x0, x20
	bl	_CRYPT_CombineTrustStatus
	b	LBB0_8
LBB0_13:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT,4,2 ; @CERT_TRUST_HAS_NOT_SUPPORTED_NAME_CONSTRAINT
	.comm	_CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS,4,2 ; @CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS
	.no_dead_strip	_CRYPT_CheckChainNameConstraints
.subsections_via_symbols
