	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Error_toString
_Error_toString:                        ## @Error_toString
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	%rbx, %rdi
	callq	_get_jsdisp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$1, (%r12)
	jg	LBB0_6
LBB0_2:
	testq	%r14, %r14
	je	LBB0_37
## %bb.3:
	leaq	_Error_toString.object_errorW(%rip), %rdi
	callq	_jsstr_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
LBB0_35:
	callq	_jsval_string
	movl	%eax, (%r14)
LBB0_37:
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_38
LBB0_6:
	movq	%rax, %rbx
	movq	_nameW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_jsdisp_propget_name
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_39
## %bb.7:
	movl	-36(%rbp), %edi
	callq	_is_undefined
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	_messageW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_jsdisp_propget_name
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	-36(%rbp), %edi
	callq	_is_undefined
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	-36(%rbp), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_to_string
	movl	%eax, %r15d
	movl	-36(%rbp), %edi
	callq	_jsval_release
LBB0_12:
	movl	%r15d, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.15:
	callq	_jsstr_length
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_17
## %bb.16:
	testl	%ebx, %ebx
	jne	LBB0_23
	jmp	LBB0_27
LBB0_8:
	movl	-36(%rbp), %esi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_to_string
	movl	%eax, %r15d
	movl	-36(%rbp), %edi
	callq	_jsval_release
	movl	%r15d, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_39
	jmp	LBB0_9
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_28
LBB0_26:
	movq	-48(%rbp), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_27
LBB0_17:
	callq	_jsstr_length
                                        ## kill: def $eax killed $eax def $rax
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.18:
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	leal	(%rbx,%rax), %edi
	addl	$2, %edi
	leaq	-64(%rbp), %rsi
	callq	_jsstr_alloc_buf
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rdi
	movq	-64(%rbp), %rsi
	callq	_jsstr_flush
	movq	-64(%rbp), %rax
	movl	%ebx, %ecx
	movb	$58, (%rax,%rcx)
	movq	-64(%rbp), %rax
	incl	%ebx
	movb	$32, (%rax,%rbx)
	movq	-48(%rbp), %rdi
	movq	-64(%rbp), %rax
	leaq	(%rax,%rcx), %rsi
	addq	$2, %rsi
	callq	_jsstr_flush
	jmp	LBB0_28
LBB0_22:
	testl	%ebx, %ebx
	je	LBB0_24
LBB0_23:
	movq	-56(%rbp), %r12
	movq	$0, -56(%rbp)
	jmp	LBB0_28
LBB0_21:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_28
LBB0_24:
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:
	movq	-48(%rbp), %r12
	movq	$0, -48(%rbp)
	jmp	LBB0_30
LBB0_27:
	leaq	_Error_toString.object_errorW(%rip), %rdi
	callq	_jsstr_alloc
	movq	%rax, %r12
LBB0_28:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.29:
	callq	_jsstr_release
LBB0_30:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_32
## %bb.31:
	callq	_jsstr_release
LBB0_32:
	movl	%r15d, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_39
## %bb.33:
	testq	%r12, %r12
	je	LBB0_4
## %bb.34:
	movq	%r12, %rdi
	testq	%r14, %r14
	jne	LBB0_35
## %bb.36:
	callq	_jsstr_release
	jmp	LBB0_37
LBB0_4:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_38:
	movl	(%rax), %r15d
LBB0_39:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_Error_toString.object_errorW:          ## @Error_toString.object_errorW
	.asciz	"[object Error]"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_nameW,4,2                      ## @nameW
	.comm	_messageW,4,2                   ## @messageW
	.no_dead_strip	_Error_toString
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Error_toString
_Error_toString:                        ; @Error_toString
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x5
	mov	x20, x1
	mov	x21, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x20
	bl	_get_jsdisp
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.gt	LBB0_6
LBB0_2:
	cbz	x19, LBB0_5
; %bb.3:
Lloh2:
	adrp	x0, _Error_toString.object_errorW@PAGE
Lloh3:
	add	x0, x0, _Error_toString.object_errorW@PAGEOFF
	bl	_jsstr_alloc
	cbz	x0, LBB0_37
