	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEncode                     ## -- Begin function LzmaEncode
	.p2align	4, 0x90
_LzmaEncode:                            ## @LzmaEncode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r15
	movl	%ecx, %r14d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	40(%rbp), %rdi
	callq	_LzmaEnc_Create
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_LzmaEnc_SetProps
	movq	%rax, %r15
	movq	_SZ_OK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.3:
	movq	16(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_LzmaEnc_WriteProperties
	movq	%rax, %r15
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.4:
	movl	24(%rbp), %r9d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	pushq	48(%rbp)
	pushq	40(%rbp)
	pushq	32(%rbp)
	callq	_LzmaEnc_MemEncode
	addq	$32, %rsp
	movq	%rax, %r15
LBB0_5:
	movq	%rbx, %rdi
	movq	40(%rbp), %rsi
	movq	48(%rbp), %rdx
	callq	_LzmaEnc_Destroy
	jmp	LBB0_6
LBB0_1:
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_6:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_ERROR_MEM,8,3               ## @SZ_ERROR_MEM
	.comm	_SZ_OK,8,3                      ## @SZ_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LzmaEncode                     ; -- Begin function LzmaEncode
	.p2align	2
_LzmaEncode:                            ; @LzmaEncode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x27, x6
	mov	x28, x5
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	ldr	x19, [x29, #24]
	mov	x0, x19
	bl	_LzmaEnc_Create
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	stp	w23, w22, [sp, #8]              ; 8-byte Folded Spill
	ldr	x22, [x29, #32]
	mov	x1, x20
	bl	_LzmaEnc_SetProps
	mov	x20, x0
Lloh0:
	adrp	x23, _SZ_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SZ_OK@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x28
	mov	x2, x27
	bl	_LzmaEnc_WriteProperties
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x6, [x29, #16]
	str	x22, [sp]
	mov	x0, x21
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	ldp	w4, w5, [sp, #8]                ; 8-byte Folded Reload
	mov	x7, x19
	bl	_LzmaEnc_MemEncode
	mov	x20, x0
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_LzmaEnc_Destroy
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_ERROR_MEM,8,3               ; @SZ_ERROR_MEM
	.comm	_SZ_OK,8,3                      ; @SZ_OK
.subsections_via_symbols
