	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Xz_Compress
_Xz_Compress:                           ## @Xz_Compress
	.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	$1128, %rsp                     ## imm = 0x468
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -1160(%rbp)                ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, -1152(%rbp)               ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%r8), %rax
	movq	%rax, (%rdi)
	movl	32(%rsi), %edi
	movl	8(%r8), %esi
	callq	_Lzma2Enc_SetProps
	movl	%eax, %edi
	callq	_RINOK
	movq	%rbx, -1080(%rbp)               ## 8-byte Spill
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_Xz_WriteHeader
	movl	%eax, %edi
	callq	_RINOK
	movq	(%r14), %r14
	leaq	-1144(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_XzBlock_ClearFlags
	xorl	%eax, %eax
	testq	%r14, %r14
	sete	%al
	movl	$2, %esi
	subl	%eax, %esi
	movq	%rbx, %rdi
	callq	_XzBlock_SetNumFilters
	testq	%r14, %r14
	movq	%r12, -1168(%rbp)               ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	-1128(%rbp), %r13
	movq	(%r14), %rax
	movq	%rax, (%r13)
	movl	$0, 8(%r13)
	movq	_XZ_ID_Delta@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movslq	8(%r14), %rax
	decq	%rax
	movq	16(%r13), %rcx
	movq	%rax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.5:
	movq	16(%r13), %rdi
	movl	12(%r14), %esi
	callq	_SetUi32
	movl	$4, %eax
LBB0_6:
	movl	%eax, 8(%r13)
LBB0_7:
	movl	$1, %eax
LBB0_8:
	movq	-1128(%rbp), %rbx
	movq	_XZ_ID_LZMA2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rax,2), %r12
	movq	%rcx, (%rbx,%r12,8)
	movl	$1, 8(%rbx,%r12,8)
	movl	32(%r15), %edi
	callq	_Lzma2Enc_WriteProperties
	movq	16(%rbx,%r12,8), %rcx
	movq	%rax, (%rcx)
	movq	_MyWrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-1112(%rbp), %rsi
	movl	%eax, -1112(%rbp)
	movq	-1168(%rbp), %r12               ## 8-byte Reload
	movq	%r12, -1104(%rbp)
	movq	$0, -1120(%rbp)
	leaq	-1144(%rbp), %rdi
	callq	_XzBlock_WriteHeader
	movl	%eax, %edi
	callq	_RINOK
	movq	_SeqCheckInStream_Read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1092(%rbp)
	movq	-1152(%rbp), %rax               ## 8-byte Reload
	movq	%rax, -1088(%rbp)
	movq	-1080(%rbp), %rax               ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_XzFlags_GetCheckType
	leaq	-1096(%rbp), %rdi
	movl	%eax, %esi
	callq	_SeqCheckInStream_Init
	leaq	-1092(%rbp), %rbx
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	%rbx, 8(%r15)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_SeqInFilter_Init
	movl	%eax, %edi
	callq	_RINOK
LBB0_10:
	testq	%r14, %r14
	movq	-1120(%rbp), %r14
	movl	32(%r15), %edi
	cmovneq	%r15, %rbx
	leaq	-1112(%rbp), %r15
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	-1160(%rbp), %rcx               ## 8-byte Reload
	callq	_Lzma2Enc_Encode
	movl	%eax, %edi
	callq	_RINOK
	movl	-1096(%rbp), %eax
	movl	%eax, -1144(%rbp)
	movq	-1120(%rbp), %rbx
	movq	%rbx, %rax
	subq	%r14, %rax
	movq	%rax, -1136(%rbp)
	testb	$3, %al
	je	LBB0_11
## %bb.12:
	movl	%ebx, %eax
	notl	%eax
	movl	%r14d, %ecx
	addl	%eax, %ecx
	andl	$3, %ecx
	leaq	8(,%rcx,8), %rsi
	leaq	-1072(%rbp), %rdi
	callq	___bzero
	subb	%bl, %r14b
	andb	$3, %r14b
	cmpb	$1, %r14b
	je	LBB0_13
## %bb.14:
	cmpb	$2, %r14b
	je	LBB0_17
## %bb.15:
	cmpb	$3, %r14b
	jne	LBB0_16
## %bb.18:
	movl	$3, %r14d
	jmp	LBB0_19
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_13:
	movl	$1, %r14d
	jmp	LBB0_19
LBB0_17:
	movl	$2, %r14d
	jmp	LBB0_19
LBB0_16:
	movl	$4, %r14d
LBB0_19:
	leaq	-1072(,%r14,8), %rsi
	addq	%rbp, %rsi
	leaq	-1096(%rbp), %rdi
	callq	_SeqCheckInStream_GetDigest
	movq	-1080(%rbp), %rbx               ## 8-byte Reload
	movq	(%rbx), %rdi
	callq	_XzFlags_GetCheckSize
	leaq	(%rax,%r14), %rdx
	leaq	-1072(%rbp), %rsi
	movq	%r15, %rdi
	callq	_WriteBytes
	movl	%eax, %edi
	callq	_RINOK
	movl	-1144(%rbp), %esi
	movq	-1120(%rbp), %rdx
	subq	%r14, %rdx
	movq	_g_Alloc@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	callq	_Xz_AddIndexRecord
	movl	%eax, %edi
	callq	_RINOK
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_Xz_WriteFooter
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	addq	$1128, %rsp                     ## imm = 0x468
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XZ_ID_Delta,8,3                ## @XZ_ID_Delta
	.comm	_XZ_ID_LZMA2,8,3                ## @XZ_ID_LZMA2
	.comm	_MyWrite,4,2                    ## @MyWrite
	.comm	_SeqCheckInStream_Read,4,2      ## @SeqCheckInStream_Read
	.comm	_g_Alloc,4,2                    ## @g_Alloc
	.comm	_XZ_ID_Subblock,8,3             ## @XZ_ID_Subblock
	.no_dead_strip	_Xz_Compress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Xz_Compress