LBB0_4:
	bl	_jsval_string
	str	w0, [x19]
LBB0_5:
Lloh4:
	adrp	x8, _S_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_38
LBB0_6:
	mov	x22, x0
Lloh6:
	adrp	x8, _nameW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nameW@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_jsdisp_propget_name
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_39
; %bb.7:
	ldr	w0, [sp, #12]
	bl	_is_undefined
	cbz	w0, LBB0_15
LBB0_8:
Lloh9:
	adrp	x8, _messageW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _messageW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x22
	bl	_jsdisp_propget_name
	mov	x20, x0
	bl	_SUCCEEDED
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w0, [sp, #12]
	bl	_is_undefined
	cbnz	w0, LBB0_11
; %bb.10:
	ldr	w1, [sp, #12]
	add	x2, sp, #16
	mov	x0, x21
	bl	_to_string
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_jsval_release
LBB0_11:
	mov	x0, x20
	bl	_SUCCEEDED
	cbz	x0, LBB0_16
; %bb.12:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_17
; %bb.13:
	bl	_jsstr_length
	mov	x22, x0
	ldr	x0, [sp, #16]
	cbnz	x0, LBB0_19
; %bb.14:
	cbnz	w22, LBB0_24
	b	LBB0_28
LBB0_15:
	ldr	w1, [sp, #12]
	add	x2, sp, #24
	mov	x0, x21
	bl	_to_string
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_jsval_release
	mov	x0, x20
	bl	_FAILED
	cbnz	x0, LBB0_39
	b	LBB0_8
LBB0_16:
	mov	x21, #0
	b	LBB0_29
LBB0_17:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_28
; %bb.18:
	mov	w22, #0
LBB0_19:
	bl	_jsstr_length
	cbz	w22, LBB0_23
; %bb.20:
	cbz	w0, LBB0_23
; %bb.21:
	add	w8, w22, w0
	add	w0, w8, #2
	mov	x1, sp
	bl	_jsstr_alloc_buf
	mov	x21, x0
	cbz	x0, LBB0_25
; %bb.22:
	ldr	x0, [sp, #24]
	ldr	x1, [sp]
	bl	_jsstr_flush
	ldr	x8, [sp]
	mov	w9, w22
	mov	w10, #58
	strb	w10, [x8, x9]
	ldr	x8, [sp]
	add	w10, w22, #1
	mov	w11, #32
	strb	w11, [x8, w10, uxtw]
	ldr	x0, [sp, #16]
	ldr	x8, [sp]
	add	x8, x8, x9
	add	x1, x8, #2
	bl	_jsstr_flush
	b	LBB0_29
LBB0_23:
	cbz	w22, LBB0_26
LBB0_24:
	ldr	x21, [sp, #24]
	str	xzr, [sp, #24]
	b	LBB0_29
LBB0_25:
Lloh12:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_29
LBB0_26:
	cbz	w0, LBB0_28
; %bb.27:
	ldr	x21, [sp, #16]
	str	xzr, [sp, #16]
	b	LBB0_31
LBB0_28:
Lloh15:
	adrp	x0, _Error_toString.object_errorW@PAGE
Lloh16:
	add	x0, x0, _Error_toString.object_errorW@PAGEOFF
	bl	_jsstr_alloc
	mov	x21, x0
LBB0_29:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_31
; %bb.30:
	bl	_jsstr_release
LBB0_31:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_33
; %bb.32:
	bl	_jsstr_release
LBB0_33:
	mov	x0, x20
	bl	_FAILED
	cbnz	x0, LBB0_39
; %bb.34:
	cbz	x21, LBB0_37
; %bb.35:
	mov	x0, x21
	cbnz	x19, LBB0_4
; %bb.36:
	bl	_jsstr_release
	b	LBB0_5
LBB0_37:
Lloh17:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_38:
	ldr	w20, [x8]
LBB0_39:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_Error_toString.object_errorW:          ; @Error_toString.object_errorW
	.asciz	"[object Error]"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_nameW,4,2                      ; @nameW
	.comm	_messageW,4,2                   ; @messageW
	.no_dead_strip	_Error_toString
.subsections_via_symbols
