	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_RestoreState           ## -- Begin function LzmaEnc_RestoreState
	.p2align	4, 0x90
_LzmaEnc_RestoreState:                  ## @LzmaEnc_RestoreState
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	144(%rdi), %eax
	movl	%eax, 72(%rdi)
	movq	136(%rdi), %rax
	movq	%rax, 64(%rdi)
	movq	_kNumStates@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %rax
	movq	128(%r15), %rcx
	movl	(%rax,%rbx,4), %edi
	movl	(%rcx,%rbx,4), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	48(%r15), %rax
	movq	120(%r15), %rcx
	movl	(%rax,%rbx,4), %edi
	movl	(%rcx,%rbx,4), %esi
	movl	$4, %edx
	callq	_memcpy
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_kNumLenToPosStates@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rax
	movq	112(%r15), %rcx
	movl	(%rax,%rbx,4), %edi
	movl	(%rcx,%rbx,4), %esi
	movl	$4, %edx
	callq	_memcpy
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movl	32(%r15), %edi
	movl	108(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	28(%r15), %edi
	movl	104(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	24(%r15), %edi
	movl	100(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	20(%r15), %edi
	movl	96(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	16(%r15), %edi
	movl	92(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	12(%r15), %edi
	movl	88(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%r15), %edi
	movl	84(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	4(%r15), %edi
	movl	80(%r15), %esi
	movb	(%r15), %cl
	movl	$3072, %edx                     ## imm = 0xC00
	shll	%cl, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kNumStates,4,2                 ## @kNumStates
	.comm	_kNumLenToPosStates,4,2         ## @kNumLenToPosStates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_RestoreState           ; -- Begin function LzmaEnc_RestoreState
	.p2align	2
_LzmaEnc_RestoreState:                  ; @LzmaEnc_RestoreState
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w8, [x0, #144]
	str	w8, [x0, #72]
	ldr	d0, [x0, #136]
	str	d0, [x0, #64]
Lloh0:
	adrp	x20, _kNumStates@GOTPAGE
Lloh1:
	ldr	x20, [x20, _kNumStates@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	lsl	x22, x21, #2
	ldr	w0, [x8, x22]
	ldr	x8, [x19, #128]
	ldr	w1, [x8, x22]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19, #48]
	ldr	w0, [x8, x22]
	ldr	x8, [x19, #120]
	ldr	w1, [x8, x22]
	mov	w2, #4
	bl	_memcpy
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
Lloh2:
	adrp	x20, _kNumLenToPosStates@GOTPAGE
Lloh3:
	ldr	x20, [x20, _kNumLenToPosStates@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	lsl	x9, x21, #2
	ldr	w0, [x8, x9]
	ldr	x8, [x19, #112]
	ldr	w1, [x8, x9]
	mov	w2, #4
	bl	_memcpy
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	w0, [x19, #32]
	ldr	w1, [x19, #108]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #28]
	ldr	w1, [x19, #104]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #24]
	ldr	w1, [x19, #100]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #96]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #16]
	ldr	w1, [x19, #92]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #12]
	ldr	w1, [x19, #88]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #84]
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [x19, #80]
	ldp	w8, w0, [x19]
	mov	w9, #3072
	lsl	w2, w9, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_kNumStates,4,2                 ; @kNumStates
	.comm	_kNumLenToPosStates,4,2         ; @kNumLenToPosStates
.subsections_via_symbols
