	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_msr                       ## -- Begin function init_msr
	.p2align	4, 0x90
_init_msr:                              ## @init_msr
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rsi
	xorl	%edi, %edi
	callq	_do_cpuid
	movl	-28(%rbp), %eax
	movl	%eax, -48(%rbp)
	movq	-24(%rbp), %rax
	rolq	$32, %rax
	movq	%rax, -44(%rbp)
	movb	$0, -36(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_fprintf
	movl	$-1, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_cpu_vendor_amd@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_5
LBB0_3:
	movq	_cpu_vendor_intel@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%ebx, %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AuthenticAMD"

	.comm	_cpu_vendor_amd,4,2             ## @cpu_vendor_amd
L_.str.1:                               ## @.str.1
	.asciz	"GenuineIntel"

	.comm	_cpu_vendor_intel,4,2           ## @cpu_vendor_intel
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Unknown cpu vendor \"%s\"\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_msr                       ; -- Begin function init_msr
	.p2align	2
_init_msr:                              ; @init_msr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	add	x1, sp, #24
	mov	w0, #0
	bl	_do_cpuid
	ldr	w8, [sp, #28]
	str	w8, [sp, #8]
	ldr	d0, [sp, #32]
	rev64.2s	v0, v0
	stur	d0, [sp, #12]
	strb	wzr, [sp, #20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, _stderr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	bl	_fprintf
	mov	w0, #-1
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x8, _cpu_vendor_amd@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cpu_vendor_amd@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x8, _cpu_vendor_intel@GOTPAGE
Lloh15:
	ldr	x8, [x8, _cpu_vendor_intel@GOTPAGEOFF]
LBB0_5:
	mov	w9, #1
	str	w9, [x8]
LBB0_6:
	ldur	x8, [x29, #-8]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AuthenticAMD"

	.comm	_cpu_vendor_amd,4,2             ; @cpu_vendor_amd
l_.str.1:                               ; @.str.1
	.asciz	"GenuineIntel"

	.comm	_cpu_vendor_intel,4,2           ; @cpu_vendor_intel
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Unknown cpu vendor \"%s\"\n"

.subsections_via_symbols
