	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_nat_val                  ## -- Begin function check_nat_val
	.p2align	4, 0x90
_check_nat_val:                         ## @check_nat_val
	.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	___tok@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	(%rsi), %rax
	movq	_type_type@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.2:
	movq	%rdi, %rbx
	movq	_type_num_value@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	__T@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	_type_num@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	8(%r14), %r13
	movl	(%r12), %edi
	movl	16(%r14), %esi
	callq	_tl_get_var_value_num
	movq	%rax, %r15
	movl	(%r12), %edi
	movl	16(%r14), %esi
	callq	_tl_get_var_value
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	addq	%r13, %rbx
	addq	%r15, %rbx
	movq	(%rax), %rax
	movq	_type_num_value@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_6:
	addq	8(%r14), %rbx
	js	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	___tok@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vkprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___tok,8,3                      ## @__tok
	.comm	_type_type,8,3                  ## @type_type
	.comm	_type_num_value,8,3             ## @type_num_value
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Variable has negative value. Error.\n"

	.comm	_type_num,8,3                   ## @type_num
	.comm	__T,4,2                         ## @_T
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_nat_val                  ; -- Begin function check_nat_val
	.p2align	2
_check_nat_val:                         ; @check_nat_val
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x22, ___tok@GOTPAGE
Lloh1:
	ldr	x22, [x22, ___tok@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1]
Lloh2:
	adrp	x9, _type_type@GOTPAGE
Lloh3:
	ldr	x9, [x9, _type_type@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.2:
	mov	x19, x0
Lloh5:
	adrp	x23, _type_num_value@GOTPAGE
Lloh6:
	ldr	x23, [x23, _type_num_value@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:
Lloh7:
	adrp	x24, _type_num@GOTPAGE
Lloh8:
	ldr	x24, [x24, _type_num@GOTPAGEOFF]
Lloh9:
	adrp	x25, __T@GOTPAGE
Lloh10:
	ldr	x25, [x25, __T@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x26, [x20, #8]
	ldr	w0, [x25]
	ldr	w1, [x20, #16]
	bl	_tl_get_var_value_num
	mov	x21, x0
	ldr	w0, [x25]
	ldr	w1, [x20, #16]
	bl	_tl_get_var_value
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	add	x8, x26, x19
	add	x19, x8, x21
	ldr	x8, [x0]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_6:
	ldr	x8, [x20, #8]
	cmn	x8, x19
	b.mi	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	str	xzr, [x22]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vkprintf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	___tok,8,3                      ; @__tok
	.comm	_type_type,8,3                  ; @type_type
	.comm	_type_num_value,8,3             ; @type_num_value
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Variable has negative value. Error.\n"

	.comm	_type_num,8,3                   ; @type_num
	.comm	__T,4,2                         ; @_T
.subsections_via_symbols
