	.file	"extr_mm_cipher.c_mmenc_func.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed transforming text to internal encoding."
	.text
	.p2align 4
	.type	mmenc_func, @function
mmenc_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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 1080
	.cfi_def_cfa_offset 1136
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1064[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR U_ZERO_ERROR[rip]
	mov	QWORD PTR 24[rsp], rax
	cmp	esi, 1
	je	.L20
.L2:
	mov	esi, DWORD PTR SQLITE_MISUSE[rip]
	mov	rdi, rbp
	call	sqlite3_result_error_code@PLT
.L1:
	mov	rax, QWORD PTR 1064[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 1080
	.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
.L20:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rdx]
	mov	rbx, rdx
	call	sqlite3_value_type@PLT
	cmp	DWORD PTR SQLITE_BLOB[rip], eax
	je	.L2
	cmp	DWORD PTR SQLITE_TEXT[rip], eax
	jne	.L22
	mov	rdi, rbp
	call	sqlite3_user_data@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r12, rax
	call	sqlite3_value_bytes16@PLT
	mov	rdi, QWORD PTR [rbx]
	lea	rbx, 32[rsp]
	mov	edx, eax
	shr	edx, 31
	lea	r14d, [rdx+rax]
	call	sqlite3_value_text16@PLT
	sar	r14d
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbx
	lea	r9, 24[rsp]
	mov	r8d, r14d
	mov	rcx, rax
	mov	edx, 1024
	mov	QWORD PTR 8[rsp], r9
	mov	r13, rax
	call	ucnv_fromUChars@PLT
	mov	rdi, QWORD PTR 24[rsp]
	cmp	rdi, QWORD PTR U_BUFFER_OVERFLOW_ERROR[rip]
	mov	r15d, eax
	je	.L23
	call	U_FAILURE@PLT
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR U_STRING_NOT_TERMINATED_WARNING[rip], rax
	jne	.L11
.L18:
	mov	edx, r15d
	mov	rsi, rbx
	mov	rdi, r12
	call	do_rc4@PLT
	mov	edx, r15d
	mov	rsi, rbx
	mov	rdi, rbp
	mov	ecx, DWORD PTR SQLITE_TRANSIENT[rip]
	call	sqlite3_result_blob@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	sqlite3_result_value@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR U_ZERO_ERROR[rip]
	mov	edi, r15d
	mov	QWORD PTR 24[rsp], rax
	call	sqlite3_malloc@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	rcx, r13
	mov	r8d, r14d
	mov	edi, DWORD PTR [r12]
	mov	edx, r15d
	mov	rsi, rax
	mov	QWORD PTR 8[rsp], rax
	call	ucnv_fromUChars@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	r13d, eax
	call	U_FAILURE@PLT
	mov	r10, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR U_STRING_NOT_TERMINATED_WARNING[rip]
	cmp	QWORD PTR 24[rsp], rax
	je	.L6
	lea	rdi, .LC0[rip]
	call	sqlite3_mm_set_last_error@PLT
	mov	r10, QWORD PTR 8[rsp]
	cmp	r10, rbx
	je	.L8
	mov	rdi, r10
	call	sqlite3_free@PLT
.L8:
	mov	esi, DWORD PTR SQLITE_ERROR[rip]
	mov	rdi, rbp
	call	sqlite3_result_error_code@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, r10
	mov	edx, r13d
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], r10
	call	do_rc4@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	mov	ecx, DWORD PTR SQLITE_TRANSIENT[rip]
	mov	rsi, r10
	call	sqlite3_result_blob@PLT
	mov	r10, QWORD PTR 8[rsp]
	cmp	r10, rbx
	je	.L1
	mov	rdi, r10
	call	sqlite3_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC0[rip]
	call	sqlite3_mm_set_last_error@PLT
	jmp	.L8
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mmenc_func, .-mmenc_func
	.comm	U_ZERO_ERROR,8,8
	.comm	U_STRING_NOT_TERMINATED_WARNING,8,8
	.comm	U_BUFFER_OVERFLOW_ERROR,8,8
	.comm	SQLITE_TRANSIENT,4,4
	.comm	SQLITE_TEXT,4,4
	.comm	SQLITE_MISUSE,4,4
	.comm	SQLITE_ERROR,4,4
	.comm	SQLITE_BLOB,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_mm_cipher.c_mmenc_func.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed transforming text to internal encoding.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmenc_func, %function
