	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmm_stat_register              ## -- Begin function vmm_stat_register
	.p2align	4, 0x90
_vmm_stat_register:                     ## @vmm_stat_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_VMM_STAT_SCOPE_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_vmm_is_intel
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	8(%rbx), %rax
LBB0_4:
	movq	_VMM_STAT_SCOPE_AMD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_vmm_is_amd
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	_vst_num_elems@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%rbx), %rdx
	addq	%rcx, %rdx
	movq	_MAX_VMM_STAT_ELEMS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jge	LBB0_9
## %bb.7:
	movq	%rcx, 24(%rbx)
	movq	%rdx, (%rax)
	movq	_vsttab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_vst_num_types@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%rcx)
	movq	%rbx, (%rax,%rdx,8)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VMM_STAT_SCOPE_INTEL,8,3       ## @VMM_STAT_SCOPE_INTEL
	.comm	_VMM_STAT_SCOPE_AMD,8,3         ## @VMM_STAT_SCOPE_AMD
	.comm	_vst_num_elems,8,3              ## @vst_num_elems
	.comm	_MAX_VMM_STAT_ELEMS,8,3         ## @MAX_VMM_STAT_ELEMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot accommodate vmm stat type \"%s\"!\n"

	.comm	_vsttab,8,3                     ## @vsttab
	.comm	_vst_num_types,4,2              ## @vst_num_types
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmm_stat_register              ; -- Begin function vmm_stat_register
	.p2align	2
_vmm_stat_register:                     ; @vmm_stat_register
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _VMM_STAT_SCOPE_INTEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VMM_STAT_SCOPE_INTEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	bl	_vmm_is_intel
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
LBB0_4:
Lloh3:
	adrp	x9, _VMM_STAT_SCOPE_AMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VMM_STAT_SCOPE_AMD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	bl	_vmm_is_amd
	cbz	w0, LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _vst_num_elems@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vst_num_elems@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x19, #16]
Lloh8:
	adrp	x11, _MAX_VMM_STAT_ELEMS@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MAX_VMM_STAT_ELEMS@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	add	x10, x10, x9
	cmp	x10, x11
	b.ge	LBB0_9
; %bb.7:
	str	x9, [x19, #24]
	str	x10, [x8]
Lloh11:
	adrp	x8, _vsttab@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vsttab@GOTPAGEOFF]
Lloh13:
	adrp	x9, _vst_num_types@GOTPAGE
Lloh14:
	ldr	x9, [x9, _vst_num_types@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldrsw	x10, [x9]
	add	w11, w10, #1
	str	w11, [x9]
	str	x19, [x8, x10, lsl #3]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x1, [x19]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_printf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_VMM_STAT_SCOPE_INTEL,8,3       ; @VMM_STAT_SCOPE_INTEL
	.comm	_VMM_STAT_SCOPE_AMD,8,3         ; @VMM_STAT_SCOPE_AMD
	.comm	_vst_num_elems,8,3              ; @vst_num_elems
	.comm	_MAX_VMM_STAT_ELEMS,8,3         ; @MAX_VMM_STAT_ELEMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot accommodate vmm stat type \"%s\"!\n"

	.comm	_vsttab,8,3                     ; @vsttab
	.comm	_vst_num_types,4,2              ; @vst_num_types
.subsections_via_symbols
