	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_enum_def
_read_enum_def:                         ## @read_enum_def
	.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
	xorl	%eax, %eax
	callq	_get
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_TIDENT@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.1:
	movq	8(%rbx), %r14
	xorl	%eax, %eax
	callq	_get
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_7
## %bb.2:
	movq	_tags@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_map_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rax), %rax
	movq	_KIND_ENUM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_errort
LBB0_5:
	movq	%rbx, %rdi
	movl	$123, %esi
	callq	_is_keyword
	movl	(%r12), %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	movq	_type_enum@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rsi
	callq	_map_put
	jmp	LBB0_12
LBB0_7:
	movq	%rbx, %rdi
	movl	$123, %esi
	callq	_is_keyword
	testq	%rax, %rax
	je	LBB0_8
LBB0_12:
	xorl	%eax, %eax
	callq	_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$125, %esi
	callq	_is_keyword
	testq	%rax, %rax
	jne	LBB0_22
## %bb.13:
	movq	_type_int@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%r12d
	xorl	%eax, %eax
	callq	_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$125, %esi
	callq	_is_keyword
	testq	%rax, %rax
	jne	LBB0_22
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_tok2s
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_errort
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	8(%rbx), %r13
	movl	$61, %edi
	callq	_next_token
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	callq	_read_intexpr
	movl	%eax, %r12d
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%r14), %rdi
	movl	%r12d, %esi
	callq	_ast_inttype
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_env
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_map_put
	movl	$44, %edi
	callq	_next_token
	testq	%rax, %rax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$125, %edi
	callq	_next_token
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	callq	_peek
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_peek
	movq	%rax, %rdi
	callq	_tok2s
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
	callq	_errort
	jmp	LBB0_21
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_errort
LBB0_10:
	movq	%rbx, %rdi
	callq	_unget_token
LBB0_22:
	movq	_type_int@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rsi
	callq	_map_get
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_TIDENT,8,3                     ## @TIDENT
	.comm	_tags,4,2                       ## @tags
	.comm	_KIND_ENUM,8,3                  ## @KIND_ENUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"declarations of %s does not match"

L_.str.1:                               ## @.str.1
	.asciz	"enum tag %s is not defined"

	.comm	_type_int,8,3                   ## @type_int
	.comm	_type_enum,8,3                  ## @type_enum
L_.str.2:                               ## @.str.2
	.asciz	"identifier expected, but got %s"

L_.str.3:                               ## @.str.3
	.asciz	"',' or '}' expected, but got %s"

	.no_dead_strip	_read_enum_def
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_enum_def
_read_enum_def:                         ; @read_enum_def
	.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
	bl	_get
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x25, _TIDENT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TIDENT@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh2:
	adrp	x24, _type_int@GOTPAGE
Lloh3:
	ldr	x24, [x24, _type_int@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	ldr	x20, [x19, #8]
	bl	_get
	mov	x19, x0
	cbz	x20, LBB0_7
; %bb.2:
Lloh4:
	adrp	x21, _tags@GOTPAGE
Lloh5:
	ldr	x21, [x21, _tags@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_map_get
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _KIND_ENUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KIND_ENUM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_errort
LBB0_5:
	mov	x0, x19
	mov	w1, #123
	bl	_is_keyword
	mov	x8, x0
	ldr	w0, [x21]
	cbz	x8, LBB0_22
; %bb.6:
Lloh11:
	adrp	x8, _type_enum@GOTPAGE
Lloh12:
	ldr	x8, [x8, _type_enum@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x8]
	mov	x1, x20
	bl	_map_put
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	w1, #123
	bl	_is_keyword
	cbz	x0, LBB0_18
LBB0_8:
	bl	_get
	mov	x22, x0
	mov	w1, #125
	bl	_is_keyword
	cbnz	x0, LBB0_21
; %bb.9:
	mov	w19, #0
Lloh14:
	adrp	x20, l_.str.3@PAGE
Lloh15:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh16:
	adrp	x21, l_.str.2@PAGE
Lloh17:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w19, w19, #1
	bl	_get
	mov	x22, x0
	mov	w1, #125
	bl	_is_keyword
	cbnz	x0, LBB0_21
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	bl	_tok2s
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_errort
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x22, [x22, #8]
	mov	w0, #61
	bl	_next_token
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_read_intexpr
	mov	x19, x0
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x24]
	mov	x1, x19
	bl	_ast_inttype
	mov	x23, x0
	bl	_env
	mov	x1, x22
	mov	x2, x23
	bl	_map_put
	mov	w0, #44
	bl	_next_token
	cbnz	x0, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #125
	bl	_next_token
	cbnz	x0, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_peek
	mov	x22, x0
	bl	_peek
	bl	_tok2s
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	bl	_errort
	b	LBB0_10
LBB0_18:
	mov	x20, #0
LBB0_19:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_errort
LBB0_20:
	mov	x0, x19
	bl	_unget_token
LBB0_21:
	ldr	x0, [x24]
	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_22:
	mov	x1, x20
	bl	_map_get
	cbnz	x0, LBB0_20
	b	LBB0_19
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TIDENT,8,3                     ; @TIDENT
	.comm	_tags,4,2                       ; @tags
	.comm	_KIND_ENUM,8,3                  ; @KIND_ENUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"declarations of %s does not match"

l_.str.1:                               ; @.str.1
	.asciz	"enum tag %s is not defined"

	.comm	_type_int,8,3                   ; @type_int
	.comm	_type_enum,8,3                  ; @type_enum
l_.str.2:                               ; @.str.2
	.asciz	"identifier expected, but got %s"

l_.str.3:                               ; @.str.3
	.asciz	"',' or '}' expected, but got %s"

	.no_dead_strip	_read_enum_def
.subsections_via_symbols
