	.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_validator1_handler
LCPI0_0:
	.quad	0x4025000000000000              ## double 10.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_validator1_handler:               ## @test_validator1_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_JERRY_UNUSED
	movq	$0, -104(%rbp)
	movb	$0, -88(%rbp)
	movl	$875770417, -92(%rbp)           ## imm = 0x34333231
	xorl	%eax, %eax
	callq	_jerry_create_undefined
	movl	%eax, -84(%rbp)
	xorl	%eax, %eax
	callq	_jerryx_arg_ignore
	movl	%eax, -80(%rbp)
	movq	_JERRYX_ARG_COERCE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_JERRYX_ARG_REQUIRED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-96(%rbp), %rdi
	callq	_jerryx_arg_boolean
	movl	%eax, -76(%rbp)
	movq	_JERRYX_ARG_NO_COERCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	-104(%rbp), %rdi
	callq	_jerryx_arg_number
	movl	%eax, -72(%rbp)
	movl	(%r13), %edx
	movl	(%rbx), %ecx
	leaq	-92(%rbp), %rdi
	movl	$5, %esi
	callq	_jerryx_arg_string
	movl	%eax, -68(%rbp)
	movq	_JERRYX_ARG_OPTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-84(%rbp), %rdi
	callq	_jerryx_arg_function
	movl	%eax, -64(%rbp)
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_jerryx_arg_transform_this_and_args
	movl	%eax, %ebx
	movq	_validator1_count@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%ebx, %edi
	cmpl	$2, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$1, %eax
	je	LBB0_4
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	-96(%rbp), %edi
	callq	_TEST_ASSERT
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	cmpeqsd	-104(%rbp), %xmm0
	movq	%xmm0, %rdi
	andl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_TEST_ASSERT
	leaq	L_.str(%rip), %rsi
	leaq	-92(%rbp), %rdi
	callq	_strcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_TEST_ASSERT
	movl	-84(%rbp), %edi
	callq	_jerry_value_is_function
	jmp	LBB0_8
LBB0_6:
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	-96(%rbp), %edi
	callq	_TEST_ASSERT
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	cmpeqsd	-104(%rbp), %xmm0
	movq	%xmm0, %rdi
	andl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_TEST_ASSERT
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	callq	_jerry_value_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movl	-96(%rbp), %edi
	callq	_TEST_ASSERT
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	cmpeqsd	-104(%rbp), %xmm0
	movq	%xmm0, %rdi
	andl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_TEST_ASSERT
	leaq	L_.str(%rip), %rsi
LBB0_5:
	leaq	-92(%rbp), %rdi
	callq	_strcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_TEST_ASSERT
	movl	-84(%rbp), %edi
	callq	_jerry_value_is_undefined
	jmp	LBB0_8
LBB0_7:
	callq	_jerry_value_is_error
LBB0_8:
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movl	%ebx, %edi
	callq	_jerry_release_value
	movl	-84(%rbp), %edi
	callq	_jerry_release_value
	incl	(%r14)
	xorl	%eax, %eax
	callq	_jerry_create_undefined
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L___const.test_validator1_handler.arg3: ## @__const.test_validator1_handler.arg3
	.asciz	"1234"

	.comm	_JERRYX_ARG_COERCE,4,2          ## @JERRYX_ARG_COERCE
	.comm	_JERRYX_ARG_REQUIRED,4,2        ## @JERRYX_ARG_REQUIRED
	.comm	_JERRYX_ARG_NO_COERCE,4,2       ## @JERRYX_ARG_NO_COERCE
	.comm	_JERRYX_ARG_OPTIONAL,4,2        ## @JERRYX_ARG_OPTIONAL
	.comm	_validator1_count,4,2           ## @validator1_count
L_.str:                                 ## @.str
	.asciz	"abc"

L_.str.1:                               ## @.str.1
	.space	1

	.no_dead_strip	_test_validator1_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_validator1_handler
