	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_and_check_tag
_lookup_and_check_tag:                  ## @lookup_and_check_tag
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	_ts_global@GOTPCREL(%rip), %rax
	movq	%rdx, %rsi
	cmpq	%rdx, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_lookup_name_prefer_type
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_ts_within_enclosing_non_class@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_3:
	movq	%r12, %rdi
	callq	_lookup_type_scope
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
LBB0_4:
	movq	%rbx, %rdi
	callq	_DECL_CLASS_TEMPLATE_P
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_DECL_TEMPLATE_RESULT
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
LBB0_6:
	movq	%rbx, %rdi
	callq	_TREE_CODE
	movq	_TYPE_DECL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.7:
	movq	_ts_current@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	callq	_DECL_SELF_REFERENCE_P
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_error
	movq	_error_mark_node@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	%rbx, %rdi
	callq	_TREE_CODE
	movq	_TREE_LIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_error
	movq	%rbx, %rdi
	callq	_print_candidates
	movq	_error_mark_node@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_DECL_SELF_REFERENCE_P
	orl	%eax, %r15d
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_elaborated_type_specifier ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ts_global,8,3                  ## @ts_global
	.comm	_ts_within_enclosing_non_class,8,3 ## @ts_within_enclosing_non_class
	.comm	_TYPE_DECL,8,3                  ## @TYPE_DECL
	.comm	_ts_current,8,3                 ## @ts_current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%qD has the same name as the class in which it is declared"

	.comm	_error_mark_node,8,3            ## @error_mark_node
	.comm	_TREE_LIST,8,3                  ## @TREE_LIST
L_.str.1:                               ## @.str.1
	.asciz	"reference to %qD is ambiguous"

	.comm	_NULL_TREE,8,3                  ## @NULL_TREE
	.no_dead_strip	_lookup_and_check_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_and_check_tag
_lookup_and_check_tag:                  ; @lookup_and_check_tag
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ts_global@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ts_global@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	x1, x2
	cmp	x8, x2
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x22
	mov	w1, #2
	bl	_lookup_name_prefer_type
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ts_within_enclosing_non_class@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ts_within_enclosing_non_class@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
LBB0_3:
	mov	x0, x22
	bl	_lookup_type_scope
	mov	x21, x0
	cbz	x0, LBB0_13
LBB0_4:
	mov	x0, x21
	bl	_DECL_CLASS_TEMPLATE_P
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_DECL_TEMPLATE_RESULT
	mov	x21, x0
	cbz	x0, LBB0_13
LBB0_6:
	mov	x0, x21
	bl	_TREE_CODE
Lloh6:
	adrp	x8, _TYPE_DECL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TYPE_DECL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
Lloh9:
	adrp	x8, _ts_current@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ts_current@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_15
; %bb.8:
	mov	x0, x21
	bl	_DECL_SELF_REFERENCE_P
	cbz	w0, LBB0_15
; %bb.9:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_error
	b	LBB0_12
LBB0_10:
	mov	x0, x21
	bl	_TREE_CODE
Lloh14:
	adrp	x8, _TREE_LIST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TREE_LIST@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.11:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_error
	mov	x0, x21
	bl	_print_candidates
LBB0_12:
Lloh19:
	adrp	x8, _error_mark_node@GOTPAGE
Lloh20:
	ldr	x8, [x8, _error_mark_node@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh21:
	adrp	x8, _NULL_TREE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NULL_TREE@GOTPAGEOFF]
LBB0_14:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x21
	bl	_DECL_SELF_REFERENCE_P
	orr	w2, w0, w19
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_check_elaborated_type_specifier
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ts_global,8,3                  ; @ts_global
	.comm	_ts_within_enclosing_non_class,8,3 ; @ts_within_enclosing_non_class
	.comm	_TYPE_DECL,8,3                  ; @TYPE_DECL
	.comm	_ts_current,8,3                 ; @ts_current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%qD has the same name as the class in which it is declared"

	.comm	_error_mark_node,8,3            ; @error_mark_node
	.comm	_TREE_LIST,8,3                  ; @TREE_LIST
l_.str.1:                               ; @.str.1
	.asciz	"reference to %qD is ambiguous"

	.comm	_NULL_TREE,8,3                  ; @NULL_TREE
	.no_dead_strip	_lookup_and_check_tag
.subsections_via_symbols
