	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_uni2asc                ## -- Begin function OPENSSL_uni2asc
	.p2align	4, 0x90
_OPENSSL_uni2asc:                       ## @OPENSSL_uni2asc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	testb	$1, %r15b
	jne	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movl	%r15d, %r14d
	shrl	$31, %r14d
	addl	%r15d, %r14d
	sarl	%r14d
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movslq	%r15d, %rax
	cmpb	$0, -1(%rax,%rbx)
	je	LBB0_4
LBB0_3:
	incl	%r14d
LBB0_4:
	movl	%r14d, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	testl	%r15d, %r15d
	jle	LBB0_23
## %bb.6:
	leaq	1(%rbx), %r11
	movl	%r15d, %edx
	leaq	-1(%rdx), %rsi
	cmpq	$16, %rsi
	jb	LBB0_7
## %bb.10:
	movq	%rsi, %r8
	shrq	%r8
	leaq	1(%rdx), %rdi
	andq	$-2, %rdi
	addq	%rbx, %rdi
	cmpq	%rdi, %rax
	jae	LBB0_13
## %bb.11:
	leaq	(%r8,%rax), %rdi
	incq	%rdi
	cmpq	%rdi, %r11
	jae	LBB0_13
LBB0_7:
	xorl	%esi, %esi
	jmp	LBB0_21
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_9:
	movq	_PKCS12_F_OPENSSL_UNI2ASC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS12err
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_13:
	incq	%r8
	movabsq	$9223372036854775792, %r9       ## imm = 0x7FFFFFFFFFFFFFF0
	cmpq	$32, %rsi
	jae	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	jmp	LBB0_19
LBB0_15:
	movl	%r8d, %esi
	andl	$15, %esi
	testq	%rsi, %rsi
	movl	$16, %r10d
	cmovneq	%rsi, %r10
	movq	%r8, %rdi
	subq	%r10, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rbx,%rsi,2), %ecx
	movd	%ecx, %xmm0
	pinsrb	$1, 3(%rbx,%rsi,2), %xmm0
	pinsrb	$2, 5(%rbx,%rsi,2), %xmm0
	pinsrb	$3, 7(%rbx,%rsi,2), %xmm0
	pinsrb	$4, 9(%rbx,%rsi,2), %xmm0
	pinsrb	$5, 11(%rbx,%rsi,2), %xmm0
	pinsrb	$6, 13(%rbx,%rsi,2), %xmm0
	pinsrb	$7, 15(%rbx,%rsi,2), %xmm0
	pinsrb	$8, 17(%rbx,%rsi,2), %xmm0
	pinsrb	$9, 19(%rbx,%rsi,2), %xmm0
	pinsrb	$10, 21(%rbx,%rsi,2), %xmm0
	pinsrb	$11, 23(%rbx,%rsi,2), %xmm0
	pinsrb	$12, 25(%rbx,%rsi,2), %xmm0
	pinsrb	$13, 27(%rbx,%rsi,2), %xmm0
	pinsrb	$14, 29(%rbx,%rsi,2), %xmm0
	pinsrb	$15, 31(%rbx,%rsi,2), %xmm0
	movq	%rsi, %rcx
	andq	%r9, %rcx
	movdqu	%xmm0, (%rax,%rcx)
	addq	$16, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_16
## %bb.17:
	cmpl	$8, %r10d
	ja	LBB0_19
## %bb.18:
	addq	%rdi, %rdi
	movq	%rdi, %rsi
	jmp	LBB0_21
LBB0_19:
	movl	%r8d, %ecx
	andl	$7, %ecx
	testq	%rcx, %rcx
	movl	$8, %esi
	cmovneq	%rcx, %rsi
	subq	%rsi, %r8
	leaq	(%r8,%r8), %rsi
	addq	$15, %r9
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rbx,%rdi,2), %ecx
	movd	%ecx, %xmm0
	pinsrb	$1, 3(%rbx,%rdi,2), %xmm0
	pinsrb	$2, 5(%rbx,%rdi,2), %xmm0
	pinsrb	$3, 7(%rbx,%rdi,2), %xmm0
	pinsrb	$4, 9(%rbx,%rdi,2), %xmm0
	pinsrb	$5, 11(%rbx,%rdi,2), %xmm0
	pinsrb	$6, 13(%rbx,%rdi,2), %xmm0
	pinsrb	$7, 15(%rbx,%rdi,2), %xmm0
	movq	%rdi, %rcx
	andq	%r9, %rcx
	movq	%xmm0, (%rax,%rcx)
	addq	$8, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_20
