	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gr_def
_gr_def:                                ## @gr_def
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %rax
	movq	_NOUVEAU_GRCTX_VALS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	leal	-4194304(%rsi), %eax
	addl	$-4194301, %esi                 ## imm = 0xFFC00003
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	shrl	$2, %esi
	subl	8(%rdi), %esi
	addl	12(%rdi), %esi
	movl	16(%rdi), %edi
	shll	$2, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	popq	%rbp
	jmp	_nv_wo32                        ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOUVEAU_GRCTX_VALS,8,3         ## @NOUVEAU_GRCTX_VALS
	.no_dead_strip	_gr_def
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gr_def
_gr_def:                                ; @gr_def
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NOUVEAU_GRCTX_VALS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NOUVEAU_GRCTX_VALS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	sub	w8, w1, #1024, lsl #12          ; =4194304
	sub	w9, w1, #1023, lsl #12          ; =4190208
	sub	w9, w9, #4093
	cmp	w8, #0
	csel	w8, w9, w8, lt
	lsr	w8, w8, #2
	ldp	w9, w10, [x0, #8]
	sub	w8, w8, w9
	add	w8, w8, w10
	ldr	w0, [x0, #16]
	lsl	w1, w8, #2
	b	_nv_wo32
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NOUVEAU_GRCTX_VALS,8,3         ; @NOUVEAU_GRCTX_VALS
	.no_dead_strip	_gr_def
.subsections_via_symbols
