	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lzma_codec_init                ## -- Begin function lzma_codec_init
	.p2align	4, 0x90
_lzma_codec_init:                       ## @lzma_codec_init
	.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
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LZMA_PROPS_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	shlq	$2, %r12
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_LzmaDec_Construct
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_LzmaEncProps_Init
	movl	$9, -56(%rbp)
	movl	%r13d, -52(%rbp)
	movq	%rbx, %rdi
	callq	_LzmaEncProps_Normalize
	leaq	4(%r15), %r13
	movq	%r13, -96(%rbp)
	movq	%r13, %rdi
	callq	_lzma_allocator_init
	movq	%r13, %rdi
	callq	_LzmaEnc_Create
	movq	_CHDERR_DECOMPRESSION_ERROR@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movl	%eax, %ebx
	leaq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	_LzmaEnc_SetProps
	movq	_SZ_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	%r12, -88(%rbp)
	leaq	-88(%rbp), %rdx
	movl	%ebx, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_LzmaEnc_WriteProperties
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_SZ_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	%r13, %rdx
	callq	_LzmaEnc_Destroy
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.4:
	movq	_LZMA_PROPS_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_LzmaDec_Allocate
	movq	_SZ_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_CHDERR_NONE@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_2:
	leaq	-96(%rbp), %rdx
	movl	%ebx, %edi
	movq	%rdx, %rsi
	callq	_LzmaEnc_Destroy
LBB0_7:
	movl	(%r14), %eax
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CHDERR_DECOMPRESSION_ERROR@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_PROPS_SIZE,4,2            ## @LZMA_PROPS_SIZE
	.comm	_CHDERR_DECOMPRESSION_ERROR,4,2 ## @CHDERR_DECOMPRESSION_ERROR
	.comm	_SZ_OK,8,3                      ## @SZ_OK
	.comm	_CHDERR_NONE,4,2                ## @CHDERR_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lzma_codec_init                ; -- Begin function lzma_codec_init
	.p2align	2
_lzma_codec_init:                       ; @lzma_codec_init
	.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, #32
	mov	x21, x1
	mov	x19, x0
	mov	x24, 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	x25, _LZMA_PROPS_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _LZMA_PROPS_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x22, x8, #2
	mov	x9, x22
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x7fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	bl	_LzmaDec_Construct
	sub	x0, x29, #96
	bl	_LzmaEncProps_Init
	mov	w8, #9
	stp	w8, w21, [x29, #-96]
	sub	x0, x29, #96
	bl	_LzmaEncProps_Normalize
	add	x21, x19, #4
	stur	x21, [x29, #-104]
	mov	x0, x21
	bl	_lzma_allocator_init
	mov	x0, x21
	bl	_LzmaEnc_Create
	cbz	w0, LBB0_5
; %bb.1:
	mov	x23, x0
	sub	x1, x29, #96
	bl	_LzmaEnc_SetProps
Lloh7:
	adrp	x26, _SZ_OK@GOTPAGE
Lloh8:
	ldr	x26, [x26, _SZ_OK@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	stur	x22, [x29, #-112]
	sub	x2, x29, #112
	mov	x0, x23
	mov	x1, x20
	bl	_LzmaEnc_WriteProperties
	mov	x22, x0
	ldr	x27, [x26]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x21
	bl	_LzmaEnc_Destroy
Lloh9:
	adrp	x23, _CHDERR_DECOMPRESSION_ERROR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CHDERR_DECOMPRESSION_ERROR@GOTPAGEOFF]
	cmp	x22, x27
	b.ne	LBB0_6
; %bb.3:
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x21
	bl	_LzmaDec_Allocate
	ldr	x8, [x26]
Lloh11:
	adrp	x9, _CHDERR_NONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CHDERR_NONE@GOTPAGEOFF]
	cmp	x0, x8
	csel	x23, x9, x23, eq
	b	LBB0_6
LBB0_4:
	sub	x1, x29, #104
	sub	x2, x29, #104
	mov	x0, x23
	bl	_LzmaEnc_Destroy
LBB0_5:
Lloh13:
	adrp	x23, _CHDERR_DECOMPRESSION_ERROR@GOTPAGE
Lloh14:
	ldr	x23, [x23, _CHDERR_DECOMPRESSION_ERROR@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x23]
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_PROPS_SIZE,4,2            ; @LZMA_PROPS_SIZE
	.comm	_CHDERR_DECOMPRESSION_ERROR,4,2 ; @CHDERR_DECOMPRESSION_ERROR
	.comm	_SZ_OK,8,3                      ; @SZ_OK
	.comm	_CHDERR_NONE,4,2                ; @CHDERR_NONE
.subsections_via_symbols
