	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_STRING_to_UTF8            ## -- Begin function ASN1_STRING_to_UTF8
	.p2align	4, 0x90
_ASN1_STRING_to_UTF8:                   ## @ASN1_STRING_to_UTF8
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	leaq	-48(%rbp), %rax
	movq	%rax, -16(%rbp)
	movl	$-1, %eax
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movl	(%rsi), %ecx
	cmpq	$30, %rcx
	ja	LBB0_5
## %bb.2:
	movq	_tag2nbyte@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %ecx
	cmpl	$-1, %ecx
	je	LBB0_5
## %bb.3:
	movq	%rdi, %rbx
	movq	_MBSTRING_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	$0, -40(%rbp)
	movl	$0, -32(%rbp)
	movq	$0, -24(%rbp)
	movq	8(%rsi), %rax
	movl	16(%rsi), %edx
	movq	_B_ASN1_UTF8STRING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	leaq	-16(%rbp), %rdi
	movq	%rax, %rsi
	callq	_ASN1_mbstring_copy
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rax
	movq	%rax, (%rbx)
	movl	-32(%rbp), %eax
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tag2nbyte,8,3                  ## @tag2nbyte
	.comm	_MBSTRING_FLAG,4,2              ## @MBSTRING_FLAG
	.comm	_B_ASN1_UTF8STRING,4,2          ## @B_ASN1_UTF8STRING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ASN1_STRING_to_UTF8            ; -- Begin function ASN1_STRING_to_UTF8
	.p2align	2
_ASN1_STRING_to_UTF8:                   ; @ASN1_STRING_to_UTF8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x8, sp, #16
	str	x8, [sp, #8]
	cbz	x1, LBB0_5
; %bb.1:
	ldr	w8, [x1]
	cmp	w8, #30
	b.hi	LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _tag2nbyte@GOTPAGE
Lloh1:
	ldr	x9, [x9, _tag2nbyte@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.3:
	mov	x19, x0
Lloh3:
	adrp	x9, _MBSTRING_FLAG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBSTRING_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	str	xzr, [sp, #24]
	str	wzr, [sp, #32]
	str	xzr, [sp, #40]
	ldr	x8, [x1, #8]
	ldr	w2, [x1, #16]
Lloh6:
	adrp	x9, _B_ASN1_UTF8STRING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _B_ASN1_UTF8STRING@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x9]
	add	x0, sp, #8
	mov	x1, x8
	bl	_ASN1_mbstring_copy
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	x8, [sp, #24]
	str	x8, [x19]
	ldr	w0, [sp, #32]
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_tag2nbyte,8,3                  ; @tag2nbyte
	.comm	_MBSTRING_FLAG,4,2              ; @MBSTRING_FLAG
	.comm	_B_ASN1_UTF8STRING,4,2          ; @B_ASN1_UTF8STRING
.subsections_via_symbols
