	.file	"extr_crypto.c_ecryptfs_encode_for_filename.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ecryptfs_encode_for_filename, @function
ecryptfs_encode_for_filename:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rcx, rcx
	je	.L20
	mov	rax, rcx
	mov	rbp, rdx
	mov	rbx, rdi
	mov	r13, rcx
	movabs	rdx, -6148914691236517205
	mul	rdx
	mov	rax, rcx
	mov	r12, rdx
	and	rdx, -2
	shr	r12
	add	rdx, r12
	sub	rax, rdx
	je	.L21
	mov	BYTE PTR 7[rsp], 0
	movzx	edx, BYTE PTR -1[rbp+rcx]
	lea	rdi, 1[r12]
	cmp	rax, 2
	je	.L6
	mov	BYTE PTR 5[rsp], dl
	mov	BYTE PTR 6[rsp], 0
.L3:
.L7:
	lea	rax, 0[0+rdi*4]
	mov	QWORD PTR [r14], rax
	test	rbx, rbx
	je	.L1
.L11:
	xor	ecx, ecx
	lea	r8, 5[rsp]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, r8
	cmp	rcx, r12
	je	.L9
	lea	rsi, [rcx+rcx*2]
	add	rsi, rbp
.L9:
	movzx	edx, BYTE PTR [rsi]
	mov	r10, QWORD PTR portable_filename_chars[rip]
	movzx	eax, BYTE PTR 1[rsi]
	movzx	esi, BYTE PTR 2[rsi]
	mov	r9d, edx
	sal	edx, 4
	shr	r9b, 2
	and	edx, 48
	movzx	r9d, r9b
	movzx	r9d, BYTE PTR [r10+r9]
	mov	BYTE PTR [rbx+rcx*4], r9b
	mov	r9d, eax
	sal	eax, 2
	shr	r9b, 4
	and	eax, 60
	or	edx, r9d
	mov	r9, QWORD PTR portable_filename_chars[rip]
	movsx	rdx, dl
	movzx	edx, BYTE PTR [r9+rdx]
	mov	BYTE PTR 1[rbx+rcx*4], dl
	mov	edx, esi
	and	esi, 63
	shr	dl, 6
	or	eax, edx
	mov	rdx, QWORD PTR portable_filename_chars[rip]
	movsx	rax, al
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR 2[rbx+rcx*4], al
	mov	rax, QWORD PTR portable_filename_chars[rip]
	movzx	eax, BYTE PTR [rax+rsi]
	mov	BYTE PTR 3[rbx+rcx*4], al
	add	rcx, 1
	cmp	rcx, rdi
	jb	.L10
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rsi, -3[rbp+rcx]
	lea	rdi, 5[rsp]
	mov	edx, 3
	call	memcpy@PLT
	lea	rax, 0[0+r12*4]
	mov	QWORD PTR [r14], rax
	test	rbx, rbx
	je	.L1
	cmp	r13, 2
	jbe	.L1
	mov	rdi, r12
	sub	r12, 1
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	mov	QWORD PTR [rsi], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	movzx	eax, BYTE PTR -2[rbp+rcx]
	mov	BYTE PTR 6[rsp], dl
	mov	BYTE PTR 5[rsp], al
	jmp	.L7
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ecryptfs_encode_for_filename, .-ecryptfs_encode_for_filename
	.comm	portable_filename_chars,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_crypto.c_ecryptfs_encode_for_filename.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ecryptfs_encode_for_filename, %function
ecryptfs_encode_for_filename:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r6, r3, #0
	ldr	r3, .L21
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r8, r1
	streq	r6, [r1]
	beq	.L1
	ldr	r4, .L21+4
	mov	r7, r0
	umull	r3, r4, r6, r4
	bic	r3, r4, #1
	add	r3, r3, r4, lsr #1
	subs	r3, r6, r3
	mov	r5, r2
	lsr	r4, r4, #1
	bne	.L4
	add	r1, r2, r6
	mov	r0, sp
	mov	r2, #3
	sub	r1, r1, #3
	bl	memcpy
	lsl	r3, r4, #2
	cmp	r7, #0
	str	r3, [r8]
	beq	.L1
	cmp	r6, #2
	bls	.L1
	mov	r6, r4
	sub	r4, r4, #1
	b	.L11
.L4:
	mov	r2, #0
	cmp	r3, #2
	add	r1, r5, r6
	ldrb	r3, [r1, #-1]	@ zero_extendqisi2
	strb	r2, [sp, #2]
	ldrbeq	r2, [r1, #-2]	@ zero_extendqisi2
	add	r6, r4, #1
	strbne	r3, [sp]
	strbeq	r3, [sp, #1]
	strbne	r2, [sp, #1]
	strbeq	r2, [sp]
	lsl	r3, r6, #2
	cmp	r0, #0
	str	r3, [r8]
	beq	.L1
.L3:
.L11:
	mov	r0, r7
	mov	r2, #0
	ldr	lr, .L21+8
.L10:
	cmp	r2, r4
	moveq	ip, sp
	addne	ip, r2, r2, lsl #1
	addne	ip, r5, ip
	ldrb	r3, [ip]	@ zero_extendqisi2
	ldr	r7, [lr]
	lsl	r1, r3, #4
	ldrb	r7, [r7, r3, lsr #2]	@ zero_extendqisi2
	ldrb	r3, [ip, #1]	@ zero_extendqisi2
	ldrb	ip, [ip, #2]	@ zero_extendqisi2
	strb	r7, [r0]
	ldr	r7, [lr]
	and	r1, r1, #48
	orr	r1, r1, r3, lsr #4
	ldrb	r1, [r7, r1]	@ zero_extendqisi2
	lsl	r3, r3, #2
	strb	r1, [r0, #1]
	ldr	r1, [lr]
	and	r3, r3, #60
	orr	r3, r3, ip, lsr #6
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	and	ip, ip, #63
	strb	r3, [r0, #2]
	ldr	r3, [lr]
	add	r2, r2, #1
	ldrb	r3, [r3, ip]	@ zero_extendqisi2
	cmp	r2, r6
	strb	r3, [r0, #3]
	add	r0, r0, #4
	bcc	.L10
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	-1431655765
	.word	portable_filename_chars
	.size	ecryptfs_encode_for_filename, .-ecryptfs_encode_for_filename
	.comm	portable_filename_chars,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
