	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_parse_nat_term              ## -- Begin function tl_parse_nat_term
	.p2align	4, 0x90
_tl_parse_nat_term:                     ## @tl_parse_nat_term
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_type_nat_term@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$1, 8(%rbx)
	sete	%dil
	callq	_assert
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_tl_parse_term
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rdi
	movq	_type_num@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_4
## %bb.2:
	movq	_type_num_value@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_4
## %bb.3:
	callq	_TL_TYPE
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TL_ERROR
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_type_nat_term,8,3              ## @type_nat_term
	.comm	_type_num,8,3                   ## @type_num
	.comm	_type_num_value,8,3             ## @type_num_value
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nat_term: found type %s\n"

	.comm	_TL_FAIL,4,2                    ## @TL_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tl_parse_nat_term              ; -- Begin function tl_parse_nat_term
	.p2align	2
_tl_parse_nat_term:                     ; @tl_parse_nat_term
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _type_nat_term@GOTPAGE
Lloh1:
	ldr	x9, [x9, _type_nat_term@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20, #8]
	cmp	w8, #1
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_tl_parse_term
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _type_num@GOTPAGE
Lloh4:
	ldr	x8, [x8, _type_num@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _type_num_value@GOTPAGE
Lloh7:
	ldr	x9, [x9, _type_num_value@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_3
; %bb.2:
	bl	_TL_TYPE
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TL_ERROR
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_type_nat_term,8,3              ; @type_nat_term
	.comm	_type_num,8,3                   ; @type_num
	.comm	_type_num_value,8,3             ; @type_num_value
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nat_term: found type %s\n"

	.comm	_TL_FAIL,4,2                    ; @TL_FAIL
.subsections_via_symbols
