	.file	"extr_LzmaUtil.c_Encode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	Encode, @function
Encode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rsi
	push	r14
	.cfi_offset 14, -32
	mov	r14, rdi
	lea	rdi, g_Alloc[rip]
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	LzmaEnc_Create@PLT
	mov	r13, QWORD PTR SZ_ERROR_MEM[rip]
	test	rax, rax
	jne	.L18
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -40[rbp]
	mov	rax, r13
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	lea	r13, -68[rbp]
	mov	r12, rax
	mov	rdi, r13
	call	LzmaEncProps_Init@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	LzmaEnc_SetProps@PLT
	cmp	QWORD PTR SZ_OK[rip], rax
	mov	r13, rax
	je	.L20
.L4:
	lea	rdx, g_Alloc[rip]
	mov	rdi, r12
	mov	rsi, rdx
	call	LzmaEnc_Destroy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	movsx	rdx, DWORD PTR LZMA_PROPS_SIZE[rip]
	mov	rsi, rsp
	mov	r10, rsp
	lea	eax, 8[rdx]
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rcx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rcx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L6
.L21:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L21
.L6:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	je	.L7
	or	QWORD PTR -8[rsp+rcx], 0
.L7:
	mov	rsi, rsp
	mov	QWORD PTR -64[rbp], rdx
	mov	rdi, r12
	lea	rdx, -64[rbp]
	mov	QWORD PTR -96[rbp], r10
	mov	QWORD PTR -88[rbp], rsi
	call	LzmaEnc_WriteProperties@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR -88[rbp]
	xor	ecx, ecx
	mov	r10, QWORD PTR -96[rbp]
	mov	r13, rax
	lea	rdi, [rsi+rdx*8]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, ebx
	add	rdi, 8
	sar	eax, cl
	add	ecx, 8
	cdqe
	mov	QWORD PTR -8[rdi], rax
	cmp	ecx, 64
	jne	.L8
	add	rdx, 8
	mov	QWORD PTR -88[rbp], r10
	mov	rdi, r14
	mov	QWORD PTR -64[rbp], rdx
	call	[QWORD PTR [r14]]
	cmp	rax, QWORD PTR -64[rbp]
	mov	r10, QWORD PTR -88[rbp]
	je	.L9
	mov	r13, QWORD PTR SZ_ERROR_WRITE[rip]
.L10:
	mov	rsp, r10
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	QWORD PTR SZ_OK[rip], r13
	jne	.L10
	lea	r9, g_Alloc[rip]
	xor	ecx, ecx
	mov	rdx, r15
	mov	rsi, r14
	mov	r8, r9
	mov	rdi, r12
	mov	QWORD PTR -88[rbp], r10
	call	LzmaEnc_Encode@PLT
	mov	r10, QWORD PTR -88[rbp]
	mov	r13, rax
	jmp	.L10
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Encode, .-Encode
	.comm	g_Alloc,4,4
	.comm	SZ_OK,8,8
	.comm	SZ_ERROR_WRITE,8,8
	.comm	SZ_ERROR_MEM,8,8
	.comm	LZMA_PROPS_SIZE,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_LzmaUtil.c_Encode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Encode, %function
Encode:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	ldr	r3, .L14
	mov	r6, r0
	ldr	r0, .L14+4
	mov	r7, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	LzmaEnc_Create
	subs	r5, r0, #0
	bne	.L2
	ldr	r3, .L14+8
	ldr	r4, [r3]
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	sub	r0, fp, #48
	bl	LzmaEncProps_Init
	mov	r0, r5
	sub	r1, fp, #48
	bl	LzmaEnc_SetProps
	ldr	r10, .L14+12
	mov	r4, r0
	ldr	r3, [r10]
	cmp	r3, r0
	beq	.L13
.L4:
	ldr	r2, .L14+4
	mov	r0, r5
	mov	r1, r2
	bl	LzmaEnc_Destroy
	b	.L1
.L13:
	ldr	r3, .L14+16
	mov	r9, sp
	ldr	ip, [r3]
	sub	r2, fp, #44
	lsl	r3, ip, #2
	add	r3, r3, #39
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r1, sp, #8
	mov	r0, r5
	str	r1, [fp, #-56]
	str	ip, [fp, #-44]
	bl	LzmaEnc_WriteProperties
	mov	r3, #0
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-56]
	mov	r4, r0
	add	r0, r1, r2, lsl #2
.L5:
	asr	ip, r8, r3
	add	r3, r3, #8
	cmp	r3, #64
	str	ip, [r0], #4
	bne	.L5
	add	r2, r2, #8
	ldr	r3, [r6]
	mov	r0, r6
	str	r2, [fp, #-44]
	blx	r3
	ldr	r3, [fp, #-44]
	cmp	r0, r3
	beq	.L6
	ldr	r3, .L14+20
	ldr	r4, [r3]
.L7:
	mov	sp, r9
	b	.L4
.L6:
	ldr	r3, [r10]
	cmp	r3, r4
	bne	.L7
	ldr	r3, .L14+4
	mov	r2, r7
	str	r3, [sp, #4]
	str	r3, [sp]
	mov	r1, r6
	mov	r3, #0
	mov	r0, r5
	bl	LzmaEnc_Encode
	mov	r4, r0
	b	.L7
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	g_Alloc
	.word	SZ_ERROR_MEM
	.word	SZ_OK
	.word	LZMA_PROPS_SIZE
	.word	SZ_ERROR_WRITE
	.size	Encode, .-Encode
	.comm	g_Alloc,4,4
	.comm	SZ_OK,4,4
	.comm	SZ_ERROR_WRITE,4,4
	.comm	SZ_ERROR_MEM,4,4
	.comm	LZMA_PROPS_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
