	.file	"extr_p12_utl.c_OPENSSL_uni2asc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	OPENSSL_uni2asc
	.type	OPENSSL_uni2asc, @function
OPENSSL_uni2asc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	sil, 1
	jne	.L8
	mov	eax, esi
	mov	rbp, rdi
	mov	ebx, esi
	shr	eax, 31
	add	eax, esi
	sar	eax
	mov	r13d, eax
	test	esi, esi
	jne	.L17
.L3:
	lea	r13d, 1[rax]
.L4:
	mov	edi, r13d
	call	OPENSSL_malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L5
	xor	eax, eax
	test	ebx, ebx
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, eax
	movzx	ecx, BYTE PTR 1[rbp+rax]
	add	rax, 2
	sar	edx
	movsx	rdx, edx
	mov	BYTE PTR [r12+rdx], cl
	cmp	ebx, eax
	jg	.L6
.L7:
	movsx	r13, r13d
	mov	BYTE PTR -1[r12+r13], 0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movsx	rdx, esi
	cmp	BYTE PTR -1[rdi+rdx], 0
	je	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR PKCS12_F_OPENSSL_UNI2ASC[rip]
	call	PKCS12err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	OPENSSL_uni2asc, .-OPENSSL_uni2asc
	.comm	PKCS12_F_OPENSSL_UNI2ASC,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_p12_utl.c_OPENSSL_uni2asc.c"
	.text
	.align	2
	.global	OPENSSL_uni2asc
	.syntax unified
	.arm
	.fpu softvfp
	.type	OPENSSL_uni2asc, %function
OPENSSL_uni2asc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ands	r4, r1, #1
	movne	r6, #0
	bne	.L1
	add	r8, r1, r1, lsr #31
	cmp	r1, #0
	mov	r5, r1
	mov	r7, r0
	asr	r8, r8, #1
	bne	.L19
.L3:
	add	r8, r8, #1
.L4:
	mov	r0, r8
	bl	OPENSSL_malloc
	subs	r6, r0, #0
	beq	.L5
	cmp	r5, #0
	ble	.L7
	add	r0, r7, #1
.L6:
	ldrb	r3, [r0, r4]	@ zero_extendqisi2
	strb	r3, [r6, r4, asr #1]
	add	r4, r4, #2
	cmp	r5, r4
	bgt	.L6
.L7:
	mov	r3, #0
	add	r8, r6, r8
	strb	r3, [r8, #-1]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	add	r3, r0, r1
	ldrb	r3, [r3, #-1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	b	.L3
.L5:
	ldr	r2, .L20
	ldr	r3, .L20+4
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	PKCS12err
	b	.L1
.L21:
	.align	2
.L20:
	.word	ERR_R_MALLOC_FAILURE
	.word	PKCS12_F_OPENSSL_UNI2ASC
	.size	OPENSSL_uni2asc, .-OPENSSL_uni2asc
	.comm	PKCS12_F_OPENSSL_UNI2ASC,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
