	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Lzma2Enc_EncodeMt1
_Lzma2Enc_EncodeMt1:                    ## @Lzma2Enc_EncodeMt1
	.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	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	cmpq	$0, (%rsi)
	jne	LBB0_3
## %bb.1:
	movl	12(%r12), %edi
	movq	_LZMA2_CHUNK_SIZE_COMPRESSED_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_IAlloc_Alloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	leaq	16(%r12), %rsi
	movq	%r13, %rdi
	callq	_Lzma2EncInt_Init
	movl	%eax, %edi
	callq	_RINOK
	movl	(%r13), %edi
	movq	_LZMA2_KEEP_WINDOW_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r12), %r8d
	movl	12(%r12), %ecx
	movq	%r14, %rsi
	callq	_LzmaEnc_PrepareForLzma2
	movl	%eax, %edi
	callq	_RINOK
	movq	_LZMA2_CHUNK_SIZE_COMPRESSED_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%r12), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_Lzma2EncInt_EncodeSubblock
	movq	%rax, %rbx
	movq	_SZ_OK@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.4:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	-48(%rbp), %r15
	movl	4(%r13), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_Progress
	movq	%rax, %rbx
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -48(%rbp)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_LZMA2_CHUNK_SIZE_COMPRESSED_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%r12), %rsi
	movq	%r13, %rdi
	leaq	-48(%rbp), %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_Lzma2EncInt_EncodeSubblock
	cmpq	(%r14), %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %rbx
LBB0_9:
	movl	(%r13), %edi
	callq	_LzmaEnc_Finish
	cmpq	(%r14), %rbx
	jne	LBB0_13
## %bb.10:
	movl	$0, -52(%rbp)
	leaq	-52(%rbp), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %edx
	callq	*(%rdi)
	cmpl	$1, %eax
	je	LBB0_13
## %bb.11:
	movq	_SZ_ERROR_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rbx
LBB0_13:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_OK,8,3                      ## @SZ_OK
	.comm	_LZMA2_CHUNK_SIZE_COMPRESSED_MAX,8,3 ## @LZMA2_CHUNK_SIZE_COMPRESSED_MAX
	.comm	_SZ_ERROR_MEM,8,3               ## @SZ_ERROR_MEM
	.comm	_LZMA2_KEEP_WINDOW_SIZE,4,2     ## @LZMA2_KEEP_WINDOW_SIZE
	.comm	_SZ_ERROR_WRITE,8,3             ## @SZ_ERROR_WRITE
	.no_dead_strip	_Lzma2Enc_EncodeMt1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Lzma2Enc_EncodeMt1
_Lzma2Enc_EncodeMt1:                    ; @Lzma2Enc_EncodeMt1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x25, _LZMA2_CHUNK_SIZE_COMPRESSED_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LZMA2_CHUNK_SIZE_COMPRESSED_MAX@GOTPAGEOFF]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x22, #12]
	ldr	x1, [x25]
	bl	_IAlloc_Alloc
	str	x0, [x22]
	cbz	x0, LBB0_10
LBB0_2:
	add	x1, x22, #16
	mov	x0, x20
	bl	_Lzma2EncInt_Init
	bl	_RINOK
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _LZMA2_KEEP_WINDOW_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LZMA2_KEEP_WINDOW_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldp	w4, w3, [x22, #8]
	mov	x1, x23
	bl	_LzmaEnc_PrepareForLzma2
	bl	_RINOK
	ldr	x8, [x25]
	str	x8, [sp, #8]
	ldr	x1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x19
	bl	_Lzma2EncInt_EncodeSubblock
	mov	x23, x0
Lloh5:
	adrp	x26, _SZ_OK@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SZ_OK@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	add	x24, x8, x24
	ldr	w1, [x20, #4]
	mov	x0, x21
	mov	x2, x24
	bl	_Progress
	ldr	x8, [x26]
	ldr	x9, [sp, #8]
	cmp	x0, x8
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	str	x8, [sp, #8]
	ldr	x1, [x22]
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x19
	bl	_Lzma2EncInt_EncodeSubblock
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_4
LBB0_6:
	mov	x23, x0
LBB0_7:
	ldr	w0, [x20]
	bl	_LzmaEnc_Finish
	ldr	x8, [x26]
	cmp	x23, x8
	b.ne	LBB0_12
; %bb.8:
	str	wzr, [sp, #4]
	ldr	x8, [x19]
	add	x1, sp, #4
	mov	x0, x19
	mov	w2, #1
	blr	x8
	cmp	w0, #1
	b.eq	LBB0_12
; %bb.9:
Lloh7:
	adrp	x8, _SZ_ERROR_WRITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SZ_ERROR_WRITE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
LBB0_11:
	ldr	x23, [x8]
LBB0_12:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_LZMA2_CHUNK_SIZE_COMPRESSED_MAX,8,3 ; @LZMA2_CHUNK_SIZE_COMPRESSED_MAX
	.comm	_SZ_ERROR_MEM,8,3               ; @SZ_ERROR_MEM
	.comm	_LZMA2_KEEP_WINDOW_SIZE,4,2     ; @LZMA2_KEEP_WINDOW_SIZE
	.comm	_SZ_ERROR_WRITE,8,3             ; @SZ_ERROR_WRITE
	.no_dead_strip	_Lzma2Enc_EncodeMt1
.subsections_via_symbols
