	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_th_msc_init
_intel_th_msc_init:                     ## @intel_th_msc_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	addq	$32, %rdi
	movl	$-1, %esi
	callq	_atomic_set
	movq	_MSC_MODE_MULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	leaq	24(%r14), %rdi
	callq	_mutex_init
	leaq	20(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	_REG_MSU_MSC0CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_ioread32
	movl	%eax, %ebx
	movq	_MSC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%edi, %ebx
	callq	___ffs
	movl	%eax, %ecx
	sarl	%cl, %ebx
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSC_MODE_MULTI,4,2             ## @MSC_MODE_MULTI
	.comm	_REG_MSU_MSC0CTL,8,3            ## @REG_MSU_MSC0CTL
	.comm	_MSC_LEN,4,2                    ## @MSC_LEN
	.no_dead_strip	_intel_th_msc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_th_msc_init
_intel_th_msc_init:                     ; @intel_th_msc_init
	.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
	mov	x19, x0
	add	x0, x0, #32
	mov	w1, #-1
	bl	_atomic_set
Lloh0:
	adrp	x8, _MSC_MODE_MULTI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSC_MODE_MULTI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	add	x0, x19, #24
	bl	_mutex_init
	add	x0, x19, #20
	bl	_INIT_LIST_HEAD
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _REG_MSU_MSC0CTL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REG_MSU_MSC0CTL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
Lloh6:
	adrp	x8, _MSC_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSC_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w20, w8, w0
	mov	x0, x8
	bl	___ffs
	asr	w8, w20, w0
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSC_MODE_MULTI,4,2             ; @MSC_MODE_MULTI
	.comm	_REG_MSU_MSC0CTL,8,3            ; @REG_MSU_MSC0CTL
	.comm	_MSC_LEN,4,2                    ; @MSC_LEN
	.no_dead_strip	_intel_th_msc_init
.subsections_via_symbols
