	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_asc2uni                ## -- Begin function OPENSSL_asc2uni
	.p2align	4, 0x90
_OPENSSL_asc2uni:                       ## @OPENSSL_asc2uni
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$-1, %esi
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r14d
LBB0_2:
	movslq	%r14d, %r15
	addq	%r15, %r15
	leal	2(%r15), %r13d
	movl	%r13d, %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	testl	%r14d, %r14d
	jle	LBB0_19
## %bb.4:
	cmpq	$3, %r15
	movl	$2, %eax
	movl	$2, %r9d
	cmovgeq	%r15, %r9
	decq	%r9
	cmpq	$30, %r9
	jb	LBB0_5
## %bb.7:
	cmpq	$3, %r15
	cmovgeq	%r15, %rax
	leaq	-1(%rax), %rcx
	shrq	%rcx
	addq	%rbx, %rcx
	incq	%rcx
	cmpq	%rcx, %r12
	jae	LBB0_10
## %bb.8:
	movq	%r12, %rcx
	addq	%rax, %rcx
	cmpq	%rbx, %rcx
	jbe	LBB0_10
LBB0_5:
	xorl	%eax, %eax
LBB0_17:
	movq	%rax, %rcx
	shrq	%rcx
	addq	%rcx, %rbx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movb	$0, (%r12,%rax)
	movzbl	(%rbx), %ecx
	movb	%cl, 1(%r12,%rax)
	addq	$2, %rax
	incq	%rbx
	cmpq	%r15, %rax
	jl	LBB0_18
LBB0_19:
	movb	$0, (%r12,%r15)
	movslq	%r15d, %rax
	orq	$1, %rax
	movb	$0, (%r12,%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movl	%r13d, (%rax)
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%r12, (%rax)
	jmp	LBB0_23
LBB0_6:
	movq	_PKCS12_F_OPENSSL_ASC2UNI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS12err
LBB0_23:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	shrq	%r9
	incq	%r9
	movabsq	$9223372036854775792, %r10      ## imm = 0x7FFFFFFFFFFFFFF0
	movq	%r9, %rax
	andq	%r10, %rax
	leaq	-16(%rax), %rcx
	movq	%rcx, %r8
	shrq	$4, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.11:
	movq	%r8, %rdi
	andq	$-2, %rdi
	movl	$16, %esi
	leaq	-16(%r10), %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	-16(%rsi), %rdx
	andq	%rcx, %rdx
	movq	(%rbx,%rdx), %xmm0              ## xmm0 = mem[0],zero
	movq	8(%rbx,%rdx), %xmm1             ## xmm1 = mem[0],zero
	pxor	%xmm2, %xmm2
	punpcklbw	%xmm0, %xmm2            ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3],xmm2[4],xmm0[4],xmm2[5],xmm0[5],xmm2[6],xmm0[6],xmm2[7],xmm0[7]
	movdqu	%xmm2, -32(%r12,%rsi,2)
	pxor	%xmm0, %xmm0
	punpcklbw	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
	movdqu	%xmm0, -16(%r12,%rsi,2)
	movq	%rsi, %rdx
	andq	%r10, %rdx
	movq	(%rbx,%rdx), %xmm0              ## xmm0 = mem[0],zero
	movq	8(%rbx,%rdx), %xmm1             ## xmm1 = mem[0],zero
	pxor	%xmm2, %xmm2
	punpcklbw	%xmm0, %xmm2            ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1],xmm2[2],xmm0[2],xmm2[3],xmm0[3],xmm2[4],xmm0[4],xmm2[5],xmm0[5],xmm2[6],xmm0[6],xmm2[7],xmm0[7]
	movdqu	%xmm2, (%r12,%rsi,2)
	pxor	%xmm0, %xmm0
	punpcklbw	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
	movdqu	%xmm0, 16(%r12,%rsi,2)
	addq	$32, %rsi
	addq	$-2, %rdi
	jne	LBB0_12
## %bb.13:
	addq	$-16, %rsi
	testb	$1, %r8b
	je	LBB0_15
LBB0_14:
	leaq	(%rsi,%rsi), %rcx
	andq	%rsi, %r10
	movq	(%rbx,%r10), %xmm0              ## xmm0 = mem[0],zero
	movq	8(%rbx,%r10), %xmm1             ## xmm1 = mem[0],zero
	orq	$17, %rcx
	pxor	%xmm2, %xmm2
	pxor	%xmm3, %xmm3
	punpcklbw	%xmm0, %xmm3            ## xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1],xmm3[2],xmm0[2],xmm3[3],xmm0[3],xmm3[4],xmm0[4],xmm3[5],xmm0[5],xmm3[6],xmm0[6],xmm3[7],xmm0[7]
	movdqu	%xmm3, (%r12,%rsi,2)
	punpcklbw	%xmm1, %xmm2            ## xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1],xmm2[2],xmm1[2],xmm2[3],xmm1[3],xmm2[4],xmm1[4],xmm2[5],xmm1[5],xmm2[6],xmm1[6],xmm2[7],xmm1[7]
	movdqu	%xmm2, -1(%r12,%rcx)
