	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function jerryx_arg_helper_process_double
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_jerryx_arg_helper_process_double:      ## @jerryx_arg_helper_process_double
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movsd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_JERRY_ERROR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jerry_create_error             ## TAILCALL
LBB0_3:
	movsd	-40(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movq	_JERRYX_ARG_NO_CLAMP@GOTPCREL(%rip), %rax
	movsd	(%r15), %xmm0                   ## xmm0 = mem[0],zero
	cmpq	%rbx, (%rax)
	jne	LBB0_7
## %bb.4:
	ucomisd	%xmm2, %xmm0
	ja	LBB0_6
## %bb.5:
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_8
LBB0_6:
	movq	_JERRY_ERROR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	maxsd	%xmm0, %xmm1
	movapd	%xmm2, %xmm0
	minsd	%xmm1, %xmm0
LBB0_8:
	movq	_JERRYX_ARG_ROUND@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_10
## %bb.9:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	xorps	%xmm2, %xmm2
	roundsd	$9, %xmm1, %xmm2
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	roundsd	$10, %xmm1, %xmm3
	xorpd	%xmm1, %xmm1
	cmpnlesd	%xmm0, %xmm1
	andpd	%xmm1, %xmm3
	andnpd	%xmm2, %xmm1
	orpd	%xmm3, %xmm1
	jmp	LBB0_13
LBB0_10:
	movq	_JERRYX_ARG_FLOOR@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_12
## %bb.11:
	xorps	%xmm1, %xmm1
	roundsd	$9, %xmm0, %xmm1
	jmp	LBB0_13
LBB0_12:
	xorps	%xmm1, %xmm1
	roundsd	$10, %xmm0, %xmm1
LBB0_13:
	movsd	%xmm1, (%r15)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jerry_create_undefined         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JERRY_ERROR_TYPE,4,2           ## @JERRY_ERROR_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The number is NaN."

	.comm	_JERRYX_ARG_NO_CLAMP,8,3        ## @JERRYX_ARG_NO_CLAMP
L_.str.1:                               ## @.str.1
	.asciz	"The number is out of range."

	.comm	_JERRYX_ARG_ROUND,8,3           ## @JERRYX_ARG_ROUND
	.comm	_JERRYX_ARG_FLOOR,8,3           ## @JERRYX_ARG_FLOOR
	.no_dead_strip	_jerryx_arg_helper_process_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jerryx_arg_helper_process_double
_jerryx_arg_helper_process_double:      ; @jerryx_arg_helper_process_double
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x20, x2
	mov	x21, x1
	fmov	d8, d1
	fmov	d9, d0
	mov	x19, x0
	ldr	d0, [x0]
	bl	_isnan
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _JERRY_ERROR_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JERRY_ERROR_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_jerry_create_error
LBB0_3:
Lloh5:
	adrp	x8, _JERRYX_ARG_NO_CLAMP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JERRYX_ARG_NO_CLAMP@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	d0, [x19]
	cmp	x21, x8
	b.ne	LBB0_6
; %bb.4:
	fcmp	d0, d8
	fccmp	d0, d9, #8, le
	b.pl	LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _JERRY_ERROR_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _JERRY_ERROR_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_6:
	fcmp	d0, d9
	fcsel	d0, d9, d0, mi
	fcmp	d0, d8
	fcsel	d0, d8, d0, gt
LBB0_7:
Lloh13:
	adrp	x8, _JERRYX_ARG_ROUND@GOTPAGE
Lloh14:
	ldr	x8, [x8, _JERRYX_ARG_ROUND@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_9
; %bb.8:
	fmov	d1, #0.50000000
	fadd	d1, d0, d1
	frintm	d1, d1
	fmov	d2, #-0.50000000
	fadd	d2, d0, d2
	frintp	d2, d2
	fcmp	d0, #0.0
	fcsel	d0, d2, d1, lt
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _JERRYX_ARG_FLOOR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _JERRYX_ARG_FLOOR@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x20, x8
	frintp	d1, d0
	frintm	d0, d0
	fcsel	d0, d1, d0, ne
LBB0_10:
	str	d0, [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
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_jerry_create_undefined
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_JERRY_ERROR_TYPE,4,2           ; @JERRY_ERROR_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The number is NaN."

	.comm	_JERRYX_ARG_NO_CLAMP,8,3        ; @JERRYX_ARG_NO_CLAMP
l_.str.1:                               ; @.str.1
	.asciz	"The number is out of range."

	.comm	_JERRYX_ARG_ROUND,8,3           ; @JERRYX_ARG_ROUND
	.comm	_JERRYX_ARG_FLOOR,8,3           ; @JERRYX_ARG_FLOOR
	.no_dead_strip	_jerryx_arg_helper_process_double
.subsections_via_symbols
