	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzma2_lzma
_lzma2_lzma:                            ## @lzma2_lzma
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rcx
	movq	8(%rsi), %rsi
	movq	%rcx, %rax
	subq	%rsi, %rax
	movq	(%rdi), %rdi
	movq	16(%r15), %rbx
	testq	%rdi, %rdi
	je	LBB0_8
LBB0_1:
	movq	_LZMA_IN_REQUIRED@GOTPCREL(%rip), %r12
	movslq	(%r12), %rcx
	addq	%rcx, %rcx
	subq	%rdi, %rcx
	subq	%rdi, %rbx
	cmpq	%rbx, %rcx
	cmovbq	%rcx, %rbx
	cmpq	%rax, %rbx
	cmovaeq	%rax, %rbx
	addq	8(%r15), %rdi
	addq	16(%r14), %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	(%r15), %rax
	addq	%rbx, %rax
	cmpq	16(%r15), %rax
	jne	LBB0_3
## %bb.2:
	movq	8(%r15), %rdi
	addq	%rax, %rdi
	movl	$8, %esi
	subl	%eax, %esi
	callq	_memzero
	movq	(%r15), %rcx
	addq	%rbx, %rcx
	jmp	LBB0_5
LBB0_3:
	movslq	(%r12), %rdx
	movq	%rax, %rcx
	subq	%rdx, %rcx
	jae	LBB0_5
## %bb.4:
	movq	%rax, (%r15)
	addq	%rbx, 8(%r14)
	movb	$1, %r12b
	jmp	LBB0_22
LBB0_5:
	movq	%rcx, 24(%r15)
	movq	8(%r15), %rax
	movq	%rax, 32(%r15)
	movq	$0, 40(%r15)
	movq	%r15, %rdi
	callq	_lzma_main
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	(%r15), %rax
	movq	40(%r15), %rsi
	addq	%rax, %rbx
	cmpq	%rbx, %rsi
	ja	LBB0_10
## %bb.11:
	movq	16(%r15), %rbx
	subq	%rsi, %rbx
	movq	%rbx, 16(%r15)
	movq	%rax, %rdx
	subq	%rsi, %rdx
	jbe	LBB0_13
## %bb.12:
	movq	%rdx, (%r15)
	movq	8(%r15), %rdi
	addl	%edi, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_memmove
	movb	$1, %r12b
	jmp	LBB0_22
LBB0_8:
	testq	%rbx, %rbx
	jne	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_1
LBB0_13:
	subq	%rax, %rsi
	addq	8(%r14), %rsi
	movq	%rsi, 8(%r14)
	movq	$0, (%r15)
	movq	(%r14), %rcx
	movq	%rcx, %rax
	subq	%rsi, %rax
LBB0_14:
	movq	_LZMA_IN_REQUIRED@GOTPCREL(%rip), %r12
	movslq	(%r12), %rdx
	cmpq	%rdx, %rax
	jb	LBB0_20
## %bb.15:
	movq	16(%r14), %rdi
	movq	%rdi, 32(%r15)
	movq	%rsi, 40(%r15)
	leaq	(%rbx,%rdx), %rdi
	subq	%rdx, %rcx
	addq	%rsi, %rbx
	cmpq	%rdi, %rax
	cmovbq	%rcx, %rbx
	movq	%rbx, 24(%r15)
	movq	%r15, %rdi
	callq	_lzma_main
	testl	%eax, %eax
	je	LBB0_10
## %bb.16:
	movq	16(%r15), %rbx
	movq	40(%r15), %rsi
	movq	%rsi, %rax
	subq	8(%r14), %rax
	subq	%rax, %rbx
	jae	LBB0_19
LBB0_10:
	xorl	%r12d, %r12d
LBB0_22:
	movzbl	%r12b, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%rbx, 16(%r15)
	movq	%rsi, 8(%r14)
	movq	(%r14), %rax
	movslq	(%r12), %rdx
	subq	%rsi, %rax
LBB0_20:
	movb	$1, %r12b
	cmpq	%rdx, %rax
	jae	LBB0_22
