	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_init_msr
_cpu_init_msr:                          ## @cpu_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_cpu_reg_range@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	-104(%rbp), %r12
	leaq	-100(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movq	_cpu_reg_range@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_cpu_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %r8d
	movl	%r14d, %edi
	leaq	-76(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movl	%ebx, %ecx
	callq	_get_cpu_range
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-76(%rbp), %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%r15d
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	-64(%rbp), %r15d
	ja	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_rdmsr_safe_on_cpu
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r12, %rbx
	movq	%r13, %r12
	leaq	-60(%rbp), %r13
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_sprintf
	movq	%r13, %rdi
	movq	%r12, %r13
	movq	%rbx, %r12
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_debugfs_create_dir
	movl	%r14d, %edi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	%rax, %rcx
	callq	_cpu_init_regfiles
	testl	%eax, %eax
	je	LBB0_7
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_reg_range,4,2              ## @cpu_reg_range
	.comm	_cpu_base,8,3                   ## @cpu_base
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%x"

	.no_dead_strip	_cpu_init_msr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpu_init_msr
_cpu_init_msr:                          ; @cpu_init_msr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x25, _cpu_reg_range@GOTPAGE
Lloh4:
	ldr	x25, [x25, _cpu_reg_range@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w22, #0
	mov	w26, w20
Lloh5:
	adrp	x27, _cpu_base@GOTPAGE
Lloh6:
	ldr	x27, [x27, _cpu_base@GOTPAGEOFF]
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	ldr	w0, [x25]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x27]
	ldr	w4, [x8, x26, lsl #2]
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x21
	mov	x3, x22
	bl	_get_cpu_range
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [sp, #24]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w24, w24, #1
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [sp, #20]
	cmp	w24, w8
	b.hi	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x2, sp, #16
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x24
	bl	_rdmsr_safe_on_cpu
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x0, sp, #28
	mov	x1, x23
	mov	x2, x24
	bl	_sprintf
	add	x0, sp, #28
	mov	x1, x19
	bl	_debugfs_create_dir
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	bl	_cpu_init_regfiles
	cbz	w0, LBB0_5
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_reg_range,4,2              ; @cpu_reg_range
	.comm	_cpu_base,8,3                   ; @cpu_base
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%x"

	.no_dead_strip	_cpu_init_msr
.subsections_via_symbols
