	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_parse_nat_const             ## -- Begin function tl_parse_nat_const
	.p2align	4, 0x90
_tl_parse_nat_const:                    ## @tl_parse_nat_const
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_type_nat_const@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$0, 24(%r15)
	sete	%dil
	callq	_assert
	movl	8(%r15), %ecx
	movq	16(%r15), %r8
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%r14d, %edx
	callq	_vkprintf
	testl	%r14d, %r14d
	jle	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_TL_ERROR
LBB0_2:
	movq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$0, 24(%r15)
	sete	%dil
	callq	_assert
	movq	_L@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_TL_INIT
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_alloc_ctree_node
	movq	%rax, (%r14)
	movq	_act_nat_const@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_type_num_value@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movl	8(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_10
## %bb.3:
	movq	16(%r15), %rdx
	leaq	-1(%rsi), %rdi
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$3, %rdi
	jae	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	andl	$-4, %esi
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbx,4), %rbx
	addq	%rbx, %rbx
	addq	(%rdx,%rdi,8), %rbx
	leaq	(%rbx,%rbx,4), %rbx
	addq	%rbx, %rbx
	addq	8(%rdx,%rdi,8), %rbx
	leaq	(%rbx,%rbx,4), %rbx
	addq	%rbx, %rbx
	addq	16(%rdx,%rdi,8), %rbx
	leaq	(%rbx,%rbx,4), %rbx
	movq	24(%rdx,%rdi,8), %rcx
	leaq	(%rcx,%rbx,2), %rbx
	addq	$-53328, %rbx                   ## imm = 0xFFFF2FB0
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_6
LBB0_7:
	testq	%r8, %r8
	je	LBB0_10
## %bb.8:
	leaq	(%rdx,%rdi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbx,4), %rcx
	movq	(%rdx,%rsi,8), %rdi
	leaq	(%rdi,%rcx,2), %rbx
	addq	$-48, %rbx
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_9
LBB0_10:
	movq	%rbx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_type_nat_const,8,3             ## @type_nat_const
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tl_parse_nat_const: s = %d, val = %.*s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Nat const can not preceed with %%\n"

	.comm	_TL_FAIL,4,2                    ## @TL_FAIL
	.comm	_L,8,3                          ## @L
	.comm	_act_nat_const,4,2              ## @act_nat_const
	.comm	_type_num_value,4,2             ## @type_num_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_parse_nat_const             ; -- Begin function tl_parse_nat_const
	.p2align	2
_tl_parse_nat_const:                    ; @tl_parse_nat_const
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _type_nat_const@GOTPAGE
Lloh1:
	ldr	x21, [x21, _type_nat_const@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	ldr	w3, [x19, #8]
	ldr	x4, [x19, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x20
	bl	_vkprintf
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TL_ERROR
LBB0_2:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
Lloh6:
	adrp	x20, _L@GOTPAGE
Lloh7:
	ldr	x20, [x20, _L@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_TL_INIT
	bl	_alloc_ctree_node
	str	x0, [x20]
Lloh8:
	adrp	x8, _act_nat_const@GOTPAGE
Lloh9:
	ldr	x8, [x8, _act_nat_const@GOTPAGEOFF]
Lloh10:
	adrp	x9, _type_num_value@GOTPAGE
Lloh11:
	ldr	x9, [x9, _type_num_value@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x9, #0
	ldr	x10, [x19, #16]
	mov	w11, #10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #8
	madd	x9, x9, x11, x12
	sub	x9, x9, #48
	subs	x8, x8, #1
	b.ne	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x9, #0
LBB0_6:
	str	x9, [x0]
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_type_nat_const,8,3             ; @type_nat_const
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tl_parse_nat_const: s = %d, val = %.*s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Nat const can not preceed with %%\n"

	.comm	_TL_FAIL,4,2                    ; @TL_FAIL
	.comm	_L,8,3                          ; @L
	.comm	_act_nat_const,4,2              ; @act_nat_const
	.comm	_type_num_value,4,2             ; @type_num_value
.subsections_via_symbols
