	.file	"extr_json.c_stringify.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Use toJSON.\n"
.LC1:
	.string	"VARIANT\n"
	.text
	.p2align 4
	.type	stringify, @function
stringify:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	edi, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	is_object_instance@PLT
	test	rax, rax
	je	.L3
	mov	edi, ebp
	call	get_object@PLT
	test	rax, rax
	jne	.L38
.L3:
	mov	edi, DWORD PTR 0[r13]
	lea	rdx, 28[rsp]
	mov	esi, ebp
	call	maybe_to_primitive@PLT
	mov	rdi, rax
	mov	r12, rax
	call	FAILED@PLT
	test	rax, rax
	je	.L39
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L40
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	mov	edi, DWORD PTR 28[rsp]
	call	jsval_type@PLT
	add	eax, -128
	cmp	eax, 6
	ja	.L8
	lea	rdx, .L10[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L10:
	.long	.L16-.L10
	.long	.L15-.L10
	.long	.L14-.L10
	.long	.L13-.L10
	.long	.L12-.L10
	.long	.L20-.L10
	.long	.L9-.L10
	.text
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR 28[rsp]
	call	get_number@PLT
	movsd	QWORD PTR 8[rsp], xmm0
	call	is_finite@PLT
	test	eax, eax
	je	.L20
	movsd	xmm0, QWORD PTR 8[rsp]
	lea	rdi, 32[rsp]
	call	double_to_string@PLT
	mov	rdi, rax
	mov	r12, rax
	call	FAILED@PLT
	test	rax, rax
	jne	.L8
	mov	rdi, QWORD PTR 32[rsp]
	call	jsstr_flatten@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	setne	dil
	call	assert@PLT
	test	rbp, rbp
	je	.L22
	mov	rdi, QWORD PTR 32[rsp]
	call	jsstr_length@PLT
	mov	rsi, rbp
	mov	rdi, r13
	mov	edx, eax
	call	append_string_len@PLT
	mov	r12, QWORD PTR E_OUTOFMEMORY[rip]
	test	eax, eax
	je	.L23
.L22:
	mov	r12, QWORD PTR S_OK[rip]
.L23:
	mov	rdi, QWORD PTR 32[rsp]
	call	jsstr_release@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 28[rsp]
	call	jsval_release@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	mov	edi, ebp
	call	get_object@PLT
	mov	rdi, rax
	call	iface_to_jsdisp@PLT
	mov	r12, rax
	test	rax, rax
	je	.L41
	mov	esi, DWORD PTR toJSONW[rip]
	xor	edx, edx
	lea	rcx, 32[rsp]
	mov	rdi, rax
	call	jsdisp_get_id@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	jsdisp_release@PLT
	cmp	QWORD PTR S_OK[rip], rbx
	jne	.L3
	lea	rdi, .LC0[rip]
	call	FIXME@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR nullW[rip]
	mov	rdi, r13
	call	append_string@PLT
	test	eax, eax
	cmove	r12, QWORD PTR E_OUTOFMEMORY[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR 28[rsp]
	call	get_object@PLT
	mov	rdi, rax
	call	iface_to_jsdisp@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L24
.L15:
	mov	r12, QWORD PTR S_FALSE[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC1[rip]
	call	FIXME@PLT
	mov	r12, QWORD PTR E_NOTIMPL[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 28[rsp]
	call	get_bool@PLT
	mov	esi, DWORD PTR trueW[rip]
	mov	rdi, r13
	test	eax, eax
	cmove	esi, DWORD PTR falseW[rip]
	call	append_string@PLT
	test	eax, eax
	cmove	r12, QWORD PTR E_OUTOFMEMORY[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR 28[rsp]
	call	get_string@PLT
	mov	rdi, rax
	mov	r14, rax
	call	jsstr_flatten@PLT
	mov	r12, QWORD PTR E_OUTOFMEMORY[rip]
	mov	rbp, rax
	test	rax, rax
	je	.L8
	mov	rdi, r14
	call	jsstr_length@PLT
	mov	rsi, rbp
	mov	rdi, r13
	mov	edx, eax
	call	json_quote@PLT
	mov	r12, rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L41:
	mov	r12, QWORD PTR S_FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, rax
	call	is_callable@PLT
	mov	r12, QWORD PTR S_FALSE[rip]
	test	eax, eax
	je	.L42
.L27:
	mov	rdi, rbp
	call	jsdisp_release@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L42:
	mov	esi, DWORD PTR JSCLASS_ARRAY[rip]
	mov	rdi, rbp
	call	is_class@PLT
	mov	rsi, rbp
	mov	rdi, r13
	test	eax, eax
	je	.L26
	call	stringify_array@PLT
	mov	r12, rax
	jmp	.L27
.L26:
	call	stringify_object@PLT
	mov	r12, rax
	jmp	.L27
.L40:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stringify, .-stringify
	.comm	trueW,4,4
	.comm	toJSONW,4,4
	.comm	nullW,4,4
	.comm	falseW,4,4
	.comm	S_OK,8,8
	.comm	S_FALSE,8,8
	.comm	JSCLASS_ARRAY,4,4
	.comm	E_OUTOFMEMORY,8,8
	.comm	E_NOTIMPL,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_json.c_stringify.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Use toJSON.\012\000"
	.align	2
.LC1:
	.ascii	"VARIANT\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stringify, %function
stringify:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L44
	sub	sp, sp, #20
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	is_object_instance
	cmp	r0, #0
	beq	.L3
	mov	r0, r4
	bl	get_object
	cmp	r0, #0
	bne	.L39
.L3:
	mov	r1, r4
	add	r2, sp, #4
	ldr	r0, [r5]
	bl	maybe_to_primitive
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	beq	.L40
.L1:
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L40:
	ldr	r0, [sp, #4]
	bl	jsval_type
	sub	r3, r0, #128
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L8
.L10:
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L20
	.word	.L9
.L12:
	ldr	r0, [sp, #4]
	bl	get_number
	mov	r6, r0
	mov	r7, r1
	bl	is_finite
	cmp	r0, #0
	beq	.L20
	mov	r1, r7
	add	r2, sp, #8
	mov	r0, r6
	bl	double_to_string
	mov	r4, r0
	bl	FAILED
	cmp	r0, #0
	bne	.L8
	ldr	r0, [sp, #8]
	bl	jsstr_flatten
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	cmp	r4, #0
	beq	.L22
	ldr	r0, [sp, #8]
	bl	jsstr_length
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	append_string_len
	cmp	r0, #0
	bne	.L22
	ldr	r3, .L44+4
	ldr	r4, [r3]
.L23:
	ldr	r0, [sp, #8]
	bl	jsstr_release
.L8:
	ldr	r0, [sp, #4]
	bl	jsval_release
	b	.L1
.L39:
	mov	r0, r4
	bl	get_object
	bl	iface_to_jsdisp
	subs	r6, r0, #0
	beq	.L42
	ldr	r2, .L44+8
	add	r3, sp, #8
	ldr	r1, [r2]
	mov	r2, #0
	bl	jsdisp_get_id
	mov	r7, r0
	mov	r0, r6
	bl	jsdisp_release
	ldr	r3, .L44+12
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L3
	ldr	r0, .L44+16
	bl	FIXME
	b	.L3
.L20:
	ldr	r3, .L44+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	append_string
	cmp	r0, #0
	bne	.L8
.L36:
	ldr	r3, .L44+4
	ldr	r4, [r3]
	b	.L8
.L13:
	ldr	r0, [sp, #4]
	bl	get_object
	bl	iface_to_jsdisp
	subs	r6, r0, #0
	bne	.L24
.L15:
	ldr	r3, .L44+24
	ldr	r4, [r3]
	b	.L8
.L9:
	ldr	r0, [sp, #4]
	bl	get_bool
	cmp	r0, #0
	ldrne	r3, .L44+28
	ldreq	r3, .L44+32
	mov	r0, r5
	ldr	r1, [r3]
	bl	append_string
	cmp	r0, #0
	bne	.L8
	b	.L36
.L16:
	ldr	r0, .L44+36
	bl	FIXME
	ldr	r3, .L44+40
	ldr	r4, [r3]
	b	.L8
.L14:
	ldr	r0, [sp, #4]
	bl	get_string
	mov	r6, r0
	bl	jsstr_flatten
	subs	r4, r0, #0
	beq	.L36
	mov	r0, r6
	bl	jsstr_length
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	json_quote
	mov	r4, r0
	b	.L8
.L42:
	ldr	r3, .L44+24
	ldr	r4, [r3]
	b	.L1
.L24:
	bl	is_callable
	cmp	r0, #0
	beq	.L43
	ldr	r3, .L44+24
	ldr	r4, [r3]
.L27:
	mov	r0, r6
	bl	jsdisp_release
	b	.L8
.L43:
	ldr	r3, .L44+44
	mov	r0, r6
	ldr	r1, [r3]
	bl	is_class
	cmp	r0, #0
	mov	r1, r6
	mov	r0, r5
	beq	.L26
	bl	stringify_array
	mov	r4, r0
	b	.L27
.L22:
	ldr	r3, .L44+12
	ldr	r4, [r3]
	b	.L23
.L26:
	bl	stringify_object
	mov	r4, r0
	b	.L27
.L41:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	.LC2
	.word	E_OUTOFMEMORY
	.word	toJSONW
	.word	S_OK
	.word	.LC0
	.word	nullW
	.word	S_FALSE
	.word	trueW
	.word	falseW
	.word	.LC1
	.word	E_NOTIMPL
	.word	JSCLASS_ARRAY
	.size	stringify, .-stringify
	.comm	trueW,4,4
	.comm	toJSONW,4,4
	.comm	nullW,4,4
	.comm	falseW,4,4
	.comm	S_OK,4,4
	.comm	S_FALSE,4,4
	.comm	JSCLASS_ARRAY,4,4
	.comm	E_OUTOFMEMORY,4,4
	.comm	E_NOTIMPL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
