	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lz_copy
_lz_copy:                               ## @lz_copy
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpl	$-1, %edx
	je	LBB0_1
## %bb.4:
	movl	%edx, %r12d
	movq	%r14, %rdi
	callq	_bytestream2_tell_p
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r12), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_bytestream2_seek
	testl	%r12d, %r12d
	js	LBB0_5
## %bb.7:
	testl	%ebx, %ebx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bytestream2_put_byte
	decl	%ebx
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	%r14, %rdi
	callq	_bytestream2_tell_p
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_bytestream2_seek
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.2:
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_bytestream2_put_byte
	decl	%ebx
	jne	LBB0_3
	jmp	LBB0_9
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_bytestream2_get_byte
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bytestream2_put_byte
	decl	%ebx
	jne	LBB0_6
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_lz_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lz_copy
_lz_copy:                               ; @lz_copy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x21, x1
	mov	x20, x0
	cmn	w2, #1
	b.eq	LBB0_4
; %bb.1:
	mov	x22, x2
	mov	x0, x20
	bl	_bytestream2_tell_p
	add	w1, w0, w22
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_bytestream2_seek
	tbnz	w22, #31, LBB0_7
; %bb.2:
	cbz	w19, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_bytestream2_get_byte
	mov	x1, x0
	mov	x0, x20
	bl	_bytestream2_put_byte
	subs	w19, w19, #1
	b.ne	LBB0_3
	b	LBB0_9
LBB0_4:
	mov	x0, x20
	bl	_bytestream2_tell_p
	sub	w1, w0, #1
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_bytestream2_seek
	mov	x0, x21
	bl	_bytestream2_get_byte
	cbz	w19, LBB0_9
; %bb.5:
	mov	x21, x0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_bytestream2_put_byte
	subs	w19, w19, #1
	b.ne	LBB0_6
	b	LBB0_9
LBB0_7:
	cbz	w19, LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_bytestream2_get_byte
	mov	x1, x0
	mov	x0, x20
	bl	_bytestream2_put_byte
	subs	w19, w19, #1
	b.ne	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_lz_copy
.subsections_via_symbols
