	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cn2dnsid
_cn2dnsid:                              ## @cn2dnsid
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rsi
	movq	$0, (%r15)
	movq	$0, (%rdx)
	leaq	-48(%rbp), %rdi
	callq	_ASN1_STRING_to_UTF8
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %r13
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	decq	%rbx
	movl	%ebx, %eax
	cmpb	$0, (%r13,%rax)
	je	LBB0_3
## %bb.6:
	incl	%ebx
	jmp	LBB0_7
LBB0_1:
	movq	_X509_V_ERR_OUT_OF_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_4:
	xorl	%ebx, %ebx
LBB0_7:
	movslq	%ebx, %r12
	movq	%r13, %rdi
	callq	_strlen
	cmpq	%r12, %rax
	jne	LBB0_26
## %bb.8:
	testl	%ebx, %ebx
	jle	LBB0_23
## %bb.9:
	leal	-1(%rbx), %eax
	movl	%ebx, %ecx
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	je	LBB0_21
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rdx), %edi
	movl	%edi, %ebx
	andb	$-33, %bl
	addb	$-65, %bl
	cmpb	$26, %bl
	jb	LBB0_20
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$95, %dil
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	-48(%rdi), %ebx
	cmpb	$10, %bl
	jb	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%rdx, %rdx
	je	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	%rax, %rdx
	jae	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$45, %dil
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$46, %dil
	jne	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movzbl	1(%r13,%rdx), %ebx
	cmpb	$46, %bl
	je	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	-1(%rdx), %esi
	cmpb	$45, (%r13,%rsi)
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %esi
	cmpb	$45, %bl
	jne	LBB0_20
	jmp	LBB0_23
LBB0_26:
	movq	%r13, %rdi
	callq	_OPENSSL_free
	movq	_X509_V_ERR_UNSUPPORTED_NAME_SYNTAX@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_21:
	testl	%esi, %esi
	je	LBB0_23
## %bb.22:
	movq	%r13, (%r15)
	movq	%r12, (%r14)
	jmp	LBB0_24
LBB0_23:
	movq	%r13, %rdi
	callq	_OPENSSL_free
LBB0_24:
	movq	_X509_V_OK@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509_V_ERR_OUT_OF_MEM,4,2      ## @X509_V_ERR_OUT_OF_MEM
	.comm	_X509_V_ERR_UNSUPPORTED_NAME_SYNTAX,4,2 ## @X509_V_ERR_UNSUPPORTED_NAME_SYNTAX
	.comm	_X509_V_OK,4,2                  ## @X509_V_OK
	.no_dead_strip	_cn2dnsid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cn2dnsid
_cn2dnsid:                              ; @cn2dnsid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x1, x0
	str	xzr, [x20]
	str	xzr, [x2]
	add	x0, sp, #8
	bl	_ASN1_STRING_to_UTF8
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	x21, [sp, #8]
	mov	w8, w0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	x8, x8, #1
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [x21, w8, uxtw]
	cbz	w9, LBB0_2
; %bb.4:
	add	w8, w8, #1
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _X509_V_ERR_OUT_OF_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_V_ERR_OUT_OF_MEM@GOTPAGEOFF]
	b	LBB0_26
LBB0_6:
	mov	w8, #0
LBB0_7:
	sxtw	x22, w8
	mov	x0, x21
	bl	_strlen
	cmp	x0, x22
	b.ne	LBB0_21
; %bb.8:
	cmp	w22, #1
	b.lt	LBB0_24
; %bb.9:
	mov	x8, #0
	mov	w11, #0
	sub	w9, w22, #1
	and	x10, x22, #0xffffffff
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, #1
	cmp	x10, x8
	b.eq	LBB0_22
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x21, x8]
	and	w13, w12, #0xffffffdf
	sub	w13, w13, #65
	cmp	w13, #26
	b.lo	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w13, w12, #48
	cmp	w12, #95
	ccmp	w13, #10, #0, ne
	b.lo	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cbz	x8, LBB0_24
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	x8, x9
	b.hs	LBB0_24
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w12, #45
	b.eq	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w12, #46
	b.ne	LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x11, x21, x8
	ldrb	w11, [x11, #1]
	cmp	w11, #46
	b.eq	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w12, w8, #1
	ldrb	w12, [x21, w12, uxtw]
	cmp	w12, #45
	b.eq	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w11, #45
	b.eq	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w11, #1
	b	LBB0_10
LBB0_21:
	mov	x0, x21
	bl	_OPENSSL_free
Lloh2:
	adrp	x8, _X509_V_ERR_UNSUPPORTED_NAME_SYNTAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _X509_V_ERR_UNSUPPORTED_NAME_SYNTAX@GOTPAGEOFF]
	b	LBB0_26
LBB0_22:
	cbz	w11, LBB0_24
; %bb.23:
	str	x21, [x20]
	str	x22, [x19]
	b	LBB0_25
LBB0_24:
	mov	x0, x21
	bl	_OPENSSL_free
LBB0_25:
Lloh4:
	adrp	x8, _X509_V_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _X509_V_OK@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_X509_V_ERR_OUT_OF_MEM,4,2      ; @X509_V_ERR_OUT_OF_MEM
	.comm	_X509_V_ERR_UNSUPPORTED_NAME_SYNTAX,4,2 ; @X509_V_ERR_UNSUPPORTED_NAME_SYNTAX
	.comm	_X509_V_OK,4,2                  ; @X509_V_OK
	.no_dead_strip	_cn2dnsid
.subsections_via_symbols
