	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lzma_inflate                   ## -- Begin function lzma_inflate
	.p2align	4, 0x90
_lzma_inflate:                          ## @lzma_inflate
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LZMA_PROPERTIES_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movq	_rpos@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_dpos@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	(%r12), %r12d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movl	%ebx, %edx
	callq	_MyReadFileAndCheck
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	addl	$8, %r12d
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	subl	%r12d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r14d
	addl	$8, %r13d
	cmpl	$8, %r14d
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-112(%rbp), %rsi
	movl	$1, %edx
	callq	_MyReadFileAndCheck
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-112(%rbp), %eax
	cmpl	$255, %eax
	movl	$0, %ecx
	cmovnel	%ecx, %ebx
	movl	%r13d, %ecx
	shll	%cl, %eax
	cmpl	$3, %r14d
	ja	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %r12d
	jmp	LBB0_10
LBB0_5:
	movq	_kCantReadMessage@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rdi
	callq	_puts
LBB0_7:
	movq	_LZMA_RESULT_DATA_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_36
LBB0_8:
	movq	_kCantReadMessage@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_puts
	jmp	LBB0_14
LBB0_11:
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_15:
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rdi
LBB0_13:
	xorl	%eax, %eax
	callq	_printf
LBB0_14:
	movq	_LZMA_RESULT_DATA_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_36:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	-104(%rbp), %rbx
	movq	_LZMA_PROPERTIES_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_LzmaDecodeProperties
	movq	_LZMA_RESULT_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_18
## %bb.19:
	movq	%rbx, %rdi
	callq	_LzmaGetNumProbs
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %edi
	callq	_malloc
	movq	%rax, -112(%rbp)
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.21:
	xorl	%ecx, %ecx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpl	(%rbx), %r12d
	movq	-120(%rbp), %r8                 ## 8-byte Reload
	cmovgq	%rcx, %r8
	jmp	LBB0_22
LBB0_18:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_7
LBB0_20:
	xorl	%r8d, %r8d
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
LBB0_22:
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	cmpl	%esi, %edi
	je	LBB0_23
## %bb.24:
	movq	_rpos@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	addl	%ecx, %edx
	cmpl	%esi, %edx
	jle	LBB0_25
LBB0_23:
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_26
LBB0_25:
	addq	%rcx, -56(%rbp)                 ## 8-byte Folded Spill
LBB0_26:
	testq	%rax, %rax
	je	LBB0_31
## %bb.27:
	testq	%r8, %r8
	jne	LBB0_29
## %bb.28:
	testl	%r12d, %r12d
	jne	LBB0_31
LBB0_29:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_32
## %bb.30:
	cmpl	%esi, %edi
	je	LBB0_32
LBB0_31:
	movq	%rax, %rdi
	callq	_free
	movq	_kCantAllocateMessage@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_32:
	subq	$8, %rsp
	leaq	-76(%rbp), %rax
	leaq	-112(%rbp), %rdi
	leaq	-132(%rbp), %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %r9d
	pushq	%rax
	callq	_LzmaDecode
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_34
## %bb.33:
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %ebx
	jmp	LBB0_35
LBB0_34:
	movl	-76(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%ebx, %ebx
LBB0_35:
	movq	-112(%rbp), %rdi
	callq	_free
	jmp	LBB0_36
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_PROPERTIES_SIZE,4,2       ## @LZMA_PROPERTIES_SIZE
	.comm	_rpos,4,2                       ## @rpos
	.comm	_dpos,8,3                       ## @dpos
	.comm	_LZMA_RESULT_DATA_ERROR,4,2     ## @LZMA_RESULT_DATA_ERROR
	.comm	_kCantReadMessage,8,3           ## @kCantReadMessage
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Stream with EOS marker is not supported"

L_.str.3:                               ## @.str.3
	.asciz	"Too big uncompressed stream"

	.comm	_LZMA_RESULT_OK,8,3             ## @LZMA_RESULT_OK
L_.str.4:                               ## @.str.4
	.asciz	"Incorrect stream properties"

	.comm	_kCantAllocateMessage,8,3       ## @kCantAllocateMessage
L_.str.5:                               ## @.str.5
	.asciz	"\nDecoding error = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lzma_inflate                   ; -- Begin function lzma_inflate
	.p2align	2
_lzma_inflate:                          ; @lzma_inflate
	.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, #64
	mov	x21, x3
	mov	x24, x2
	mov	x20, x1
	mov	x23, x0
	mov	x19, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x22, _LZMA_PROPERTIES_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _LZMA_PROPERTIES_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
Lloh7:
	adrp	x8, _rpos@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rpos@GOTPAGEOFF]
Lloh9:
	str	wzr, [x8]
Lloh10:
	adrp	x8, _dpos@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dpos@GOTPAGEOFF]
Lloh12:
	str	xzr, [x8]
	ldr	w26, [x22]
	mov	x1, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_MyReadFileAndCheck
	cbz	w0, LBB0_6
