	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XzEnc_Encode                   ## -- Begin function XzEnc_Encode
	.p2align	4, 0x90
_XzEnc_Encode:                          ## @XzEnc_Encode
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movabsq	$4611686018427387904, %rbx      ## imm = 0x4000000000000000
	addq	$8, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_XzEncIndex_Init
	movq	128(%r14), %rsi
	movq	_XZ_PROPS__BLOCK_SIZE__SOLID@GOTPCREL(%rip), %r12
	movl	$1, %r15d
	cmpq	(%r12), %rsi
	je	LBB0_6
## %bb.1:
	movq	136(%r14), %rcx
	cmpq	$-1, %rcx
	je	LBB0_6
## %bb.2:
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_5
LBB0_3:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	movq	%rax, %rdx
	imulq	%rsi, %rdx
	xorl	%r15d, %r15d
	cmpq	%rcx, %rdx
	setne	%r15b
	addq	%rax, %r15
	movq	%rsi, %rbx
LBB0_6:
	movq	%rbx, %rdi
	callq	_XZ_GET_ESTIMATED_BLOCK_TOTAL_PACK_SIZE
	movl	12(%r14), %r8d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_XzEncIndex_PreAlloc
	movl	%eax, %edi
	callq	_RINOK
	movl	160(%r14), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_Xz_WriteHeader
	movl	%eax, %edi
	callq	_RINOK
	cmpl	$2, 144(%r14)
	jl	LBB0_17
## %bb.7:
	cmpq	$0, 184(%r14)
	jne	LBB0_9
## %bb.8:
	movq	_True@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 184(%r14)
	leaq	40(%r14), %rdi
	callq	_MtCoder_Construct
LBB0_9:
	movq	_XzEnc_MtCallback_Code@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -156(%rbp)
	movq	_XzEnc_MtCallback_Write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -160(%rbp)
	movq	160(%r14), %rax
	movq	%rax, 176(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 120(%r14)
	movl	24(%r14), %eax
	movl	%eax, 104(%r14)
	movq	%r13, 96(%r14)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 88(%r14)
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 72(%r14)
	leaq	-160(%rbp), %rax
	movq	%rax, 64(%r14)
	movq	%r14, 56(%r14)
	movq	128(%r14), %rdi
	movq	_SZ_ERROR_FAIL@GOTPCREL(%rip), %rax
	cmpq	(%r12), %rdi
	je	LBB0_13
## %bb.10:
	movq	_XZ_PROPS__BLOCK_SIZE__AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	je	LBB0_13
## %bb.11:
	leaq	40(%r14), %rbx
	movq	%rdi, (%rbx)
	movq	_XZ_BLOCK_HEADER_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	callq	_XZ_GET_MAX_BLOCK_PACK_SIZE
	movq	%rax, %r15
	addq	%r12, %r15
	cmpq	(%rbx), %r15
	jae	LBB0_14
## %bb.12:
	movq	_SZ_ERROR_PARAM@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	jmp	LBB0_37
LBB0_17:
	leaq	128(%r14), %rcx
	movq	_CompressProgress_XzEncOffset_Progress@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -144(%rbp)
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -160(%rbp)
	movq	%r13, -136(%rbp)
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rdi
	cmpq	(%r12), %rdi
	je	LBB0_18
## %bb.19:
	cmpq	$0, 152(%r14)
	jle	LBB0_18
## %bb.20:
	callq	_XZ_GET_MAX_BLOCK_PACK_SIZE
	movq	%rax, %r12
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %r12
	jae	LBB0_23
## %bb.21:
	movq	_SZ_ERROR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_37
LBB0_18:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_29:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-144(%rbp), %rax
	testq	%r13, %r13
	cmoveq	%r13, %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	-128(%rbp), %rdx
	movq	-120(%rbp), %rsi
	movl	12(%r14), %ecx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_XzEncIndex_AddIndexRecord
	movl	%eax, %edi
	callq	_RINOK
	movq	%r12, %xmm0
	movq	-120(%rbp), %xmm1               ## xmm1 = mem[0],zero
	punpcklqdq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0]
	paddq	-160(%rbp), %xmm0
	movdqa	%xmm0, -160(%rbp)
	cmpl	$0, -84(%rbp)
	movq	%r15, %r12
	jne	LBB0_36
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, -112(%rbp)
	cmpb	$0, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	16(%r14), %rax
	movq	(%rax), %rdx
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_30 Depth=1
	xorl	%edx, %edx
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	32(%r14), %rdi
	movl	12(%r14), %eax
	movl	24(%r14), %ebx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, %r15
	movq	%r12, %r8
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	pushq	%rbx
	pushq	%rax
	leaq	-128(%rbp), %rax
	pushq	%rax
	leaq	-84(%rbp), %rax
	pushq	%rax
	pushq	-168(%rbp)                      ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	pushq	$0
	callq	_Xz_CompressBlock
	addq	$64, %rsp
	movl	%eax, %edi
	callq	_RINOK
	movq	-128(%rbp), %r13
	movq	%r13, %rdi
	callq	_XZ_GET_PAD_SIZE
	movq	%rax, %r12
	addq	%r13, %r12
	cmpb	$0, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_30 Depth=1
	movq	16(%r14), %rax
	movq	(%rax), %rsi
	movq	-112(%rbp), %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_WriteBytes
	movl	%eax, %edi
	callq	_RINOK
	movq	%r12, %rdx
	subq	-112(%rbp), %rdx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_WriteBytes
	movl	%eax, %edi
	callq	_RINOK
	jmp	LBB0_35
