	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_wait_complete              ## -- Begin function pmu_wait_complete
	.p2align	4, 0x90
_pmu_wait_complete:                     ## @pmu_wait_complete
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pmu_state@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_uninitialized@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r15
	movq	_idle@GOTPCREL(%rip), %rbx
	movq	_locked@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_via_pmu_interrupt
	movq	(%r14), %rax
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rbx), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r12), %rax
	jne	LBB0_5
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_pmu_state,8,3                  ## @pmu_state
	.comm	_uninitialized,8,3              ## @uninitialized
	.comm	_idle,8,3                       ## @idle
	.comm	_locked,8,3                     ## @locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_wait_complete              ; -- Begin function pmu_wait_complete
	.p2align	2
_pmu_wait_complete:                     ; @pmu_wait_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _pmu_state@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pmu_state@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _uninitialized@GOTPAGE
Lloh3:
	ldr	x9, [x9, _uninitialized@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x21, _idle@GOTPAGE
Lloh6:
	ldr	x21, [x21, _idle@GOTPAGEOFF]
Lloh7:
	adrp	x22, _locked@GOTPAGE
Lloh8:
	ldr	x22, [x22, _locked@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	mov	x1, #0
	bl	_via_pmu_interrupt
	ldr	x8, [x20]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_pmu_state,8,3                  ; @pmu_state
	.comm	_uninitialized,8,3              ; @uninitialized
	.comm	_idle,8,3                       ; @idle
	.comm	_locked,8,3                     ; @locked
.subsections_via_symbols