; %bb.1:
	stur	x24, [x29, #-144]               ; 8-byte Folded Spill
	stp	x21, x19, [x29, #-128]          ; 16-byte Folded Spill
	mov	w27, #0
	mov	w24, #0
	mov	w21, #0
	mov	w19, #0
	add	w28, w26, #8
	sub	w8, w20, w28
	stur	w8, [x29, #-132]                ; 4-byte Folded Spill
	mov	w26, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #104
	mov	x0, x23
	mov	w2, #1
	bl	_MyReadFileAndCheck
	cbz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldurb	w8, [x29, #-104]
	cmp	w8, #255
	csel	w26, w26, wzr, eq
	lsl	w8, w8, w27
	add	w9, w8, w19
	add	w8, w8, w21
	cmp	w24, #3
	csel	w19, w9, w19, hi
	csel	w21, w21, w8, hi
	add	w24, w24, #1
	add	w27, w27, #8
	cmp	w24, #8
	b.ne	LBB0_2
; %bb.4:
	cbz	w26, LBB0_12
; %bb.5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_9
LBB0_6:
Lloh15:
	adrp	x8, _kCantReadMessage@GOTPAGE
Lloh16:
	ldr	x8, [x8, _kCantReadMessage@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	bl	_puts
Lloh18:
	adrp	x8, _LZMA_RESULT_DATA_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LZMA_RESULT_DATA_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	b	LBB0_10
LBB0_7:
Lloh21:
	adrp	x8, _kCantReadMessage@GOTPAGE
Lloh22:
	ldr	x8, [x8, _kCantReadMessage@GOTPAGEOFF]
LBB0_8:
	ldr	x0, [x8]
	bl	_puts
LBB0_9:
Lloh23:
	adrp	x8, _LZMA_RESULT_DATA_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LZMA_RESULT_DATA_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	ldur	x19, [x29, #-120]               ; 8-byte Folded Reload
LBB0_10:
	mov	sp, x19
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.11:
	mov	x0, x20
	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_12:
	cbz	w19, LBB0_14
; %bb.13:
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	b	LBB0_9
LBB0_14:
	sub	x8, x29, #104
	add	x19, x8, #8
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x25
	bl	_LzmaDecodeProperties
Lloh31:
	adrp	x8, _LZMA_RESULT_OK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LZMA_RESULT_OK@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x19
	bl	_LzmaGetNumProbs
	lsl	w0, w0, #2
	bl	_malloc
	stur	x0, [x29, #-104]
	cbz	w21, LBB0_18
; %bb.16:
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
	ldr	w8, [x19]
	cmp	w21, w8
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	csel	x4, xzr, x8, gt
	b	LBB0_19
LBB0_17:
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	b	LBB0_9
LBB0_18:
	mov	x4, #0
	ldur	x19, [x29, #-128]               ; 8-byte Folded Reload
LBB0_19:
	cmp	w28, w20
	b.ne	LBB0_21
; %bb.20:
	mov	x1, #0
	b	LBB0_22
LBB0_21:
Lloh36:
	adrp	x8, _rpos@GOTPAGE
Lloh37:
	ldr	x8, [x8, _rpos@GOTPAGEOFF]
Lloh38:
	ldrsw	x8, [x8]
	ldur	w9, [x29, #-132]                ; 4-byte Folded Reload
	add	w9, w8, w9
	cmp	w9, w20
	add	x8, x23, x8
	csel	x1, xzr, x8, gt
LBB0_22:
	cbz	x0, LBB0_27
; %bb.23:
	cbnz	x4, LBB0_25
; %bb.24:
	cbnz	w21, LBB0_27
LBB0_25:
	cbnz	x1, LBB0_28
; %bb.26:
	cmp	w28, w20
	b.eq	LBB0_28
LBB0_27:
	bl	_free
Lloh39:
	adrp	x8, _kCantAllocateMessage@GOTPAGE
Lloh40:
	ldr	x8, [x8, _kCantAllocateMessage@GOTPAGEOFF]
	b	LBB0_8
LBB0_28:
	sub	x0, x29, #104
	sub	x3, x29, #108
	sub	x6, x29, #112
	ldur	w2, [x29, #-132]                ; 4-byte Folded Reload
	mov	x5, x21
	bl	_LzmaDecode
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_30
; %bb.29:
	str	x0, [sp, #-16]!
Lloh41:
	adrp	x0, l_.str.5@PAGE
Lloh42:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	mov	w20, #1
	b	LBB0_31
LBB0_30:
	mov	w20, #0
	ldur	w8, [x29, #-112]
	str	w8, [x19]
LBB0_31:
	ldur	x19, [x29, #-120]               ; 8-byte Folded Reload
	ldur	x0, [x29, #-104]
	bl	_free
	b	LBB0_10
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_PROPERTIES_SIZE,4,2       ; @LZMA_PROPERTIES_SIZE
	.comm	_rpos,4,2                       ; @rpos
	.comm	_dpos,8,3                       ; @dpos
	.comm	_LZMA_RESULT_DATA_ERROR,4,2     ; @LZMA_RESULT_DATA_ERROR
	.comm	_kCantReadMessage,8,3           ; @kCantReadMessage
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Stream with EOS marker is not supported"

l_.str.3:                               ; @.str.3
	.asciz	"Too big uncompressed stream"

	.comm	_LZMA_RESULT_OK,8,3             ; @LZMA_RESULT_OK
l_.str.4:                               ; @.str.4
	.asciz	"Incorrect stream properties"

	.comm	_kCantAllocateMessage,8,3       ; @kCantAllocateMessage
l_.str.5:                               ; @.str.5
	.asciz	"\nDecoding error = %d\n"

.subsections_via_symbols
