	.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	%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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rcx, %rsi
	movq	%r8, %rdx
	callq	_LzmaEnc_SetInputBuf
	movq	_MyWrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-64(%rbp), %rcx
	movl	%eax, -64(%rbp)
	movq	%r14, -56(%rbp)
	movq	(%r12), %rax
	movq	%rax, -72(%rbp)
	movq	_False@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movq	24(%rbp), %r8
	movq	32(%rbp), %r9
	callq	_LzmaEnc_MemPrepare
	movq	_SZ_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_LzmaEnc_Encode2
LBB0_2:
	movq	-72(%rbp), %rcx
	subq	%rcx, (%r12)
	cmpq	$0, -80(%rbp)
	je	LBB0_4
## %bb.3:
	movq	_SZ_ERROR_OUTPUT_EOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MyWrite,4,2                    ## @MyWrite
	.comm	_False,8,3                      ## @False
	.comm	_SZ_OK,8,3                      ## @SZ_OK
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x7
	mov	x20, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x19, x2
	mov	x26, x1
	mov	x21, x0
	ldr	x27, [x29, #16]
	mov	x1, x3
	mov	x2, x4
	bl	_LzmaEnc_SetInputBuf
Lloh0:
	adrp	x8, _MyWrite@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MyWrite@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x9, sp
	add	x9, x9, #16
	str	w8, [sp, #16]
	str	x26, [sp, #24]
Lloh3:
	adrp	x8, _False@GOTPAGE
Lloh4:
	ldr	x8, [x8, _False@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x10, [sp]
	str	w23, [x21]
	str	x9, [x21, #8]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	mov	w3, #0
	mov	x4, x22
	mov	x5, x27
	bl	_LzmaEnc_MemPrepare
Lloh6:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_LzmaEnc_Encode2
LBB0_2:
	ldr	x8, [x19]
	ldp	x10, x9, [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	x8, [x8]
	cmp	x10, #0
	csel	x0, x0, x8, eq
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MyWrite,4,2                    ; @MyWrite
	.comm	_False,8,3                      ; @False
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_SZ_ERROR_OUTPUT_EOF,8,3        ; @SZ_ERROR_OUTPUT_EOF
.subsections_via_symbols
