	.file	"extr_Lzma2Dec.c_Lzma2Dec_DecodeToBuf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Lzma2Dec_DecodeToBuf
	.type	Lzma2Dec_DecodeToBuf, @function
Lzma2Dec_DecodeToBuf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r11, rdx
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	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, 88
	.cfi_def_cfa_offset 144
	mov	r10, QWORD PTR [rdx]
	mov	r14, QWORD PTR [r8]
	mov	DWORD PTR 60[rsp], r9d
	mov	r9, QWORD PTR 144[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	lea	rax, 64[rsp]
	mov	QWORD PTR [rdx], 0
	mov	QWORD PTR 48[rsp], rax
	mov	QWORD PTR [r8], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, rsi
	sub	rax, rbx
.L3:
	mov	r8d, DWORD PTR LZMA_FINISH_ANY[rip]
	cmp	r10, rax
	jg	.L4
	mov	r8d, DWORD PTR 60[rsp]
	lea	rsi, [r10+rbx]
.L4:
	mov	rcx, QWORD PTR 48[rsp]
	mov	rdx, r12
	mov	rdi, rbp
	mov	QWORD PTR 32[rsp], r11
	mov	QWORD PTR 24[rsp], r10
	mov	QWORD PTR 40[rsp], r9
	call	Lzma2Dec_DecodeToDic@PLT
	mov	rdi, r13
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 64[rsp]
	add	QWORD PTR [r15], rax
	mov	rdx, QWORD PTR 0[rbp]
	lea	r12, [r12+rax*4]
	sub	r14, rax
	sub	rdx, rbx
	add	rbx, QWORD PTR 16[rbp]
	mov	rsi, rbx
	mov	QWORD PTR 8[rsp], rdx
	call	memcpy@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	r10, QWORD PTR 24[rsp]
	mov	r11, QWORD PTR 32[rsp]
	mov	r8, QWORD PTR 16[rsp]
	lea	r13, 0[r13+rdx*4]
	sub	r10, rdx
	add	QWORD PTR [r11], rdx
	test	r8, r8
	jne	.L1
	test	rdx, rdx
	je	.L10
	test	r10, r10
	mov	r9, QWORD PTR 40[rsp]
	je	.L10
.L8:
	mov	rbx, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 8[rbp]
	mov	QWORD PTR 64[rsp], r14
	cmp	rbx, rsi
	jne	.L15
	mov	rax, rbx
	mov	QWORD PTR 0[rbp], 0
	xor	ebx, ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r8, QWORD PTR SZ_OK[rip]
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r8
	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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Lzma2Dec_DecodeToBuf, .-Lzma2Dec_DecodeToBuf
	.comm	SZ_OK,8,8
	.comm	LZMA_FINISH_ANY,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_Lzma2Dec.c_Lzma2Dec_DecodeToBuf.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Lzma2Dec_DecodeToBuf
	.syntax unified
	.arm
	.fpu softvfp
	.type	Lzma2Dec_DecodeToBuf, %function
Lzma2Dec_DecodeToBuf:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	mov	r7, r3
	ldr	r3, [sp, #80]
	ldr	fp, [sp, #72]
	str	r3, [sp, #20]
	ldr	r3, .L16
	ldr	r6, [r2]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r9, [fp]
	mov	r10, r2
	str	ip, [r2]
	mov	r5, r0
	mov	r8, r1
	str	ip, [fp]
	b	.L7
.L14:
	cmp	r6, #0
	cmpne	r2, #0
	beq	.L13
.L7:
	ldr	r4, [r5]
	ldr	r1, [r5, #4]
	mov	r0, r5
	cmp	r4, r1
	moveq	r3, r4
	moveq	r4, #0
	moveq	r2, r4
	subne	r3, r1, r4
	streq	r2, [r5]
	cmp	r6, r3
	ldr	r3, .L16+4
	ldr	r2, [sp, #20]
	ldr	r3, [r3]
	ldrle	r3, [sp, #76]
	addle	r1, r6, r4
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, r7
	add	r3, sp, #24
	str	r9, [sp, #24]
	bl	Lzma2Dec_DecodeToDic
	ldr	ip, [sp, #24]
	ldr	r2, [fp]
	str	r0, [sp, #16]
	add	r2, r2, ip
	str	r2, [fp]
	ldr	r2, [r5]
	ldr	r1, [r5, #8]
	sub	r2, r2, r4
	mov	r0, r8
	add	r1, r4, r1
	str	r2, [sp, #12]
	add	r7, r7, ip, lsl #2
	sub	r9, r9, ip
	bl	memcpy
	ldr	r2, [sp, #12]
	ldr	r1, [r10]
	ldr	r3, [sp, #16]
	add	r1, r1, r2
	cmp	r3, #0
	sub	r6, r6, r2
	add	r8, r8, r2, lsl #2
	str	r1, [r10]
	beq	.L14
.L1:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [sp, #28]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L15
	mov	r0, r3
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, .L16+8
	ldr	r3, [r3]
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	LZMA_FINISH_ANY
	.word	SZ_OK
	.size	Lzma2Dec_DecodeToBuf, .-Lzma2Dec_DecodeToBuf
	.comm	SZ_OK,4,4
	.comm	LZMA_FINISH_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
