	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gnuv3_baseclass_offset
_gnuv3_baseclass_offset:                ## @gnuv3_baseclass_offset
	.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
	movq	%rcx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	_current_gdbarch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_vtable_type_gdbarch_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gdbarch_data
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_BASETYPE_VIA_VIRTUAL
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_TYPE_BASECLASS_BITPOS
	movl	%eax, %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r14
	xorl	%eax, %eax
	callq	_vtable_address_point_offset
	negq	%rax
	cmpq	%rax, %r14
	jl	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_3:
	xorl	%eax, %eax
	callq	_vtable_address_point_offset
	movq	%rax, %rbx
	addq	%r14, %rbx
	movq	_builtin_type_void_data_ptr@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_TYPE_LENGTH
	movq	%rax, %rcx
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	testq	%rdx, %rdx
	je	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_8:
	movq	(%r14), %rdi
	callq	_TYPE_LENGTH
	movq	%rax, %rcx
	movslq	%ecx, %rsi
	movq	%rbx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rax
	cqto
	idivq	%rsi
	movq	%rax, %r12
	jmp	LBB0_11
LBB0_4:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r12d
LBB0_11:
	movq	%r13, %rdi
	callq	_TYPE_VPTR_BASETYPE
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TYPE_VPTR_FIELDNO
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_fill_in_vptr_fieldno
LBB0_13:
	movq	%rbx, %rdi
	callq	_TYPE_VPTR_FIELDNO
	testq	%rax, %rax
	js	LBB0_19
## %bb.14:
	movq	%rbx, %rdi
	callq	_TYPE_VPTR_FIELDNO
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_TYPE_FIELD_BITPOS
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	%rbx, %rdi
	callq	_TYPE_NAME
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	%rbx, %rdi
	callq	_TYPE_NAME
	movq	%rax, %rsi
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.3(%rip), %rsi
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_19:
	movq	(%r14), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_value_at_lazy
	movq	%rax, %rdi
	callq	_value_as_address
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_vtable_address_point_offset
	subq	%rax, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_value_at_lazy
	movq	%rax, %r14
	movq	_builtin_type_int@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_value_from_longest
	movq	%rax, %rbx
	movq	_vtable_field_vcall_and_vbase_offsets@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_value_field
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_value_subscript
	movl	%eax, %edi
	callq	_value_as_long
LBB0_20:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current_gdbarch,4,2            ## @current_gdbarch
	.comm	_vtable_type_gdbarch_data,4,2   ## @vtable_type_gdbarch_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expected a negative vbase offset (old compiler?)"

	.comm	_builtin_type_void_data_ptr,8,3 ## @builtin_type_void_data_ptr
L_.str.1:                               ## @.str.1
	.asciz	"Misaligned vbase offset."

L_.str.2:                               ## @.str.2
	.asciz	"Illegal vptr offset in class %s"

L_.str.3:                               ## @.str.3
	.asciz	"<unknown>"

	.comm	_builtin_type_int,4,2           ## @builtin_type_int
	.comm	_vtable_field_vcall_and_vbase_offsets,4,2 ## @vtable_field_vcall_and_vbase_offsets
	.no_dead_strip	_gnuv3_baseclass_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gnuv3_baseclass_offset
_gnuv3_baseclass_offset:                ; @gnuv3_baseclass_offset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _current_gdbarch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_gdbarch@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _vtable_type_gdbarch_data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vtable_type_gdbarch_data@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_gdbarch_data
	mov	x19, x0
	mov	x0, x22
	mov	x1, x21
	bl	_BASETYPE_VIA_VIRTUAL
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	bl	_TYPE_BASECLASS_BITPOS
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w0, w8, #3
	cbz	w23, LBB0_14
; %bb.1:
	sxtw	x21, w0
	bl	_vtable_address_point_offset
	neg	x8, x0
	cmp	x21, x8
	b.lt	LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_3:
	bl	_vtable_address_point_offset
	add	x21, x0, x21
Lloh8:
	adrp	x23, _builtin_type_void_data_ptr@GOTPAGE
Lloh9:
	ldr	x23, [x23, _builtin_type_void_data_ptr@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_TYPE_LENGTH
	sdiv	x8, x21, x0
	msub	x8, x8, x0, x21
	cbz	x8, LBB0_5
; %bb.4:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_5:
	ldr	x0, [x23]
	bl	_TYPE_LENGTH
	sxtw	x8, w0
	sdiv	x21, x21, x8
	mov	x0, x22
	bl	_TYPE_VPTR_BASETYPE
	mov	x22, x0
	bl	_TYPE_VPTR_FIELDNO
	tbz	x0, #63, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_fill_in_vptr_fieldno
LBB0_7:
	mov	x0, x22
	bl	_TYPE_VPTR_FIELDNO
	tbnz	x0, #63, LBB0_13
; %bb.8:
	mov	x0, x22
	bl	_TYPE_VPTR_FIELDNO
	mov	x1, x0
	mov	x0, x22
	bl	_TYPE_FIELD_BITPOS
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x22
	bl	_TYPE_NAME
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_TYPE_NAME
	b	LBB0_12
LBB0_11:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_12:
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_13:
	ldr	x0, [x23]
	mov	x1, x20
	mov	x2, #0
	bl	_value_at_lazy
	bl	_value_as_address
	mov	x20, x0
	bl	_vtable_address_point_offset
	sub	x1, x20, x0
	mov	x0, x19
	mov	x2, #0
	bl	_value_at_lazy
	mov	x19, x0
Lloh16:
	adrp	x8, _builtin_type_int@GOTPAGE
Lloh17:
	ldr	x8, [x8, _builtin_type_int@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_value_from_longest
	mov	x20, x0
Lloh19:
	adrp	x8, _vtable_field_vcall_and_vbase_offsets@GOTPAGE
Lloh20:
	ldr	x8, [x8, _vtable_field_vcall_and_vbase_offsets@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_value_field
	mov	x1, x20
	bl	_value_subscript
	bl	_value_as_long
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_current_gdbarch,4,2            ; @current_gdbarch
	.comm	_vtable_type_gdbarch_data,4,2   ; @vtable_type_gdbarch_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expected a negative vbase offset (old compiler?)"

	.comm	_builtin_type_void_data_ptr,8,3 ; @builtin_type_void_data_ptr
l_.str.1:                               ; @.str.1
	.asciz	"Misaligned vbase offset."

l_.str.2:                               ; @.str.2
	.asciz	"Illegal vptr offset in class %s"

l_.str.3:                               ; @.str.3
	.asciz	"<unknown>"

	.comm	_builtin_type_int,4,2           ; @builtin_type_int
	.comm	_vtable_field_vcall_and_vbase_offsets,4,2 ; @vtable_field_vcall_and_vbase_offsets
	.no_dead_strip	_gnuv3_baseclass_offset
.subsections_via_symbols
