	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lzma_lzma_encode               ## -- Begin function lzma_lzma_encode
	.p2align	4, 0x90
_lzma_lzma_encode:                      ## @lzma_lzma_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	cmpl	$0, 16(%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_encode_init
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	movq	%r13, %rdi
	callq	_mf_position
	movq	%r14, %rdx
	movq	%rax, %r14
	leaq	4(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rcx
	callq	_rc_encode
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
LBB0_4:
	cmpq	%rbx, (%rax)
	sete	%dil
	callq	_assert
LBB0_5:
	movq	_LZMA_OK@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r14, %r8
	callq	_lzma_lzma_optimum_normal
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %rdx
	movq	-72(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %r8
	callq	_encode_symbol
	addq	-72(%rbp), %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_rc_encode
	testq	%rax, %rax
	jne	LBB0_3
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rax
	subq	8(%r13), %rax
	cmpq	%rbx, %rax
	jge	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rbx
	movq	%r12, %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_rc_pending
	addq	%r12, %rax
	movq	%r15, %r12
	movq	%rbx, %r15
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	_LZMA2_CHUNK_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_LOOP_INPUT_MAX@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	cmpq	%rcx, %rax
	jae	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r13), %rax
	cmpq	16(%r13), %rax
	jl	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%r13), %rax
	movq	_LZMA_RUN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, 8(%r13)
	je	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_lzma_lzma_optimum_fast
	jmp	LBB0_9
LBB0_18:
	cmpl	$0, (%r15)
	je	LBB0_21
LBB0_19:
	movl	$0, (%r15)
	movq	_LZMA_STREAM_END@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_21:
	movl	$1, (%r15)
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_encode_eopm
LBB0_23:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_rc_flush
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_rc_encode
	testq	%rax, %rax
	je	LBB0_19
## %bb.24:
	xorl	%edi, %edi
	movq	_UINT32_MAX@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_OK,4,2                    ## @LZMA_OK
	.comm	_UINT32_MAX,8,3                 ## @UINT32_MAX
	.comm	_LZMA2_CHUNK_MAX,8,3            ## @LZMA2_CHUNK_MAX
	.comm	_LOOP_INPUT_MAX,8,3             ## @LOOP_INPUT_MAX
	.comm	_LZMA_RUN,8,3                   ## @LZMA_RUN
	.comm	_LZMA_STREAM_END,4,2            ## @LZMA_STREAM_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lzma_lzma_encode               ; -- Begin function lzma_lzma_encode
	.p2align	2
_lzma_lzma_encode:                      ; @lzma_lzma_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x25, x1
	mov	x20, x0
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x25
	bl	_encode_init
	cbz	w0, LBB0_5
LBB0_2:
	mov	x0, x25
	bl	_mf_position
	mov	x26, x0
	add	x24, x20, #4
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_rc_encode
	cbz	x0, LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _UINT32_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UINT32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
LBB0_4:
	cmp	x8, x19
	cset	w0, eq
	bl	_assert
LBB0_5:
Lloh3:
	adrp	x8, _LZMA_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LZMA_OK@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
Lloh5:
	adrp	x28, _UINT32_MAX@GOTPAGE
Lloh6:
	ldr	x28, [x28, _UINT32_MAX@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x2, sp
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x25
	mov	x4, x26
	bl	_lzma_lzma_optimum_normal
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldp	x2, x3, [sp]
	mov	x0, x20
	mov	x1, x25
	mov	x4, x26
	bl	_encode_symbol
	ldr	x8, [sp, #8]
	add	x26, x8, x26
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_rc_encode
	cbnz	x0, LBB0_3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	cmp	x8, x19
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	x8, x9, [x25]
	sub	x8, x8, x9
	cmp	x8, x19
	b.ge	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x27, [x22]
	mov	x0, x24
	bl	_rc_pending
	add	x8, x0, x27
Lloh7:
	adrp	x9, _LZMA2_CHUNK_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LZMA2_CHUNK_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _LOOP_INPUT_MAX@GOTPAGE
Lloh11:
	ldr	x10, [x10, _LOOP_INPUT_MAX@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	sub	x9, x9, x10
	cmp	x8, x9
	b.hs	LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x25, #16]
	cmp	x8, x9
	b.lt	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x25, #24]
Lloh13:
	adrp	x9, _LZMA_RUN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _LZMA_RUN@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x2, sp
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x25
	bl	_lzma_lzma_optimum_fast
	b	LBB0_9
LBB0_18:
	ldr	w8, [x20]
	cbz	w8, LBB0_20
LBB0_19:
	str	wzr, [x20]
Lloh16:
	adrp	x8, _LZMA_STREAM_END@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LZMA_STREAM_END@GOTPAGEOFF]
	b	LBB0_6
LBB0_20:
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x28]
	cmp	x8, x19
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x20
	mov	x1, x26
	bl	_encode_eopm
LBB0_22:
	mov	x0, x24
	bl	_rc_flush
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_rc_encode
	cbz	x0, LBB0_19
; %bb.23:
	ldr	x8, [x28]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_OK,4,2                    ; @LZMA_OK
	.comm	_UINT32_MAX,8,3                 ; @UINT32_MAX
	.comm	_LZMA2_CHUNK_MAX,8,3            ; @LZMA2_CHUNK_MAX
	.comm	_LOOP_INPUT_MAX,8,3             ; @LOOP_INPUT_MAX
	.comm	_LZMA_RUN,8,3                   ; @LZMA_RUN
	.comm	_LZMA_STREAM_END,4,2            ; @LZMA_STREAM_END
.subsections_via_symbols
