	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function to_number
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_to_number
	.p2align	4, 0x90
_to_number:                             ## @to_number
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_jsval_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	%ebx, %edi
	callq	_get_variant
	movl	%eax, %edi
	callq	_debugstr_variant
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_3:
	xorl	%edi, %edi
	callq	_assert
	movq	_E_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	movq	_NAN@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_13
LBB0_5:
	movl	%ebx, %edi
	callq	_get_string
	movl	%eax, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_str_to_number                  ## TAILCALL
LBB0_6:
	movq	_HINT_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_to_primitive
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movl	-28(%rbp), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_to_number
	movl	%eax, %ebx
	movl	-28(%rbp), %edi
	callq	_jsval_release
	jmp	LBB0_16
LBB0_8:
	movl	%ebx, %edi
	callq	_get_number
	jmp	LBB0_13
LBB0_9:
	movq	$0, (%r14)
	jmp	LBB0_14
LBB0_10:
	movl	%ebx, %edi
	callq	_get_bool
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	xorps	%xmm0, %xmm0
	jmp	LBB0_13
LBB0_12:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
LBB0_13:
	movsd	%xmm0, (%r14)
LBB0_14:
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_NAN,8,3                        ## @NAN
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_HINT_NUMBER,4,2                ## @HINT_NUMBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unimplemented for variant %s\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
	.comm	_E_FAIL,4,2                     ## @E_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_to_number                      ; -- Begin function to_number
	.p2align	2
_to_number:                             ; @to_number
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_jsval_type
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x20
	bl	_get_variant
	bl	_debugstr_variant
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh4:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
	b	LBB0_13
LBB0_3:
	mov	w0, #0
	bl	_assert
Lloh6:
	adrp	x8, _E_FAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_FAIL@GOTPAGEOFF]
	b	LBB0_13
LBB0_4:
Lloh8:
	adrp	x8, _NAN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NAN@GOTPAGEOFF]
Lloh10:
	ldr	d0, [x8]
	b	LBB0_11
LBB0_5:
	mov	x0, x20
	bl	_get_string
	mov	x1, x19
	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
	b	_str_to_number
LBB0_6:
Lloh11:
	adrp	x8, _HINT_NUMBER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HINT_NUMBER@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_to_primitive
	mov	x20, x0
	bl	_FAILED
	cbnz	w0, LBB0_14
; %bb.7:
	ldr	w1, [sp, #12]
	mov	x0, x21
	mov	x2, x19
	bl	_to_number
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_jsval_release
	b	LBB0_14
LBB0_8:
	mov	x0, x20
	bl	_get_number
	b	LBB0_11
LBB0_9:
	str	xzr, [x19]
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	bl	_get_bool
	cmp	w0, #0
	movi	d0, #0000000000000000
	fmov	d1, #1.00000000
	fcsel	d0, d1, d0, ne
LBB0_11:
	str	d0, [x19]
LBB0_12:
Lloh14:
	adrp	x8, _S_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_13:
	ldr	w20, [x8]
LBB0_14:
	mov	x0, x20
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_NAN,8,3                        ; @NAN
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_HINT_NUMBER,4,2                ; @HINT_NUMBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unimplemented for variant %s\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
	.comm	_E_FAIL,4,2                     ; @E_FAIL
.subsections_via_symbols
