	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jvp_array_slice
_jvp_array_slice:                       ## @jvp_array_slice
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%esi, -40(%rbp)
	movl	%edx, -36(%rbp)
	movq	_JV_KIND_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_JVP_HAS_KIND
	movl	%eax, %edi
	callq	_assert
	movq	%r14, %rdi
	callq	_jvp_array_length
	movl	%eax, %ebx
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movl	%eax, %edi
	callq	_jvp_clamp_slice_params
	movl	-40(%rbp), %ecx
	xorl	%edi, %edi
	testl	%ecx, %ecx
	js	LBB0_3
## %bb.1:
	movl	-36(%rbp), %eax
	cmpl	%eax, %ecx
	jg	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setle	%dil
LBB0_3:
	callq	_assert
	movl	-40(%rbp), %r12d
	movl	-36(%rbp), %r15d
	subl	%r12d, %r15d
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_jv_free
	xorl	%eax, %eax
	callq	_jv_array
	movq	%rax, %r12
	movq	%rax, %r15
	shrq	$32, %r15
	jmp	LBB0_9
LBB0_5:
	addl	%r14d, %r12d
	movq	_CHAR_BIT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlb	$2, %cl
	movl	$1, %eax
	shll	%cl, %eax
	cmpl	%eax, %r12d
	jl	LBB0_9
## %bb.6:
	movl	%r15d, %edi
	callq	_jv_array_sized
	movq	%rax, %r12
	movl	-40(%rbp), %ebx
	cmpl	-36(%rbp), %ebx
	jge	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_jv_copy
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_jv_array_get
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_jv_array_append
	movq	%rax, %r12
	incl	%ebx
	cmpl	-36(%rbp), %ebx
	jl	LBB0_10
LBB0_8:
	movq	%r12, %r15
	shrq	$32, %r15
	movq	%r14, %rdi
	callq	_jv_free
LBB0_9:
	shlq	$32, %r15
	movl	%r12d, %eax
	orq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JV_KIND_ARRAY,4,2              ## @JV_KIND_ARRAY
	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.no_dead_strip	_jvp_array_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jvp_array_slice
_jvp_array_slice:                       ; @jvp_array_slice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	stp	w2, w1, [sp, #8]
Lloh0:
	adrp	x8, _JV_KIND_ARRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JV_KIND_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_JVP_HAS_KIND
	bl	_assert
	mov	x0, x19
	bl	_jvp_array_length
	mov	x20, x0
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_jvp_clamp_slice_params
	ldr	w8, [sp, #12]
	tbnz	w8, #31, LBB0_2
; %bb.1:
	ldr	w9, [sp, #8]
	cmp	w9, w20
	cset	w10, le
	cmp	w8, w9
	csel	w0, wzr, w10, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
	ldp	w9, w8, [sp, #8]
	subs	w21, w9, w8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_jv_free
	bl	_jv_array
	lsr	x21, x0, #32
	mov	x20, x0
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x9, _CHAR_BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHAR_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w9, #2
	mov	w10, #1
	lsl	w9, w10, w9
	add	w20, w8, w19
	cmp	w20, w9
	b.lt	LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_jv_array_sized
	mov	x20, x0
	ldr	w21, [sp, #12]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	cmp	w21, w8
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	bl	_jv_copy
	mov	x1, x21
	bl	_jv_array_get
	mov	x1, x0
	mov	x0, x20
	bl	_jv_array_append
	mov	x20, x0
	add	w21, w21, #1
	b	LBB0_7
LBB0_9:
	lsr	x21, x20, #32
	mov	x0, x19
	bl	_jv_free
LBB0_10:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	mov	w0, w20
	bfi	x0, x21, #32, #32
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_JV_KIND_ARRAY,4,2              ; @JV_KIND_ARRAY
	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.no_dead_strip	_jvp_array_slice
.subsections_via_symbols
