	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handler
_handler:                               ## @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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r14, %rcx
	movl	%ebx, %r8d
	callq	_printf
	xorl	%edi, %edi
	cmpl	$2, %ebx
	sete	%dil
	callq	_TEST_ASSERT
	movq	(%r14), %rdi
	callq	_jerry_value_is_string
	movl	%eax, %edi
	callq	_TEST_ASSERT
	movq	(%r14), %rdi
	callq	_jerry_get_string_size
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movq	(%r14), %rdi
	leaq	-64(%rbp), %r15
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_jerry_string_to_char_buffer
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movslq	%ebx, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strncmp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_TEST_ASSERT
	movq	8(%r14), %rdi
	callq	_jerry_value_is_boolean
	movl	%eax, %edi
	callq	_TEST_ASSERT
	leaq	L_.str.2(%rip), %rdi
	callq	_jerry_create_string
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ok %u %u %p %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"1"

L_.str.2:                               ## @.str.2
	.asciz	"string from handler"

	.no_dead_strip	_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handler
_handler:                               ; @handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x3
	mov	x19, x2
	mov	x2, x1
	mov	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x19
	mov	x4, x20
	bl	_printf
	cmp	w20, #2
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	x0, [x19]
	bl	_jerry_value_is_string
	bl	_TEST_ASSERT
	ldr	x0, [x19]
	bl	_jerry_get_string_size
	mov	x20, x0
	cmp	w0, #1
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	x2, x20
	bl	_jerry_string_to_char_buffer
	mov	x20, x0
	cmp	w0, #1
	cset	w0, eq
	bl	_TEST_ASSERT
	sxtw	x2, w20
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strncmp
	cmp	w0, #0
	cset	w0, eq
	bl	_TEST_ASSERT
	ldr	x0, [x19, #8]
	bl	_jerry_value_is_boolean
	bl	_TEST_ASSERT
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_jerry_create_string
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ok %u %u %p %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"1"

l_.str.2:                               ; @.str.2
	.asciz	"string from handler"

	.no_dead_strip	_handler
.subsections_via_symbols
