	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function test_validator_restore_handler
LCPI0_0:
	.quad	0x4008000000000000              ## double 3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_validator_restore_handler:        ## @test_validator_restore_handler
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_JERRY_UNUSED
	movl	%ebx, %edi
	callq	_JERRY_UNUSED
	movq	_JERRYX_ARG_NO_COERCE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_JERRYX_ARG_REQUIRED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-96(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_jerryx_arg_double_or_bool_t
	movl	%eax, -48(%rbp)
	movl	(%r14), %esi
	movl	(%rbx), %edx
	leaq	-72(%rbp), %rdi
	movl	$1, %r14d
	movl	$1, %ecx
	callq	_jerryx_arg_double_or_bool_t
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_jerryx_arg_transform_args
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movq	-96(%rbp), %rax
	movq	_BOOL_VALUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_DOUBLE_VALUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-72(%rbp), %rsi
	cmpq	%rdx, %rax
	jne	LBB0_4
## %bb.1:
	cmpl	$0, -88(%rbp)
	jne	LBB0_4
## %bb.2:
	cmpq	%rcx, %rsi
	jne	LBB0_4
## %bb.3:
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	jne	LBB0_4
	jnp	LBB0_5
LBB0_4:
	cmpq	%rdx, %rsi
	sete	%dil
	cmpl	$0, -64(%rbp)
	sete	%sil
	cmpq	%rcx, %rax
	sete	%al
	movsd	-80(%rbp), %xmm0                ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	setnp	%cl
	sete	%dl
	andb	%cl, %dl
	andb	%dil, %al
	andb	%sil, %al
	andb	%dl, %al
	movzbl	%al, %r14d
LBB0_5:
	movl	%r14d, %edi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	xorl	%eax, %eax
	callq	_jerry_create_undefined
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_JERRYX_ARG_NO_COERCE,4,2       ## @JERRYX_ARG_NO_COERCE
	.comm	_JERRYX_ARG_REQUIRED,4,2        ## @JERRYX_ARG_REQUIRED
	.comm	_BOOL_VALUE,8,3                 ## @BOOL_VALUE
	.comm	_DOUBLE_VALUE,8,3               ## @DOUBLE_VALUE
	.no_dead_strip	_test_validator_restore_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_validator_restore_handler
_test_validator_restore_handler:        ; @test_validator_restore_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x3
	mov	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_JERRY_UNUSED
	mov	x0, x19
	bl	_JERRY_UNUSED
Lloh3:
	adrp	x19, _JERRYX_ARG_NO_COERCE@GOTPAGE
Lloh4:
	ldr	x19, [x19, _JERRYX_ARG_NO_COERCE@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh5:
	adrp	x22, _JERRYX_ARG_REQUIRED@GOTPAGE
Lloh6:
	ldr	x22, [x22, _JERRYX_ARG_REQUIRED@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x0, sp, #24
	mov	w3, #0
	bl	_jerryx_arg_double_or_bool_t
	str	w0, [sp, #48]
	ldr	w1, [x19]
	ldr	w2, [x22]
	mov	w19, #1
	mov	x0, sp
	mov	w3, #1
	bl	_jerryx_arg_double_or_bool_t
	str	w0, [sp, #52]
	add	x0, sp, #48
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x2, sp, #48
	mov	x0, x21
	mov	x1, x20
	bl	_jerryx_arg_transform_args
	mov	x20, x0
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, _BOOL_VALUE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BOOL_VALUE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w12, [sp, #32]
Lloh10:
	adrp	x10, _DOUBLE_VALUE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _DOUBLE_VALUE@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	ldr	x11, [sp]
	ldr	d1, [sp, #16]
	cmp	x8, x9
	ccmp	w12, #0, #0, eq
	ccmp	x11, x10, #0, eq
	fmov	d0, #3.00000000
	fccmp	d1, d0, #0, eq
	b.eq	LBB0_2
; %bb.1:
	ldr	w12, [sp, #8]
	ldr	d1, [sp, #40]
	fcmp	d1, d0
	ccmp	x8, x10, #0, eq
	ccmp	x11, x9, #0, eq
	ccmp	w12, #0, #0, eq
	cset	w19, eq
LBB0_2:
	mov	x0, x19
	bl	_TEST_ASSERT
	mov	x0, x20
	bl	_jerry_release_value
	bl	_jerry_create_undefined
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_JERRYX_ARG_NO_COERCE,4,2       ; @JERRYX_ARG_NO_COERCE
	.comm	_JERRYX_ARG_REQUIRED,4,2        ; @JERRYX_ARG_REQUIRED
	.comm	_BOOL_VALUE,8,3                 ; @BOOL_VALUE
	.comm	_DOUBLE_VALUE,8,3               ; @DOUBLE_VALUE
	.no_dead_strip	_test_validator_restore_handler
.subsections_via_symbols
