	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jv_array_set                   ## -- Begin function jv_array_set
	.p2align	4, 0x90
_jv_array_set:                          ## @jv_array_set
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	movl	%edi, -28(%rbp)
	movq	_JV_KIND_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_JVP_HAS_KIND
	movl	%eax, %edi
	callq	_assert
	testl	%r15d, %r15d
	jns	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_jvp_array_length
	addl	%eax, %r15d
	js	LBB0_3
LBB0_2:
	leaq	-28(%rbp), %rdi
	movl	%r15d, %esi
	callq	_jvp_array_write
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_jv_free
	movl	%r14d, (%rbx)
	movl	-28(%rbp), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%ebx, %edi
	callq	_jv_free
	movl	%r14d, %edi
	callq	_jv_free
	leaq	L_.str(%rip), %rdi
	callq	_jv_string
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jv_invalid_with_msg            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JV_KIND_ARRAY,4,2              ## @JV_KIND_ARRAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of bounds negative array index"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jv_array_set                   ; -- Begin function jv_array_set
	.p2align	2
_jv_array_set:                          ; @jv_array_set
	.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, x2
	mov	x20, x1
	mov	x21, x0
	str	w0, [sp, #12]
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
	tbz	w20, #31, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_jvp_array_length
	adds	w20, w0, w20
	b.mi	LBB0_3
LBB0_2:
	add	x0, sp, #12
	mov	x1, x20
	bl	_jvp_array_write
	mov	x20, x0
	ldr	w0, [x0]
	bl	_jv_free
	str	w19, [x20]
	ldr	w0, [sp, #12]
	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
LBB0_3:
	mov	x0, x21
	bl	_jv_free
	mov	x0, x19
	bl	_jv_free
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_jv_string
	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
	b	_jv_invalid_with_msg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_JV_KIND_ARRAY,4,2              ; @JV_KIND_ARRAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of bounds negative array index"

.subsections_via_symbols