_Xz_Compress:                           ; @Xz_Compress
	.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, #1104
	mov	x21, x5
	mov	x24, x4
	mov	x23, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x4, #16]
	str	x8, [x0]
	ldr	w0, [x1, #32]
	ldr	w1, [x4, #8]
	bl	_Lzma2Enc_SetProps
	bl	_RINOK
	ldr	x0, [x20]
	mov	x1, x19
	bl	_Xz_WriteHeader
	bl	_RINOK
	ldr	x26, [x24]
	add	x0, sp, #8
	bl	_XzBlock_ClearFlags
	cmp	x26, #0
	mov	w24, #1
	cinc	w1, w24, ne
	add	x0, sp, #8
	bl	_XzBlock_SetNumFilters
	cbz	x26, LBB0_3
; %bb.1:
	ldr	x25, [sp, #24]
	ldr	x8, [x26]
	str	x8, [x25]
	str	wzr, [x25, #8]
Lloh3:
	adrp	x9, _XZ_ID_Delta@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XZ_ID_Delta@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldrsw	x8, [x26, #8]
	sub	x8, x8, #1
	ldr	x9, [x25, #16]
	str	x8, [x9]
	mov	w8, #1
	b	LBB0_6
LBB0_3:
	mov	x25, #0
	mov	x8, #0
	b	LBB0_8
LBB0_4:
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x0, [x25, #16]
	ldr	w1, [x26, #12]
	bl	_SetUi32
	mov	w8, #4
LBB0_6:
	str	w8, [x25, #8]
LBB0_7:
	mov	w8, #1
LBB0_8:
	ldr	x9, [sp, #24]
Lloh6:
	adrp	x10, _XZ_ID_LZMA2@GOTPAGE
Lloh7:
	ldr	x10, [x10, _XZ_ID_LZMA2@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	mov	w11, #24
	madd	x27, x8, x11, x9
	str	x10, [x27]
	str	w24, [x27, #8]
	ldr	w0, [x22, #32]
	bl	_Lzma2Enc_WriteProperties
	ldr	x8, [x27, #16]
	str	x0, [x8]
Lloh9:
	adrp	x8, _MyWrite@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MyWrite@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	x9, sp, #32
	add	x24, x9, #8
	str	w8, [sp, #40]
	str	x19, [sp, #48]
	str	xzr, [sp, #32]
	add	x0, sp, #8
	mov	x1, x24
	bl	_XzBlock_WriteHeader
	bl	_RINOK
Lloh12:
	adrp	x8, _SeqCheckInStream_Read@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SeqCheckInStream_Read@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	x9, sp, #56
	orr	x27, x9, #0x4
	str	w8, [sp, #60]
	str	x23, [sp, #64]
	ldr	x0, [x20]
	bl	_XzFlags_GetCheckType
	mov	x1, x0
	add	x0, sp, #56
	bl	_SeqCheckInStream_Init
	cbz	x26, LBB0_10
; %bb.9:
	str	x27, [x22, #8]
	mov	x0, x22
	mov	x1, x25
	bl	_SeqInFilter_Init
	bl	_RINOK
LBB0_10:
	ldr	x23, [sp, #32]
	ldr	w0, [x22, #32]
	cmp	x26, #0
	csel	x2, x27, x22, eq
	mov	x1, x24
	mov	x3, x21
	bl	_Lzma2Enc_Encode
	bl	_RINOK
	ldr	w8, [sp, #56]
	str	w8, [sp, #8]
	ldr	x8, [sp, #32]
	sub	x9, x8, x23
	str	x9, [sp, #16]
	tst	x9, #0x3
	b.eq	LBB0_12
; %bb.11:
	mvn	w8, w8
	add	w8, w23, w8
	and	x21, x8, #0x3
	lsl	x8, x21, #3
	add	x1, x8, #8
	add	x0, sp, #72
	bl	_bzero
	add	x21, x21, #1
	b	LBB0_13
LBB0_12:
	mov	x21, #0
LBB0_13:
	add	x8, sp, #72
	add	x1, x8, x21, lsl #3
	add	x0, sp, #56
	bl	_SeqCheckInStream_GetDigest
	ldr	x0, [x20]
	bl	_XzFlags_GetCheckSize
	add	x2, x0, x21
	add	x1, sp, #72
	mov	x0, x24
	bl	_WriteBytes
	bl	_RINOK
	ldr	w1, [sp, #8]
	ldr	x8, [sp, #32]
	sub	x2, x8, x21
Lloh15:
	adrp	x3, _g_Alloc@GOTPAGE
Lloh16:
	ldr	x3, [x3, _g_Alloc@GOTPAGEOFF]
	mov	x0, x20
	bl	_Xz_AddIndexRecord
	bl	_RINOK
	mov	x0, x20
	mov	x1, x19
	bl	_Xz_WriteFooter
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #1104
	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_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_XZ_ID_Delta,8,3                ; @XZ_ID_Delta
	.comm	_XZ_ID_LZMA2,8,3                ; @XZ_ID_LZMA2
	.comm	_MyWrite,4,2                    ; @MyWrite
	.comm	_SeqCheckInStream_Read,4,2      ; @SeqCheckInStream_Read
	.comm	_g_Alloc,4,2                    ; @g_Alloc
	.comm	_XZ_ID_Subblock,8,3             ; @XZ_ID_Subblock
	.no_dead_strip	_Xz_Compress
.subsections_via_symbols