LBB0_14:
	cmpq	%r15, (%r14)
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_XzEnc_FreeOutBufs
LBB0_16:
	movq	%r15, (%r14)
	movl	112(%r14), %eax
	movl	168(%r14), %ecx
	movl	%ecx, 52(%r14)
	movl	%eax, 48(%r14)
	movq	%rbx, %rdi
	callq	_MtCoder_Code
	movl	%eax, %edi
	callq	_RINOK
LBB0_36:
	movl	160(%r14), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_XzEncIndex_WriteFooter
LBB0_37:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_XZ_BLOCK_HEADER_SIZE_MAX@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	leaq	(%rcx,%r12), %rbx
	movq	16(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	cmpq	(%r14), %rbx
	je	LBB0_28
LBB0_25:
	movq	%r14, %rdi
	callq	_XzEnc_FreeOutBufs
	movl	12(%r14), %edi
	movq	%rbx, %rsi
	callq	_ISzAlloc_Alloc
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movq	16(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	movq	%rbx, (%r14)
	movq	(%r15), %rcx
LBB0_28:
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movb	$1, %al
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_26:
	movq	_SZ_ERROR_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.comm	_XZ_PROPS__BLOCK_SIZE__SOLID,8,3 ## @XZ_PROPS__BLOCK_SIZE__SOLID
	.comm	_True,8,3                       ## @True
	.comm	_XzEnc_MtCallback_Code,4,2      ## @XzEnc_MtCallback_Code
	.comm	_XzEnc_MtCallback_Write,4,2     ## @XzEnc_MtCallback_Write
	.comm	_XZ_PROPS__BLOCK_SIZE__AUTO,8,3 ## @XZ_PROPS__BLOCK_SIZE__AUTO
	.comm	_SZ_ERROR_FAIL,4,2              ## @SZ_ERROR_FAIL
	.comm	_SZ_ERROR_PARAM,4,2             ## @SZ_ERROR_PARAM
	.comm	_XZ_BLOCK_HEADER_SIZE_MAX,8,3   ## @XZ_BLOCK_HEADER_SIZE_MAX
	.comm	_CompressProgress_XzEncOffset_Progress,4,2 ## @CompressProgress_XzEncOffset_Progress
	.comm	_SZ_ERROR_MEM,4,2               ## @SZ_ERROR_MEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XzEnc_Encode                   ; -- Begin function XzEnc_Encode
	.p2align	2
_XzEnc_Encode:                          ; @XzEnc_Encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	mov	x23, x3
	mov	x22, x2
	str	x1, [sp, #56]                   ; 8-byte Folded Spill
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_XzEncIndex_Init
	mov	x27, x21
	ldr	x24, [x27, #128]!
Lloh0:
	adrp	x26, _XZ_PROPS__BLOCK_SIZE__SOLID@GOTPAGE
Lloh1:
	ldr	x26, [x26, _XZ_PROPS__BLOCK_SIZE__SOLID@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x24, x8
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x21, #136]
	cmn	x8, #1
	b.eq	LBB0_3
; %bb.2:
	sdiv	x9, x8, x24
	mul	x10, x9, x24
	cmp	x10, x8
	cinc	x25, x9, ne
	b	LBB0_4
LBB0_3:
	mov	x24, #4611686018427387904
	mov	w25, #1
LBB0_4:
	mov	x0, x24
	bl	_XZ_GET_ESTIMATED_BLOCK_TOTAL_PACK_SIZE
	mov	x3, x0
	ldr	w4, [x21, #12]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	bl	_XzEncIndex_PreAlloc
	bl	_RINOK
	ldr	w0, [x21, #160]
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
	bl	_Xz_WriteHeader
	bl	_RINOK
	ldr	w8, [x21, #144]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.5:
	ldr	x8, [x21, #184]
	cbnz	x8, LBB0_7
; %bb.6:
Lloh2:
	adrp	x8, _True@GOTPAGE
Lloh3:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x21, #184]
	add	x0, x21, #40
	bl	_MtCoder_Construct
LBB0_7:
Lloh5:
	adrp	x8, _XzEnc_MtCallback_Code@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XzEnc_MtCallback_Code@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _XzEnc_MtCallback_Write@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XzEnc_MtCallback_Write@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #96]
	ldr	x8, [x21, #160]
	str	x8, [x21, #176]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	str	x8, [x21, #120]
	ldr	w8, [x21, #24]
	str	w8, [x21, #104]
	stp	x22, x23, [x21, #88]
	stp	xzr, xzr, [x21, #72]
	add	x8, sp, #96
	stp	x21, x8, [x21, #56]
	ldr	x0, [x21, #128]
	ldr	x9, [x26]
Lloh11:
	adrp	x8, _SZ_ERROR_FAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SZ_ERROR_FAIL@GOTPAGEOFF]
	cmp	x0, x9
	b.eq	LBB0_11
; %bb.8:
Lloh13:
	adrp	x9, _XZ_PROPS__BLOCK_SIZE__AUTO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XZ_PROPS__BLOCK_SIZE__AUTO@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x0, x9
	b.eq	LBB0_11
; %bb.9:
	add	x22, x21, #40
	str	x0, [x22]
Lloh16:
	adrp	x8, _XZ_BLOCK_HEADER_SIZE_MAX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XZ_BLOCK_HEADER_SIZE_MAX@GOTPAGEOFF]
Lloh18:
	ldr	x19, [x8]
	bl	_XZ_GET_MAX_BLOCK_PACK_SIZE
	ldr	x8, [x22]
	add	x19, x0, x19
	cmp	x19, x8
	b.hs	LBB0_23
; %bb.10:
Lloh19:
	adrp	x8, _SZ_ERROR_PARAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SZ_ERROR_PARAM@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	b	LBB0_27
LBB0_12:
Lloh21:
	adrp	x8, _CompressProgress_XzEncOffset_Progress@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CompressProgress_XzEncOffset_Progress@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #112]
	stp	xzr, xzr, [sp, #96]
	str	x23, [sp, #120]
	ldr	x0, [x27]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.13:
	ldr	x8, [x21, #152]
	cmp	x8, #1
	b.lt	LBB0_16
; %bb.14:
	bl	_XZ_GET_MAX_BLOCK_PACK_SIZE
	ldr	x8, [x27]
	cmp	x0, x8
	b.hs	LBB0_28
; %bb.15:
Lloh24:
	adrp	x8, _SZ_ERROR_PARAM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SZ_ERROR_PARAM@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	b	LBB0_27
LBB0_16:
	mov	x24, #0
	mov	x25, #0
	mov	w28, #0
	ldr	x26, [sp, #56]                  ; 8-byte Folded Reload
LBB0_17:
	add	x8, sp, #96
	add	x8, x8, #16
	cmp	x23, #0
	csel	x19, xzr, x8, eq
	str	x21, [sp, #48]                  ; 8-byte Folded Spill
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldp	x2, x1, [sp, #72]
	ldr	w3, [x21, #12]
	mov	x0, x20
	bl	_XzEncIndex_AddIndexRecord
	bl	_RINOK
	ldr	x8, [sp, #80]
	ldp	x10, x9, [sp, #96]
	add	x8, x9, x8
	add	x9, x10, x23
	stp	x9, x8, [sp, #96]
	ldr	w8, [sp, #68]
	cbnz	w8, LBB0_26
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x2, #0
	str	xzr, [sp, #88]
	cbz	w28, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x21, #16]
	ldr	x2, [x8]
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x0, [x21, #32]
	ldr	w8, [x21, #12]
	ldr	w9, [x21, #24]
	stp	w8, w9, [sp, #32]
	add	x8, sp, #72
	str	x8, [sp, #24]
	add	x8, sp, #68
	stp	x19, x8, [sp, #8]
	str	x27, [sp]
	mov	x1, x26
	mov	x3, x25
	mov	x4, x24
	mov	x5, x22
	mov	x6, #0
	mov	w7, #0
	bl	_Xz_CompressBlock
	bl	_RINOK
	ldr	x23, [sp, #72]
	mov	x0, x23
	bl	_XZ_GET_PAD_SIZE
	add	x23, x0, x23
	cbz	w28, LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x21, #16]
	ldr	x1, [x8]
	ldr	x2, [sp, #88]
	mov	x21, x28
	mov	x28, x25
	mov	x25, x19
	mov	x19, x26
	mov	x26, x24
	mov	x24, x27
	mov	x27, x22
	mov	x22, x20
	ldr	x20, [sp, #56]                  ; 8-byte Folded Reload
	mov	x0, x20
	bl	_WriteBytes
	bl	_RINOK
	ldr	x8, [sp, #88]
	sub	x2, x23, x8
	mov	x0, x20
	mov	x20, x22
	mov	x22, x27
	mov	x27, x24
	mov	x24, x26
	mov	x26, x19
	mov	x19, x25
	mov	x25, x28
	mov	x28, x21
	ldr	x21, [sp, #48]                  ; 8-byte Folded Reload
	mov	x1, x25
	bl	_WriteBytes
	bl	_RINOK
	b	LBB0_18
LBB0_23:
	ldr	x8, [x21]
	cmp	x8, x19
	b.eq	LBB0_25
; %bb.24:
	mov	x0, x21
	bl	_XzEnc_FreeOutBufs
LBB0_25:
	str	x19, [x21]
	ldr	w8, [x21, #168]
	ldr	w9, [x21, #112]
	stp	w9, w8, [x21, #48]
	mov	x0, x22
	bl	_MtCoder_Code
	bl	_RINOK
LBB0_26:
	ldr	w1, [x21, #160]
	mov	x0, x20
	ldr	x2, [sp, #56]                   ; 8-byte Folded Reload
	bl	_XzEncIndex_WriteFooter
LBB0_27:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_28:
	mov	x24, x0
Lloh27:
	adrp	x19, _XZ_BLOCK_HEADER_SIZE_MAX@GOTPAGE
Lloh28:
	ldr	x19, [x19, _XZ_BLOCK_HEADER_SIZE_MAX@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x25, x9, x0
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_30
; %bb.29:
	ldr	x10, [x21]
	cmp	x25, x10
	b.eq	LBB0_32
LBB0_30:
	mov	x0, x21
	bl	_XzEnc_FreeOutBufs
	ldr	w0, [x21, #12]
	mov	x1, x25
	bl	_ISzAlloc_Alloc
	ldr	x8, [x21, #16]
	str	x0, [x8]
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_33
; %bb.31:
	str	x25, [x21]
	ldr	x9, [x19]
LBB0_32:
	mov	x26, #0
	add	x25, x8, x9, lsl #2
	mov	w28, #1
	b	LBB0_17
LBB0_33:
Lloh29:
	adrp	x8, _SZ_ERROR_MEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SZ_ERROR_MEM@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_XZ_PROPS__BLOCK_SIZE__SOLID,8,3 ; @XZ_PROPS__BLOCK_SIZE__SOLID
	.comm	_True,8,3                       ; @True
	.comm	_XzEnc_MtCallback_Code,4,2      ; @XzEnc_MtCallback_Code
	.comm	_XzEnc_MtCallback_Write,4,2     ; @XzEnc_MtCallback_Write
	.comm	_XZ_PROPS__BLOCK_SIZE__AUTO,8,3 ; @XZ_PROPS__BLOCK_SIZE__AUTO
	.comm	_SZ_ERROR_FAIL,4,2              ; @SZ_ERROR_FAIL
	.comm	_SZ_ERROR_PARAM,4,2             ; @SZ_ERROR_PARAM
	.comm	_XZ_BLOCK_HEADER_SIZE_MAX,8,3   ; @XZ_BLOCK_HEADER_SIZE_MAX
	.comm	_CompressProgress_XzEncOffset_Progress,4,2 ; @CompressProgress_XzEncOffset_Progress
	.comm	_SZ_ERROR_MEM,4,2               ; @SZ_ERROR_MEM
.subsections_via_symbols
