	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv40_pm_gr_idle
_nv40_pm_gr_idle:                       ## @nv40_pm_gr_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$4196192, %esi                  ## imm = 0x400760
	callq	_nv_rd32
	movl	%eax, %ebx
	shrl	$4, %ebx
	movq	%r14, %rdi
	movl	$4196192, %esi                  ## imm = 0x400760
	callq	_nv_rd32
	movl	%eax, %ecx
	xorl	%ebx, %ecx
	xorl	%eax, %eax
	testb	$15, %cl
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$4196096, %esi                  ## imm = 0x400700
	callq	_nv_rd32
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv40_pm_gr_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv40_pm_gr_idle
_nv40_pm_gr_idle:                       ; @nv40_pm_gr_idle
	.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
	mov	w21, #1888
	movk	w21, #64, lsl #16
	bl	_nouveau_dev
	mov	x19, x0
	mov	w1, #1888
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	mov	x20, x0
	mov	x0, x19
	mov	w1, #1888
	movk	w1, #64, lsl #16
	bl	_nv_rd32
	eor	w8, w0, w20, lsr #4
	tst	w8, #0xf
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	sub	w1, w21, #96
	mov	x0, x19
	bl	_nv_rd32
	cmp	w0, #0
	cset	w0, eq
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv40_pm_gr_idle
.subsections_via_symbols
