	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_builtin_helper_array_concat_value ## -- Begin function ecma_builtin_helper_array_concat_value
	.p2align	4, 0x90
_ecma_builtin_helper_array_concat_value: ## @ecma_builtin_helper_array_concat_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %edi
	callq	_ecma_is_value_object
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	%ebx, %edi
	callq	_ecma_get_object_from_value
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_ecma_get_object_type
	movq	_ECMA_OBJECT_TYPE_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	%r13, %rdi
	callq	_ecma_array_get_length
	movq	%rax, %r12
	testq	%rax, %rax
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ecma_op_object_find_by_uint32_index
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ECMA_IS_VALUE_ERROR
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r14d, %edi
	callq	_ecma_is_value_found
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rsi
	addq	%rbx, %rsi
	movq	_ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_ecma_builtin_helper_def_prop_by_index
	movl	%eax, %edi
	callq	_ecma_is_value_true
	movl	%eax, %edi
	callq	_JERRY_ASSERT
	movl	%r14d, %edi
	callq	_ecma_free_value
	jmp	LBB0_7
LBB0_9:
	movq	(%r15), %rsi
	leaq	1(%rsi), %rax
	movq	%rax, (%r15)
	movq	_ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_ecma_builtin_helper_def_prop_by_index
	movl	%eax, %edi
	callq	_ecma_is_value_true
	movl	%eax, %edi
	callq	_JERRY_ASSERT
	jmp	LBB0_10
LBB0_8:
	addq	%r12, (%r15)
LBB0_10:
	movq	_ECMA_VALUE_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECMA_OBJECT_TYPE_ARRAY,8,3     ## @ECMA_OBJECT_TYPE_ARRAY
	.comm	_ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE,4,2 ## @ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE
	.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_builtin_helper_array_concat_value ; -- Begin function ecma_builtin_helper_array_concat_value
	.p2align	2
_ecma_builtin_helper_array_concat_value: ; @ecma_builtin_helper_array_concat_value
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_ecma_is_value_object
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x22
	bl	_ecma_get_object_from_value
	mov	x21, x0
	bl	_ecma_get_object_type
Lloh0:
	adrp	x8, _ECMA_OBJECT_TYPE_ARRAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECMA_OBJECT_TYPE_ARRAY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x21
	bl	_ecma_array_get_length
	mov	x22, x0
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x23, #0
Lloh3:
	adrp	x25, _ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	cmp	x22, x23
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_ecma_op_object_find_by_uint32_index
	mov	x24, x0
	bl	_ECMA_IS_VALUE_ERROR
	cbnz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_ecma_is_value_found
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	add	x1, x23, x8
	ldr	w3, [x25]
	mov	x0, x20
	mov	x2, x24
	bl	_ecma_builtin_helper_def_prop_by_index
	bl	_ecma_is_value_true
	bl	_JERRY_ASSERT
	mov	x0, x24
	bl	_ecma_free_value
	b	LBB0_4
LBB0_8:
	ldr	x1, [x19]
	add	x8, x1, #1
	str	x8, [x19]
Lloh5:
	adrp	x8, _ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_ecma_builtin_helper_def_prop_by_index
	bl	_ecma_is_value_true
	bl	_JERRY_ASSERT
	b	LBB0_10
LBB0_9:
	ldr	x8, [x19]
	add	x8, x8, x22
	str	x8, [x19]
LBB0_10:
Lloh8:
	adrp	x8, _ECMA_VALUE_EMPTY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECMA_VALUE_EMPTY@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
LBB0_11:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ECMA_OBJECT_TYPE_ARRAY,8,3     ; @ECMA_OBJECT_TYPE_ARRAY
	.comm	_ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE,4,2 ; @ECMA_PROPERTY_CONFIGURABLE_ENUMERABLE_WRITABLE
	.comm	_ECMA_VALUE_EMPTY,4,2           ; @ECMA_VALUE_EMPTY
.subsections_via_symbols
