	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lz_flush
_lz_flush:                              ## @lz_flush
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	8(%rdi), %rsi
	movl	$-1, %r14d
	subq	%rsi, %r15
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	addq	$48, %rdi
	addq	16(%rbx), %rsi
	movq	%r15, %rdx
	callq	_lz_crc_update
	movq	8(%rbx), %rdi
	addq	16(%rbx), %rdi
	movl	44(%rbx), %ecx
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_fwrite
	cmpq	%r15, %rax
	jne	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	32(%rbx), %rax
	setge	%cl
	movl	%ecx, 24(%rbx)
	jl	LBB0_4
## %bb.3:
	addl	%eax, 40(%rbx)
	movq	$0, (%rbx)
	xorl	%eax, %eax
LBB0_4:
	movq	%rax, 8(%rbx)
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lz_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lz_flush
_lz_flush:                              ; @lz_flush
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x9, x8, [x0]
	sub	x20, x9, x8
	cmp	x20, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, x0, #48
	ldr	x9, [x19, #16]
	add	x1, x9, x8
	mov	x2, x20
	bl	_lz_crc_update
	ldp	x9, x8, [x19, #8]
	add	x0, x9, x8
	ldr	w3, [x19, #44]
	mov	w1, #1
	mov	x2, x20
	bl	_fwrite
	cmp	x0, x20
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	cset	w9, ge
	str	w9, [x19, #24]
	b.lt	LBB0_4
; %bb.3:
	ldr	w9, [x19, #40]
	add	w8, w9, w8
	str	w8, [x19, #40]
	str	xzr, [x19]
	mov	x8, #0
LBB0_4:
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lz_flush
.subsections_via_symbols
