	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Lzma2Enc_Encode                ## -- Begin function Lzma2Enc_Encode
	.p2align	4, 0x90
_Lzma2Enc_Encode:                       ## @Lzma2Enc_Encode
	.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	%rcx, %r8
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	56(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%r13), %r14
	cmpq	$0, (%r14,%rbx,8)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	64(%r13), %edi
	callq	_LzmaEnc_Create
	movq	%rax, (%r14,%rbx,8)
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	56(%r13), %eax
	jmp	LBB0_5
LBB0_6:
	cmpl	$1, %eax
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jg	LBB0_7
LBB0_10:
	movq	72(%r13), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Lzma2Enc_EncodeMt1             ## TAILCALL
LBB0_7:
	movq	_MtCallbackImp_Code@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movq	%r13, -56(%rbp)
	movq	%r8, 48(%r13)
	movq	%r15, 40(%r13)
	movq	%r12, 32(%r13)
	movl	60(%r13), %ecx
	movl	64(%r13), %edx
	movl	%edx, 24(%r13)
	leaq	-64(%rbp), %rdx
	movq	%rdx, 16(%r13)
	movl	%ecx, (%r13)
	movl	%ecx, %edx
	sarl	$10, %edx
	addl	%edx, %ecx
	addl	$16, %ecx
	movl	%ecx, 4(%r13)
	movl	%eax, 8(%r13)
	movq	%r13, %rdi
	callq	_MtCoder_Code
	jmp	LBB0_9
LBB0_8:
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_ERROR_MEM,4,2               ## @SZ_ERROR_MEM
	.comm	_MtCallbackImp_Code,4,2         ## @MtCallbackImp_Code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Lzma2Enc_Encode                ; -- Begin function Lzma2Enc_Encode
	.p2align	2
_Lzma2Enc_Encode:                       ; @Lzma2Enc_Encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w8, [x0, #56]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #72]
	ldr	x9, [x24, x23, lsl #3]
	cbnz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #64]
	bl	_LzmaEnc_Create
	str	x0, [x24, x23, lsl #3]
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #56]
	b	LBB0_2
LBB0_6:
	cmp	w8, #1
	b.gt	LBB0_8
LBB0_7:
	ldr	x0, [x19, #72]
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_Lzma2Enc_EncodeMt1
LBB0_8:
Lloh0:
	adrp	x9, _MtCallbackImp_Code@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MtCallbackImp_Code@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp]
	str	x19, [sp, #8]
	stp	x21, x20, [x19, #40]
	str	x22, [x19, #32]
	ldp	w10, w9, [x19, #60]
	str	w9, [x19, #24]
	mov	x9, sp
	str	x9, [x19, #16]
	add	w9, w10, w10, asr #10
	add	w9, w9, #16
	stp	w10, w9, [x19]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_MtCoder_Code
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_ERROR_MEM,4,2               ; @SZ_ERROR_MEM
	.comm	_MtCallbackImp_Code,4,2         ; @MtCallbackImp_Code
.subsections_via_symbols
