	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_name
_validate_name:                         ## @validate_name
	.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	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_ASN1_STRING_data
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ASN1_STRING_length
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_has_nul
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MalformedCertificate@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_2:
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	movslq	%r12d, %rcx
	leaq	-1(%rcx), %rax
	cmpb	$46, -1(%r13,%rcx)
	cmovnel	%r12d, %eax
	cmpl	$3, %r15d
	jge	LBB0_6
	jmp	LBB0_13
LBB0_3:
	xorl	%eax, %eax
	cmpl	$3, %r15d
	jl	LBB0_13
LBB0_6:
	cmpb	$42, (%r14)
	jne	LBB0_13
## %bb.7:
	cmpb	$46, 1(%r14)
	jne	LBB0_13
## %bb.8:
	testl	%eax, %eax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rax), %ecx
	cmpb	$46, (%r13)
	leaq	1(%r13), %r13
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$1, %eax
	movl	%ecx, %eax
	jne	LBB0_10
	jmp	LBB0_12
LBB0_9:
	xorl	%ecx, %ecx
LBB0_12:
	addq	$2, %r14
	addl	$-2, %r15d
	movl	%ecx, %eax
LBB0_13:
	cmpl	%eax, %r15d
	jne	LBB0_16
## %bb.14:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memeq_ncase
	testq	%rax, %rax
	jne	LBB0_15
LBB0_16:
	movq	_MatchNotFound@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_MatchFound@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MalformedCertificate,4,2       ## @MalformedCertificate
	.comm	_MatchNotFound,4,2              ## @MatchNotFound
	.comm	_MatchFound,4,2                 ## @MatchFound
	.no_dead_strip	_validate_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_name
_validate_name:                         ; @validate_name
	.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	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ASN1_STRING_data
	mov	x20, x0
	mov	x0, x21
	bl	_ASN1_STRING_length
	mov	x21, x0
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_has_nul
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MalformedCertificate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MalformedCertificate@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
	cbz	w22, LBB0_4
; %bb.3:
	sxtw	x8, w22
	sub	x8, x8, #1
	ldrb	w9, [x19, x8]
	cmp	w9, #46
	csel	w8, w8, w22, eq
	cmp	w21, #3
	b.ge	LBB0_5
	b	LBB0_11
LBB0_4:
	mov	w8, #0
	cmp	w21, #3
	b.lt	LBB0_11
LBB0_5:
	ldrb	w9, [x20]
	cmp	w9, #42
	b.ne	LBB0_11
; %bb.6:
	ldrb	w9, [x20, #1]
	cmp	w9, #46
	b.ne	LBB0_11
; %bb.7:
	cbz	w8, LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w8, #1
	ldrb	w10, [x19], #1
	cmp	w10, #46
	ccmp	w8, #1, #4, ne
	mov	x8, x9
	b.ne	LBB0_8
	b	LBB0_10
LBB0_9:
	mov	w9, #0
LBB0_10:
	add	x20, x20, #2
	sub	w21, w21, #2
	mov	x8, x9
LBB0_11:
	cmp	w21, w8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_memeq_ncase
Lloh2:
	adrp	x8, _MatchFound@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MatchFound@GOTPAGEOFF]
Lloh4:
	adrp	x9, _MatchNotFound@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MatchNotFound@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_14
LBB0_13:
Lloh6:
	adrp	x8, _MatchNotFound@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MatchNotFound@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MalformedCertificate,4,2       ; @MalformedCertificate
	.comm	_MatchNotFound,4,2              ; @MatchNotFound
	.comm	_MatchFound,4,2                 ; @MatchFound
	.no_dead_strip	_validate_name
.subsections_via_symbols
