	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_op_to_boolean             ## -- Begin function ecma_op_to_boolean
	.p2align	4, 0x90
_ecma_op_to_boolean:                    ## @ecma_op_to_boolean
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_ecma_check_value_type_is_spec_defined
	movq	%rbx, %rdi
	callq	_ecma_is_value_simple
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	callq	_ecma_is_value_boolean
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_ecma_is_value_undefined
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_ecma_is_value_null
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_4:
	movl	%r14d, %edi
	callq	_JERRY_ASSERT
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ecma_is_value_true             ## TAILCALL
LBB0_5:
	callq	_ecma_is_value_integer_number
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	callq	_ecma_make_integer_value
	xorl	%r14d, %r14d
	cmpq	%rbx, %rax
	setne	%r14b
	jmp	LBB0_16
LBB0_7:
	movq	%rbx, %rdi
	callq	_ecma_is_value_float_number
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	callq	_ecma_get_float_from_value
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ecma_number_is_nan
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	movl	%ebx, %edi
	callq	_ecma_number_is_zero
	jmp	LBB0_10
LBB0_11:
	movq	%rbx, %rdi
	callq	_ecma_is_value_string
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_ecma_get_string_from_value
	movq	%rax, %rdi
	callq	_ecma_string_is_empty
LBB0_10:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_16
LBB0_13:
	movq	%rbx, %rdi
	callq	_ecma_is_value_object
	movl	$1, %r14d
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_ECMA_ASSERT_VALUE_IS_SYMBOL
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_15:
	callq	_JERRY_ASSERT
LBB0_16:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_op_to_boolean             ; -- Begin function ecma_op_to_boolean
	.p2align	2
_ecma_op_to_boolean:                    ; @ecma_op_to_boolean
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_ecma_check_value_type_is_spec_defined
	mov	x0, x19
	bl	_ecma_is_value_simple
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_ecma_is_value_boolean
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ecma_is_value_undefined
	cbz	x0, LBB0_10
LBB0_3:
	mov	w0, #1
LBB0_4:
	bl	_JERRY_ASSERT
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ecma_is_value_true
LBB0_5:
	mov	x0, x19
	bl	_ecma_is_value_integer_number
	cbz	x0, LBB0_7
; %bb.6:
	mov	w0, #0
	bl	_ecma_make_integer_value
	cmp	x0, x19
	cset	w0, ne
	b	LBB0_19
LBB0_7:
	mov	x0, x19
	bl	_ecma_is_value_float_number
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_ecma_get_float_from_value
	mov	x19, x0
	bl	_ecma_number_is_nan
	cbz	w0, LBB0_13
; %bb.9:
	mov	w0, #0
	b	LBB0_19
LBB0_10:
	mov	x0, x19
	bl	_ecma_is_value_null
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_4
LBB0_11:
	mov	x0, x19
	bl	_ecma_is_value_string
	cbz	x0, LBB0_15
; %bb.12:
	mov	x0, x19
	bl	_ecma_get_string_from_value
	bl	_ecma_string_is_empty
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_ecma_number_is_zero
LBB0_14:
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_19
LBB0_15:
	mov	x0, x19
	bl	_ecma_is_value_object
	cbz	x0, LBB0_17
; %bb.16:
	mov	w0, #1
	b	LBB0_18
LBB0_17:
	mov	x0, x19
	bl	_ECMA_ASSERT_VALUE_IS_SYMBOL
	cmp	x0, #0
	cset	w0, ne
LBB0_18:
	bl	_JERRY_ASSERT
	mov	w0, #1
LBB0_19:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
