	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_prog_declaration
_get_prog_declaration:                  ## @get_prog_declaration
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_DEF_PROGRAM@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_3
## %bb.1:
	leaq	-72(%rbp), %rdi
	callq	_peek
	movq	-72(%rbp), %rax
	movq	_TOK_RPAREN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_REL_ALIAS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	leaq	L_.str(%rip), %rax
	movq	%rax, 8(%r12)
	movq	$0, 32(%r12)
	movq	$0, 16(%r12)
	jmp	LBB0_23
LBB0_3:
	leaq	32(%r12), %rdi
	leaq	8(%r12), %r14
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_get_type
	movq	_REL_ALIAS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_TOK_IDENT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-72(%rbp), %rsi
	callq	_peekscan
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-64(%rbp), %rsi
	leaq	-50(%rbp), %rdi
	callq	_strcpy
	jmp	LBB0_6
LBB0_5:
	movq	_ARGNAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	leaq	-50(%rbp), %rdi
	movl	%r15d, %ecx
	callq	_sprintf
LBB0_6:
	leaq	-50(%rbp), %rdi
	callq	_xstrdup
	movq	%rax, 16(%r12)
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_streq
	testq	%rax, %rax
	je	LBB0_7
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_streq
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rdi
	callq	_error
LBB0_9:
	movq	_TOK_STAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	callq	_peekscan
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_streq
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	callq	_error
LBB0_12:
	movq	_REL_POINTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	(%rbx), %edi
	leaq	-72(%rbp), %rsi
	callq	_peekscan
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	-64(%rbp), %rdi
	callq	_xstrdup
	movq	%rax, 16(%r12)
LBB0_14:
	movq	_TOK_LANGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	callq	_peekscan
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_streq
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.6(%rip), %rdi
	callq	_error
LBB0_17:
	movq	_REL_ARRAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_TOK_RANGLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-72(%rbp), %rsi
	callq	_peekscan
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.7(%rip), %rax
	movq	%rax, 24(%r12)
	jmp	LBB0_20
LBB0_19:
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	callq	_scan_num
	movq	-64(%rbp), %rax
	movq	%rax, 24(%r12)
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_scan
LBB0_20:
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_streq
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	_REL_ARRAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r12)
	je	LBB0_23
## %bb.22:
	movq	%rax, (%r12)
	leaq	L_.str.7(%rip), %rax
	movq	%rax, 24(%r12)
	jmp	LBB0_23
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DEF_PROGRAM,8,3                ## @DEF_PROGRAM
	.comm	_TOK_RPAREN,8,3                 ## @TOK_RPAREN
	.comm	_REL_ALIAS,8,3                  ## @REL_ALIAS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"void"

	.comm	_TOK_IDENT,4,2                  ## @TOK_IDENT
L_.str.1:                               ## @.str.1
	.asciz	"%s%d"

	.comm	_ARGNAME,8,3                    ## @ARGNAME
L_.str.2:                               ## @.str.2
	.asciz	"opaque"

L_.str.3:                               ## @.str.3
	.asciz	"opaque -- illegal argument type"

	.comm	_TOK_STAR,4,2                   ## @TOK_STAR
L_.str.4:                               ## @.str.4
	.asciz	"string"

L_.str.5:                               ## @.str.5
	.asciz	"pointer to string not allowed in program arguments"

	.comm	_REL_POINTER,8,3                ## @REL_POINTER
	.comm	_TOK_LANGLE,4,2                 ## @TOK_LANGLE
L_.str.6:                               ## @.str.6
	.asciz	"arrays cannot be declared as arguments to procedures -- use typedef"

	.comm	_REL_ARRAY,8,3                  ## @REL_ARRAY
	.comm	_TOK_RANGLE,4,2                 ## @TOK_RANGLE
L_.str.7:                               ## @.str.7
	.asciz	"~0"

	.no_dead_strip	_get_prog_declaration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_prog_declaration
