	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_builtin_helper_object_get_properties ## -- Begin function ecma_builtin_helper_object_get_properties
	.p2align	4, 0x90
_ecma_builtin_helper_object_get_properties: ## @ecma_builtin_helper_object_get_properties
	.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	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_JERRY_ASSERT
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ecma_op_create_array_object
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ECMA_IS_VALUE_ERROR
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_JERRY_ASSERT
	movl	%r15d, %edi
	callq	_ecma_get_object_from_value
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ecma_op_object_get_property_names
	movq	%rax, %rbx
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_ecma_op_object_is_fast_array
	movl	%eax, %edi
	callq	_JERRY_ASSERT
	movq	8(%rbx), %r14
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_ecma_fast_array_extend
	movl	(%rbx), %edx
	shll	$2, %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_ecma_collection_free_objects
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_ecma_collection_destroy
LBB0_3:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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_builtin_helper_object_get_properties ; -- Begin function ecma_builtin_helper_object_get_properties
	.p2align	2
_ecma_builtin_helper_object_get_properties: ; @ecma_builtin_helper_object_get_properties
	.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, x1
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_JERRY_ASSERT
	mov	x0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_ecma_op_create_array_object
	mov	x19, x0
	bl	_ECMA_IS_VALUE_ERROR
	cmp	w0, #0
	cset	w0, eq
	bl	_JERRY_ASSERT
	mov	x0, x19
	bl	_ecma_get_object_from_value
	mov	x21, x0
	mov	x0, x22
	mov	x1, x20
	bl	_ecma_op_object_get_property_names
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_ecma_op_object_is_fast_array
	bl	_JERRY_ASSERT
	ldr	x22, [x20, #8]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_ecma_fast_array_extend
	ldr	w8, [x20]
	lsl	w2, w8, #2
	mov	x1, x22
	bl	_memcpy
	mov	x0, x20
	bl	_ecma_collection_free_objects
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_ecma_collection_destroy
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
