	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LzmaEnc_Alloc
_LzmaEnc_Alloc:                         ## @LzmaEnc_Alloc
	.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, %r14
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_kNumOpts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	$112, %rdi
	movq	%rdx, %rsi
	callq	_RangeEnc_Alloc
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	cmpq	$0, 104(%rbx)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	cmpq	$0, 32(%rbx)
	setne	%al
	cmpl	$0, 96(%rbx)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movl	%eax, (%rbx)
	movl	8(%rbx), %r13d
	addl	4(%rbx), %r13d
	cmpq	$0, 88(%rbx)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 80(%rbx)
	je	LBB0_7
## %bb.6:
	cmpl	%r13d, 12(%rbx)
	je	LBB0_10
LBB0_7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_LzmaEnc_FreeLits
	movl	$3072, %r14d                    ## imm = 0xC00
	movl	%r13d, %ecx
	shll	%cl, %r14d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	*(%r12)
	movq	%rax, 88(%rbx)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	*(%r12)
	movq	%rax, 80(%rbx)
	cmpq	$0, 88(%rbx)
	je	LBB0_16
## %bb.8:
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movl	%r13d, 12(%rbx)
	movl	(%rbx), %eax
LBB0_10:
	movq	16(%rbx), %rsi
	movq	_kBigHashDicLimit@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rsi
	setg	%dl
	movl	%edx, 40(%rbx)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rsi,%rcx), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rdx
	subq	%rsi, %rdx
	cmpq	%rdi, %r8
	cmovgeq	%rcx, %rdx
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	64(%rbx), %r14
	movl	56(%rbx), %ecx
	movq	_LZMA_MATCH_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_MatchFinderMt_Create
	movl	%eax, %edi
	callq	_RINOK
	movq	%r14, 48(%rbx)
	addq	$24, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_MatchFinderMt_CreateVTable
	jmp	LBB0_14
LBB0_16:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_LzmaEnc_FreeLits
	jmp	LBB0_15
LBB0_12:
	leaq	32(%rbx), %r14
	movl	56(%rbx), %ecx
	movq	_LZMA_MATCH_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_MatchFinder_Create
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	%r14, 48(%rbx)
	addq	$24, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_MatchFinder_CreateVTable
LBB0_14:
	movq	_SZ_OK@GOTPCREL(%rip), %r15
LBB0_15:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kNumOpts,8,3                   ## @kNumOpts
	.comm	_SZ_ERROR_MEM,4,2               ## @SZ_ERROR_MEM
	.comm	_kBigHashDicLimit,8,3           ## @kBigHashDicLimit
	.comm	_LZMA_MATCH_LEN_MAX,4,2         ## @LZMA_MATCH_LEN_MAX
	.comm	_SZ_OK,4,2                      ## @SZ_OK
	.no_dead_strip	_LzmaEnc_Alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LzmaEnc_Alloc
_LzmaEnc_Alloc:                         ; @LzmaEnc_Alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _kNumOpts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kNumOpts@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	add	x0, x0, #112
	mov	x1, x2
	bl	_RangeEnc_Alloc
	cbz	w0, LBB0_12
; %bb.1:
	ldr	x8, [x19, #104]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #32]
	ldr	w9, [x19, #96]
	cmp	w9, #0
	ccmp	x8, #0, #4, eq
	cset	w8, ne
LBB0_3:
	str	w8, [x19]
	ldp	w9, w10, [x19, #4]
	add	w25, w10, w9
	ldr	x9, [x19, #88]
	cbz	x9, LBB0_6
; %bb.4:
	ldr	x9, [x19, #80]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	w9, [x19, #12]
	cmp	w9, w25
	b.eq	LBB0_9
LBB0_6:
	mov	x0, x19
	mov	x1, x22
	bl	_LzmaEnc_FreeLits
	ldr	x8, [x22]
	mov	w9, #3072
	lsl	w23, w9, w25
	mov	x0, x22
	mov	x1, x23
	blr	x8
	str	x0, [x19, #88]
	ldr	x8, [x22]
	mov	x0, x22
	mov	x1, x23
	blr	x8
	str	x0, [x19, #80]
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_11
; %bb.7:
	cbz	x0, LBB0_11
; %bb.8:
	str	w25, [x19, #12]
	ldr	w8, [x19]
LBB0_9:
	ldr	x1, [x19, #16]
Lloh3:
	adrp	x9, _kBigHashDicLimit@GOTPAGE
Lloh4:
	ldr	x9, [x9, _kBigHashDicLimit@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x1, x9
	cset	w9, gt
	str	w9, [x19, #40]
	sub	x9, x21, x1
	add	x10, x1, x24
	cmp	x10, x21
	csel	x2, x9, x24, lt
	cbz	w8, LBB0_13
; %bb.10:
	add	x21, x19, #64
	ldr	w3, [x19, #56]
Lloh6:
	adrp	x8, _LZMA_MATCH_LEN_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LZMA_MATCH_LEN_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x5, x20
	bl	_MatchFinderMt_Create
	bl	_RINOK
	str	x21, [x19, #48]
	add	x1, x19, #24
	mov	x0, x21
	bl	_MatchFinderMt_CreateVTable
	b	LBB0_15
LBB0_11:
	mov	x0, x19
	mov	x1, x22
	bl	_LzmaEnc_FreeLits
LBB0_12:
Lloh9:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	add	x21, x19, #32
	ldr	w3, [x19, #56]
Lloh11:
	adrp	x8, _LZMA_MATCH_LEN_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LZMA_MATCH_LEN_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x5, x20
	bl	_MatchFinder_Create
	cbz	w0, LBB0_12
; %bb.14:
	str	x21, [x19, #48]
	add	x1, x19, #24
	mov	x0, x21
	bl	_MatchFinder_CreateVTable
LBB0_15:
Lloh14:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_kNumOpts,8,3                   ; @kNumOpts
	.comm	_SZ_ERROR_MEM,4,2               ; @SZ_ERROR_MEM
	.comm	_kBigHashDicLimit,8,3           ; @kBigHashDicLimit
	.comm	_LZMA_MATCH_LEN_MAX,4,2         ; @LZMA_MATCH_LEN_MAX
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.no_dead_strip	_LzmaEnc_Alloc
.subsections_via_symbols
