	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nva3_pm_grcp_idle
_nva3_pm_grcp_idle:                     ## @nva3_pm_grcp_idle
	.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
	callq	_nouveau_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$4195076, %esi                  ## imm = 0x400304
	callq	_nv_rd32
	movl	%eax, %ecx
	movl	$1, %eax
	testb	$1, %cl
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$4195080, %esi                  ## imm = 0x400308
	callq	_nv_rd32
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$5242908, %ecx                  ## imm = 0x50001C
	sete	%al
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nva3_pm_grcp_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nva3_pm_grcp_idle
_nva3_pm_grcp_idle:                     ; @nva3_pm_grcp_idle
	.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	w20, #772
	movk	w20, #64, lsl #16
	bl	_nouveau_dev
	mov	x19, x0
	mov	w1, #772
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	tbnz	w0, #0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	add	w1, w20, #4
	mov	x0, x19
	bl	_nv_rd32
	sub	w8, w0, #1280, lsl #12          ; =5242880
	cmp	w8, #28
	cset	w0, eq
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nva3_pm_grcp_idle
.subsections_via_symbols
