	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gnuv2_value_rtti_type
_gnuv2_value_rtti_type:                 ## @gnuv2_value_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	%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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	$-1, (%r14)
LBB0_4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movl	$0, (%r15)
LBB0_6:
	movq	%r12, %rdi
	callq	_VALUE_TYPE
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_CHECK_TYPEDEF
	movq	%r13, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_CLASS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.7:
	movq	%r13, %rdi
	callq	_TYPE_VPTR_FIELDNO
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_fill_in_vptr_fieldno
LBB0_9:
	movq	%r13, %rdi
	callq	_TYPE_VPTR_FIELDNO
	testq	%rax, %rax
	js	LBB0_29
## %bb.10:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_TYPE_VPTR_BASETYPE
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_CHECK_TYPEDEF
	cmpq	%r13, %r14
	je	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_value_cast
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_13
## %bb.12:
	movl	$1, (%r15)
LBB0_13:
	movq	%r13, %rdi
	callq	_TYPE_VPTR_FIELDNO
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_value_field
	movl	%eax, %edi
	callq	_VALUE_ADDRESS
	testq	%rax, %rax
	je	LBB0_29
## %bb.14:
	movq	%r13, %rdi
	callq	_TYPE_VPTR_FIELDNO
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_value_field
	movl	%eax, %edi
	callq	_value_as_address
	movl	%eax, %edi
	callq	_lookup_minimal_symbol_by_pc
	testq	%rax, %rax
	je	LBB0_29
## %bb.15:
	movq	%rax, %rdi
	callq	_DEPRECATED_SYMBOL_NAME
	testq	%rax, %rax
	je	LBB0_29
## %bb.16:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is_vtable_name
	testl	%eax, %eax
	je	LBB0_29
## %bb.17:
	movq	_DMGL_PARAMS@GOTPCREL(%rip), %rax
	movq	_DMGL_ANSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cplus_demangle
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_strchr
	movq	$0, (%rax)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_cp_lookup_rtti_type
	testq	%rax, %rax
	je	LBB0_30
## %bb.18:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TYPE_N_BASECLASSES
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.19:
	cmpl	$2, %eax
	jl	LBB0_21
## %bb.20:
	cmpl	$1, (%rbx)
	jne	LBB0_31
LBB0_21:
	movl	$1, %ecx
	testq	%rbx, %rbx
	je	LBB0_23
LBB0_22:
	movl	%ecx, (%rbx)
LBB0_23:
	movq	%r12, %rbx
	jmp	LBB0_30
LBB0_29:
	xorl	%ebx, %ebx
LBB0_30:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_23
## %bb.32:
	movq	%r12, %rdi
	callq	_TYPE_VPTR_FIELDNO
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_TYPE_BASECLASS_BITPOS
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, (%r14)
	cmpl	$8, %eax
	jl	LBB0_23
## %bb.33:
	movq	%r12, %rdi
	callq	_TYPE_LENGTH
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_TYPE_LENGTH
	xorl	%ecx, %ecx
	cmpq	%rax, %r14
	setle	%cl
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_CODE_CLASS,8,3            ## @TYPE_CODE_CLASS
	.comm	_DMGL_PARAMS,4,2                ## @DMGL_PARAMS
	.comm	_DMGL_ANSI,4,2                  ## @DMGL_ANSI
	.no_dead_strip	_gnuv2_value_rtti_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gnuv2_value_rtti_type
_gnuv2_value_rtti_type:                 ; @gnuv2_value_rtti_type
	.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	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	cbz	x1, LBB0_2
; %bb.1:
	str	wzr, [x19]
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	mov	w8, #-1
	str	w8, [x20]
LBB0_4:
	cbz	x23, LBB0_6
; %bb.5:
	str	wzr, [x23]
LBB0_6:
	mov	x0, x22
	bl	_VALUE_TYPE
	mov	x21, x0
	bl	_CHECK_TYPEDEF
	mov	x0, x21
	bl	_TYPE_CODE
Lloh0:
	adrp	x8, _TYPE_CODE_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_CODE_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.7:
	mov	x0, x21
	bl	_TYPE_VPTR_FIELDNO
	tbz	x0, #63, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_fill_in_vptr_fieldno
LBB0_9:
	mov	x0, x21
	bl	_TYPE_VPTR_FIELDNO
	tbnz	x0, #63, LBB0_24
; %bb.10:
	mov	x0, x21
	bl	_TYPE_VPTR_BASETYPE
	mov	x24, x0
	bl	_CHECK_TYPEDEF
	cmp	x24, x21
	b.eq	LBB0_13
; %bb.11:
	mov	x0, x24
	mov	x1, x22
	bl	_value_cast
	mov	x22, x0
	cbz	x23, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x23]
LBB0_13:
	mov	x0, x21
	bl	_TYPE_VPTR_FIELDNO
	mov	x1, x0
	mov	x0, x22
	bl	_value_field
	bl	_VALUE_ADDRESS
	cbz	x0, LBB0_24
; %bb.14:
	mov	x0, x21
	bl	_TYPE_VPTR_FIELDNO
	mov	x1, x0
	mov	x0, x22
	bl	_value_field
	bl	_value_as_address
	bl	_lookup_minimal_symbol_by_pc
	cbz	x0, LBB0_24
; %bb.15:
	bl	_DEPRECATED_SYMBOL_NAME
	mov	x22, x0
	cbz	x0, LBB0_25
; %bb.16:
	mov	x0, x22
	bl	_is_vtable_name
	cbz	w0, LBB0_24
; %bb.17:
Lloh3:
	adrp	x8, _DMGL_PARAMS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMGL_PARAMS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DMGL_ANSI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMGL_ANSI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_cplus_demangle
	mov	x22, x0
	mov	w1, #32
	bl	_strchr
	str	xzr, [x0]
	mov	x0, x22
	mov	x1, #0
	bl	_cp_lookup_rtti_type
	mov	x22, x0
	cbz	x0, LBB0_25
; %bb.18:
	mov	x0, x22
	bl	_TYPE_N_BASECLASSES
	cbz	x19, LBB0_21
; %bb.19:
	cmp	w0, #2
	b.lt	LBB0_21
; %bb.20:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_26
LBB0_21:
	cbz	x19, LBB0_25
; %bb.22:
	mov	w8, #1
LBB0_23:
	str	w8, [x19]
	b	LBB0_25
LBB0_24:
	mov	x22, #0
LBB0_25:
	mov	x0, x22
	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_26:
	cbz	x20, LBB0_25
; %bb.27:
	mov	x0, x22
	bl	_TYPE_VPTR_FIELDNO
	mov	x1, x0
	mov	x0, x22
	bl	_TYPE_BASECLASS_BITPOS
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	str	w8, [x20]
	cmp	w0, #8
	b.lt	LBB0_25
; %bb.28:
	mov	x0, x22
	bl	_TYPE_LENGTH
	mov	x20, x0
	mov	x0, x21
	bl	_TYPE_LENGTH
	cmp	x20, x0
	cset	w8, le
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_CODE_CLASS,8,3            ; @TYPE_CODE_CLASS
	.comm	_DMGL_PARAMS,4,2                ; @DMGL_PARAMS
	.comm	_DMGL_ANSI,4,2                  ; @DMGL_ANSI
	.no_dead_strip	_gnuv2_value_rtti_type
.subsections_via_symbols
