	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NAME_CONSTRAINTS_check         ## -- Begin function NAME_CONSTRAINTS_check
	.p2align	4, 0x90
_NAME_CONSTRAINTS_check:                ## @NAME_CONSTRAINTS_check
	.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	%rsi, %r14
	movq	%rdi, %r13
	callq	_X509_get_subject_name
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_X509_NAME_entry_count
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_sk_GENERAL_NAME_num
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_add_lengths
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	4(%r14), %edi
	callq	_sk_GENERAL_SUBTREE_num
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_sk_GENERAL_SUBTREE_num
	leaq	-44(%rbp), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_add_lengths
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	-48(%rbp), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.3:
	movl	-44(%rbp), %esi
	movq	_NAME_CHECK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	cmpl	%eax, %esi
	jle	LBB0_5
LBB0_4:
	movq	_X509_V_ERR_UNSPECIFIED@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	callq	_X509_NAME_entry_count
	testq	%rax, %rax
	jle	LBB0_12
## %bb.6:
	movq	_GEN_DIRNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r15, -64(%rbp)
	leaq	-72(%rbp), %rdi
	movq	%r14, %rsi
	callq	_nc_match
	movq	_X509_V_OK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_18
## %bb.7:
	movq	_GEN_EMAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_NID_pkcs9_emailAddress@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_X509_NAME_get_index_by_NID
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_X509_NAME_get_entry
	movq	%rax, %rdi
	callq	_X509_NAME_ENTRY_get_data
	movq	%rax, -72(%rbp)
	movq	(%rax), %rax
	movq	_V_ASN1_IA5STRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	-72(%rbp), %rdi
	movq	%r14, %rsi
	callq	_nc_match
	cmpl	(%r12), %eax
	je	LBB0_8
	jmp	LBB0_18
LBB0_12:
	movl	(%r13), %edi
	callq	_sk_GENERAL_NAME_num
	testl	%eax, %eax
	jle	LBB0_16
## %bb.13:
	xorl	%ebx, %ebx
	movq	_X509_V_OK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_sk_GENERAL_NAME_value
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_nc_match
	cmpl	(%r15), %eax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	%ebx
	movl	(%r13), %edi
	callq	_sk_GENERAL_NAME_num
	cmpl	%eax, %ebx
	jl	LBB0_15
LBB0_16:
	movq	_X509_V_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	movq	_X509_V_ERR_UNSUPPORTED_NAME_SYNTAX@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_NAME_CHECK_MAX,4,2             ## @NAME_CHECK_MAX
	.comm	_X509_V_ERR_UNSPECIFIED,4,2     ## @X509_V_ERR_UNSPECIFIED
	.comm	_GEN_DIRNAME,4,2                ## @GEN_DIRNAME
	.comm	_X509_V_OK,4,2                  ## @X509_V_OK
	.comm	_GEN_EMAIL,4,2                  ## @GEN_EMAIL
	.comm	_NID_pkcs9_emailAddress,4,2     ## @NID_pkcs9_emailAddress
	.comm	_V_ASN1_IA5STRING,8,3           ## @V_ASN1_IA5STRING
	.comm	_X509_V_ERR_UNSUPPORTED_NAME_SYNTAX,4,2 ## @X509_V_ERR_UNSUPPORTED_NAME_SYNTAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NAME_CONSTRAINTS_check         ; -- Begin function NAME_CONSTRAINTS_check
	.p2align	2
_NAME_CONSTRAINTS_check:                ; @NAME_CONSTRAINTS_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, x0
	bl	_X509_get_subject_name
	mov	x21, x0
	bl	_X509_NAME_entry_count
	mov	x22, x0
	ldr	w0, [x20]
	bl	_sk_GENERAL_NAME_num
	mov	x2, x0
	add	x0, sp, #28
	mov	x1, x22
	bl	_add_lengths
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_sk_GENERAL_SUBTREE_num
	mov	x22, x0
	ldr	w0, [x19]
	bl	_sk_GENERAL_SUBTREE_num
	mov	x2, x0
	add	x0, sp, #24
	mov	x1, x22
	bl	_add_lengths
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	w9, [sp, #24]
Lloh0:
	adrp	x10, _NAME_CHECK_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NAME_CHECK_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sdiv	w8, w10, w8
	cmp	w9, w8
	b.le	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _X509_V_ERR_UNSPECIFIED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509_V_ERR_UNSPECIFIED@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	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
	add	sp, sp, #112
	ret
LBB0_7:
	mov	x0, x21
	bl	_X509_NAME_entry_count
Lloh5:
	adrp	x23, _X509_V_OK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _X509_V_OK@GOTPAGEOFF]
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.8:
Lloh7:
	adrp	x8, _GEN_DIRNAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GEN_DIRNAME@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	str	x21, [sp, #8]
	mov	x0, sp
	mov	x1, x19
	bl	_nc_match
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.9:
Lloh10:
	adrp	x8, _GEN_EMAIL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GEN_EMAIL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	mov	w22, #-1
Lloh13:
	adrp	x24, _NID_pkcs9_emailAddress@GOTPAGE
Lloh14:
	ldr	x24, [x24, _NID_pkcs9_emailAddress@GOTPAGEOFF]
Lloh15:
	adrp	x25, _V_ASN1_IA5STRING@GOTPAGE
Lloh16:
	ldr	x25, [x25, _V_ASN1_IA5STRING@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x22
	bl	_X509_NAME_get_index_by_NID
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_X509_NAME_get_entry
	bl	_X509_NAME_ENTRY_get_data
	str	x0, [sp]
	ldr	x8, [x0]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, sp
	mov	x1, x19
	bl	_nc_match
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_10
	b	LBB0_6
LBB0_13:
	ldr	w0, [x20]
	bl	_sk_GENERAL_NAME_num
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.14:
	mov	w21, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	x1, x21
	bl	_sk_GENERAL_NAME_value
	mov	x1, x19
	bl	_nc_match
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	w21, w21, #1
	ldr	w0, [x20]
	bl	_sk_GENERAL_NAME_num
	cmp	w21, w0
	b.lt	LBB0_15
LBB0_17:
	ldr	w0, [x23]
	b	LBB0_6
LBB0_18:
Lloh17:
	adrp	x8, _X509_V_ERR_UNSUPPORTED_NAME_SYNTAX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _X509_V_ERR_UNSUPPORTED_NAME_SYNTAX@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NAME_CHECK_MAX,4,2             ; @NAME_CHECK_MAX
	.comm	_X509_V_ERR_UNSPECIFIED,4,2     ; @X509_V_ERR_UNSPECIFIED
	.comm	_GEN_DIRNAME,4,2                ; @GEN_DIRNAME
	.comm	_X509_V_OK,4,2                  ; @X509_V_OK
	.comm	_GEN_EMAIL,4,2                  ; @GEN_EMAIL
	.comm	_NID_pkcs9_emailAddress,4,2     ; @NID_pkcs9_emailAddress
	.comm	_V_ASN1_IA5STRING,8,3           ; @V_ASN1_IA5STRING
	.comm	_X509_V_ERR_UNSUPPORTED_NAME_SYNTAX,4,2 ; @X509_V_ERR_UNSUPPORTED_NAME_SYNTAX
.subsections_via_symbols
