	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Lzma2Enc_Encode2               ## -- Begin function Lzma2Enc_Encode2
	.p2align	4, 0x90
_Lzma2Enc_Encode2:                      ## @Lzma2Enc_Encode2
	.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, %r14
	movq	%rcx, %r8
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	testq	%r13, %r13
	jne	LBB0_2
LBB0_3:
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	testq	%r15, %r15
	jne	LBB0_2
LBB0_5:
	movq	_MTCODER__THREADS_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.6:
	movq	16(%rbx), %rcx
	xorl	%edx, %edx
	movq	_False@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movl	(%rax), %edi
	cmpq	%rdi, %rdx
	jb	LBB0_7
LBB0_8:
	movq	24(%rbp), %r11
	movq	16(%rbp), %r10
	cmpl	$2, 112(%rbx)
	jl	LBB0_20
## %bb.9:
	cmpq	$0, 152(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	_True@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 152(%rbx)
	leaq	32(%rbx), %rdi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_MtCoder_Construct
	movq	24(%rbp), %r11
	movq	16(%rbp), %r10
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_11:
	movq	_Lzma2Enc_MtCallback_Code@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_Lzma2Enc_MtCallback_Write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r12, 144(%rbx)
	movq	$0, 24(%rbx)
	movq	$0, (%rbx)
	testq	%r12, %r12
	jne	LBB0_13
## %bb.12:
	movq	%r15, 24(%rbx)
	movq	(%r8), %rax
	movq	%rax, (%rbx)
	movq	$0, (%r8)
LBB0_13:
	movl	136(%rbx), %eax
	movl	%eax, 96(%rbx)
	movq	%r11, 88(%rbx)
	movq	%r14, 80(%rbx)
	movq	%r13, 72(%rbx)
	movq	%r10, 32(%rbx)
	leaq	-56(%rbp), %rax
	movq	%rax, 64(%rbx)
	movq	%rbx, 56(%rbx)
	movq	120(%rbx), %rax
	movq	%rax, 40(%rbx)
	movq	%rax, %rcx
	shrq	$10, %rcx
	leaq	(%rax,%rcx), %r13
	addq	$16, %r13
	cmpq	%rax, %r13
	jae	LBB0_14
LBB0_2:
	movq	_SZ_ERROR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	addq	$24, %rsp
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	16(%rbx), %rsi
	movq	_True@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%r14, %r9
	pushq	%r11
	pushq	(%rax)
	pushq	%r10
	pushq	%r13
	callq	_Lzma2Enc_EncodeMt1
	addq	$56, %rsp
	jmp	LBB0_19
LBB0_14:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	leaq	32(%rbx), %r14
	cmpq	%r13, 8(%rbx)
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_Lzma2Enc_FreeOutBufs
LBB0_16:
	movq	%r13, 8(%rbx)
	movl	104(%rbx), %eax
	movl	128(%rbx), %ecx
	movl	%ecx, 52(%rbx)
	movl	%eax, 48(%rbx)
	movq	%r14, %rdi
	callq	_MtCoder_Code
	testq	%r12, %r12
	jne	LBB0_18
## %bb.17:
	movq	24(%rbx), %rcx
	subq	%r15, %rcx
	sarq	$2, %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, (%rdx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_ERROR_PARAM,4,2             ## @SZ_ERROR_PARAM
	.comm	_MTCODER__THREADS_MAX,4,2       ## @MTCODER__THREADS_MAX
	.comm	_False,4,2                      ## @False
	.comm	_True,8,3                       ## @True
	.comm	_Lzma2Enc_MtCallback_Code,4,2   ## @Lzma2Enc_MtCallback_Code
	.comm	_Lzma2Enc_MtCallback_Write,4,2  ## @Lzma2Enc_MtCallback_Write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Lzma2Enc_Encode2               ; -- Begin function Lzma2Enc_Encode2
	.p2align	2
_Lzma2Enc_Encode2:                      ; @Lzma2Enc_Encode2
	.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	x26, x7
	mov	x24, x6
	mov	x23, x5
	mov	x25, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	cbz	x4, LBB0_2
; %bb.1:
	cbnz	x23, LBB0_13
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	cbnz	x20, LBB0_13
LBB0_4:
Lloh0:
	adrp	x8, _MTCODER__THREADS_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTCODER__THREADS_MAX@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.5:
	mov	x9, #0
	ldr	x10, [x22, #16]
Lloh2:
	adrp	x11, _False@GOTPAGE
Lloh3:
	ldr	x11, [x11, _False@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldr	w12, [x8]
	cmp	x9, x12
	b.lo	LBB0_6
LBB0_7:
	ldr	w8, [x22, #112]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.8:
	ldr	x8, [x22, #152]
	cbnz	x8, LBB0_10
; %bb.9:
Lloh4:
	adrp	x8, _True@GOTPAGE
Lloh5:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x22, #152]
	add	x0, x22, #32
	bl	_MtCoder_Construct
LBB0_10:
Lloh7:
	adrp	x8, _Lzma2Enc_MtCallback_Code@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Lzma2Enc_MtCallback_Code@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _Lzma2Enc_MtCallback_Write@GOTPAGE
Lloh11:
	ldr	x9, [x9, _Lzma2Enc_MtCallback_Write@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	str	x21, [x22, #144]
	str	xzr, [x22, #24]
	str	xzr, [x22]
	cbnz	x21, LBB0_12
; %bb.11:
	str	x20, [x22, #24]
	ldr	x8, [x19]
	str	x8, [x22]
	str	xzr, [x19]
LBB0_12:
	ldr	w8, [x22, #136]
	mov	x27, x22
	str	x24, [x27, #32]!
	str	w8, [x22, #96]
	stp	x25, x26, [x22, #80]
	add	x8, sp, #24
	stp	x8, x23, [x22, #64]
	str	x22, [x22, #56]
	ldr	x8, [x22, #120]
	str	x8, [x22, #40]
	add	x9, x8, x8, lsr #10
	add	x23, x9, #16
	cmp	x23, x8
	b.hs	LBB0_16
LBB0_13:
Lloh13:
	adrp	x8, _SZ_ERROR_PARAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SZ_ERROR_PARAM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_14:
	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
LBB0_15:
	ldr	x1, [x22, #16]
Lloh16:
	adrp	x8, _True@GOTPAGE
Lloh17:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	stp	x8, x26, [sp]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x25
	mov	x6, x23
	mov	x7, x24
	bl	_Lzma2Enc_EncodeMt1
	b	LBB0_14
LBB0_16:
	ldr	x8, [x22, #8]
	cmp	x8, x23
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x22
	bl	_Lzma2Enc_FreeOutBufs
LBB0_18:
	str	x23, [x22, #8]
	ldr	w8, [x22, #128]
	ldr	w9, [x22, #104]
	stp	w9, w8, [x22, #48]
	mov	x0, x27
	bl	_MtCoder_Code
	cbnz	x21, LBB0_14
; %bb.19:
	ldr	x8, [x22, #24]
	sub	x8, x8, x20
	asr	x8, x8, #2
	str	x8, [x19]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_ERROR_PARAM,4,2             ; @SZ_ERROR_PARAM
	.comm	_MTCODER__THREADS_MAX,4,2       ; @MTCODER__THREADS_MAX
	.comm	_False,4,2                      ; @False
	.comm	_True,8,3                       ; @True
	.comm	_Lzma2Enc_MtCallback_Code,4,2   ; @Lzma2Enc_MtCallback_Code
	.comm	_Lzma2Enc_MtCallback_Write,4,2  ; @Lzma2Enc_MtCallback_Write
.subsections_via_symbols
