	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolve_virtual_fun_from_obj_type_ref
_resolve_virtual_fun_from_obj_type_ref: ## @resolve_virtual_fun_from_obj_type_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_OBJ_TYPE_REF_OBJECT
	movl	%eax, %edi
	callq	_TREE_TYPE
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_OBJ_TYPE_REF_TOKEN
	movl	$1, %r15d
	movl	%eax, %edi
	movl	$1, %esi
	callq	_tree_low_cst
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_TYPE_BINFO
	movl	%eax, %edi
	callq	_BINFO_VIRTUALS
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	_TARGET_VTABLE_USES_DESCRIPTORS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	callq	_TREE_CHAIN
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	cmovel	%r15d, %ecx
	movslq	%ecx, %rcx
	subq	%rcx, %rbx
	jne	LBB0_2
LBB0_3:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BV_FN                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_VTABLE_USES_DESCRIPTORS,4,2 ## @TARGET_VTABLE_USES_DESCRIPTORS
	.no_dead_strip	_resolve_virtual_fun_from_obj_type_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolve_virtual_fun_from_obj_type_ref
_resolve_virtual_fun_from_obj_type_ref: ; @resolve_virtual_fun_from_obj_type_ref
	.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
	bl	_OBJ_TYPE_REF_OBJECT
	bl	_TREE_TYPE
	mov	x20, x0
	mov	x0, x19
	bl	_OBJ_TYPE_REF_TOKEN
	mov	w1, #1
	bl	_tree_low_cst
	mov	x19, x0
	mov	x0, x20
	bl	_TREE_TYPE
	bl	_TYPE_BINFO
	bl	_BINFO_VIRTUALS
	cbz	x19, LBB0_3
; %bb.1:
Lloh0:
	adrp	x20, _TARGET_VTABLE_USES_DESCRIPTORS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TARGET_VTABLE_USES_DESCRIPTORS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_TREE_CHAIN
	ldr	w8, [x20]
	cmp	w8, #0
	csinc	w8, w8, wzr, ne
	subs	x19, x19, w8, sxtw
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_BV_FN
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_VTABLE_USES_DESCRIPTORS,4,2 ; @TARGET_VTABLE_USES_DESCRIPTORS
	.no_dead_strip	_resolve_virtual_fun_from_obj_type_ref
.subsections_via_symbols
