	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_CodeOneMemBlock        ## -- Begin function LzmaEnc_CodeOneMemBlock
	.p2align	4, 0x90
_LzmaEnc_CodeOneMemBlock:               ## @LzmaEnc_CodeOneMemBlock
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdi, %rbx
	movq	_SeqOutStreamBuf_Write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%rdx, -48(%rbp)
	movq	(%rcx), %rax
	movq	%rax, -72(%rbp)
	movq	_False@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	%rax, 32(%rdi)
	movq	%rax, 24(%rdi)
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_LzmaEnc_Init
LBB0_2:
	movq	%rbx, %rdi
	callq	_LzmaEnc_InitPrices
	movq	(%rbx), %r13
	leaq	8(%rbx), %rdi
	callq	_RangeEnc_Init
	leaq	-56(%rbp), %rax
	movq	%rax, 8(%rbx)
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_LzmaEnc_CodeOneBlock
	movq	(%rbx), %rcx
	subq	%r13, %rcx
	movq	%rcx, (%r14)
	movq	-72(%rbp), %rcx
	subq	%rcx, (%r15)
	cmpq	$0, -64(%rbp)
	je	LBB0_5
LBB0_4:
	movq	_SZ_ERROR_OUTPUT_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SeqOutStreamBuf_Write,4,2      ## @SeqOutStreamBuf_Write
	.comm	_False,8,3                      ## @False
	.comm	_SZ_OK,4,2                      ## @SZ_OK
	.comm	_SZ_ERROR_OUTPUT_EOF,4,2        ## @SZ_ERROR_OUTPUT_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_CodeOneMemBlock        ; -- Begin function LzmaEnc_CodeOneMemBlock
	.p2align	2
_LzmaEnc_CodeOneMemBlock:               ; @LzmaEnc_CodeOneMemBlock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x5
	mov	x22, x4
	mov	x19, x3
	mov	x21, x0
Lloh0:
	adrp	x8, _SeqOutStreamBuf_Write@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SeqOutStreamBuf_Write@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x9, sp
	add	x23, x9, #16
	str	w8, [sp, #16]
	str	x2, [sp, #24]
	ldr	x8, [x3]
Lloh3:
	adrp	x9, _False@GOTPAGE
Lloh4:
	ldr	x9, [x9, _False@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	stp	x8, x9, [sp]
	stp	x9, x9, [x0, #24]
Lloh6:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_LzmaEnc_Init
LBB0_2:
	mov	x0, x21
	bl	_LzmaEnc_InitPrices
	ldr	x24, [x21]
	add	x0, x21, #8
	bl	_RangeEnc_Init
	str	x23, [x21, #8]
	cbz	x22, LBB0_4
; %bb.3:
	ldr	x2, [x20]
	mov	x0, x21
	mov	x1, x22
	bl	_LzmaEnc_CodeOneBlock
	ldr	x8, [x21]
	sub	x8, x8, x24
	str	x8, [x20]
	ldr	x8, [x19]
	ldp	x9, x10, [sp]
	sub	x8, x8, x9
	str	x8, [x19]
Lloh9:
	adrp	x8, _SZ_ERROR_OUTPUT_EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SZ_ERROR_OUTPUT_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x10, #0
	csel	w0, w0, w8, eq
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _SZ_ERROR_OUTPUT_EOF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SZ_ERROR_OUTPUT_EOF@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SeqOutStreamBuf_Write,4,2      ; @SeqOutStreamBuf_Write
	.comm	_False,8,3                      ; @False
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.comm	_SZ_ERROR_OUTPUT_EOF,4,2        ; @SZ_ERROR_OUTPUT_EOF
.subsections_via_symbols
