	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_length
_get_length:                            ## @get_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_array_this
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rcx
	addq	$4, %rcx
	movq	%rcx, (%r14)
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_6:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, %rdi
	callq	_is_jsdisp
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	(%r13), %rdi
	movq	_lengthW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_jsdisp_propget_name
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movl	-44(%rbp), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_to_uint32
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_jsval_release
	movl	%ebx, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	(%r13), %rax
	movq	%rax, (%r14)
	jmp	LBB0_6
LBB0_8:
	movq	_JS_E_JSCRIPT_EXPECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_throw_type_error               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_JS_E_JSCRIPT_EXPECTED,4,2      ## @JS_E_JSCRIPT_EXPECTED
	.comm	_lengthW,4,2                    ## @lengthW
	.no_dead_strip	_get_length
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_length
_get_length:                            ; @get_length
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_array_this
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x0], #4
	str	x0, [x19]
	str	w8, [x21]
LBB0_2:
Lloh0:
	adrp	x8, _S_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
LBB0_3:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x0, x20
	bl	_is_jsdisp
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _lengthW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lengthW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_jsdisp_propget_name
	mov	x23, x0
	bl	_FAILED
	cbnz	x0, LBB0_3
; %bb.6:
	ldr	w1, [sp, #12]
	mov	x0, x22
	mov	x2, x21
	bl	_to_uint32
	mov	x23, x0
	ldr	w0, [sp, #12]
	bl	_jsval_release
	mov	x0, x23
	bl	_FAILED
	cbnz	x0, LBB0_3
; %bb.7:
	ldr	x8, [x20]
	str	x8, [x19]
	b	LBB0_2
LBB0_8:
Lloh6:
	adrp	x8, _JS_E_JSCRIPT_EXPECTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JS_E_JSCRIPT_EXPECTED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_throw_type_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_JS_E_JSCRIPT_EXPECTED,4,2      ; @JS_E_JSCRIPT_EXPECTED
	.comm	_lengthW,4,2                    ; @lengthW
	.no_dead_strip	_get_length
.subsections_via_symbols
