	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Array_set_length
_Array_set_length:                      ## @Array_set_length
	.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
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_array_from_jsdisp
	movq	%rax, %r14
	movq	$-1, -40(%rbp)
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_TRACE
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_to_number
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	-40(%rbp), %rdi
	callq	_floor
	movq	%rax, %rbx
	movq	%rax, -40(%rbp)
	cmpq	(%r14), %rax
	jge	LBB0_6
## %bb.2:
	movq	%r14, %r12
	addq	$8, %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_jsdisp_delete_idx
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	(%r14), %rbx
	jl	LBB0_4
## %bb.5:
	movq	-40(%rbp), %rbx
LBB0_6:
	movq	%rbx, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p %d\n"

	.comm	_JS_E_INVALID_LENGTH,4,2        ## @JS_E_INVALID_LENGTH
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_Array_set_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Array_set_length
_Array_set_length:                      ; @Array_set_length
	.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	x20, x2
	mov	x21, x0
	mov	x0, x1
	bl	_array_from_jsdisp
	mov	x19, x0
	mov	x8, #-1
	str	x8, [sp, #8]
	ldr	x2, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_to_number
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_floor
	mov	x20, x0
	str	x0, [sp, #8]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.2:
	add	x21, x19, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_jsdisp_delete_idx
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_3
; %bb.5:
	ldr	x20, [sp, #8]
LBB0_6:
	str	x20, [x19]
Lloh2:
	adrp	x8, _S_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
LBB0_7:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p %d\n"

	.comm	_JS_E_INVALID_LENGTH,4,2        ; @JS_E_INVALID_LENGTH
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_Array_set_length
.subsections_via_symbols
