	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_uni2utf8               ## -- Begin function OPENSSL_uni2utf8
	.p2align	4, 0x90
_OPENSSL_uni2utf8:                      ## @OPENSSL_uni2utf8
	.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
	movl	%esi, %r15d
	xorl	%r13d, %r13d
	testb	$1, %r15b
	jne	LBB0_18
## %bb.1:
	movq	%rdi, %r14
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	addq	%r14, %rsi
	movl	%r15d, %edx
	subl	%ebx, %edx
	xorl	%edi, %edi
	callq	_bmp_to_utf8
	testl	%eax, %eax
	js	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	sete	%cl
	leal	(%rbx,%rcx,2), %ebx
	addl	$2, %ebx
	addl	%eax, %r13d
	cmpl	%r15d, %ebx
	jl	LBB0_3
LBB0_5:
	movslq	%r15d, %r12
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.6:
	cmpb	$0, -2(%r12,%r14)
	jne	LBB0_8
## %bb.7:
	cmpb	$0, -1(%r12,%r14)
	je	LBB0_9
LBB0_8:
	incl	%r13d
LBB0_9:
	movl	%r13d, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.10:
	movq	%rax, %r13
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.11:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %r12
	leaq	(%r12,%r13), %rdi
	movl	%ebx, %esi
	addq	%r14, %rsi
	movl	%r15d, %edx
	subl	%ebx, %edx
	callq	_bmp_to_utf8
	xorl	%ecx, %ecx
	cmpl	$4, %eax
	sete	%cl
	leal	(%rbx,%rcx,2), %ebx
	addl	$2, %ebx
	addl	%eax, %r12d
	cmpl	%r15d, %ebx
	jl	LBB0_12
## %bb.13:
	movslq	%r12d, %rbx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_14:
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.15:
	cmpb	$0, -2(%r12,%r14)
	jne	LBB0_17
## %bb.16:
	cmpb	$0, -1(%r12,%r14)
	je	LBB0_18
LBB0_17:
	movb	$0, (%r13,%rbx)
	jmp	LBB0_18
LBB0_19:
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OPENSSL_uni2asc                ## TAILCALL
LBB0_20:
	movq	_PKCS12_F_OPENSSL_UNI2UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS12err
	xorl	%r13d, %r13d
LBB0_18:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS12_F_OPENSSL_UNI2UTF8,4,2  ## @PKCS12_F_OPENSSL_UNI2UTF8
	.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_uni2utf8               ; -- Begin function OPENSSL_uni2utf8
	.p2align	2
_OPENSSL_uni2utf8:                      ; @OPENSSL_uni2utf8
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	tbnz	w1, #0, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w22, #0
	mov	w21, #0
	mov	w23, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x19, w22, uxtw
	sub	w2, w20, w22
	mov	x0, #0
	bl	_bmp_to_utf8
	tbnz	w0, #31, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #4
	csel	w8, w0, w23, eq
	add	w21, w0, w21
	add	w22, w8, w22
	cmp	w22, w20
	b.lt	LBB0_3
; %bb.5:
	cbnz	w20, LBB0_8
	b	LBB0_10
LBB0_6:
	mov	x21, #0
	b	LBB0_22
LBB0_7:
	mov	w21, #0
	cbz	w20, LBB0_10
LBB0_8:
	sxtw	x8, w20
	add	x8, x8, x19
	ldurb	w9, [x8, #-2]
	cbnz	w9, LBB0_10
; %bb.9:
	ldurb	w8, [x8, #-1]
	cbz	w8, LBB0_11
LBB0_10:
	add	w21, w21, #1
LBB0_11:
	mov	x0, x21
	bl	_OPENSSL_malloc
	mov	x21, x0
	cbz	x0, LBB0_17
; %bb.12:
	cmp	w20, #1
	b.lt	LBB0_18
; %bb.13:
	mov	w23, #0
	mov	w22, #0
	mov	w24, #2
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x0, x21, w22, sxtw
	sub	w2, w20, w23
	add	x1, x19, w23, uxtw
	bl	_bmp_to_utf8
	cmp	w0, #4
	csel	w8, w0, w24, eq
	add	w22, w0, w22
	add	w23, w8, w23
	cmp	w23, w20
	b.lt	LBB0_14
; %bb.15:
	sxtw	x8, w22
	cbnz	w20, LBB0_19
	b	LBB0_21
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_OPENSSL_uni2asc
LBB0_17:
Lloh0:
	adrp	x8, _PKCS12_F_OPENSSL_UNI2UTF8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKCS12_F_OPENSSL_UNI2UTF8@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
	b	LBB0_22
LBB0_18:
	mov	x8, #0
	cbz	w20, LBB0_21
LBB0_19:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x9, w20
	add	x9, x9, x19
	ldurb	w10, [x9, #-2]
	cbnz	w10, LBB0_21
; %bb.20:
	ldurb	w9, [x9, #-1]
	cbz	w9, LBB0_22
LBB0_21:
	strb	wzr, [x21, x8]
LBB0_22:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS12_F_OPENSSL_UNI2UTF8,4,2  ; @PKCS12_F_OPENSSL_UNI2UTF8
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
