	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lit_read_code_unit_from_hex    ## -- Begin function lit_read_code_unit_from_hex
	.p2align	4, 0x90
_lit_read_code_unit_from_hex:           ## @lit_read_code_unit_from_hex
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_LIT_CHAR_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	-2(%r15), %eax
	xorl	%edi, %edi
	cmpl	$3, %eax
	setb	%dil
	callq	_JERRY_ASSERT
	testl	%r15d, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	_LIT_CHAR_ASCII_DIGITS_BEGIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_LIT_CHAR_ASCII_DIGITS_END@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_BEGIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_END@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	-10(%r14), %r13
	movq	_LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_BEGIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_END@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$4294967286, %r11d              ## imm = 0xFFFFFFF6
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	addq	%rcx, %r11
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	shll	$4, %ebx
	subl	%ecx, %edx
	orl	%ebx, %edx
	incq	%rsi
	movl	%edx, %ebx
	cmpl	%esi, %edi
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rsi,8), %rdx
	cmpq	%r9, %rdx
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r9, %rcx
	cmpq	%r10, %rdx
	jle	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %rdx
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rcx
	cmpq	%r8, %rdx
	jle	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-64(%rbp), %rdx                 ## 8-byte Folded Reload
	jl	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r11, %rcx
	cmpq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	jle	LBB0_9
	jmp	LBB0_11
LBB0_1:
	movl	%ebx, %edx
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	movl	$1, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIT_CHAR_NULL,4,2              ## @LIT_CHAR_NULL
	.comm	_LIT_CHAR_ASCII_DIGITS_BEGIN,8,3 ## @LIT_CHAR_ASCII_DIGITS_BEGIN
	.comm	_LIT_CHAR_ASCII_DIGITS_END,8,3  ## @LIT_CHAR_ASCII_DIGITS_END
	.comm	_LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_BEGIN,8,3 ## @LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_BEGIN
	.comm	_LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_END,8,3 ## @LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_END
	.comm	_LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_BEGIN,8,3 ## @LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_BEGIN
	.comm	_LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_END,8,3 ## @LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lit_read_code_unit_from_hex    ; -- Begin function lit_read_code_unit_from_hex
	.p2align	2
_lit_read_code_unit_from_hex:           ; @lit_read_code_unit_from_hex
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _LIT_CHAR_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIT_CHAR_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	sub	w8, w1, #2
	cmp	w8, #3
	cset	w0, lo
	bl	_JERRY_ASSERT
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _LIT_CHAR_ASCII_DIGITS_BEGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIT_CHAR_ASCII_DIGITS_BEGIN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _LIT_CHAR_ASCII_DIGITS_END@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LIT_CHAR_ASCII_DIGITS_END@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_BEGIN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_BEGIN@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_END@GOTPAGE
Lloh13:
	ldr	x11, [x11, _LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_END@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	sub	x12, x10, #10
Lloh15:
	adrp	x13, _LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_BEGIN@GOTPAGE
Lloh16:
	ldr	x13, [x13, _LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_BEGIN@GOTPAGEOFF]
Lloh17:
	ldr	x13, [x13]
Lloh18:
	adrp	x14, _LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_END@GOTPAGE
Lloh19:
	ldr	x14, [x14, _LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_END@GOTPAGEOFF]
Lloh20:
	ldr	x14, [x14]
	mov	w15, #-10
	add	x15, x13, x15
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	w0, w22, #4
	sub	w16, w16, w17
	orr	w22, w0, w16
	add	x21, x21, #8
	subs	w20, w20, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x16, [x21]
	cmp	x16, x8
	ccmp	x16, x9, #0, ge
	mov	x17, x8
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x16, x10
	ccmp	x16, x11, #0, ge
	mov	x17, x12
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x16, x13
	ccmp	x16, x14, #0, ge
	mov	x17, x15
	b.le	LBB0_2
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	str	w22, [x19]
	mov	w0, #1
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LIT_CHAR_NULL,4,2              ; @LIT_CHAR_NULL
	.comm	_LIT_CHAR_ASCII_DIGITS_BEGIN,8,3 ; @LIT_CHAR_ASCII_DIGITS_BEGIN
	.comm	_LIT_CHAR_ASCII_DIGITS_END,8,3  ; @LIT_CHAR_ASCII_DIGITS_END
	.comm	_LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_BEGIN,8,3 ; @LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_BEGIN
	.comm	_LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_END,8,3 ; @LIT_CHAR_ASCII_LOWERCASE_LETTERS_HEX_END
	.comm	_LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_BEGIN,8,3 ; @LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_BEGIN
	.comm	_LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_END,8,3 ; @LIT_CHAR_ASCII_UPPERCASE_LETTERS_HEX_END
.subsections_via_symbols
