	.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
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_kNumOpts@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	addq	$128, %rdi
	movl	%edx, %esi
	callq	_RangeEnc_Alloc
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, 120(%rbx)
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	cmpl	$0, 112(%rbx)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpq	$0, 32(%rbx)
	setne	%al
LBB0_4:
	movl	%eax, (%rbx)
	movl	8(%rbx), %r13d
	addl	4(%rbx), %r13d
	cmpq	$0, 104(%rbx)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 96(%rbx)
	je	LBB0_7
## %bb.6:
	cmpl	%r13d, 12(%rbx)
	je	LBB0_10
LBB0_7:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_LzmaEnc_FreeLits
	movl	$3072, %r14d                    ## imm = 0xC00
	movl	%r13d, %ecx
	shll	%cl, %r14d
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_ISzAlloc_Alloc
	movq	%rax, 104(%rbx)
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_ISzAlloc_Alloc
	movq	%rax, 96(%rbx)
	cmpq	$0, 104(%rbx)
	je	LBB0_19
## %bb.8:
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:
	movl	%r13d, 12(%rbx)
	movl	(%rbx), %eax
LBB0_10:
	movq	16(%rbx), %rsi
	movq	_kBigHashDicLimit@GOTPCREL(%rip), %r14
	xorl	%ecx, %ecx
	cmpq	(%r14), %rsi
	setg	%cl
	movq	%rcx, 48(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rcx
	addq	%rsi, %rcx
	movl	%r15d, %edx
	subl	%esi, %r15d
	cmpq	%rdx, %rcx
	cmovgel	%edi, %r15d
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	leaq	72(%rbx), %r12
	movl	64(%rbx), %ecx
	movq	_LZMA_MATCH_LEN_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	incq	%r8
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_MatchFinderMt_Create
	movl	%eax, %edi
	callq	_RINOK
	movq	%r12, 56(%rbx)
	movq	16(%rbx), %rax
	cmpq	(%r14), %rax
	jle	LBB0_12
## %bb.13:
	xorl	%eax, %eax
	cmpl	$16777215, 40(%rbx)             ## imm = 0xFFFFFF
	setge	%al
	jmp	LBB0_14
LBB0_19:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_LzmaEnc_FreeLits
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_15:
	leaq	32(%rbx), %r12
	movl	64(%rbx), %ecx
	movq	_LZMA_MATCH_LEN_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_MatchFinder_Create
	testl	%eax, %eax
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rcx
	je	LBB0_18
## %bb.16:
	movq	%r12, 56(%rbx)
	addq	$24, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_MatchFinder_CreateVTable
	jmp	LBB0_17
LBB0_12:
	xorl	%eax, %eax
LBB0_14:
	movq	%rax, 48(%rbx)
	addq	$24, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_MatchFinderMt_CreateVTable
LBB0_17:
	movq	_SZ_OK@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kNumOpts,4,2                   ## @kNumOpts
	.comm	_SZ_ERROR_MEM,4,2               ## @SZ_ERROR_MEM
	.comm	_kBigHashDicLimit,8,3           ## @kBigHashDicLimit
	.comm	_LZMA_MATCH_LEN_MAX,8,3         ## @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	w24, [x8]
	add	x0, x0, #128
	mov	x1, x2
	bl	_RangeEnc_Alloc
	cbz	w0, LBB0_15
; %bb.1:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w8, [x19, #112]
	cbz	w8, LBB0_4
; %bb.3:
	mov	w8, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w8, ne
LBB0_5:
	str	w8, [x19]
	ldp	w9, w10, [x19, #4]
	add	w25, w10, w9
	ldr	x9, [x19, #104]
	cbz	x9, LBB0_8
; %bb.6:
	ldr	x9, [x19, #96]
	cbz	x9, LBB0_8
; %bb.7:
	ldr	w9, [x19, #12]
	cmp	w9, w25
	b.eq	LBB0_11
LBB0_8:
	mov	x0, x19
	mov	x1, x22
	bl	_LzmaEnc_FreeLits
	mov	w8, #3072
	lsl	w23, w8, w25
	mov	x0, x22
	mov	x1, x23
	bl	_ISzAlloc_Alloc
	str	x0, [x19, #104]
	mov	x0, x22
	mov	x1, x23
	bl	_ISzAlloc_Alloc
	str	x0, [x19, #96]
	ldr	x8, [x19, #104]
	cbz	x8, LBB0_14
; %bb.9:
	cbz	x0, LBB0_14
; %bb.10:
	str	w25, [x19, #12]
	ldr	w8, [x19]
LBB0_11:
	ldr	x1, [x19, #16]
Lloh3:
	adrp	x22, _kBigHashDicLimit@GOTPAGE
Lloh4:
	ldr	x22, [x22, _kBigHashDicLimit@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x1, x9
	cset	w9, gt
	str	x9, [x19, #48]
	add	x9, x1, x24
	sub	w10, w21, w1
	cmp	x9, w21, uxtw
	csel	w2, w10, w24, lt
	cbz	w8, LBB0_16
; %bb.12:
	add	x21, x19, #72
	ldr	w3, [x19, #64]
Lloh5:
	adrp	x8, _LZMA_MATCH_LEN_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LZMA_MATCH_LEN_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x4, x8, #1
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x5, x20
	bl	_MatchFinderMt_Create
	bl	_RINOK
	str	x21, [x19, #56]
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_18
; %bb.13:
	ldr	w8, [x19, #40]
	mov	w9, #16777214
	cmp	w8, w9
	cset	w8, gt
	b	LBB0_19
LBB0_14:
	mov	x0, x19
	mov	x1, x22
	bl	_LzmaEnc_FreeLits
LBB0_15:
Lloh8:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_16:
	add	x21, x19, #32
	ldr	w3, [x19, #64]
Lloh10:
	adrp	x8, _LZMA_MATCH_LEN_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LZMA_MATCH_LEN_MAX@GOTPAGEOFF]
Lloh12:
	ldr	x4, [x8]
	mov	x0, x21
	mov	x5, x20
	bl	_MatchFinder_Create
	cbz	w0, LBB0_15
; %bb.17:
	str	x21, [x19, #56]
	add	x1, x19, #24
	mov	x0, x21
	bl	_MatchFinder_CreateVTable
	b	LBB0_20
LBB0_18:
	mov	x8, #0
LBB0_19:
	str	x8, [x19, #48]
	add	x1, x19, #24
	mov	x0, x21
	bl	_MatchFinderMt_CreateVTable
LBB0_20:
Lloh13:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
LBB0_21:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_kNumOpts,4,2                   ; @kNumOpts
	.comm	_SZ_ERROR_MEM,4,2               ; @SZ_ERROR_MEM
	.comm	_kBigHashDicLimit,8,3           ; @kBigHashDicLimit
	.comm	_LZMA_MATCH_LEN_MAX,8,3         ; @LZMA_MATCH_LEN_MAX
	.comm	_SZ_OK,4,2                      ; @SZ_OK
	.no_dead_strip	_LzmaEnc_Alloc
.subsections_via_symbols