mmenc_func:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L24
	mov	r5, r2
	ldr	r3, [r6]
	ldr	r2, .L24+4
	sub	sp, sp, #1040
	sub	sp, sp, #4
	cmp	r1, #1
	ldr	r2, [r2]
	str	r2, [sp, #1036]
	mov	r2,#0
	mov	r4, r0
	str	r3, [sp, #8]
	beq	.L20
.L2:
	ldr	r3, .L24+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	sqlite3_result_error_code
.L1:
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, [sp, #1036]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #1040
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r0, [r5]
	bl	sqlite3_value_type
	ldr	r3, .L24+12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L24+16
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L22
	mov	r0, r4
	bl	sqlite3_user_data
	mov	r8, r0
	ldr	r0, [r5]
	bl	sqlite3_value_bytes16
	mov	r3, r0
	ldr	r0, [r5]
	add	r3, r3, r3, lsr #31
	asr	r7, r3, #1
	bl	sqlite3_value_text16
	mov	r9, r0
	add	r3, sp, #16
	sub	r5, r3, #8
	add	fp, sp, #12
	ldr	r0, [r8]
	mov	r3, r9
	mov	r1, fp
	mov	r2, #1024
	str	r7, [sp]
	str	r5, [sp, #4]
	bl	ucnv_fromUChars
	ldr	r2, .L24+20
	ldr	r3, [sp, #8]
	ldr	r1, [r2]
	mov	r10, r0
	cmp	r3, r1
	beq	.L23
	mov	r0, r3
	bl	U_FAILURE
	cmp	r0, #0
	beq	.L18
	ldr	r2, .L24+24
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L11
.L18:
	mov	r2, r10
	mov	r1, fp
	mov	r0, r8
	bl	do_rc4
	ldr	r3, .L24+28
	mov	r2, r10
	mov	r1, fp
	mov	r0, r4
	ldr	r3, [r3]
	bl	sqlite3_result_blob
	b	.L1
.L22:
	mov	r0, r4
	ldr	r1, [r5]
	bl	sqlite3_result_value
	b	.L1
.L23:
	ldr	r3, [r6]
	str	r3, [sp, #8]
	bl	sqlite3_malloc
	mov	r6, r0
	mov	r3, r9
	ldr	r0, [r8]
	mov	r2, r10
	mov	r1, r6
	str	r5, [sp, #4]
	str	r7, [sp]
	bl	ucnv_fromUChars
	mov	r5, r0
	ldr	r0, [sp, #8]
	bl	U_FAILURE
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L24+24
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L6
	ldr	r0, .L24+32
	bl	sqlite3_mm_set_last_error
	cmp	r6, fp
	beq	.L8
	mov	r0, r6
	bl	sqlite3_free
.L8:
	ldr	r3, .L24+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	sqlite3_result_error_code
	b	.L1
.L6:
	mov	r2, r5
	mov	r1, r6
	mov	r0, r8
	bl	do_rc4
	ldr	r3, .L24+28
	mov	r2, r5
	mov	r0, r4
	mov	r1, r6
	ldr	r3, [r3]
	bl	sqlite3_result_blob
	cmp	r6, fp
	beq	.L1
	mov	r0, r6
	bl	sqlite3_free
	b	.L1
.L11:
	ldr	r0, .L24+32
	bl	sqlite3_mm_set_last_error
	b	.L8
.L21:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	U_ZERO_ERROR
	.word	.LC1
	.word	SQLITE_MISUSE
	.word	SQLITE_BLOB
	.word	SQLITE_TEXT
	.word	U_BUFFER_OVERFLOW_ERROR
	.word	U_STRING_NOT_TERMINATED_WARNING
	.word	SQLITE_TRANSIENT
	.word	.LC0
	.word	SQLITE_ERROR
	.size	mmenc_func, .-mmenc_func
	.comm	U_ZERO_ERROR,4,4
	.comm	U_STRING_NOT_TERMINATED_WARNING,4,4
	.comm	U_BUFFER_OVERFLOW_ERROR,4,4
	.comm	SQLITE_TRANSIENT,4,4
	.comm	SQLITE_TEXT,4,4
	.comm	SQLITE_MISUSE,4,4
	.comm	SQLITE_ERROR,4,4
	.comm	SQLITE_BLOB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