_get_prog_declaration:                  ; @get_prog_declaration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x8, _DEF_PROGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEF_PROGRAM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.1:
	add	x0, sp, #8
	bl	_peek
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, _TOK_RPAREN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TOK_RPAREN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _REL_ALIAS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REL_ALIAS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, l_.str@PAGE
Lloh13:
	add	x9, x9, l_.str@PAGEOFF
	stp	x8, x9, [x19]
	str	xzr, [x19, #32]
	str	xzr, [x19, #16]
	b	LBB0_7
LBB0_3:
	add	x0, x19, #32
	add	x20, x19, #8
	mov	x1, x20
	mov	x2, x22
	bl	_get_type
Lloh14:
	adrp	x8, _REL_ALIAS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REL_ALIAS@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh17:
	adrp	x22, _TOK_IDENT@GOTPAGE
Lloh18:
	ldr	x22, [x22, _TOK_IDENT@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_peekscan
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x1, [sp, #16]
	add	x0, sp, #30
	bl	_strcpy
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _ARGNAME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ARGNAME@GOTPAGEOFF]
Lloh21:
	ldr	x2, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #30
	mov	x3, x21
	bl	_sprintf
LBB0_6:
	add	x0, sp, #30
	bl	_xstrdup
	str	x0, [x19, #16]
	ldr	x0, [x19, #8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_streq
	cbz	x0, LBB0_9
LBB0_7:
	ldr	x8, [sp, #40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	x0, [x20]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_streq
	cbz	x0, LBB0_11
; %bb.10:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
LBB0_11:
Lloh33:
	adrp	x8, _TOK_STAR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TOK_STAR@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_peekscan
	cbz	x0, LBB0_16
; %bb.12:
	ldr	x0, [x20]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_streq
	cbz	x0, LBB0_14
; %bb.13:
Lloh38:
	adrp	x0, l_.str.5@PAGE
Lloh39:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_error
LBB0_14:
Lloh40:
	adrp	x8, _REL_POINTER@GOTPAGE
Lloh41:
	ldr	x8, [x8, _REL_POINTER@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_peekscan
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x0, [sp, #16]
	bl	_xstrdup
	str	x0, [x19, #16]
LBB0_16:
Lloh43:
	adrp	x8, _TOK_LANGLE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TOK_LANGLE@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_peekscan
Lloh46:
	adrp	x21, _REL_ARRAY@GOTPAGE
Lloh47:
	ldr	x21, [x21, _REL_ARRAY@GOTPAGEOFF]
	cbz	x0, LBB0_22
; %bb.17:
	ldr	x0, [x20]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_streq
	cbnz	x0, LBB0_19
; %bb.18:
Lloh50:
	adrp	x0, l_.str.6@PAGE
Lloh51:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_error
LBB0_19:
	ldr	x8, [x21]
	str	x8, [x19]
Lloh52:
	adrp	x22, _TOK_RANGLE@GOTPAGE
Lloh53:
	ldr	x22, [x22, _TOK_RANGLE@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_peekscan
	cbz	x0, LBB0_21
; %bb.20:
Lloh54:
	adrp	x8, l_.str.7@PAGE
Lloh55:
	add	x8, x8, l_.str.7@PAGEOFF
	str	x8, [x19, #24]
	b	LBB0_22
LBB0_21:
	add	x0, sp, #8
	bl	_scan_num
	ldr	x8, [sp, #16]
	str	x8, [x19, #24]
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_scan
LBB0_22:
	ldr	x0, [x20]
Lloh56:
	adrp	x1, l_.str.4@PAGE
Lloh57:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_streq
	cbz	x0, LBB0_7
; %bb.23:
	ldr	x9, [x19]
	ldr	x8, [x21]
	cmp	x9, x8
	b.eq	LBB0_7
; %bb.24:
	str	x8, [x19]
Lloh58:
	adrp	x8, l_.str.7@PAGE
Lloh59:
	add	x8, x8, l_.str.7@PAGEOFF
	str	x8, [x19, #24]
	b	LBB0_7
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_DEF_PROGRAM,8,3                ; @DEF_PROGRAM
	.comm	_TOK_RPAREN,8,3                 ; @TOK_RPAREN
	.comm	_REL_ALIAS,8,3                  ; @REL_ALIAS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"void"

	.comm	_TOK_IDENT,4,2                  ; @TOK_IDENT
l_.str.1:                               ; @.str.1
	.asciz	"%s%d"

	.comm	_ARGNAME,8,3                    ; @ARGNAME
l_.str.2:                               ; @.str.2
	.asciz	"opaque"

l_.str.3:                               ; @.str.3
	.asciz	"opaque -- illegal argument type"

	.comm	_TOK_STAR,4,2                   ; @TOK_STAR
l_.str.4:                               ; @.str.4
	.asciz	"string"

l_.str.5:                               ; @.str.5
	.asciz	"pointer to string not allowed in program arguments"

	.comm	_REL_POINTER,8,3                ; @REL_POINTER
	.comm	_TOK_LANGLE,4,2                 ; @TOK_LANGLE
l_.str.6:                               ; @.str.6
	.asciz	"arrays cannot be declared as arguments to procedures -- use typedef"

	.comm	_REL_ARRAY,8,3                  ; @REL_ARRAY
	.comm	_TOK_RANGLE,4,2                 ; @TOK_RANGLE
l_.str.7:                               ; @.str.7
	.asciz	"~0"

	.no_dead_strip	_get_prog_declaration
.subsections_via_symbols
