	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_base                    ## -- Begin function lookup_base
	.p2align	4, 0x90
_lookup_base:                           ## @lookup_base
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	_error_mark_node@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	%rdi, %rbx
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	cmpq	%rsi, %rbx
	je	LBB0_4
## %bb.2:
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	%r15, %rdi
	callq	_TYPE_P
	movl	%eax, %edi
	callq	_gcc_assert
	movq	%r13, %rdi
	callq	_TYPE_P
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	callq	_TYPE_MAIN_VARIANT
	movl	%eax, %edi
	callq	_complete_type
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TYPE_BINFO
	movq	%rax, %r13
	jmp	LBB0_6
LBB0_4:
	movl	$128, %r15d
	jmp	LBB0_28
LBB0_5:
	movq	%r13, %rdi
	callq	_BINFO_TYPE
	movq	%rax, %rbx
LBB0_6:
	movq	%r15, %rdi
	callq	_TYPE_MAIN_VARIANT
	movl	%eax, %edi
	callq	_complete_type
	movq	%rax, %r15
	testq	%r13, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.7:
	movq	%rbx, -56(%rbp)
	movq	%r15, -64(%rbp)
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	%rbx, %rdi
	callq	_CLASSTYPE_REPEATED_BASE_P
	movl	%eax, -68(%rbp)
	movq	_ba_any@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	%r12, (%rax)
	sete	%cl
	movl	%ecx, -72(%rbp)
	movq	_dfs_lookup_base@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rcx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_dfs_walk_once
	movq	-88(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.8:
	cmpq	%r13, %rbx
	jne	LBB0_12
## %bb.9:
	movq	%r15, %r13
	movq	_bk_same_type@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	%r15, %r13
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$128, %r15d
	jmp	LBB0_16
LBB0_11:
	movq	%r15, %r13
	cmpl	$1, -80(%rbp)
	movl	$129, %r15d
	sbbl	$0, %r15d
	jmp	LBB0_16
LBB0_12:
	movq	%r15, %r13
	cmpl	$0, -76(%rbp)
	je	LBB0_14
## %bb.13:
	movq	_bk_via_virtual@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_bk_proper_base@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %r15d
LBB0_16:
	movq	_ba_any@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_28
## %bb.17:
	cmpl	$128, %r15d
	je	LBB0_28
## %bb.18:
	cmpl	$129, %r15d
	jne	LBB0_21
## %bb.19:
	movq	_ba_quiet@GOTPCREL(%rip), %rax
	movl	$129, %r15d
	testq	%r12, (%rax)
	jne	LBB0_28
## %bb.20:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_error
	movq	_error_mark_node@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_28
LBB0_21:
	movq	_ba_check_bit@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_28
## %bb.22:
	movq	%r13, %rdi
	callq	_COMPLETE_TYPE_P
	testl	%eax, %eax
	je	LBB0_28
## %bb.23:
	movq	_ba_ignore_scope@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movq	(%rax), %rax
	andq	%r12, %rax
	sete	%dl
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_accessible_base_p
	testl	%eax, %eax
	jne	LBB0_28
## %bb.24:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	_ba_quiet@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_26
## %bb.25:
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_26:
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_error
	movq	_error_mark_node@GOTPCREL(%rip), %rax
LBB0_27:
	movq	(%rax), %rbx
	movq	_bk_inaccessible@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_28:
	testq	%r14, %r14
	je	LBB0_30
## %bb.29:
	movl	%r15d, (%r14)
LBB0_30:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_error_mark_node,8,3            ## @error_mark_node
	.comm	_NULL_TREE,8,3                  ## @NULL_TREE
	.comm	_ba_any,8,3                     ## @ba_any
	.comm	_dfs_lookup_base,4,2            ## @dfs_lookup_base
	.comm	_bk_same_type,4,2               ## @bk_same_type
	.comm	_bk_via_virtual,4,2             ## @bk_via_virtual
	.comm	_bk_proper_base,4,2             ## @bk_proper_base
	.comm	_ba_quiet,8,3                   ## @ba_quiet
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%qT is an ambiguous base of %qT"

	.comm	_ba_check_bit,8,3               ## @ba_check_bit
	.comm	_ba_ignore_scope,8,3            ## @ba_ignore_scope
L_.str.1:                               ## @.str.1
	.asciz	"%qT is an inaccessible base of %qT"

	.comm	_bk_inaccessible,4,2            ## @bk_inaccessible
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_base                    ; -- Begin function lookup_base
	.p2align	2
_lookup_base:                           ; @lookup_base
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x3
Lloh0:
	adrp	x25, _error_mark_node@GOTPAGE
Lloh1:
	ldr	x25, [x25, _error_mark_node@GOTPAGEOFF]
	ldr	x22, [x25]
	cmp	x22, x0
	ccmp	x22, x1, #4, ne
	b.ne	LBB0_3
; %bb.1:
	cbz	x19, LBB0_29
; %bb.2:
	mov	w24, #128
	b	LBB0_28
LBB0_3:
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	mov	x0, x1
	bl	_TYPE_P
	bl	_gcc_assert
	mov	x0, x24
	bl	_TYPE_P
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x24
	bl	_TYPE_MAIN_VARIANT
	bl	_complete_type
	mov	x21, x0
	bl	_TYPE_BINFO
	mov	x24, x0
	b	LBB0_6
LBB0_5:
	mov	x0, x24
	bl	_BINFO_TYPE
	mov	x21, x0
LBB0_6:
	mov	x0, x23
	bl	_TYPE_MAIN_VARIANT
	bl	_complete_type
	mov	x23, x0
Lloh2:
	adrp	x26, _ba_any@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ba_any@GOTPAGEOFF]
	cbz	x24, LBB0_10
