	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_uint32_to_utf8_string     ## -- Begin function ecma_uint32_to_utf8_string
	.p2align	4, 0x90
_ecma_uint32_to_utf8_string:            ## @ecma_uint32_to_utf8_string
	.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
	movq	%rsi, %r14
	movl	%edi, %ebx
	movslq	%edx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rax,8), %r15
	xorl	%r13d, %r13d
	movq	_LIT_CHAR_0@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r13), %rax
	xorl	%edi, %edi
	cmpq	%r14, %rax
	setae	%dil
	callq	_JERRY_ASSERT
	movslq	%ebx, %rax
	imulq	$1717986919, %rax, %rbx         ## imm = 0x66666667
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$34, %rbx
	addl	%ecx, %ebx
	leal	(%rbx,%rbx), %ecx
	leal	(%rcx,%rcx,4), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	addq	(%r12), %rcx
	movq	%rcx, -8(%r15,%r13)
	addl	$9, %eax
	addq	$-8, %r13
	cmpl	$18, %eax
	ja	LBB0_1
## %bb.2:
	addq	%r13, %r15
	xorl	%edi, %edi
	cmpq	%r14, %r15
	setae	%dil
	callq	_JERRY_ASSERT
	movq	%r13, %rbx
	negq	%rbx
	shrq	$3, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	shlq	$3, %rax
	xorl	%edi, %edi
	addq	%r13, %rax
	setne	%dil
	callq	_JERRY_LIKELY
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memmove
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIT_CHAR_0,8,3                 ## @LIT_CHAR_0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecma_uint32_to_utf8_string     ; -- Begin function ecma_uint32_to_utf8_string
	.p2align	2
_ecma_uint32_to_utf8_string:            ; @ecma_uint32_to_utf8_string
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x1
	mov	x20, x0
	mov	x22, #0
	sxtw	x21, w2
	mov	w23, #26215
	movk	w23, #26214, lsl #16
	mov	w24, #10
Lloh0:
	adrp	x25, _LIT_CHAR_0@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LIT_CHAR_0@GOTPAGEOFF]
	add	x26, x1, w2, sxtw #3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x27, x26, x22
	cmp	x27, x19
	cset	w0, hs
	bl	_JERRY_ASSERT
	smull	x8, w20, w23
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	msub	w9, w8, w24, w20
	ldr	x10, [x25]
	add	x9, x10, w9, sxtw
	stur	x9, [x27, #-8]
	add	w9, w20, #9
	sub	x22, x22, #8
	mov	x20, x8
	cmp	w9, #18
	b.hi	LBB0_1
; %bb.2:
	lsl	x23, x21, #3
	add	x8, x19, x23
	add	x20, x8, x22
	cmp	x20, x19
	cset	w0, hs
	bl	_JERRY_ASSERT
	neg	x8, x22
	lsr	x21, x8, #3
	cmn	x23, x22
	cset	w0, ne
	bl	_JERRY_LIKELY
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_memmove
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LIT_CHAR_0,8,3                 ; @LIT_CHAR_0
.subsections_via_symbols
