	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lima_pmu_wait_cmd
_lima_pmu_wait_cmd:                     ## @lima_pmu_wait_cmd
	.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	8(%rdi), %r14
	movq	_LIMA_PMU_INT_RAWSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rdi), %rax
	movq	%rax, %rdi
	xorl	%edx, %edx
	movl	$100, %ecx
	movl	$100000, %r8d                   ## imm = 0x186A0
	callq	_readl_poll_timeout
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movq	_LIMA_PMU_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LIMA_PMU_INT_CMD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pmu_write
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIMA_PMU_INT_RAWSTAT,8,3       ## @LIMA_PMU_INT_RAWSTAT
	.comm	_LIMA_PMU_INT_CMD_MASK,4,2      ## @LIMA_PMU_INT_CMD_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout wait pmd cmd\n"

	.comm	_LIMA_PMU_INT_CLEAR,4,2         ## @LIMA_PMU_INT_CLEAR
	.no_dead_strip	_lima_pmu_wait_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lima_pmu_wait_cmd
_lima_pmu_wait_cmd:                     ; @lima_pmu_wait_cmd
	.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
	ldp	x8, x20, [x0]
Lloh0:
	adrp	x9, _LIMA_PMU_INT_RAWSTAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LIMA_PMU_INT_RAWSTAT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w2, #0
	mov	w3, #100
	mov	w4, #34464
	movk	w4, #1, lsl #16
	bl	_readl_poll_timeout
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _LIMA_PMU_INT_CLEAR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIMA_PMU_INT_CLEAR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _LIMA_PMU_INT_CMD_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LIMA_PMU_INT_CMD_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_pmu_write
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LIMA_PMU_INT_RAWSTAT,8,3       ; @LIMA_PMU_INT_RAWSTAT
	.comm	_LIMA_PMU_INT_CMD_MASK,4,2      ; @LIMA_PMU_INT_CMD_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout wait pmd cmd\n"

	.comm	_LIMA_PMU_INT_CLEAR,4,2         ; @LIMA_PMU_INT_CLEAR
	.no_dead_strip	_lima_pmu_wait_cmd
.subsections_via_symbols
