	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_op_set_mutable_binding    ## -- Begin function ecma_op_set_mutable_binding
	.p2align	4, 0x90
_ecma_op_set_mutable_binding:           ## @ecma_op_set_mutable_binding
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	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	%r12, %r12
	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_11
## %bb.4:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ecma_find_named_property
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%r12), %edi
	callq	_ECMA_PROPERTY_GET_TYPE
	movq	_ECMA_PROPERTY_TYPE_NAMEDDATA@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	jmp	LBB0_7
LBB0_11:
	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	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_ecma_op_object_put
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ECMA_IS_VALUE_ERROR
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	movl	%ebx, %edi
	callq	_ecma_is_value_boolean
	movl	%eax, %edi
	callq	_JERRY_ASSERT
	jmp	LBB0_13
LBB0_5:
	xorl	%edi, %edi
LBB0_7:
	callq	_JERRY_ASSERT
	movl	(%r12), %edi
	callq	_ecma_is_property_writable
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_ECMA_PROPERTY_VALUE_PTR
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_ecma_named_data_property_assign_value
LBB0_13:
	movq	_ECMA_VALUE_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_ECMA_ERR_MSG
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecma_raise_type_error          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE,8,3 ## @ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE
	.comm	_ECMA_PROPERTY_TYPE_NAMEDDATA,8,3 ## @ECMA_PROPERTY_TYPE_NAMEDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Binding cannot be set."

	.comm	_ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND,8,3 ## @ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND
	.comm	_ECMA_VALUE_EMPTY,4,2           ## @ECMA_VALUE_EMPTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_op_set_mutable_binding    ; -- Begin function ecma_op_set_mutable_binding
	.p2align	2
_ecma_op_set_mutable_binding:           ; @ecma_op_set_mutable_binding
	.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	x20, x3
	mov	x19, x2
	mov	x22, 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	x22, #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_7
; %bb.3:
	mov	x0, x21
	mov	x1, x22
	bl	_ecma_find_named_property
	mov	x22, x0
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x22]
	bl	_ECMA_PROPERTY_GET_TYPE
Lloh3:
	adrp	x8, _ECMA_PROPERTY_TYPE_NAMEDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ECMA_PROPERTY_TYPE_NAMEDDATA@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
LBB0_5:
	bl	_JERRY_ASSERT
	ldr	w0, [x22]
	bl	_ecma_is_property_writable
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x22
	bl	_ECMA_PROPERTY_VALUE_PTR
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	bl	_ecma_named_data_property_assign_value
	b	LBB0_11
LBB0_7:
	mov	x0, x21
	bl	_ecma_get_lex_env_type
Lloh6:
	adrp	x8, _ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_JERRY_ASSERT
	mov	x0, x21
	bl	_ecma_get_lex_env_binding_object
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_ecma_op_object_put
	mov	x19, x0
	bl	_ECMA_IS_VALUE_ERROR
	cbnz	x0, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_ecma_is_value_boolean
	bl	_JERRY_ASSERT
	b	LBB0_11
LBB0_9:
	cbz	w20, LBB0_11
; %bb.10:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	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_type_error
LBB0_11:
Lloh11:
	adrp	x8, _ECMA_VALUE_EMPTY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ECMA_VALUE_EMPTY@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
LBB0_12:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE,8,3 ; @ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE
	.comm	_ECMA_PROPERTY_TYPE_NAMEDDATA,8,3 ; @ECMA_PROPERTY_TYPE_NAMEDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Binding cannot be set."

	.comm	_ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND,8,3 ; @ECMA_LEXICAL_ENVIRONMENT_THIS_OBJECT_BOUND
	.comm	_ECMA_VALUE_EMPTY,4,2           ; @ECMA_VALUE_EMPTY
.subsections_via_symbols
