	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function block_encode_normal
_block_encode_normal:                   ## @block_encode_normal
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	movq	16(%rbp), %r15
	callq	_lzma_block_header_size
	movl	%eax, %edi
	callq	_return_if_error
	movq	%r15, %rax
	movq	(%rbx), %rcx
	subq	%rcx, %rax
	movq	(%r12), %r15
	cmpq	%r15, %rax
	jbe	LBB0_1
## %bb.2:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	addq	%rcx, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, (%rbx)
	movq	8(%r12), %r13
	movq	_LZMA_NEXT_CODER_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -80(%rbp)
	movl	16(%r12), %edx
	leaq	-80(%rbp), %rdi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_lzma_raw_encoder_init
	movq	%rax, %r14
	movq	_LZMA_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_4
## %bb.3:
	movq	16(%rbp), %rcx
	movq	%rcx, %rax
	subq	%r15, %rax
	addq	%r13, %r15
	cmpq	%r13, %rax
	cmovbeq	%rcx, %r15
	movq	$0, -112(%rbp)
	movl	-72(%rbp), %edi
	movq	_LZMA_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-112(%rbp), %rcx
	movq	%rbx, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	pushq	%r15
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	*-80(%rbp)
	addq	$32, %rsp
	movq	%rax, %r14
LBB0_4:
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_lzma_next_end
	movq	_LZMA_STREAM_END@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_7
## %bb.5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %rcx
	subq	%rcx, %rax
	movq	%rax, 8(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rdx,4), %rsi
	movq	%r12, %rdi
	callq	_lzma_block_header_encode
	movq	%rax, %r14
	movq	_LZMA_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	je	LBB0_10
## %bb.6:
	movq	_LZMA_PROG_ERROR@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_1:
	movq	_LZMA_BUF_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_12
LBB0_7:
	movq	_LZMA_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r14
	jne	LBB0_10
## %bb.8:
	movq	_LZMA_BUF_ERROR@GOTPCREL(%rip), %rcx
LBB0_9:
	movq	(%rcx), %r14
LBB0_10:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, %r14
	je	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, (%rax)
LBB0_12:
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LZMA_BUF_ERROR,8,3             ## @LZMA_BUF_ERROR
	.comm	_LZMA_NEXT_CODER_INIT,16,3      ## @LZMA_NEXT_CODER_INIT
	.comm	_LZMA_OK,8,3                    ## @LZMA_OK
	.comm	_LZMA_FINISH,4,2                ## @LZMA_FINISH
	.comm	_LZMA_STREAM_END,8,3            ## @LZMA_STREAM_END
	.comm	_LZMA_PROG_ERROR,8,3            ## @LZMA_PROG_ERROR
	.no_dead_strip	_block_encode_normal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function block_encode_normal
_block_encode_normal:                   ; @block_encode_normal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x25, x6
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x21, x0
	bl	_lzma_block_header_size
	bl	_return_if_error
	ldr	x27, [x19]
	ldr	x8, [x21]
	sub	x9, x25, x27
	cmp	x9, x8
	b.ls	LBB0_5
; %bb.1:
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	add	x28, x8, x27
	str	x28, [x19]
	ldr	x20, [x21, #8]
Lloh0:
	adrp	x8, _LZMA_NEXT_CODER_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LZMA_NEXT_CODER_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #32]
	ldr	w2, [x21, #16]
	add	x0, sp, #32
	mov	x1, x22
	bl	_lzma_raw_encoder_init
	mov	x26, x0
Lloh3:
	adrp	x8, _LZMA_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LZMA_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	add	x8, x20, x28
	sub	x9, x25, x28
	cmp	x9, x20
	csel	x7, x8, x25, hi
	str	xzr, [sp, #24]
	ldr	x8, [sp, #32]
	ldr	w0, [sp, #40]
Lloh6:
	adrp	x9, _LZMA_FINISH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LZMA_FINISH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [sp]
	add	x3, sp, #24
	mov	x1, x22
	mov	x2, x24
	mov	x4, x23
	ldr	x5, [sp, #16]                   ; 8-byte Folded Reload
	mov	x6, x19
	blr	x8
	mov	x26, x0
LBB0_3:
	add	x0, sp, #32
	mov	x1, x22
	bl	_lzma_next_end
Lloh9:
	adrp	x8, _LZMA_STREAM_END@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LZMA_STREAM_END@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x26, x8
Lloh12:
	adrp	x20, _LZMA_OK@GOTPAGE
Lloh13:
	ldr	x20, [x20, _LZMA_OK@GOTPAGEOFF]
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x9, x27, x9
	sub	x8, x8, x9
	str	x8, [x21, #8]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x1, x8, x27, lsl #2
	mov	x0, x21
	bl	_lzma_block_header_encode
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _LZMA_PROG_ERROR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LZMA_PROG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x0, x8
	csel	x0, x0, x9, eq
	cmp	x0, x8
	b.ne	LBB0_7
	b	LBB0_8
LBB0_5:
Lloh17:
	adrp	x8, _LZMA_BUF_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LZMA_BUF_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x20]
Lloh20:
	adrp	x9, _LZMA_BUF_ERROR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LZMA_BUF_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x26, x8
	csel	x0, x9, x26, eq
	cmp	x0, x8
	b.eq	LBB0_8
LBB0_7:
	str	x27, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_LZMA_BUF_ERROR,8,3             ; @LZMA_BUF_ERROR
	.comm	_LZMA_NEXT_CODER_INIT,16,3      ; @LZMA_NEXT_CODER_INIT
	.comm	_LZMA_OK,8,3                    ; @LZMA_OK
	.comm	_LZMA_FINISH,4,2                ; @LZMA_FINISH
	.comm	_LZMA_STREAM_END,8,3            ; @LZMA_STREAM_END
	.comm	_LZMA_PROG_ERROR,8,3            ; @LZMA_PROG_ERROR
	.no_dead_strip	_block_encode_normal
.subsections_via_symbols
