	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_scoped_ref               ## -- Begin function build_scoped_ref
	.p2align	4, 0x90
_build_scoped_ref:                      ## @build_scoped_ref
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_error_mark_node@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	%rdi, %rax
	je	LBB0_8
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	testq	%rdx, %rdx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_TREE_TYPE
	movq	_ba_check@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_lookup_base
	movq	%rax, %rdx
	movq	(%r12), %rax
	testq	%rdx, %rdx
	je	LBB0_5
LBB0_4:
	cmpq	%rax, %rdx
	je	LBB0_5
## %bb.9:
	movq	%rdx, (%r15)
	movq	_PLUS_EXPR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$1, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_build_base_path                ## TAILCALL
LBB0_5:
	movq	_NULL_TREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	testq	%rdx, %rdx
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_TREE_TYPE
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_error_not_base_type
LBB0_7:
	movq	(%r12), %rbx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_error_mark_node,8,3            ## @error_mark_node
	.comm	_ba_check,4,2                   ## @ba_check
	.comm	_NULL_TREE,8,3                  ## @NULL_TREE
	.comm	_PLUS_EXPR,4,2                  ## @PLUS_EXPR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_scoped_ref               ; -- Begin function build_scoped_ref
	.p2align	2
_build_scoped_ref:                      ; @build_scoped_ref
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x22, _error_mark_node@GOTPAGE
Lloh1:
	ldr	x22, [x22, _error_mark_node@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x0
	b.eq	LBB0_7
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	ldr	x2, [x2]
	cbnz	x2, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_TREE_TYPE
Lloh2:
	adrp	x8, _ba_check@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ba_check@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, #0
	bl	_lookup_base
	mov	x2, x0
	ldr	x8, [x22]
LBB0_3:
	cmp	x2, #0
	ccmp	x2, x8, #4, ne
	b.ne	LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _NULL_TREE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NULL_TREE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x21]
	cbnz	x2, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_TREE_TYPE
	mov	x1, x0
	mov	x0, x20
	bl	_error_not_base_type
LBB0_6:
	ldr	x19, [x22]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh8:
	adrp	x8, _PLUS_EXPR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PLUS_EXPR@GOTPAGEOFF]
	str	x2, [x21]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w3, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_build_base_path
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_error_mark_node,8,3            ; @error_mark_node
	.comm	_ba_check,4,2                   ; @ba_check
	.comm	_NULL_TREE,8,3                  ; @NULL_TREE
	.comm	_PLUS_EXPR,4,2                  ; @PLUS_EXPR
.subsections_via_symbols
