	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function block_buffer_encode
_block_buffer_encode:                   ## @block_buffer_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rcx, %r12
	movq	%rdx, %r13
	testq	%rdx, %rdx
	sete	%al
	testq	%rcx, %rcx
	setne	%cl
	testb	%cl, %al
	jne	LBB0_5
## %bb.2:
	testq	%r8, %r8
	je	LBB0_5
## %bb.3:
	movq	%r9, %r15
	testq	%r9, %r9
	je	LBB0_5
## %bb.4:
	movq	16(%rbp), %rax
	cmpq	%rax, (%r15)
	jbe	LBB0_6
LBB0_5:
	movq	_LZMA_PROG_ERROR@GOTPCREL(%rip), %rax
LBB0_29:
	movq	(%rax), %rax
LBB0_30:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rdi, %rbx
	cmpl	$2, (%rdi)
	jl	LBB0_8
## %bb.7:
	movq	_LZMA_OPTIONS_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_8:
	movq	32(%rbx), %rdi
	movq	_LZMA_CHECK_ID_MAX@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jb	LBB0_5
## %bb.9:
	movq	%rsi, %r14
	cmpl	$0, 24(%rbp)
	je	LBB0_11
## %bb.10:
	cmpq	$0, 40(%rbx)
	je	LBB0_5
LBB0_11:
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	callq	_lzma_check_is_supported
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	(%r15), %eax
	movq	16(%rbp), %rdx
	movl	%edx, %ecx
	subl	%eax, %ecx
	andl	$3, %ecx
	subq	%rcx, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rdi
	callq	_lzma_check_size
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_UINT32_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_assert
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	(%r15), %rax
	cmpq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	jbe	LBB0_14
## %bb.15:
	movq	%r12, 8(%rbx)
	movq	%r12, %rdi
	callq	_lzma2_bound
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	_LZMA_BUF_ERROR@GOTPCREL(%rip), %rsi
	cmpl	$0, 24(%rbp)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_18
## %bb.19:
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_block_encode_normal
	movq	_LZMA_BUF_ERROR@GOTPCREL(%rip), %rsi
	jmp	LBB0_20
LBB0_12:
	movq	_LZMA_UNSUPPORTED_CHECK@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_14:
	movq	_LZMA_BUF_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_16:
	movq	_LZMA_DATA_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_18:
	movq	(%rsi), %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_20:
	movq	_LZMA_OK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_23
## %bb.21:
	cmpq	(%rsi), %rax
	jne	LBB0_30
## %bb.22:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_block_encode_uncompressed
	movl	%eax, %edi
	callq	_return_if_error
LBB0_23:
	xorl	%edi, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, (%r15)
	setbe	%dil
	callq	_assert
	movq	16(%rbx), %rcx
	testb	$3, %cl
	je	LBB0_26
## %bb.24:
	movq	(%r15), %rax
	incq	%rcx
	movq	%rcx, %r14
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	setb	%dil
	callq	_assert
	movq	(%r15), %rcx
	leaq	1(%rcx), %rax
	movq	%rax, (%r15)
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$0, (%rdx,%rcx,4)
	incq	%r14
	testb	$3, -80(%rbp)                   ## 1-byte Folded Reload
	movq	%r14, %rcx
	jne	LBB0_25
LBB0_26:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_28
## %bb.27:
	movq	32(%rbx), %rsi
	leaq	-48(%rbp), %rdi
	callq	_lzma_check_init
	movq	32(%rbx), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_lzma_check_update
	movq	32(%rbx), %rsi
	leaq	-48(%rbp), %rdi
	callq	_lzma_check_finish
	movq	24(%rbx), %rdi
	movl	-48(%rbp), %esi
	movq	%r14, %rdx
	callq	_memcpy
	movq	(%r15), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movl	-48(%rbp), %esi
	movq	%r14, %rdx
	callq	_memcpy
	addq	%r14, (%r15)
LBB0_28:
	movq	_LZMA_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_PROG_ERROR,8,3            ## @LZMA_PROG_ERROR
	.comm	_LZMA_OPTIONS_ERROR,8,3         ## @LZMA_OPTIONS_ERROR
	.comm	_LZMA_CHECK_ID_MAX,4,2          ## @LZMA_CHECK_ID_MAX
	.comm	_LZMA_UNSUPPORTED_CHECK,8,3     ## @LZMA_UNSUPPORTED_CHECK
	.comm	_UINT32_MAX,8,3                 ## @UINT32_MAX
	.comm	_LZMA_BUF_ERROR,8,3             ## @LZMA_BUF_ERROR
	.comm	_LZMA_DATA_ERROR,8,3            ## @LZMA_DATA_ERROR
	.comm	_LZMA_OK,8,3                    ## @LZMA_OK
	.no_dead_strip	_block_buffer_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function block_buffer_encode
_block_buffer_encode:                   ; @block_buffer_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x3
	mov	x23, x2
	cmp	x3, #0
	ccmp	x2, #0, #0, ne
	b.eq	LBB0_8
; %bb.2:
	mov	x20, x4
	cbz	x4, LBB0_8
; %bb.3:
	mov	x19, x5
	cbz	x5, LBB0_8
; %bb.4:
	mov	x24, x6
	ldr	x8, [x19]
	cmp	x8, x6
	b.hi	LBB0_8
; %bb.5:
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _LZMA_OPTIONS_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LZMA_OPTIONS_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldr	x0, [x21, #32]
Lloh2:
	adrp	x8, _LZMA_CHECK_ID_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LZMA_CHECK_ID_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w0
	b.hs	LBB0_11
LBB0_8:
Lloh5:
	adrp	x8, _LZMA_PROG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LZMA_PROG_ERROR@GOTPAGEOFF]
