	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stringify
_stringify:                             ## @stringify
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_is_object_instance
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	%ebx, %edi
	callq	_get_object
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	%ebx, %edi
	callq	_get_object
	movq	%rax, %rdi
	callq	_iface_to_jsdisp
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r15
	movq	_toJSONW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_jsdisp_get_id
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_jsdisp_release
	movq	_S_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
LBB0_5:
	movl	(%r14), %edi
	leaq	-36(%rbp), %rdx
	movl	%ebx, %esi
	callq	_maybe_to_primitive
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_30
## %bb.6:
	movl	-36(%rbp), %edi
	callq	_jsval_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_29
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_9:
	movq	_S_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_30
LBB0_10:
	movl	-36(%rbp), %edi
	callq	_get_string
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_jsstr_flatten
	testq	%rax, %rax
	je	LBB0_27
## %bb.11:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_jsstr_length
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_json_quote
	movq	%rax, %rbx
	jmp	LBB0_29
LBB0_12:
	movl	-36(%rbp), %edi
	callq	_get_object
	movq	%rax, %rdi
	callq	_iface_to_jsdisp
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_is_callable
	testl	%eax, %eax
	je	LBB0_31
## %bb.14:
	movq	_S_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_35
LBB0_15:
	movq	_S_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_16:
	movl	-36(%rbp), %edi
	callq	_get_number
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	callq	_is_finite
	testl	%eax, %eax
	je	LBB0_21
## %bb.17:
	leaq	-48(%rbp), %rdi
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_double_to_string
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_29
## %bb.18:
	movq	-48(%rbp), %rdi
	callq	_jsstr_flatten
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.19:
	movq	-48(%rbp), %rdi
	callq	_jsstr_length
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_append_string_len
	testl	%eax, %eax
	je	LBB0_36
LBB0_20:
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_21:
	movq	_nullW@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_22:
	movl	-36(%rbp), %edi
	callq	_get_bool
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	movq	_falseW@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_24:
	movq	_trueW@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_append_string
	testl	%eax, %eax
	jne	LBB0_29
LBB0_27:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_28:
	movq	(%rax), %rbx
LBB0_29:
	movl	-36(%rbp), %edi
	callq	_jsval_release
LBB0_30:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	_JSCLASS_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_is_class
	movq	%r14, %rdi
	movq	%r15, %rsi
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	callq	_stringify_array
	jmp	LBB0_34
LBB0_33:
	callq	_stringify_object
LBB0_34:
	movq	%rax, %rbx
LBB0_35:
	movq	%r15, %rdi
	callq	_jsdisp_release
	jmp	LBB0_29
LBB0_36:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_37:
	movq	(%rax), %rbx
	movq	-48(%rbp), %rdi
	callq	_jsstr_release
	jmp	LBB0_29
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_15
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_21
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_S_FALSE,8,3                    ## @S_FALSE
	.comm	_toJSONW,4,2                    ## @toJSONW
	.comm	_S_OK,8,3                       ## @S_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Use toJSON.\n"

	.comm	_nullW,4,2                      ## @nullW
	.comm	_E_OUTOFMEMORY,8,3              ## @E_OUTOFMEMORY
	.comm	_trueW,4,2                      ## @trueW
	.comm	_falseW,4,2                     ## @falseW
	.comm	_JSCLASS_ARRAY,4,2              ## @JSCLASS_ARRAY
L_.str.1:                               ## @.str.1
	.asciz	"VARIANT\n"

	.comm	_E_NOTIMPL,8,3                  ## @E_NOTIMPL
	.no_dead_strip	_stringify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stringify
_stringify:                             ; @stringify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_is_object_instance
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_get_object
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_get_object
	bl	_iface_to_jsdisp
	cbz	x0, LBB0_9
; %bb.3:
	mov	x21, x0
Lloh0:
	adrp	x8, _toJSONW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _toJSONW@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x3, sp
	mov	w2, #0
	bl	_jsdisp_get_id
	mov	x22, x0
	mov	x0, x21
	bl	_jsdisp_release
Lloh3:
	adrp	x8, _S_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_5:
	ldr	w0, [x19]
	add	x2, sp, #12
	mov	x1, x20
	bl	_maybe_to_primitive
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_27
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_jsval_type
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_26
; %bb.7:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
Lloh12:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
	b	LBB0_25
