	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stream_check_done
_stream_check_done:                     ## @stream_check_done
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_1
LBB0_3:
	movq	8(%rbx), %rdi
	callq	_jv_is_valid
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_jv_copy
	movq	%rax, %rdi
	callq	_jv_array_length
	movq	8(%rbx), %rdi
	cmpl	$3, %eax
	jl	LBB0_7
## %bb.6:
	callq	_jv_copy
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_jv_array_slice
	movq	%rax, (%r14)
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_jv_array_slice
	jmp	LBB0_8
LBB0_1:
	movq	16(%rbx), %rdi
	callq	_jv_is_valid
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	24(%rbx), %rdi
	callq	_jv_copy
	movq	16(%rbx), %rsi
	movq	%rax, %rdi
	callq	_JV_ARRAY
	movq	%rax, (%r14)
	xorl	%eax, %eax
	callq	_jv_invalid
	movq	%rax, 16(%rbx)
	jmp	LBB0_9
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_7:
	movq	%rdi, (%r14)
	xorl	%eax, %eax
	callq	_jv_invalid
LBB0_8:
	movq	%rax, 8(%rbx)
LBB0_9:
	movl	$1, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stream_check_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stream_check_done
_stream_check_done:                     ; @stream_check_done
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
LBB0_1:
	ldr	x0, [x19, #8]
	bl	_jv_is_valid
	cbz	x0, LBB0_9
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_jv_copy
	bl	_jv_array_length
	mov	x8, x0
	ldr	x0, [x19, #8]
	cmp	w8, #3
	b.lt	LBB0_6
; %bb.3:
	bl	_jv_copy
	mov	w1, #0
	mov	w2, #2
	bl	_jv_array_slice
	str	x0, [x20]
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #1
	bl	_jv_array_slice
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19, #16]
	bl	_jv_is_valid
	cbz	x0, LBB0_1
; %bb.5:
	ldr	x0, [x19, #24]
	bl	_jv_copy
	ldr	x1, [x19, #16]
	bl	_JV_ARRAY
	str	x0, [x20]
	bl	_jv_invalid
	str	x0, [x19, #16]
	b	LBB0_8
LBB0_6:
	str	x0, [x20]
	bl	_jv_invalid
LBB0_7:
	str	x0, [x19, #8]
LBB0_8:
	mov	w0, #1
LBB0_9:
	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	_stream_check_done
.subsections_via_symbols
