	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ecma_new_ecma_string_from_magic_string_ex_id
_ecma_new_ecma_string_from_magic_string_ex_id: ## @ecma_new_ecma_string_from_magic_string_ex_id
	.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
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_lit_get_magic_string_ex_count
	xorl	%edi, %edi
	cmpq	%r14, %rax
	setg	%dil
	callq	_JERRY_ASSERT
	movq	_LIT_MAGIC_STRING__COUNT@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	addq	%r14, %rbx
	movq	_ECMA_DIRECT_STRING_MAX_IMM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	setbe	%dil
	callq	_JERRY_LIKELY
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ECMA_DIRECT_STRING_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ECMA_CREATE_DIRECT_STRING
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_ecma_alloc_string
	movq	_ECMA_STRING_CONTAINER_MAGIC_STRING_EX@GOTPCREL(%rip), %rcx
	movq	_ECMA_STRING_REF_ONE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	addq	(%r15), %r14
	movq	%r14, 8(%rax)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIT_MAGIC_STRING__COUNT,8,3    ## @LIT_MAGIC_STRING__COUNT
	.comm	_ECMA_DIRECT_STRING_MAX_IMM,8,3 ## @ECMA_DIRECT_STRING_MAX_IMM
	.comm	_ECMA_DIRECT_STRING_MAGIC,4,2   ## @ECMA_DIRECT_STRING_MAGIC
	.comm	_ECMA_STRING_CONTAINER_MAGIC_STRING_EX,4,2 ## @ECMA_STRING_CONTAINER_MAGIC_STRING_EX
	.comm	_ECMA_STRING_REF_ONE,4,2        ## @ECMA_STRING_REF_ONE
	.no_dead_strip	_ecma_new_ecma_string_from_magic_string_ex_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ecma_new_ecma_string_from_magic_string_ex_id
_ecma_new_ecma_string_from_magic_string_ex_id: ; @ecma_new_ecma_string_from_magic_string_ex_id
	.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, x0
	bl	_lit_get_magic_string_ex_count
	cmp	x0, x19
	cset	w0, gt
	bl	_JERRY_ASSERT
Lloh0:
	adrp	x21, _LIT_MAGIC_STRING__COUNT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LIT_MAGIC_STRING__COUNT@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _ECMA_DIRECT_STRING_MAX_IMM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ECMA_DIRECT_STRING_MAX_IMM@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x20, x8, x19
	cmp	x20, x9
	cset	w0, ls
	bl	_JERRY_LIKELY
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ECMA_DIRECT_STRING_MAGIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECMA_DIRECT_STRING_MAGIC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ECMA_CREATE_DIRECT_STRING
	b	LBB0_3
LBB0_2:
	bl	_ecma_alloc_string
Lloh8:
	adrp	x8, _ECMA_STRING_CONTAINER_MAGIC_STRING_EX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECMA_STRING_CONTAINER_MAGIC_STRING_EX@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _ECMA_STRING_REF_ONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ECMA_STRING_REF_ONE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	x8, [x21]
	add	x8, x8, x19
	str	x8, [x0, #8]
LBB0_3:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LIT_MAGIC_STRING__COUNT,8,3    ; @LIT_MAGIC_STRING__COUNT
	.comm	_ECMA_DIRECT_STRING_MAX_IMM,8,3 ; @ECMA_DIRECT_STRING_MAX_IMM
	.comm	_ECMA_DIRECT_STRING_MAGIC,4,2   ; @ECMA_DIRECT_STRING_MAGIC
	.comm	_ECMA_STRING_CONTAINER_MAGIC_STRING_EX,4,2 ; @ECMA_STRING_CONTAINER_MAGIC_STRING_EX
	.comm	_ECMA_STRING_REF_ONE,4,2        ; @ECMA_STRING_REF_ONE
	.no_dead_strip	_ecma_new_ecma_string_from_magic_string_ex_id
.subsections_via_symbols
