	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_shutdown                   ## -- Begin function pmu_shutdown
	.p2align	4, 0x90
_pmu_shutdown:                          ## @pmu_shutdown
	.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_6
## %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
## %bb.3:
	xorl	%edi, %edi
	callq	_pmu_set_server_mode
	jmp	LBB0_4
LBB0_6:
	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), %edx
	orl	(%rax), %edx
	movsbl	%dl, %r8d
	leaq	-16(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	xorl	%eax, %eax
	callq	_pmu_request
	movq	%rbx, %rdi
	callq	_pmu_wait_complete
LBB0_4:
	movq	_PMU_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-16(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$5, %edx
	movl	$77, %r8d
	movl	$65, %r9d
	xorl	%eax, %eax
	pushq	$84
	pushq	$84
	callq	_pmu_request
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_pmu_wait_complete
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	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_SHUTDOWN,4,2               ## @PMU_SHUTDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_shutdown                   ; -- Begin function pmu_shutdown
	.p2align	2
_pmu_shutdown:                          ; @pmu_shutdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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_3
; %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_4
; %bb.2:
	mov	w0, #0
	bl	_pmu_set_server_mode
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh12:
	adrp	x8, _PMU_SET_INTR_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PMU_SET_INTR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _PMU_INT_ADB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PMU_INT_ADB@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _PMU_INT_TICK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PMU_INT_TICK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	sxtb	w4, w8
	sub	x0, x29, #8
	mov	x1, #0
	mov	w2, #2
	bl	_pmu_request
	sub	x0, x29, #8
	bl	_pmu_wait_complete
LBB0_5:
Lloh21:
	adrp	x8, _PMU_SHUTDOWN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PMU_SHUTDOWN@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	w8, #84
	stp	x8, x8, [sp, #8]
	mov	w9, #65
	str	x9, [sp]
	sub	x0, x29, #8
	mov	x1, #0
	mov	w2, #5
	mov	w4, #77
	bl	_pmu_request
	sub	x0, x29, #8
	bl	_pmu_wait_complete
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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_SHUTDOWN,4,2               ; @PMU_SHUTDOWN
.subsections_via_symbols
