	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_count_virtual_fns              ## -- Begin function count_virtual_fns
	.p2align	4, 0x90
_count_virtual_fns:                     ## @count_virtual_fns
	.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, %r14
	callq	_primary_base_class
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_count_virtual_fns
	movl	%eax, %r12d
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
LBB0_3:
	movq	%r14, %rdi
	callq	_TYPE_NFN_FIELDS
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	movq	%r14, %rdi
	callq	_TYPE_NFN_FIELDS
	cmpl	%eax, %r15d
	jge	LBB0_9
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_TYPE_FN_FIELDLIST_LENGTH
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_TYPE_FN_FIELDLIST1
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_TYPE_FN_FIELD_VIRTUAL_P
	cmpq	$1, %rax
	sbbl	$-1, %r12d
	incl	%ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_TYPE_FN_FIELDLIST_LENGTH
	cmpl	%eax, %ebx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_count_virtual_fns              ; -- Begin function count_virtual_fns
	.p2align	2
_count_virtual_fns:                     ; @count_virtual_fns
	.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
	bl	_primary_base_class
	cbz	x0, LBB0_2
; %bb.1:
	bl	_count_virtual_fns
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x19
	bl	_TYPE_NFN_FIELDS
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	mov	x0, x19
	bl	_TYPE_NFN_FIELDS
	cmp	w21, w0
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x19
	mov	x1, x21
	bl	_TYPE_FN_FIELDLIST_LENGTH
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	bl	_TYPE_FN_FIELDLIST1
	mov	x1, x22
	bl	_TYPE_FN_FIELD_VIRTUAL_P
	cmp	x0, #0
	cinc	w20, w20, ne
	add	w22, w22, #1
	mov	x0, x19
	mov	x1, x21
	bl	_TYPE_FN_FIELDLIST_LENGTH
	cmp	w22, w0
	b.lt	LBB0_8
	b	LBB0_5
LBB0_9:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
