	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_op_get_binding_value      ## -- Begin function ecma_op_get_binding_value
	.p2align	4, 0x90
_ecma_op_get_binding_value:             ## @ecma_op_get_binding_value
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_ecma_is_lexical_environment
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_JERRY_ASSERT
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_JERRY_ASSERT
	movq	%rbx, %rdi
	callq	_ecma_get_lex_env_type
	movq	_ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ecma_get_named_data_property
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecma_copy_value                ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_ecma_get_lex_env_type
	movq	_ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_JERRY_ASSERT
	movq	%rbx, %rdi
	callq	_ecma_get_lex_env_binding_object
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_ecma_op_object_find
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ecma_is_value_found
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.9:
	leaq	L_.str(%rip), %rdi
	callq	_ECMA_ERR_MSG
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecma_raise_reference_error     ## TAILCALL
LBB0_6:
	movq	_ECMA_VALUE_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE,8,3 ## @ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE
	.comm	_ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND,8,3 ## @ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Binding does not exist or is uninitialised."

	.comm	_ECMA_VALUE_UNDEFINED,4,2       ## @ECMA_VALUE_UNDEFINED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_op_get_binding_value      ; -- Begin function ecma_op_get_binding_value
	.p2align	2
_ecma_op_get_binding_value:             ; @ecma_op_get_binding_value
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_ecma_is_lexical_environment
	cmp	x0, #0
	cset	w0, ne
LBB0_2:
	bl	_JERRY_ASSERT
	cmp	x20, #0
	cset	w0, ne
	bl	_JERRY_ASSERT
	mov	x0, x21
	bl	_ecma_get_lex_env_type
Lloh0:
	adrp	x8, _ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_ecma_get_named_data_property
	ldr	w0, [x0]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ecma_copy_value
LBB0_4:
	mov	x0, x21
	bl	_ecma_get_lex_env_type
Lloh3:
	adrp	x8, _ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_JERRY_ASSERT
	mov	x0, x21
	bl	_ecma_get_lex_env_binding_object
	mov	x1, x20
	bl	_ecma_op_object_find
	mov	x20, x0
	bl	_ecma_is_value_found
	cbz	w0, LBB0_6
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	cbz	w19, LBB0_8
; %bb.7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ECMA_ERR_MSG
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ecma_raise_reference_error
LBB0_8:
Lloh8:
	adrp	x8, _ECMA_VALUE_UNDEFINED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECMA_VALUE_UNDEFINED@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE,8,3 ; @ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE
	.comm	_ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND,8,3 ; @ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Binding does not exist or is uninitialised."

	.comm	_ECMA_VALUE_UNDEFINED,4,2       ; @ECMA_VALUE_UNDEFINED
.subsections_via_symbols
