	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function main
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
LCPI0_2:
	.quad	0x4008020c40000000              ## double 3.000999927520752
LCPI0_3:
	.quad	0xc03a98e8a71de69b              ## double -26.597300000000001
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_TEST_INIT
	xorl	%eax, %eax
	callq	_jmem_init
	xorl	%eax, %eax
	callq	_ecma_init
	movl	$123, %edi
	callq	_ecma_make_int32_value
	movl	%eax, %ebx
	leaq	-28(%rbp), %r14
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ecma_op_to_integer
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ecma_free_value
	movl	%r15d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	xorl	%edi, %edi
	cmpl	$123, -28(%rbp)
	sete	%dil
	callq	_TEST_ASSERT
	leaq	L_.str(%rip), %rdi
	callq	_ECMA_ERR_MSG
	movl	%eax, %edi
	callq	_ecma_raise_type_error
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ecma_op_to_integer
	movl	%eax, %ebx
	movq	_error_value@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_JERRY_CONTEXT
	movl	%eax, %edi
	callq	_ecma_free_value
	movl	%ebx, %edi
	callq	_ECMA_IS_VALUE_ERROR
	movl	%eax, %edi
	callq	_TEST_ASSERT
	xorl	%eax, %eax
	callq	_ecma_make_nan_value
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ecma_op_to_integer
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ecma_free_value
	movl	%r15d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	xorl	%edi, %edi
	cmpl	$0, -28(%rbp)
	sete	%dil
	callq	_TEST_ASSERT
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_ecma_make_number_value
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ecma_op_to_integer
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ecma_free_value
	movl	%r15d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-28(%rbp), %xmm0
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -32(%rbp)                ## 4-byte Spill
	divss	%xmm0, %xmm1
	movss	%xmm1, -36(%rbp)                ## 4-byte Spill
	movl	$1, %edi
	callq	_ecma_number_make_infinity
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	cmpeqss	-36(%rbp), %xmm0                ## 4-byte Folded Reload
	movd	%xmm0, %edi
	andl	$1, %edi
	callq	_TEST_ASSERT
	xorps	%xmm0, %xmm0
	callq	_ecma_make_number_value
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ecma_op_to_integer
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ecma_free_value
	movl	%r15d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	xorps	%xmm0, %xmm0
	cvtsi2ssl	-28(%rbp), %xmm0
	movss	-32(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	movss	%xmm1, -32(%rbp)                ## 4-byte Spill
	xorl	%edi, %edi
	callq	_ecma_number_make_infinity
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	cmpeqss	-32(%rbp), %xmm0                ## 4-byte Folded Reload
	movd	%xmm0, %edi
	andl	$1, %edi
	callq	_TEST_ASSERT
	movl	$1, %edi
	callq	_ecma_number_make_infinity
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	callq	_ecma_make_number_value
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ecma_op_to_integer
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ecma_free_value
	movl	%r15d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	-28(%rbp), %ebx
	movl	$1, %edi
	callq	_ecma_number_make_infinity
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_TEST_ASSERT
	xorl	%edi, %edi
	callq	_ecma_number_make_infinity
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	callq	_ecma_make_number_value
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ecma_op_to_integer
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ecma_free_value
	movl	%r15d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	-28(%rbp), %ebx
	xorl	%edi, %edi
	callq	_ecma_number_make_infinity
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_TEST_ASSERT
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_ecma_make_number_value
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ecma_op_to_integer
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_ecma_free_value
	movl	%r15d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	xorl	%edi, %edi
	cmpl	$3, -28(%rbp)
	sete	%dil
	callq	_TEST_ASSERT
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_ecma_make_number_value
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_ecma_op_to_integer
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_ecma_free_value
	movl	%r14d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	xorl	%edi, %edi
	cmpl	$-26, -28(%rbp)
	sete	%dil
	callq	_TEST_ASSERT
	xorl	%eax, %eax
	callq	_ecma_finalize
	xorl	%eax, %eax
	callq	_jmem_finalize
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I am a neat little error message"

	.comm	_error_value,4,2                ## @error_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	bl	_TEST_INIT
	bl	_jmem_init
	bl	_ecma_init
	mov	w0, #123
	bl	_ecma_make_int32_value
	mov	x19, x0
	add	x1, sp, #12
	bl	_ecma_op_to_integer
	mov	x20, x0
	mov	x0, x19
	bl	_ecma_free_value
	mov	x0, x20
	bl	_ECMA_IS_VALUE_ERROR
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w8, [sp, #12]
	cmp	w8, #123
	cset	w0, eq
	bl	_TEST_ASSERT
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ECMA_ERR_MSG
	bl	_ecma_raise_type_error
	add	x1, sp, #12
	bl	_ecma_op_to_integer
	mov	x19, x0
Lloh2:
	adrp	x8, _error_value@GOTPAGE
Lloh3:
	ldr	x8, [x8, _error_value@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_JERRY_CONTEXT
	bl	_ecma_free_value
	mov	x0, x19
	bl	_ECMA_IS_VALUE_ERROR
	bl	_TEST_ASSERT
	bl	_ecma_make_nan_value
	mov	x19, x0
	add	x1, sp, #12
	bl	_ecma_op_to_integer
	mov	x20, x0
	mov	x0, x19
	bl	_ecma_free_value
	mov	x0, x20
	bl	_ECMA_IS_VALUE_ERROR
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x8, #-9223372036854775808
	fmov	d0, x8
	bl	_ecma_make_number_value
	mov	x19, x0
	add	x1, sp, #12
	bl	_ecma_op_to_integer
	mov	x20, x0
	mov	x0, x19
	bl	_ecma_free_value
	mov	x0, x20
	bl	_ECMA_IS_VALUE_ERROR
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	s0, [sp, #12]
	scvtf	s0, s0
	fmov	s8, #1.00000000
	fdiv	s9, s8, s0
	mov	w0, #1
	bl	_ecma_number_make_infinity
	scvtf	s0, w0
	fcmp	s9, s0
	cset	w0, eq
	bl	_TEST_ASSERT
	movi	d0, #0000000000000000
	bl	_ecma_make_number_value
	mov	x19, x0
	add	x1, sp, #12
	bl	_ecma_op_to_integer
	mov	x20, x0
	mov	x0, x19
	bl	_ecma_free_value
	mov	x0, x20
	bl	_ECMA_IS_VALUE_ERROR
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	s0, [sp, #12]
	scvtf	s0, s0
	fdiv	s8, s8, s0
	mov	w0, #0
	bl	_ecma_number_make_infinity
	scvtf	s0, w0
	fcmp	s8, s0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	w0, #1
	bl	_ecma_number_make_infinity
	scvtf	d0, w0
	bl	_ecma_make_number_value
	mov	x19, x0
	add	x1, sp, #12
	bl	_ecma_op_to_integer
	mov	x20, x0
	mov	x0, x19
	bl	_ecma_free_value
	mov	x0, x20
	bl	_ECMA_IS_VALUE_ERROR
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w19, [sp, #12]
	mov	w0, #1
	bl	_ecma_number_make_infinity
	cmp	w19, w0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	w0, #0
	bl	_ecma_number_make_infinity
	scvtf	d0, w0
	bl	_ecma_make_number_value
	mov	x19, x0
	add	x1, sp, #12
	bl	_ecma_op_to_integer
	mov	x20, x0
	mov	x0, x19
	bl	_ecma_free_value
	mov	x0, x20
	bl	_ECMA_IS_VALUE_ERROR
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w19, [sp, #12]
	mov	w0, #0
	bl	_ecma_number_make_infinity
	cmp	w19, w0
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x8, #1073741824
	movk	x8, #524, lsl #32
	movk	x8, #16392, lsl #48
	fmov	d0, x8
	bl	_ecma_make_number_value
	mov	x19, x0
	add	x1, sp, #12
	bl	_ecma_op_to_integer
	mov	x20, x0
	mov	x0, x19
	bl	_ecma_free_value
	mov	x0, x20
	bl	_ECMA_IS_VALUE_ERROR
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w8, [sp, #12]
	cmp	w8, #3
	cset	w0, eq
	bl	_TEST_ASSERT
	mov	x8, #59035
	movk	x8, #42781, lsl #16
	movk	x8, #39144, lsl #32
	movk	x8, #49210, lsl #48
	fmov	d0, x8
	bl	_ecma_make_number_value
	mov	x19, x0
	add	x1, sp, #12
	bl	_ecma_op_to_integer
	mov	x20, x0
	mov	x0, x19
	bl	_ecma_free_value
	mov	x0, x20
	bl	_ECMA_IS_VALUE_ERROR
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w8, [sp, #12]
	cmn	w8, #26
	cset	w0, eq
	bl	_TEST_ASSERT
	bl	_ecma_finalize
	bl	_jmem_finalize
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I am a neat little error message"

	.comm	_error_value,4,2                ; @error_value
.subsections_via_symbols
