	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_MemEncode              ## -- Begin function LzmaEnc_MemEncode
	.p2align	4, 0x90
_LzmaEnc_MemEncode:                     ## @LzmaEnc_MemEncode
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movl	24(%rbp), %r8d
	movl	32(%rbp), %eax
	movq	_SeqOutStreamBuf_Write@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leaq	-48(%rbp), %rdi
	movl	%edx, -48(%rbp)
	movq	%rsi, -40(%rbp)
	movq	(%r15), %rdx
	movq	%rdx, -56(%rbp)
	movq	_False@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -64(%rbp)
	movl	%r9d, (%rbx)
	movq	%rdi, 16(%rbx)
	movq	%rbx, %rdi
	movq	%rcx, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	%eax, %r9d
	callq	_LzmaEnc_MemPrepare
	movq	_SZ_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.1:
	movq	16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_LzmaEnc_Encode2
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.2:
	cmpq	%r14, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_SZ_ERROR_FAIL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	-56(%rbp), %rcx
	subq	%rcx, (%r15)
	cmpq	$0, -64(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_SZ_ERROR_OUTPUT_EOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	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,8,3                      ## @SZ_OK
	.comm	_SZ_ERROR_FAIL,8,3              ## @SZ_ERROR_FAIL
	.comm	_SZ_ERROR_OUTPUT_EOF,8,3        ## @SZ_ERROR_OUTPUT_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEnc_MemEncode              ; -- Begin function LzmaEnc_MemEncode
	.p2align	2
_LzmaEnc_MemEncode:                     ; @LzmaEnc_MemEncode
	.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	x22, x6
	mov	x20, x4
	mov	x19, x2
	mov	x21, x0
	ldr	w8, [x29, #16]
Lloh0:
	adrp	x9, _SeqOutStreamBuf_Write@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SeqOutStreamBuf_Write@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	x10, sp
	add	x10, x10, #16
	str	w9, [sp, #16]
	str	x1, [sp, #24]
Lloh3:
	adrp	x9, _False@GOTPAGE
Lloh4:
	ldr	x9, [x9, _False@GOTPAGEOFF]
	ldr	x11, [x2]
Lloh5:
	ldr	x9, [x9]
	stp	x9, x11, [sp]
	str	w5, [x0]
	str	x10, [x0, #16]
	mov	x1, x3
	mov	x2, x4
	mov	w3, #0
	mov	x4, x7
	mov	x5, x8
	bl	_LzmaEnc_MemPrepare
Lloh6:
	adrp	x23, _SZ_OK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SZ_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	bl	_LzmaEnc_Encode2
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x21, #8]
Lloh8:
	adrp	x9, _SZ_ERROR_FAIL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SZ_ERROR_FAIL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x20
	csel	x0, x0, x9, eq
LBB0_3:
	ldr	x8, [x19]
	ldp	x10, x9, [sp]
	sub	x8, x8, x9
	str	x8, [x19]
Lloh11:
	adrp	x8, _SZ_ERROR_OUTPUT_EOF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SZ_ERROR_OUTPUT_EOF@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x10, #0
	csel	x0, x0, x8, eq
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SeqOutStreamBuf_Write,4,2      ; @SeqOutStreamBuf_Write
	.comm	_False,8,3                      ; @False
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_SZ_ERROR_FAIL,8,3              ; @SZ_ERROR_FAIL
	.comm	_SZ_ERROR_OUTPUT_EOF,8,3        ; @SZ_ERROR_OUTPUT_EOF
.subsections_via_symbols
