	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_toplevel                  ## -- Begin function emit_toplevel
	.p2align	4, 0x90
_emit_toplevel:                         ## @emit_toplevel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_stackpos@GOTPCREL(%rip), %rax
	movl	$8, (%rax)
	movq	(%rdi), %rax
	movq	_AST_FUNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_emit_func_prologue
	movl	8(%rbx), %edi
	callq	_emit_expr
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_emit_ret                       ## TAILCALL
LBB0_1:
	movq	_AST_DECL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_emit_global_var                ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stackpos,4,2                   ## @stackpos
	.comm	_AST_FUNC,8,3                   ## @AST_FUNC
	.comm	_AST_DECL,8,3                   ## @AST_DECL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"internal error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emit_toplevel                  ; -- Begin function emit_toplevel
	.p2align	2
_emit_toplevel:                         ; @emit_toplevel
	.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, x0
Lloh0:
	adrp	x8, _stackpos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stackpos@GOTPAGEOFF]
	mov	w9, #8
Lloh2:
	str	w9, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _AST_FUNC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AST_FUNC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_emit_func_prologue
	ldr	w0, [x19, #8]
	bl	_emit_expr
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_emit_ret
LBB0_2:
Lloh6:
	adrp	x9, _AST_DECL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AST_DECL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_emit_global_var
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_error
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_stackpos,4,2                   ; @stackpos
	.comm	_AST_FUNC,8,3                   ; @AST_FUNC
	.comm	_AST_DECL,8,3                   ; @AST_DECL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"internal error"

.subsections_via_symbols
