	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_restart                    ## -- Begin function pmu_restart
	.p2align	4, 0x90
_pmu_restart:                           ## @pmu_restart
	.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
	movq	_via@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	callq	_local_irq_disable
	movq	_drop_interrupts@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_pmu_kind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PMU_KEYLARGO_BASED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_5:
	movq	_PMU_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-16(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_pmu_request
	movq	%rbx, %rdi
	callq	_pmu_wait_complete
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_PMU_SET_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PMU_INT_ADB@GOTPCREL(%rip), %rax
	movq	_PMU_INT_TICK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	leaq	-16(%rbp), %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	xorl	%eax, %eax
	callq	_pmu_request
	cmpl	$0, -16(%rbp)
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_pmu_poll
	cmpl	$0, -16(%rbp)
	je	LBB0_3
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_via,8,3                        ## @via
	.comm	_drop_interrupts,4,2            ## @drop_interrupts
	.comm	_pmu_kind,8,3                   ## @pmu_kind
	.comm	_PMU_KEYLARGO_BASED,8,3         ## @PMU_KEYLARGO_BASED
	.comm	_PMU_SET_INTR_MASK,4,2          ## @PMU_SET_INTR_MASK
	.comm	_PMU_INT_ADB,4,2                ## @PMU_INT_ADB
	.comm	_PMU_INT_TICK,4,2               ## @PMU_INT_TICK
	.comm	_PMU_RESET,4,2                  ## @PMU_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_restart                    ; -- Begin function pmu_restart
	.p2align	2
_pmu_restart:                           ; @pmu_restart
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _via@GOTPAGE
Lloh1:
	ldr	x8, [x8, _via@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	bl	_local_irq_disable
Lloh3:
	adrp	x8, _drop_interrupts@GOTPAGE
Lloh4:
	ldr	x8, [x8, _drop_interrupts@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	adrp	x10, _pmu_kind@GOTPAGE
Lloh6:
	ldr	x10, [x10, _pmu_kind@GOTPAGEOFF]
Lloh7:
	str	w9, [x8]
Lloh8:
	ldr	x8, [x10]
Lloh9:
	adrp	x9, _PMU_KEYLARGO_BASED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PMU_KEYLARGO_BASED@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_2:
Lloh12:
	adrp	x8, _PMU_RESET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PMU_RESET@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #1
	bl	_pmu_request
	add	x0, sp, #8
	bl	_pmu_wait_complete
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_3
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_5:
Lloh15:
	adrp	x8, _PMU_SET_INTR_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PMU_SET_INTR_MASK@GOTPAGEOFF]
Lloh17:
	adrp	x9, _PMU_INT_ADB@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PMU_INT_ADB@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	ldr	w8, [x9]
Lloh21:
	adrp	x9, _PMU_INT_TICK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PMU_INT_TICK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	x8, [sp]
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #2
	bl	_pmu_request
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	bl	_pmu_poll
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_6
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_via,8,3                        ; @via
	.comm	_drop_interrupts,4,2            ; @drop_interrupts
	.comm	_pmu_kind,8,3                   ; @pmu_kind
	.comm	_PMU_KEYLARGO_BASED,8,3         ; @PMU_KEYLARGO_BASED
	.comm	_PMU_SET_INTR_MASK,4,2          ; @PMU_SET_INTR_MASK
	.comm	_PMU_INT_ADB,4,2                ; @PMU_INT_ADB
	.comm	_PMU_INT_TICK,4,2               ; @PMU_INT_TICK
	.comm	_PMU_RESET,4,2                  ; @PMU_RESET
.subsections_via_symbols
