	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_builtin_helper_get_to_locale_string_at_index ## -- Begin function ecma_builtin_helper_get_to_locale_string_at_index
	.p2align	4, 0x90
_ecma_builtin_helper_get_to_locale_string_at_index: ## @ecma_builtin_helper_get_to_locale_string_at_index
	.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
	callq	_ecma_op_object_get_by_uint32_index
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ECMA_IS_VALUE_ERROR
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r15d, %edi
	callq	_ecma_is_value_undefined
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	%r15d, %edi
	callq	_ecma_is_value_null
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_LIT_MAGIC_STRING__EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecma_get_magic_string          ## TAILCALL
LBB0_6:
	movl	%r15d, %edi
	callq	_ecma_op_to_object
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_ECMA_IS_VALUE_ERROR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	%r15d, %edi
	callq	_ecma_free_value
	jmp	LBB0_1
LBB0_8:
	movl	%r12d, %edi
	callq	_ecma_get_object_from_value
	movq	%rax, %r14
	movq	_LIT_MAGIC_STRING_TO_LOCALE_STRING_UL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ecma_op_object_get_by_magic_id
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ECMA_IS_VALUE_ERROR
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_ecma_deref_object
	movl	%r15d, %edi
	callq	_ecma_free_value
	jmp	LBB0_2
LBB0_11:
	movl	%ebx, %edi
	callq	_ecma_op_is_callable
	movl	%ebx, %edi
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	callq	_ecma_get_object_from_value
	movq	%rax, %r13
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ecma_op_function_call
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_ecma_deref_object
	movl	%r12d, %edi
	callq	_ECMA_IS_VALUE_ERROR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.13:
	movl	%r12d, %edi
	callq	_ecma_op_to_string
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_ecma_free_value
	jmp	LBB0_10
LBB0_14:
	callq	_ecma_free_value
	leaq	L_.str(%rip), %rdi
	callq	_ECMA_ERR_MSG
	movl	%eax, %edi
	callq	_ecma_raise_type_error
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_LIT_MAGIC_STRING__EMPTY,4,2    ## @LIT_MAGIC_STRING__EMPTY
	.comm	_LIT_MAGIC_STRING_TO_LOCALE_STRING_UL,4,2 ## @LIT_MAGIC_STRING_TO_LOCALE_STRING_UL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'toLocaleString' is missing or not a function."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_builtin_helper_get_to_locale_string_at_index ; -- Begin function ecma_builtin_helper_get_to_locale_string_at_index
	.p2align	2
_ecma_builtin_helper_get_to_locale_string_at_index: ; @ecma_builtin_helper_get_to_locale_string_at_index
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_ecma_op_object_get_by_uint32_index
	mov	x19, x0
	bl	_ECMA_IS_VALUE_ERROR
	cbz	x0, LBB0_3
LBB0_1:
	mov	x21, #0
LBB0_2:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_ecma_is_value_undefined
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_ecma_is_value_null
	cbz	x0, LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _LIT_MAGIC_STRING__EMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIT_MAGIC_STRING__EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ecma_get_magic_string
LBB0_6:
	mov	x0, x19
	bl	_ecma_op_to_object
	mov	x21, x0
	bl	_ECMA_IS_VALUE_ERROR
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_ecma_free_value
	b	LBB0_1
LBB0_8:
	mov	x0, x21
	bl	_ecma_get_object_from_value
	mov	x20, x0
Lloh3:
	adrp	x8, _LIT_MAGIC_STRING_TO_LOCALE_STRING_UL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIT_MAGIC_STRING_TO_LOCALE_STRING_UL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ecma_op_object_get_by_magic_id
	mov	x22, x0
	bl	_ECMA_IS_VALUE_ERROR
	cbz	x0, LBB0_11
LBB0_9:
	mov	x21, #0
LBB0_10:
	mov	x0, x20
	bl	_ecma_deref_object
	mov	x0, x19
	bl	_ecma_free_value
	b	LBB0_2
LBB0_11:
	mov	x0, x22
	bl	_ecma_op_is_callable
	cbz	w0, LBB0_14
; %bb.12:
	mov	x0, x22
	bl	_ecma_get_object_from_value
	mov	x23, x0
	mov	x1, x21
	mov	x2, #0
	mov	w3, #0
	bl	_ecma_op_function_call
	mov	x22, x0
	mov	x0, x23
	bl	_ecma_deref_object
	mov	x0, x22
	bl	_ECMA_IS_VALUE_ERROR
	mov	x21, #0
	cbnz	x0, LBB0_10
; %bb.13:
	mov	x0, x22
	bl	_ecma_op_to_string
	mov	x21, x0
	mov	x0, x22
	bl	_ecma_free_value
	b	LBB0_10
LBB0_14:
	mov	x0, x22
	bl	_ecma_free_value
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ECMA_ERR_MSG
	bl	_ecma_raise_type_error
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LIT_MAGIC_STRING__EMPTY,4,2    ; @LIT_MAGIC_STRING__EMPTY
	.comm	_LIT_MAGIC_STRING_TO_LOCALE_STRING_UL,4,2 ; @LIT_MAGIC_STRING_TO_LOCALE_STRING_UL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'toLocaleString' is missing or not a function."

.subsections_via_symbols