_test_validator1_handler:               ; @test_validator1_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_JERRY_UNUSED
	str	xzr, [sp, #24]
	strb	wzr, [sp, #20]
	mov	w8, #12849
	movk	w8, #13363, lsl #16
	str	w8, [sp, #16]
	bl	_jerry_create_undefined
	str	w0, [sp, #12]
	bl	_jerryx_arg_ignore
	str	w0, [sp, #36]
Lloh3:
	adrp	x22, _JERRYX_ARG_COERCE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _JERRYX_ARG_COERCE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x23, _JERRYX_ARG_REQUIRED@GOTPAGE
Lloh6:
	ldr	x23, [x23, _JERRYX_ARG_REQUIRED@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x0, sp, #32
	bl	_jerryx_arg_boolean
	str	w0, [sp, #40]
Lloh7:
	adrp	x8, _JERRYX_ARG_NO_COERCE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _JERRYX_ARG_NO_COERCE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x23]
	add	x0, sp, #24
	bl	_jerryx_arg_number
	str	w0, [sp, #44]
	ldr	w2, [x22]
	ldr	w3, [x23]
	add	x0, sp, #16
	mov	w1, #5
	bl	_jerryx_arg_string
	str	w0, [sp, #48]
Lloh10:
	adrp	x8, _JERRYX_ARG_OPTIONAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JERRYX_ARG_OPTIONAL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_jerryx_arg_function
	str	w0, [sp, #52]
	add	x0, sp, #36
	bl	_ARRAY_SIZE
	mov	x4, x0
	add	x3, sp, #36
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_jerryx_arg_transform_this_and_args
	mov	x19, x0
Lloh13:
	adrp	x20, _validator1_count@GOTPAGE
Lloh14:
	ldr	x20, [x20, _validator1_count@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w8, LBB0_7
; %bb.3:
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w0, [sp, #32]
	bl	_TEST_ASSERT
	ldr	d0, [sp, #24]
	fmov	d1, #10.50000000
	fcmp	d0, d1
	cset	w0, eq
	bl	_TEST_ASSERT
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	bl	_strcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w0, [sp, #12]
	bl	_jerry_value_is_function
	b	LBB0_8
LBB0_4:
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w0, [sp, #32]
	bl	_TEST_ASSERT
	ldr	d0, [sp, #24]
	fmov	d1, #10.50000000
	fcmp	d0, d1
	cset	w0, eq
	bl	_TEST_ASSERT
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	bl	_jerry_value_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w0, [sp, #32]
	bl	_TEST_ASSERT
	ldr	d0, [sp, #24]
	fmov	d1, #10.50000000
	fcmp	d0, d1
	cset	w0, eq
	bl	_TEST_ASSERT
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	add	x0, sp, #16
	bl	_strcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	w0, [sp, #12]
	bl	_jerry_value_is_undefined
	b	LBB0_8
LBB0_7:
	bl	_jerry_value_is_error
LBB0_8:
	bl	_TEST_ASSERT
	mov	x0, x19
	bl	_jerry_release_value
	ldr	w0, [sp, #12]
	bl	_jerry_release_value
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	bl	_jerry_create_undefined
	ldr	x8, [sp, #56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.test_validator1_handler.arg3: ; @__const.test_validator1_handler.arg3
	.asciz	"1234"

	.comm	_JERRYX_ARG_COERCE,4,2          ; @JERRYX_ARG_COERCE
	.comm	_JERRYX_ARG_REQUIRED,4,2        ; @JERRYX_ARG_REQUIRED
	.comm	_JERRYX_ARG_NO_COERCE,4,2       ; @JERRYX_ARG_NO_COERCE
	.comm	_JERRYX_ARG_OPTIONAL,4,2        ; @JERRYX_ARG_OPTIONAL
	.comm	_validator1_count,4,2           ; @validator1_count
l_.str:                                 ; @.str
	.asciz	"abc"

l_.str.1:                               ; @.str.1
	.space	1

	.no_dead_strip	_test_validator1_handler
.subsections_via_symbols