LBB0_9:
	ldr	x0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	mov	x26, x7
	mov	x27, x1
	cbz	w7, LBB0_13
; %bb.12:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_8
LBB0_13:
	bl	_lzma_check_is_supported
	cbz	w0, LBB0_18
; %bb.14:
	ldr	w8, [x19]
	sub	w8, w24, w8
	and	x8, x8, #0x3
	sub	x25, x24, x8
	ldr	x0, [x21, #32]
	bl	_lzma_check_size
	mov	x24, x0
Lloh7:
	adrp	x8, _UINT32_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UINT32_MAX@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
	sub	x8, x25, x8
	cmp	x8, x24
	b.ls	LBB0_19
; %bb.15:
	str	x22, [x21, #8]
	mov	x0, x22
	bl	_lzma2_bound
	str	x0, [x21, #16]
	cbz	x0, LBB0_20
; %bb.16:
	sub	x25, x25, x24
Lloh10:
	adrp	x28, _LZMA_BUF_ERROR@GOTPAGE
Lloh11:
	ldr	x28, [x28, _LZMA_BUF_ERROR@GOTPAGEOFF]
	cbz	w26, LBB0_21
; %bb.17:
	mov	x0, x21
	mov	x1, x27
	mov	x2, x23
	mov	x3, x22
	mov	x4, x20
	mov	x5, x19
	mov	x6, x25
	bl	_block_encode_normal
	b	LBB0_22
LBB0_18:
Lloh12:
	adrp	x8, _LZMA_UNSUPPORTED_CHECK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LZMA_UNSUPPORTED_CHECK@GOTPAGEOFF]
	b	LBB0_9
LBB0_19:
Lloh14:
	adrp	x8, _LZMA_BUF_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LZMA_BUF_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_20:
Lloh16:
	adrp	x8, _LZMA_DATA_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LZMA_DATA_ERROR@GOTPAGEOFF]
	b	LBB0_9
LBB0_21:
	ldr	x0, [x28]
LBB0_22:
Lloh18:
	adrp	x26, _LZMA_OK@GOTPAGE
Lloh19:
	ldr	x26, [x26, _LZMA_OK@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_25
; %bb.23:
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.24:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	mov	x5, x25
	bl	_block_encode_uncompressed
	bl	_return_if_error
LBB0_25:
	ldr	x8, [x19]
	cmp	x8, x25
	cset	w0, ls
	bl	_assert
	ldr	x27, [x21, #16]
	tst	x27, #0x3
	b.eq	LBB0_30
; %bb.26:
	ldr	x8, [x19]
	cmp	x8, x25
	cset	w0, lo
	bl	_assert
	ldr	x9, [x19]
	add	x8, x9, #1
	str	x8, [x19]
	str	wzr, [x20, x9, lsl #2]
	add	w9, w27, #1
	tst	x9, #0x3
	b.eq	LBB0_30
; %bb.27:
	cmp	x8, x25
	cset	w0, lo
	bl	_assert
	ldr	x9, [x19]
	add	x8, x9, #1
	str	x8, [x19]
	str	wzr, [x20, x9, lsl #2]
	add	w9, w27, #2
	tst	x9, #0x3
	b.eq	LBB0_30
; %bb.28:
	cmp	x8, x25
	cset	w0, lo
	bl	_assert
	ldr	x9, [x19]
	add	x8, x9, #1
	str	x8, [x19]
	str	wzr, [x20, x9, lsl #2]
	sub	w9, w27, #1
	tst	x9, #0x3
	b.eq	LBB0_30
; %bb.29:
	cmp	x8, x25
	cset	w0, lo
	bl	_assert
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	str	wzr, [x20, x8, lsl #2]
LBB0_30:
	cbz	x24, LBB0_32
; %bb.31:
	ldr	x1, [x21, #32]
	add	x0, sp, #8
	bl	_lzma_check_init
	ldr	x1, [x21, #32]
	add	x0, sp, #8
	mov	x2, x23
	mov	x3, x22
	bl	_lzma_check_update
	ldr	x1, [x21, #32]
	add	x0, sp, #8
	bl	_lzma_check_finish
	ldr	x0, [x21, #24]
	ldr	w1, [sp, #8]
	mov	x2, x24
	bl	_memcpy
	ldr	x8, [x19]
	add	x0, x20, x8, lsl #2
	ldr	w1, [sp, #8]
	mov	x2, x24
	bl	_memcpy
	ldr	x8, [x19]
	add	x8, x8, x24
	str	x8, [x19]
LBB0_32:
	ldr	x0, [x26]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_PROG_ERROR,8,3            ; @LZMA_PROG_ERROR
	.comm	_LZMA_OPTIONS_ERROR,8,3         ; @LZMA_OPTIONS_ERROR
	.comm	_LZMA_CHECK_ID_MAX,4,2          ; @LZMA_CHECK_ID_MAX
	.comm	_LZMA_UNSUPPORTED_CHECK,8,3     ; @LZMA_UNSUPPORTED_CHECK
	.comm	_UINT32_MAX,8,3                 ; @UINT32_MAX
	.comm	_LZMA_BUF_ERROR,8,3             ; @LZMA_BUF_ERROR
	.comm	_LZMA_DATA_ERROR,8,3            ; @LZMA_DATA_ERROR
	.comm	_LZMA_OK,8,3                    ; @LZMA_OK
	.no_dead_strip	_block_buffer_encode
.subsections_via_symbols
