	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cp_lookup_rtti_type            ## -- Begin function cp_lookup_rtti_type
	.p2align	4, 0x90
_cp_lookup_rtti_type:                   ## @cp_lookup_rtti_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_STRUCT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_lookup_symbol
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SYMBOL_CLASS
	movq	_LOC_TYPEDEF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_SYMBOL_TYPE
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TYPE_CODE
	cmpl	$128, %eax
	je	LBB0_5
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	movq	%r14, %rsi
	callq	_warning
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRUCT_DOMAIN,4,2              ## @STRUCT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTTI symbol not found for class '%s'"

	.comm	_LOC_TYPEDEF,8,3                ## @LOC_TYPEDEF
L_.str.1:                               ## @.str.1
	.asciz	"RTTI symbol for class '%s' is not a type"

L_.str.2:                               ## @.str.2
	.asciz	"RTTI symbol for class '%s' is a namespace"

L_.str.3:                               ## @.str.3
	.asciz	"RTTI symbol for class '%s' has bad type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cp_lookup_rtti_type            ; -- Begin function cp_lookup_rtti_type
	.p2align	2
_cp_lookup_rtti_type:                   ; @cp_lookup_rtti_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _STRUCT_DOMAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRUCT_DOMAIN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x3, #0
	mov	x4, #0
	bl	_lookup_symbol
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_SYMBOL_CLASS
Lloh3:
	adrp	x8, _LOC_TYPEDEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOC_TYPEDEF@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_SYMBOL_TYPE
	mov	x20, x0
	bl	_TYPE_CODE
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w0, #129
	b.eq	LBB0_9
; %bb.4:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	mov	x1, x19
	bl	_warning
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STRUCT_DOMAIN,4,2              ; @STRUCT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTTI symbol not found for class '%s'"

	.comm	_LOC_TYPEDEF,8,3                ; @LOC_TYPEDEF
l_.str.1:                               ; @.str.1
	.asciz	"RTTI symbol for class '%s' is not a type"

l_.str.2:                               ; @.str.2
	.asciz	"RTTI symbol for class '%s' is a namespace"

l_.str.3:                               ; @.str.3
	.asciz	"RTTI symbol for class '%s' has bad type"

.subsections_via_symbols
