	.file	"extr_hpdf_encoder_utf.c_UTF8_Encoder_EncodeText_Func.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	UTF8_Encoder_EncodeText_Func, @function
UTF8_Encoder_EncodeText_Func:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	lea	edi, [rdx+rdx]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rcx
	lea	r14, 16[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	malloc@PLT
	mov	ecx, r13d
	mov	rdx, r12
	mov	rsi, r14
	mov	edi, ebp
	mov	QWORD PTR [rsp], rax
	mov	rbx, rax
	call	HPDF_Encoder_SetParseText@PLT
	test	r13d, r13d
	jle	.L6
	mov	r12, rbx
	lea	r15, 20[rsp]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, r14
	mov	edi, ebp
	call	HPDF_Encoder_ByteType@PLT
	cmp	QWORD PTR HPDF_BYTE_TYPE_TRIAL[rip], rax
	je	.L3
	xor	esi, esi
	mov	edi, ebp
	call	HPDF_Encoder_ToUnicode@PLT
	mov	rdi, r15
	mov	DWORD PTR 20[rsp], eax
	call	HPDF_UInt16Swap@PLT
	mov	rdi, r12
	mov	edx, 2
	mov	rsi, r15
	call	HPDF_MemCpy@PLT
	add	r12, 2
.L3:
	add	ebx, 1
	cmp	r13d, ebx
	jne	.L4
	sub	r12d, DWORD PTR [rsp]
.L2:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], r12d
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	mov	rax, QWORD PTR [rsp]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L2
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	UTF8_Encoder_EncodeText_Func, .-UTF8_Encoder_EncodeText_Func
	.comm	HPDF_BYTE_TYPE_TRIAL,8,8
	.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_hpdf_encoder_utf.c_UTF8_Encoder_EncodeText_Func.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	UTF8_Encoder_EncodeText_Func, %function
UTF8_Encoder_EncodeText_Func:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r3
	ldr	r3, .L11
	sub	sp, sp, #16
	mov	r5, r0
	lsl	r0, r2, #1
	mov	r7, r2
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	malloc
	mov	r2, r4
	mov	r9, r0
	mov	r3, r7
	mov	r0, r5
	add	r1, sp, #4
	bl	HPDF_Encoder_SetParseText
	cmp	r7, #0
	ble	.L6
	mov	r6, r9
	mov	r4, #0
	ldr	r8, .L11+4
.L4:
	mov	r0, r5
	add	r1, sp, #4
	bl	HPDF_Encoder_ByteType
	ldr	r3, [r8]
	cmp	r3, r0
	beq	.L3
	mov	r1, #0
	mov	r0, r5
	bl	HPDF_Encoder_ToUnicode
	mov	r3, r0
	add	r0, sp, #8
	str	r3, [sp, #8]
	bl	HPDF_UInt16Swap
	mov	r0, r6
	mov	r2, #2
	add	r1, sp, #8
	bl	HPDF_MemCpy
	add	r6, r6, #2
.L3:
	add	r4, r4, #1
	cmp	r7, r4
	bne	.L4
	sub	r6, r6, r9
.L2:
	ldr	r3, .L11
	str	r6, [r10]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r9
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r6, #0
	b	.L2
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	HPDF_BYTE_TYPE_TRIAL
	.size	UTF8_Encoder_EncodeText_Func, .-UTF8_Encoder_EncodeText_Func
	.comm	HPDF_BYTE_TYPE_TRIAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
