	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_decl_enum                   ## -- Begin function dt_decl_enum
	.p2align	4, 0x90
_dt_decl_enum:                          ## @dt_decl_enum
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CTF_K_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_dt_decl_spec
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_DT_TYPE_NAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_yypcb@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	$0, (%rcx)
	movq	16(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	8(%rax), %rax
	cmpq	$0, 8(%rcx)
	jne	LBB0_4
LBB0_5:
	movq	_CTF_ADD_ROOT@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	movq	(%rax), %rax
	cmpq	$0, 8(%rcx)
	je	LBB0_5
LBB0_4:
	movq	_CTF_ADD_NONROOT@GOTPCREL(%rip), %rcx
LBB0_6:
	movq	(%rax), %r12
	movl	(%rcx), %r14d
	testq	%rbx, %rbx
	leaq	L_.str.1(%rip), %rcx
	cmovneq	%rbx, %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_snprintf
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ctf_lookup_by_name
	movl	%eax, %r13d
	movq	_CTF_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_8
LBB0_10:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_ctf_add_enum
	movl	%eax, %r13d
	movq	_CTF_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_12
## %bb.11:
	movq	_D_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_ctf_errno
	movl	%eax, %edi
	callq	_ctf_errmsg
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_xyerror
	jmp	LBB0_12
LBB0_8:
	movq	_dt_decl_hasmembers@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	callq	_ctf_enum_iter
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_D_DECL_TYPERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_xyerror
LBB0_12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, 8(%rbx)
	movl	%r13d, (%rbx)
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_dt_scope_push
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CTF_K_ENUM,4,2                 ## @CTF_K_ENUM
	.comm	_DT_TYPE_NAMELEN,4,2            ## @DT_TYPE_NAMELEN
	.comm	_yypcb,8,3                      ## @yypcb
	.comm	_CTF_ADD_NONROOT,4,2            ## @CTF_ADD_NONROOT
	.comm	_CTF_ADD_ROOT,4,2               ## @CTF_ADD_ROOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enum %s"

L_.str.1:                               ## @.str.1
	.asciz	"(anon)"

	.comm	_CTF_ERR,4,2                    ## @CTF_ERR
	.comm	_dt_decl_hasmembers,4,2         ## @dt_decl_hasmembers
	.comm	_D_DECL_TYPERED,4,2             ## @D_DECL_TYPERED
L_.str.2:                               ## @.str.2
	.asciz	"type redeclared: %s\n"

	.comm	_D_UNKNOWN,4,2                  ## @D_UNKNOWN
L_.str.3:                               ## @.str.3
	.asciz	"failed to define %s: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_decl_enum                   ; -- Begin function dt_decl_enum
	.p2align	2
_dt_decl_enum:                          ; @dt_decl_enum
	.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
	sub	sp, sp, #16
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _CTF_K_ENUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTF_K_ENUM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_dt_decl_spec
	mov	x19, x0
Lloh6:
	adrp	x8, _DT_TYPE_NAMELEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DT_TYPE_NAMELEN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x9, x1
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh11:
	adrp	x8, _yypcb@GOTPAGE
Lloh12:
	ldr	x8, [x8, _yypcb@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x10, [x8]
	ldr	x9, [x8, #16]
	cbz	x10, LBB0_2
; %bb.1:
	ldr	x9, [x9, #8]
	b	LBB0_3
LBB0_2:
	ldr	x9, [x9]
LBB0_3:
	ldr	x21, [x9]
	ldr	x8, [x8, #8]
Lloh14:
	adrp	x9, _CTF_ADD_ROOT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CTF_ADD_ROOT@GOTPAGEOFF]
Lloh16:
	adrp	x10, _CTF_ADD_NONROOT@GOTPAGE
Lloh17:
	ldr	x10, [x10, _CTF_ADD_NONROOT@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w24, [x8]
Lloh18:
	adrp	x8, l_.str.1@PAGE
Lloh19:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x22, #0
	csel	x3, x8, x22, eq
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_snprintf
Lloh22:
	adrp	x25, _CTF_ERR@GOTPAGE
Lloh23:
	ldr	x25, [x25, _CTF_ERR@GOTPAGEOFF]
	cbz	x22, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	bl	_ctf_lookup_by_name
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_7
LBB0_5:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	bl	_ctf_add_enum
	mov	x23, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.6:
Lloh24:
	adrp	x8, _D_UNKNOWN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _D_UNKNOWN@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_ctf_errno
	bl	_ctf_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	bl	_xyerror
	add	sp, sp, #16
	b	LBB0_9
LBB0_7:
	mov	x23, x0
Lloh29:
	adrp	x8, _dt_decl_hasmembers@GOTPAGE
Lloh30:
	ldr	x8, [x8, _dt_decl_hasmembers@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x23
	mov	x3, #0
	bl	_ctf_enum_iter
	cbz	x0, LBB0_9
; %bb.8:
Lloh32:
	adrp	x8, _D_DECL_TYPERED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _D_DECL_TYPERED@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_xyerror
LBB0_9:
	str	x21, [x19, #8]
	str	w23, [x19]
	mov	x0, x21
	mov	x1, x23
	bl	_dt_scope_push
	ldur	x8, [x29, #-72]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	sub	sp, x29, #64
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_CTF_K_ENUM,4,2                 ; @CTF_K_ENUM
	.comm	_DT_TYPE_NAMELEN,4,2            ; @DT_TYPE_NAMELEN
	.comm	_yypcb,8,3                      ; @yypcb
	.comm	_CTF_ADD_NONROOT,4,2            ; @CTF_ADD_NONROOT
	.comm	_CTF_ADD_ROOT,4,2               ; @CTF_ADD_ROOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enum %s"

l_.str.1:                               ; @.str.1
	.asciz	"(anon)"

	.comm	_CTF_ERR,4,2                    ; @CTF_ERR
	.comm	_dt_decl_hasmembers,4,2         ; @dt_decl_hasmembers
	.comm	_D_DECL_TYPERED,4,2             ; @D_DECL_TYPERED
l_.str.2:                               ; @.str.2
	.asciz	"type redeclared: %s\n"

	.comm	_D_UNKNOWN,4,2                  ; @D_UNKNOWN
l_.str.3:                               ; @.str.3
	.asciz	"failed to define %s: %s\n"

.subsections_via_symbols
