	.file	"extr_unistr.c_ntfs_ucstonls.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to allocate name!"
.LC1:
	.string	"Received NULL pointer."
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Unicode name contains characters that cannot be converted to character set %s.  You might want to try to use the mount option nls=utf8."
	.text
	.p2align 4
	.globl	ntfs_ucstonls
	.type	ntfs_ucstonls, @function
ntfs_ucstonls:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 8[rdi]
	mov	QWORD PTR 40[rsp], rdi
	mov	QWORD PTR 24[rsp], rcx
	mov	QWORD PTR 16[rsp], rax
	test	rsi, rsi
	je	.L2
	mov	rbp, QWORD PTR [rcx]
	mov	rbx, rsi
	test	rbp, rbp
	je	.L27
	mov	r12d, r8d
	test	r8d, r8d
	jne	.L3
	mov	r8d, DWORD PTR ENAMETOOLONG[rip]
	neg	r8d
.L4:
	mov	rax, QWORD PTR 16[rsp]
	lea	rsi, .LC2[rip]
	mov	DWORD PTR [rsp], r8d
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	ntfs_error@PLT
	mov	rax, QWORD PTR 24[rsp]
	mov	r8d, DWORD PTR [rsp]
	cmp	QWORD PTR [rax], rbp
	je	.L13
	mov	rdi, rbp
	call	kfree@PLT
	mov	r8d, DWORD PTR [rsp]
.L13:
	mov	eax, r8d
	add	eax, DWORD PTR ENAMETOOLONG[rip]
	je	.L1
	mov	r8d, DWORD PTR EILSEQ[rip]
	neg	r8d
.L1:
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L3:
	.cfi_restore_state
	test	rbp, rbp
	je	.L27
.L5:
	mov	r13, rbp
	xor	r14d, r14d
	test	edx, edx
	jle	.L8
	lea	eax, -1[rdx]
	xor	r14d, r14d
	lea	rax, [rbx+rax*4]
	mov	QWORD PTR 32[rsp], rax
	.p2align 4,,10
	.p2align 3
.L12:
	movsx	rax, r14d
	mov	QWORD PTR 8[rsp], rax
.L10:
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	sub	edx, r14d
	mov	r15, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rsp], edx
	lea	r13, 0[rbp+rax]
	call	le16_to_cpu@PLT
	mov	edx, DWORD PTR [rsp]
	mov	rsi, r13
	mov	edi, eax
	call	r15
	mov	r8d, eax
	test	eax, eax
	jg	.L30
	je	.L8
	add	eax, DWORD PTR ENAMETOOLONG[rip]
	jne	.L4
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR [rax], rbp
	je	.L4
	lea	r13d, 64[r12]
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	DWORD PTR [rsp], r8d
	and	r13d, -64
	mov	edi, r13d
	call	kmalloc@PLT
	mov	r8d, DWORD PTR [rsp]
	test	rax, rax
	je	.L4
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, rax
	mov	QWORD PTR [rsp], rax
	call	memcpy@PLT
	mov	rdi, rbp
	lea	r12d, -1[r13]
	call	kfree@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	rbp, rcx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L30:
	add	r14d, eax
	lea	rax, 4[rbx]
	cmp	rbx, QWORD PTR 32[rsp]
	je	.L31
	mov	rbx, rax
	jmp	.L12
.L31:
	movsx	r13, r14d
	add	r13, rbp
.L8:
	mov	rax, QWORD PTR 24[rsp]
	mov	BYTE PTR 0[r13], 0
	mov	r8d, r14d
	mov	QWORD PTR [rax], rbp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 40[rsp]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	ntfs_error@PLT
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	r12d, edx
	imul	r12d, DWORD PTR NLS_MAX_CHARSET_SIZE[rip]
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	DWORD PTR [rsp], edx
	lea	edi, 1[r12]
	call	kmalloc@PLT
	mov	edx, DWORD PTR [rsp]
	test	rax, rax
	mov	rbp, rax
	jne	.L5
	mov	rax, QWORD PTR 40[rsp]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	xor	eax, eax
	call	ntfs_error@PLT
	mov	r8d, DWORD PTR ENOMEM[rip]
	neg	r8d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ntfs_ucstonls, .-ntfs_ucstonls
	.comm	NLS_MAX_CHARSET_SIZE,4,4
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.comm	ENAMETOOLONG,4,4
	.comm	EINVAL,4,4
	.comm	EILSEQ,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_unistr.c_ntfs_ucstonls.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to allocate name!\000"
	.align	2