## %bb.21:
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	movq	8(%r15), %rdi
	addq	16(%r14), %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%rbx, (%r15)
	addq	%rbx, 8(%r14)
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_IN_REQUIRED,4,2           ## @LZMA_IN_REQUIRED
	.no_dead_strip	_lzma2_lzma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzma2_lzma
_lzma2_lzma:                            ; @lzma2_lzma
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	x11, x8, [x1]
	sub	x10, x11, x8
	ldr	x12, [x0]
	ldr	x9, [x0, #16]
Lloh0:
	adrp	x22, _LZMA_IN_REQUIRED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LZMA_IN_REQUIRED@GOTPAGEOFF]
	cbz	x12, LBB0_9
LBB0_1:
	ldrsw	x11, [x22]
	lsl	x11, x11, #1
	sub	x11, x11, x12
	sub	x9, x9, x12
	cmp	x11, x9
	csel	x9, x11, x9, lo
	cmp	x9, x10
	csel	x21, x9, x10, lo
	ldr	x9, [x20, #8]
	add	x0, x9, x12
	ldr	x9, [x19, #16]
	add	x1, x9, x8
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x20]
	ldr	x9, [x20, #16]
	add	x8, x8, x21
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x9, [x20, #8]
	add	x0, x8, x9
	mov	w9, #8
	sub	w1, w9, w8
	bl	_memzero
	ldr	x8, [x20]
	add	x9, x8, x21
	b	LBB0_5
LBB0_3:
	ldrsw	x9, [x22]
	subs	x9, x8, x9
	b.hs	LBB0_5
; %bb.4:
	str	x8, [x20]
	b	LBB0_18
LBB0_5:
	ldr	x8, [x20, #8]
	stp	x9, x8, [x20, #24]
	str	xzr, [x20, #40]
	mov	x0, x20
	bl	_lzma_main
	cbz	w0, LBB0_20
; %bb.6:
	ldr	x8, [x20, #40]
	ldr	x10, [x20]
	add	x9, x10, x21
	cmp	x8, x9
	b.hi	LBB0_14
; %bb.7:
	ldr	x9, [x20, #16]
	sub	x9, x9, x8
	str	x9, [x20, #16]
	subs	x2, x10, x8
	b.ls	LBB0_10
; %bb.8:
	str	x2, [x20]
	ldr	x0, [x20, #8]
	add	w1, w0, w8
	bl	_memmove
	b	LBB0_19
LBB0_9:
	cbnz	x9, LBB0_11
	b	LBB0_1
LBB0_10:
	ldp	x11, x12, [x19]
	sub	x8, x8, x10
	add	x8, x8, x12
	str	x8, [x19, #8]
	str	xzr, [x20]
	sub	x10, x11, x8
LBB0_11:
	ldrsw	x12, [x22]
	cmp	x10, x12
	b.lo	LBB0_16
; %bb.12:
	ldr	x13, [x19, #16]
	stp	x13, x8, [x20, #32]
	sub	x11, x11, x12
	add	x8, x9, x8
	add	x9, x9, x12
	cmp	x10, x9
	csel	x8, x11, x8, lo
	str	x8, [x20, #24]
	mov	x0, x20
	bl	_lzma_main
	cbz	w0, LBB0_20
; %bb.13:
	ldr	x8, [x20, #40]
	ldr	x9, [x19, #8]
	ldr	x10, [x20, #16]
	sub	x9, x8, x9
	subs	x9, x10, x9
	b.hs	LBB0_15
LBB0_14:
	mov	w0, #0
	b	LBB0_20
LBB0_15:
	str	x9, [x20, #16]
	str	x8, [x19, #8]
	ldr	x10, [x19]
	ldrsw	x12, [x22]
	sub	x10, x10, x8
LBB0_16:
	cmp	x10, x12
	b.hs	LBB0_19
; %bb.17:
	cmp	x10, x9
	csel	x21, x10, x9, lo
	ldr	x0, [x20, #8]
	ldr	x9, [x19, #16]
	add	x1, x9, x8
	mov	x2, x21
	bl	_memcpy
	str	x21, [x20]
LBB0_18:
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	str	x8, [x19, #8]
LBB0_19:
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_IN_REQUIRED,4,2           ; @LZMA_IN_REQUIRED
	.no_dead_strip	_lzma2_lzma
.subsections_via_symbols
