	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emulate_wrmsr                  ## -- Begin function emulate_wrmsr
	.p2align	4, 0x90
_emulate_wrmsr:                         ## @emulate_wrmsr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movq	_cpu_vendor_intel@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	leal	-141(%rdx), %ecx
	cmpl	$2, %ecx
	jb	LBB0_7
## %bb.2:
	cmpl	$3108, %edx                     ## imm = 0xC24
	je	LBB0_7
## %bb.3:
	cmpl	$3332, %edx                     ## imm = 0xD04
	jne	LBB0_6
LBB0_7:
	popq	%rbp
	retq
LBB0_4:
	addl	$-128, %edx
	cmpl	$12, %edx
	ja	LBB0_6
## %bb.5:
	movq	_cpu_vendor_amd@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_7
LBB0_6:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_vendor_intel,8,3           ## @cpu_vendor_intel
	.comm	_cpu_vendor_amd,8,3             ## @cpu_vendor_amd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emulate_wrmsr                  ; -- Begin function emulate_wrmsr
	.p2align	2
_emulate_wrmsr:                         ; @emulate_wrmsr
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _cpu_vendor_intel@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_vendor_intel@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	w0, #0
	sub	w8, w2, #141
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.2:
	cmp	w2, #3108
	b.eq	LBB0_4
; %bb.3:
	cmp	w2, #3332
	b.ne	LBB0_8
LBB0_4:
	ret
LBB0_5:
	sub	w8, w2, #128
	cmp	w8, #12
	b.hi	LBB0_8
; %bb.6:
Lloh3:
	adrp	x8, _cpu_vendor_amd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_vendor_amd@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w0, #0
	ret
LBB0_8:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_vendor_intel,8,3           ; @cpu_vendor_intel
	.comm	_cpu_vendor_amd,8,3             ; @cpu_vendor_amd
.subsections_via_symbols