.LC1:
	.ascii	"Received NULL pointer.\000"
	.align	2
.LC2:
	.ascii	"Unicode name contains characters that cannot be con"
	.ascii	"verted to character set %s.  You might want to try "
	.ascii	"to use the mount option nls=utf8.\000"
	.text
	.align	2
	.global	ntfs_ucstonls
	.syntax unified
	.arm
	.fpu softvfp
	.type	ntfs_ucstonls, %function
ntfs_ucstonls:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	str	r2, [sp, #16]
	ldr	r2, [r0, #4]
	subs	r8, r1, #0
	ldr	r6, [sp, #64]
	str	r0, [sp, #20]
	str	r3, [sp, #8]
	str	r2, [sp]
	beq	.L2
	clz	r2, r6
	ldr	fp, [r3]
	lsr	r2, r2, #5
	cmp	fp, #0
	moveq	r2, #0
	cmp	r2, #0
	bne	.L24
	cmp	fp, #0
	beq	.L25
.L5:
	ldr	r3, [sp, #16]
	cmp	r3, #0
	movle	r9, fp
	movle	r7, #0
	ble	.L8
	mov	r7, #0
	ldr	r10, .L27
	str	r7, [sp, #4]
.L10:
	ldr	r3, [sp]
	ldr	r0, [r8]
	add	r4, fp, r7
	ldr	r5, [r3]
	bl	le16_to_cpu
	mov	r1, r4
	sub	r2, r6, r7
	blx	r5
	add	r5, r6, #64
	subs	r9, r0, #0
	bic	r5, r5, #63
	bgt	.L26
	beq	.L18
	ldr	r3, [r10]
	str	r10, [sp, #12]
	cmn	r9, r3
	bne	.L21
	ldr	r3, [sp, #8]
	ldr	r3, [r3]
	cmp	r3, fp
	beq	.L21
	ldr	r3, .L27+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	kmalloc
	subs	r4, r0, #0
	beq	.L21
	mov	r2, r6
	mov	r1, fp
	bl	memcpy
	mov	r0, fp
	bl	kfree
	mov	fp, r4
	sub	r6, r5, #1
	b	.L10
.L26:
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #16]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [sp, #4]
	add	r7, r7, r9
	add	r8, r8, #4
	bne	.L10
	add	r9, fp, r7
.L8:
	mov	r4, r7
	mov	r2, #0
	mov	r0, r4
	ldr	r3, [sp, #8]
	strb	r2, [r9]
	str	fp, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r4, r9
.L4:
	ldr	r3, [sp]
	ldr	r1, .L27+8
	ldr	r2, [r3, #4]
	ldr	r3, [sp, #20]
	ldr	r0, [r3]
	bl	ntfs_error
	ldr	r3, [sp, #8]
	ldr	r2, [r3]
	cmp	r2, fp
	beq	.L13
	mov	r0, fp
	bl	kfree
.L13:
	ldr	r3, [sp, #12]
	ldr	r3, [r3]
	cmn	r4, r3
	ldrne	r3, .L27+12
	ldrne	r4, [r3]
	rsbne	r4, r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r3, .L27
	ldr	r4, [r3]
	str	r3, [sp, #12]
	rsb	r4, r4, #0
	b	.L4
.L25:
	ldr	r2, .L27+16
	ldr	r3, .L27+4
	ldr	r6, [r2]
	ldr	r1, [r3]
	ldr	r3, [sp, #16]
	mul	r3, r6, r3
	add	r0, r3, #1
	mov	r6, r3
	bl	kmalloc
	subs	fp, r0, #0
	bne	.L5
	ldr	r3, [sp, #20]
	ldr	r1, .L27+20
	ldr	r0, [r3]
	bl	ntfs_error
	ldr	r3, .L27+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L2:
	ldr	r3, [sp, #20]
	ldr	r1, .L27+28
	ldr	r0, [r3]
	bl	ntfs_error
	ldr	r3, .L27+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r9, r4
	b	.L8
.L28:
	.align	2
.L27:
	.word	ENAMETOOLONG
	.word	GFP_NOFS
	.word	.LC2
	.word	EILSEQ
	.word	NLS_MAX_CHARSET_SIZE
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.word	EINVAL
	.size	ntfs_ucstonls, .-ntfs_ucstonls
	.comm	NLS_MAX_CHARSET_SIZE,4,4
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.comm	ENAMETOOLONG,4,4
	.comm	EINVAL,4,4
	.comm	EILSEQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
