	.file	"extr_LzmaEnc.c_LzmaEnc_SaveState.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	LzmaEnc_SaveState
	.type	LzmaEnc_SaveState, @function
LzmaEnc_SaveState:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR 64[rdi]
	mov	eax, DWORD PTR 72[rdi]
	mov	QWORD PTR 136[rdi], rdx
	mov	edx, DWORD PTR kNumStates[rip]
	mov	DWORD PTR 144[rdi], eax
	test	edx, edx
	jle	.L2
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 56[rbx]
	mov	edx, 4
	mov	esi, DWORD PTR [rax+rbp*4]
	mov	rax, QWORD PTR 128[rbx]
	mov	edi, DWORD PTR [rax+rbp*4]
	call	memcpy@PLT
	mov	rax, QWORD PTR 48[rbx]
	mov	edx, 4
	mov	esi, DWORD PTR [rax+rbp*4]
	mov	rax, QWORD PTR 120[rbx]
	mov	edi, DWORD PTR [rax+rbp*4]
	add	rbp, 1
	call	memcpy@PLT
	cmp	DWORD PTR kNumStates[rip], ebp
	jg	.L3
.L2:
	mov	eax, DWORD PTR kNumLenToPosStates[rip]
	test	eax, eax
	jle	.L4
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 40[rbx]
	mov	edx, 4
	mov	esi, DWORD PTR [rax+rbp*4]
	mov	rax, QWORD PTR 112[rbx]
	mov	edi, DWORD PTR [rax+rbp*4]
	add	rbp, 1
	call	memcpy@PLT
	cmp	DWORD PTR kNumLenToPosStates[rip], ebp
	jg	.L5
.L4:
	mov	esi, DWORD PTR 32[rbx]
	mov	edi, DWORD PTR 108[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	esi, DWORD PTR 28[rbx]
	mov	edi, DWORD PTR 104[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	esi, DWORD PTR 24[rbx]
	mov	edi, DWORD PTR 100[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	esi, DWORD PTR 20[rbx]
	mov	edi, DWORD PTR 96[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 92[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 88[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 84[rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, 3072
	mov	edi, DWORD PTR 80[rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	sal	edx, cl
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.cfi_endproc
.LFE0:
	.size	LzmaEnc_SaveState, .-LzmaEnc_SaveState
	.comm	kNumStates,4,4
	.comm	kNumLenToPosStates,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_LzmaEnc.c_LzmaEnc_SaveState.c"
	.text
	.align	2
	.global	LzmaEnc_SaveState
	.syntax unified
	.arm
	.fpu softvfp
	.type	LzmaEnc_SaveState, %function
LzmaEnc_SaveState:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, .L10
	ldr	r1, [r0, #56]
	ldr	r0, [r6]
	ldr	r2, [r4, #52]
	ldr	r3, [r4, #48]
	cmp	r0, #0
	str	r1, [r4, #112]
	str	r2, [r4, #108]
	str	r3, [r4, #104]
	ble	.L2
	mov	r5, #0
.L3:
	ldr	r2, [r4, #44]
	ldr	r3, [r4, #100]
	ldr	r1, [r2, r5, lsl #2]
	ldr	r0, [r3, r5, lsl #2]
	mov	r2, #4
	bl	memcpy
	ldr	r2, [r4, #40]
	ldr	r3, [r4, #96]
	ldr	r1, [r2, r5, lsl #2]
	ldr	r0, [r3, r5, lsl #2]
	mov	r2, #4
	bl	memcpy
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L3
.L2:
	ldr	r6, .L10+4
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L4
	mov	r5, #0
.L5:
	ldr	r2, [r4, #36]
	ldr	r3, [r4, #92]
	ldr	r1, [r2, r5, lsl #2]
	ldr	r0, [r3, r5, lsl #2]
	mov	r2, #4
	bl	memcpy
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L5
.L4:
	ldr	r1, [r4, #32]
	mov	r2, #4
	ldr	r0, [r4, #88]
	bl	memcpy
	ldr	r1, [r4, #28]
	mov	r2, #4
	ldr	r0, [r4, #84]
	bl	memcpy
	ldr	r1, [r4, #24]
	mov	r2, #4
	ldr	r0, [r4, #80]
	bl	memcpy
	ldr	r1, [r4, #20]
	mov	r2, #4
	ldr	r0, [r4, #76]
	bl	memcpy
	ldr	r1, [r4, #16]
	mov	r2, #4
	ldr	r0, [r4, #72]
	bl	memcpy
	ldr	r1, [r4, #12]
	mov	r2, #4
	ldr	r0, [r4, #68]
	bl	memcpy
	ldr	r1, [r4, #8]
	mov	r2, #4
	ldr	r0, [r4, #64]
	bl	memcpy
	mov	r2, #3072
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #60]
	lsl	r2, r2, r3
	pop	{r4, r5, r6, lr}
	b	memcpy
.L11:
	.align	2
.L10:
	.word	kNumStates
	.word	kNumLenToPosStates
	.size	LzmaEnc_SaveState, .-LzmaEnc_SaveState
	.comm	kNumStates,4,4
	.comm	kNumLenToPosStates,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