; %bb.7:
	stp	x23, x21, [sp, #32]
Lloh4:
	adrp	x8, _NULL_TREE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NULL_TREE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	stp	x8, xzr, [sp, #8]
	mov	x0, x21
	bl	_CLASSTYPE_REPEATED_BASE_P
	ldr	x8, [x26]
	cmp	x8, x20
	cset	w8, eq
	stp	w8, w0, [sp, #24]
Lloh7:
	adrp	x8, _dfs_lookup_base@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dfs_lookup_base@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x24
	mov	x2, #0
	bl	_dfs_walk_once
	ldr	x22, [sp, #8]
	cbz	x22, LBB0_11
; %bb.8:
	cmp	x22, x24
	b.ne	LBB0_12
; %bb.9:
Lloh10:
	adrp	x8, _bk_same_type@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bk_same_type@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh12:
	adrp	x8, _NULL_TREE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NULL_TREE@GOTPAGEOFF]
Lloh14:
	ldr	x22, [x8]
	mov	w24, #128
	b	LBB0_16
LBB0_11:
	ldr	w8, [sp, #16]
	cmp	w8, #0
	mov	w8, #128
	cinc	w24, w8, ne
	b	LBB0_16
LBB0_12:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_14
; %bb.13:
Lloh15:
	adrp	x8, _bk_via_virtual@GOTPAGE
Lloh16:
	ldr	x8, [x8, _bk_via_virtual@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh17:
	adrp	x8, _bk_proper_base@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bk_proper_base@GOTPAGEOFF]
LBB0_15:
	ldr	w24, [x8]
LBB0_16:
	ldr	x8, [x26]
	cmp	x8, x20
	b.eq	LBB0_27
; %bb.17:
	cmp	w24, #128
	b.eq	LBB0_27
; %bb.18:
	cmp	w24, #129
	b.ne	LBB0_21
; %bb.19:
Lloh19:
	adrp	x8, _ba_quiet@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ba_quiet@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_26
; %bb.20:
	mov	w24, #129
	cbnz	x19, LBB0_28
	b	LBB0_29
LBB0_21:
Lloh22:
	adrp	x8, _ba_check_bit@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ba_check_bit@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_27
; %bb.22:
	mov	x0, x23
	bl	_COMPLETE_TYPE_P
	cbz	w0, LBB0_27
; %bb.23:
Lloh25:
	adrp	x8, _ba_ignore_scope@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ba_ignore_scope@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	tst	x8, x20
	cset	w2, eq
	mov	x0, x21
	mov	x1, x23
	bl	_accessible_base_p
	cbnz	w0, LBB0_27
; %bb.24:
Lloh28:
	adrp	x8, _ba_quiet@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ba_quiet@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_30
; %bb.25:
Lloh31:
	adrp	x8, _NULL_TREE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NULL_TREE@GOTPAGEOFF]
	b	LBB0_31
LBB0_26:
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x21
	bl	_error
	ldr	x22, [x25]
	mov	w24, #129
LBB0_27:
	cbz	x19, LBB0_29
LBB0_28:
	str	w24, [x19]
LBB0_29:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_30:
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x21
	bl	_error
Lloh37:
	adrp	x8, _error_mark_node@GOTPAGE
Lloh38:
	ldr	x8, [x8, _error_mark_node@GOTPAGEOFF]
LBB0_31:
	ldr	x22, [x8]
Lloh39:
	adrp	x8, _bk_inaccessible@GOTPAGE
Lloh40:
	ldr	x8, [x8, _bk_inaccessible@GOTPAGEOFF]
Lloh41:
	ldr	w24, [x8]
	cbnz	x19, LBB0_28
	b	LBB0_29
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_error_mark_node,8,3            ; @error_mark_node
	.comm	_NULL_TREE,8,3                  ; @NULL_TREE
	.comm	_ba_any,8,3                     ; @ba_any
	.comm	_dfs_lookup_base,4,2            ; @dfs_lookup_base
	.comm	_bk_same_type,4,2               ; @bk_same_type
	.comm	_bk_via_virtual,4,2             ; @bk_via_virtual
	.comm	_bk_proper_base,4,2             ; @bk_proper_base
	.comm	_ba_quiet,8,3                   ; @ba_quiet
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%qT is an ambiguous base of %qT"

	.comm	_ba_check_bit,8,3               ; @ba_check_bit
	.comm	_ba_ignore_scope,8,3            ; @ba_ignore_scope
l_.str.1:                               ; @.str.1
	.asciz	"%qT is an inaccessible base of %qT"

	.comm	_bk_inaccessible,4,2            ; @bk_inaccessible
.subsections_via_symbols