LBB0_9:
Lloh14:
	adrp	x8, _S_FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S_FALSE@GOTPAGEOFF]
Lloh16:
	ldr	x20, [x8]
	b	LBB0_27
LBB0_10:
	ldr	w0, [sp, #12]
	bl	_get_string
	mov	x21, x0
	bl	_jsstr_flatten
	cbz	x0, LBB0_24
; %bb.11:
	mov	x20, x0
	mov	x0, x21
	bl	_jsstr_length
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_json_quote
	mov	x20, x0
	b	LBB0_26
LBB0_12:
	ldr	w0, [sp, #12]
	bl	_get_object
	bl	_iface_to_jsdisp
	cbz	x0, LBB0_15
; %bb.13:
	mov	x21, x0
	bl	_is_callable
	cbz	w0, LBB0_28
; %bb.14:
Lloh17:
	adrp	x8, _S_FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _S_FALSE@GOTPAGEOFF]
Lloh19:
	ldr	x20, [x8]
	b	LBB0_32
LBB0_15:
Lloh20:
	adrp	x8, _S_FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _S_FALSE@GOTPAGEOFF]
	b	LBB0_25
LBB0_16:
	ldr	w0, [sp, #12]
	bl	_get_number
	fmov	d8, d0
	bl	_is_finite
	cbz	w0, LBB0_21
; %bb.17:
	mov	x0, sp
	fmov	d0, d8
	bl	_double_to_string
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_26
; %bb.18:
	ldr	x0, [sp]
	bl	_jsstr_flatten
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cbz	x20, LBB0_20
; %bb.19:
	ldr	x0, [sp]
	bl	_jsstr_length
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_append_string_len
	cbz	w0, LBB0_33
LBB0_20:
Lloh22:
	adrp	x8, _S_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_34
LBB0_21:
Lloh24:
	adrp	x8, _nullW@GOTPAGE
Lloh25:
	ldr	x8, [x8, _nullW@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
	ldr	w0, [sp, #12]
	bl	_get_bool
Lloh26:
	adrp	x8, _trueW@GOTPAGE
Lloh27:
	ldr	x8, [x8, _trueW@GOTPAGEOFF]
Lloh28:
	adrp	x9, _falseW@GOTPAGE
Lloh29:
	ldr	x9, [x9, _falseW@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
LBB0_23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_append_string
Lloh30:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	w0, #0
	csel	x20, x8, x20, eq
	b	LBB0_26
LBB0_24:
Lloh33:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_25:
	ldr	x20, [x8]
LBB0_26:
	ldr	w0, [sp, #12]
	bl	_jsval_release
LBB0_27:
	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
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_28:
Lloh35:
	adrp	x8, _JSCLASS_ARRAY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _JSCLASS_ARRAY@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_is_class
	cbz	w0, LBB0_30
; %bb.29:
	mov	x0, x19
	mov	x1, x21
	bl	_stringify_array
	b	LBB0_31
LBB0_30:
	mov	x0, x19
	mov	x1, x21
	bl	_stringify_object
LBB0_31:
	mov	x20, x0
LBB0_32:
	mov	x0, x21
	bl	_jsdisp_release
	b	LBB0_26
LBB0_33:
Lloh38:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh39:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_34:
	ldr	x20, [x8]
	ldr	x0, [sp]
	bl	_jsstr_release
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_21-LBB0_8)>>2
	.byte	(LBB0_22-LBB0_8)>>2
                                        ; -- End function
	.comm	_S_FALSE,8,3                    ; @S_FALSE
	.comm	_toJSONW,4,2                    ; @toJSONW
	.comm	_S_OK,8,3                       ; @S_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Use toJSON.\n"

	.comm	_nullW,4,2                      ; @nullW
	.comm	_E_OUTOFMEMORY,8,3              ; @E_OUTOFMEMORY
	.comm	_trueW,4,2                      ; @trueW
	.comm	_falseW,4,2                     ; @falseW
	.comm	_JSCLASS_ARRAY,4,2              ; @JSCLASS_ARRAY
l_.str.1:                               ; @.str.1
	.asciz	"VARIANT\n"

	.comm	_E_NOTIMPL,8,3                  ; @E_NOTIMPL
	.no_dead_strip	_stringify
.subsections_via_symbols
