	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_var_or_func
_read_var_or_func:                      ## @read_var_or_func
	.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
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_env
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_map_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	(%rax), %rdi
	movq	(%rdi), %rcx
	movq	_KIND_FUNC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_peek
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$40, %esi
	callq	_is_keyword
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_errort
LBB0_3:
	movq	_type_int@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_make_vector
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_make_func_type
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_warnt
	movq	%r15, %rdi
LBB0_4:
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ast_funcdesg                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"undefined variable: %s"

	.comm	_type_int,4,2                   ## @type_int
L_.str.1:                               ## @.str.1
	.asciz	"assume returning int: %s()"

	.comm	_KIND_FUNC,8,3                  ## @KIND_FUNC
	.no_dead_strip	_read_var_or_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_var_or_func
_read_var_or_func:                      ; @read_var_or_func
	.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, x0
	bl	_env
	mov	x1, x19
	bl	_map_get
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _KIND_FUNC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _KIND_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x8
	b	LBB0_6
LBB0_3:
	bl	_peek
	mov	x20, x0
	mov	w1, #40
	bl	_is_keyword
	cbnz	w0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_errort
LBB0_5:
Lloh5:
	adrp	x8, _type_int@GOTPAGE
Lloh6:
	ldr	x8, [x8, _type_int@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	bl	_make_vector
	mov	x1, x0
	mov	x0, x21
	mov	w2, #1
	mov	w3, #0
	bl	_make_func_type
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_warnt
	mov	x0, x21
LBB0_6:
	mov	x1, x19
	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
	b	_ast_funcdesg
LBB0_7:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"undefined variable: %s"

	.comm	_type_int,4,2                   ; @type_int
l_.str.1:                               ; @.str.1
	.asciz	"assume returning int: %s()"

	.comm	_KIND_FUNC,8,3                  ; @KIND_FUNC
	.no_dead_strip	_read_var_or_func
.subsections_via_symbols
