	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Lzma2Dec_DecodeToBuf           ## -- Begin function Lzma2Dec_DecodeToBuf
	.p2align	4, 0x90
_Lzma2Dec_DecodeToBuf:                  ## @Lzma2Dec_DecodeToBuf
	.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
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rdi
	movq	(%r8), %rax
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdx)
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	$0, (%r8)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	xorl	%edx, %edx
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsi, %rax
	subq	%rdx, %rax
	cmpq	%rax, %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_LZMA_FINISH_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rdx,%rdi), %rsi
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, %rdx
	leaq	-72(%rbp), %rcx
	movq	16(%rbp), %r9
	callq	_Lzma2Dec_DecodeToDic
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r13
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, (%rax)
	movq	(%rbx), %r14
	movq	%r14, %r12
	movq	-128(%rbp), %r15                ## 8-byte Reload
	subq	%r15, %r12
	movq	16(%rbx), %rsi
	addq	%r15, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, (%rax)
	testq	%rdx, %rdx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%r15, %r14
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	subq	%r12, %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	subq	%r13, %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r13,4), %rcx
	testq	%rdi, %rdi
	jne	LBB0_1
LBB0_9:
	movq	%rdx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_FINISH_ANY,4,2            ## @LZMA_FINISH_ANY
	.comm	_SZ_OK,8,3                      ## @SZ_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Lzma2Dec_DecodeToBuf           ; -- Begin function Lzma2Dec_DecodeToBuf
	.p2align	2
_Lzma2Dec_DecodeToBuf:                  ; @Lzma2Dec_DecodeToBuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x6, [sp, #32]                   ; 8-byte Folded Spill
	str	w5, [sp, #28]                   ; 4-byte Folded Spill
	mov	x22, x3
	mov	x24, x1
	mov	x25, x0
	ldr	x28, [x2]
	ldr	x19, [x4]
	stp	x2, x4, [sp, #8]                ; 16-byte Folded Spill
	str	xzr, [x2]
	str	xzr, [x4]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	x19, [sp, #40]
	ldp	x20, x8, [x25]
	cmp	x20, x8
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, #0
	str	xzr, [x25]
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh0:
	adrp	x9, _LZMA_FINISH_ANY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LZMA_FINISH_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	x10, x20, x28
	sub	x11, x8, x20
	cmp	x28, x11
	csel	x1, x8, x10, gt
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	csel	w4, w9, w8, gt
	add	x3, sp, #40
	mov	x0, x25
	mov	x2, x22
	ldr	x5, [sp, #32]                   ; 8-byte Folded Reload
	bl	_Lzma2Dec_DecodeToDic
	mov	x26, x0
	ldr	x21, [sp, #40]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x9]
	add	x8, x8, x21
	str	x8, [x9]
	ldr	x23, [x25]
	sub	x27, x23, x20
	ldr	x8, [x25, #16]
	add	x1, x8, x20
	mov	x0, x24
	mov	x2, x27
	bl	_memcpy
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x9]
	add	x8, x8, x27
	str	x8, [x9]
	cbnz	x26, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh3:
	adrp	x8, _SZ_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SZ_OK@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
	cmp	x23, x20
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x24, x24, x27, lsl #2
	sub	x19, x19, x21
	add	x22, x22, x21, lsl #2
	sub	x28, x28, x27
	cbnz	x28, LBB0_1
LBB0_6:
	mov	x0, x26
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_FINISH_ANY,4,2            ; @LZMA_FINISH_ANY
	.comm	_SZ_OK,8,3                      ; @SZ_OK
.subsections_via_symbols
