	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lzma_lzma_optimum_normal       ## -- Begin function lzma_lzma_optimum_normal
	.p2align	4, 0x90
_lzma_lzma_optimum_normal:              ## @lzma_lzma_optimum_normal
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	cmpq	%rbx, (%rdi)
	jne	LBB0_1
## %bb.2:
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	cmpl	$128, 16(%r13)
	jl	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_fill_dist_prices
LBB0_5:
	movq	24(%r13), %rax
	movq	_ALIGN_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_fill_align_prices
LBB0_7:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_helper1
	movl	%eax, %ecx
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_13
## %bb.8:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_REPS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	movl	%ecx, %r14d
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movl	44(%r13), %esi
	leal	(,%rbx,4), %edx
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	callq	_memcpy
	movl	$1, %r12d
	cmpl	$2, %r14d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_12
## %bb.9:
	leaq	40(%r13), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	$1, %r12d
	movl	$-2, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	_OPTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	setl	%dil
	callq	_assert
	movl	36(%r13), %edx
	movq	%r15, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_mf_find
	movl	%eax, 32(%r13)
	cmpl	8(%r15), %eax
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	callq	_mf_ptr
	decq	%rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	8(%r15), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mf_avail
	leaq	1(%rax), %rdi
	movq	_OPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ebx, %esi
	callq	_my_min
                                        ## kill: def $eax killed $eax def $rax
	movq	%r13, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	%r14d, %ecx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	pushq	%rax
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_helper2
	addq	$16, %rsp
	movl	%eax, %r14d
	incl	%r12d
	decl	%ebx
	cmpl	%eax, %r12d
	jl	LBB0_10
LBB0_12:
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	callq	_backward
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_1:
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_assert
	movq	48(%r13), %rax
	movl	(%rax,%rbx,8), %ecx
	subl	%ebx, %ecx
	movl	%ecx, (%r14)
	movl	4(%rax,%rbx,8), %ecx
	movl	%ecx, (%r15)
	movslq	(%rax,%rbx,8), %rax
	movq	%rax, 8(%r13)
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ALIGN_SIZE,8,3                 ## @ALIGN_SIZE
	.comm	_UINT32_MAX,4,2                 ## @UINT32_MAX
	.comm	_REPS,4,2                       ## @REPS
	.comm	_OPTS,4,2                       ## @OPTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lzma_lzma_optimum_normal       ; -- Begin function lzma_lzma_optimum_normal
	.p2align	2
_lzma_lzma_optimum_normal:              ; @lzma_lzma_optimum_normal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	stur	w4, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x22, x3
	mov	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x9, x19, [x0]
	ldr	x8, [x1]
	cmp	x9, x19
	b.ne	LBB0_11
; %bb.1:
	mov	x23, x1
	cbnz	x8, LBB0_6
; %bb.2:
	ldr	w8, [x20, #16]
	cmp	w8, #128
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_fill_dist_prices
LBB0_4:
	ldr	x8, [x20, #24]
Lloh3:
	adrp	x9, _ALIGN_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ALIGN_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_fill_align_prices
LBB0_6:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	ldur	w4, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_helper1
Lloh6:
	adrp	x8, _UINT32_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UINT32_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.7:
	mov	x24, x0
	stp	x22, x21, [x29, #-120]          ; 16-byte Folded Spill
	mov	x8, sp
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
Lloh9:
	adrp	x8, _REPS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REPS@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	ldr	w1, [x20, #44]
	lsl	w2, w12, #2
	mov	x0, x25
	bl	_memcpy
	cmp	w24, #2
	b.lt	LBB0_12
; %bb.8:
	add	x8, x20, #40
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	mov	w26, #1
	mov	w22, #-2
Lloh14:
	adrp	x27, _OPTS@GOTPAGE
Lloh15:
	ldr	x27, [x27, _OPTS@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	cmp	w26, w8
	cset	w0, lt
	bl	_assert
	ldr	w2, [x20, #36]
	mov	x0, x23
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	bl	_mf_find
	str	w0, [x20, #32]
	ldr	w8, [x23, #8]
	cmp	w0, w8
	b.ge	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	bl	_mf_ptr
	sub	x28, x0, #1
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	add	w19, w8, w26
	ldr	w21, [x23, #8]
	mov	x0, x23
	bl	_mf_avail
	add	x0, x0, #1
	ldr	w8, [x27]
	add	w1, w22, w8
	bl	_my_min
	mov	x7, x0
	mov	x0, x20
	mov	x1, x25
	mov	x2, x28
	mov	x3, x24
	mov	x4, x19
	mov	x5, x26
	mov	x6, x21
	bl	_helper2
	mov	x24, x0
	add	w26, w26, #1
	sub	w22, w22, #1
	cmp	w26, w0
	b.lt	LBB0_9
	b	LBB0_13
LBB0_11:
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x20, #48]
	add	x8, x8, x19, lsl #3
	ldr	w9, [x8]
	sub	w9, w9, w19
	str	w9, [x22]
	ldr	w9, [x8, #4]
	str	w9, [x21]
	ldrsw	x8, [x8]
	str	x8, [x20, #8]
	b	LBB0_14
LBB0_12:
	mov	w26, #1
LBB0_13:
	mov	x0, x20
	ldp	x1, x2, [x29, #-120]            ; 16-byte Folded Reload
	mov	x3, x26
	bl	_backward
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	mov	sp, x8
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ALIGN_SIZE,8,3                 ; @ALIGN_SIZE
	.comm	_UINT32_MAX,4,2                 ; @UINT32_MAX
	.comm	_REPS,4,2                       ; @REPS
	.comm	_OPTS,4,2                       ; @OPTS
.subsections_via_symbols