LBB0_21:
	movq	%rsi, %rcx
	shrq	%rcx
	movq	%rax, %rdi
	addq	%rcx, %rdi
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r11,%rsi), %ecx
	movb	%cl, (%rdi)
	addq	$2, %rsi
	incq	%rdi
	cmpq	%rdx, %rsi
	jb	LBB0_22
LBB0_23:
	movslq	%r14d, %rcx
	movb	$0, -1(%rcx,%rax)
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS12_F_OPENSSL_UNI2ASC,4,2   ## @PKCS12_F_OPENSSL_UNI2ASC
	.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_uni2asc                ; -- Begin function OPENSSL_uni2asc
	.p2align	2
_OPENSSL_uni2asc:                       ; @OPENSSL_uni2asc
	.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
	tbnz	w1, #0, LBB0_10
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w19, w8, #1
	cbz	w1, LBB0_3
; %bb.2:
	add	x8, x20, w21, sxtw
	ldurb	w8, [x8, #-1]
	cbz	w8, LBB0_4
LBB0_3:
	add	w19, w19, #1
LBB0_4:
	mov	x0, x19
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_11
; %bb.5:
	cmp	w21, #1
	b.lt	LBB0_22
; %bb.6:
	add	x8, x20, #1
	mov	w9, w21
	sub	x10, x9, #1
	cmp	x10, #16
	b.lo	LBB0_9
; %bb.7:
	add	x11, x9, #1
	and	x11, x11, #0x1fffffffe
	add	x11, x20, x11
	cmp	x0, x11
	b.hs	LBB0_12
; %bb.8:
	add	x11, x0, x10, lsr #1
	add	x11, x11, #1
	cmp	x8, x11
	b.hs	LBB0_12
LBB0_9:
	mov	x11, #0
	b	LBB0_20
LBB0_10:
	mov	x0, #0
	b	LBB0_23
LBB0_11:
Lloh0:
	adrp	x8, _PKCS12_F_OPENSSL_UNI2ASC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKCS12_F_OPENSSL_UNI2ASC@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
	mov	x0, #0
	b	LBB0_23
LBB0_12:
	lsr	x11, x10, #1
	add	x11, x11, #1
	cmp	x10, #128
	b.hs	LBB0_14
; %bb.13:
	mov	x10, #0
	b	LBB0_18
LBB0_14:
	mov	x12, #0
	ands	x10, x11, #0x3f
	mov	w13, #64
	csel	x13, x13, x10, eq
	sub	x10, x11, x13
	add	x14, x20, #65
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	x15, x14, #64
	ld2.16b	{ v0, v1 }, [x15]
	sub	x15, x14, #32
	ld2.16b	{ v2, v3 }, [x15]
	mov	x15, x14
	ld2.16b	{ v4, v5 }, [x15], #32
	ld2.16b	{ v6, v7 }, [x15]
	and	x15, x12, #0x7fffffffffffffc0
	add	x15, x0, x15
	stp	q0, q2, [x15]
	stp	q4, q6, [x15, #32]
	add	x12, x12, #64
	add	x14, x14, #128
	cmp	x10, x12
	b.ne	LBB0_15
; %bb.16:
	cmp	x13, #8
	b.hi	LBB0_18
; %bb.17:
	lsl	x11, x10, #1
	b	LBB0_20
LBB0_18:
	ands	x12, x11, #0x7
	mov	w13, #8
	csel	x12, x13, x12, eq
	sub	x12, x11, x12
	lsl	x11, x12, #1
	add	x13, x20, x10, lsl #1
	add	x13, x13, #1
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ld2.8b	{ v0, v1 }, [x13], #16
	and	x14, x10, #0x7fffffffffffffff
	str	d0, [x0, x14]
	add	x10, x10, #8
	cmp	x12, x10
	b.ne	LBB0_19
LBB0_20:
	add	x10, x0, x11, lsr #1
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x8, x11]
	strb	w12, [x10], #1
	add	x11, x11, #2
	cmp	x11, x9
	b.lo	LBB0_21
LBB0_22:
	add	x8, x0, w19, sxtw
	sturb	wzr, [x8, #-1]
LBB0_23:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS12_F_OPENSSL_UNI2ASC,4,2   ; @PKCS12_F_OPENSSL_UNI2ASC
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