LBB0_15:
	cmpq	%rax, %r9
	je	LBB0_19
## %bb.16:
	addq	%rax, %rax
	jmp	LBB0_17
LBB0_24:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS12_F_OPENSSL_ASC2UNI,4,2   ## @PKCS12_F_OPENSSL_ASC2UNI
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_asc2uni                ; -- Begin function OPENSSL_asc2uni
	.p2align	2
_OPENSSL_asc2uni:                       ; @OPENSSL_asc2uni
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x20, x3
	mov	x19, x2
	mov	x24, x1
	mov	x23, x0
	cmn	w1, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
LBB0_2:
	sbfiz	x25, x24, #1, #32
	add	w22, w25, #2
	mov	x0, x22
	bl	_OPENSSL_malloc
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.3:
	cmp	w24, #1
	b.lt	LBB0_10
; %bb.4:
	mov	w8, #2
	cmp	x25, #2
	csel	x8, x25, x8, gt
	sub	x9, x8, #1
	cmp	x9, #14
	b.lo	LBB0_7
; %bb.5:
	mov	w8, #2
	cmp	x25, #2
	csel	x8, x25, x8, gt
	sub	x10, x8, #1
	add	x10, x23, x10, lsr #1
	add	x10, x10, #1
	cmp	x21, x10
	b.hs	LBB0_16
; %bb.6:
	add	x8, x21, x8
	cmp	x8, x23
	b.ls	LBB0_16
LBB0_7:
	mov	x10, #0
LBB0_8:
	add	x8, x23, x10, lsr #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x21, x10
	strb	wzr, [x9]
	ldrb	w11, [x8], #1
	strb	w11, [x9, #1]
	add	x10, x10, #2
	cmp	x10, x25
	b.lt	LBB0_9
LBB0_10:
	strb	wzr, [x21, x25]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
	sxtw	x8, w25
	orr	x8, x8, #0x1
	strb	wzr, [x21, x8]
	cbz	x20, LBB0_12
; %bb.11:
	str	w22, [x20]
LBB0_12:
	cbz	x19, LBB0_15
; %bb.13:
	str	x21, [x19]
	b	LBB0_15
LBB0_14:
Lloh0:
	adrp	x8, _PKCS12_F_OPENSSL_ASC2UNI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKCS12_F_OPENSSL_ASC2UNI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_PKCS12err
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	lsr	x8, x9, #1
	add	x8, x8, #1
	cmp	x9, #126
	b.hs	LBB0_18
; %bb.17:
	mov	x9, #0
	b	LBB0_22
LBB0_18:
	mov	x10, #0
	and	x9, x8, #0x7fffffffffffffc0
	add	x11, x21, #64
	movi.2d	v0, #0000000000000000
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	and	x12, x10, #0x7fffffffffffffc0
	add	x12, x23, x12
	ldp	q3, q5, [x12]
	ldp	q7, q1, [x12, #32]
	sub	x12, x11, #64
	sub	x13, x11, #32
	mov.16b	v2, v0
	st2.16b	{ v2, v3 }, [x12]
	mov.16b	v6, v0
	mov.16b	v4, v0
	st2.16b	{ v4, v5 }, [x13]
	add	x12, x11, #128
	st2.16b	{ v6, v7 }, [x11], #32
	st2.16b	{ v0, v1 }, [x11]
	add	x10, x10, #64
	mov	x11, x12
	cmp	x9, x10
	b.ne	LBB0_19
; %bb.20:
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.21:
	tst	x8, #0x38
	b.eq	LBB0_25
LBB0_22:
	and	x11, x8, #0x7ffffffffffffff8
	lsl	x10, x11, #1
	add	x12, x21, x9, lsl #1
	movi.2d	v0, #0000000000000000
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	and	x13, x9, #0x7ffffffffffffff8
	ldr	d1, [x23, x13]
	st2.8b	{ v0, v1 }, [x12], #16
	add	x9, x9, #8
	cmp	x11, x9
	b.ne	LBB0_23
; %bb.24:
	cmp	x8, x11
	b.ne	LBB0_8
	b	LBB0_10
LBB0_25:
	lsl	x10, x9, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS12_F_OPENSSL_ASC2UNI,4,2   ; @PKCS12_F_OPENSSL_ASC2UNI
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
