	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_graph_set_ctx_val
_nv04_graph_set_ctx_val:                ## @nv04_graph_set_ctx_val
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%esi, %esi
	callq	_nv_ro32
	movl	%eax, %r12d
	movzbl	%r12b, %r13d
	shrl	$15, %r12d
	andl	$7, %r12d
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_nv_ro32
	notl	%ebx
	andl	%eax, %ebx
	orl	%ebx, %r15d
	movq	%r14, %rdi
	movl	$12, %esi
	movl	%r15d, %edx
	callq	_nv_wo32
	movl	%r15d, %edx
	shrl	$25, %edx
	andl	$1, %edx
	movl	%r15d, %eax
	shrl	$26, %eax
	andl	%edx, %eax
	cmpl	$72, %r13d
	cmovel	%eax, %edx
	cmpl	$31, %r13d
	cmovel	%eax, %edx
	leal	-4(%r12), %eax
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.1:
	cmpl	$2, %r12d
	je	LBB0_4
## %bb.2:
	cmpl	$1, %r12d
	jne	LBB0_7
## %bb.3:
	andl	$402653184, %r15d               ## imm = 0x18000000
	cmovel	%r15d, %edx
	jmp	LBB0_7
LBB0_5:
	shrl	$30, %r15d
	jmp	LBB0_6
LBB0_4:
	shrl	$29, %r15d
LBB0_6:
	andl	%r15d, %edx
LBB0_7:
	shll	$24, %edx
	movq	%r14, %rdi
	movl	$16777216, %esi                 ## imm = 0x1000000
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv04_graph_set_ctx1            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv04_graph_set_ctx_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_graph_set_ctx_val
_nv04_graph_set_ctx_val:                ; @nv04_graph_set_ctx_val
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w1, #0
	bl	_nv_ro32
	and	w22, w0, #0xff
	ubfx	w23, w0, #15, #3
	mov	x0, x21
	mov	w1, #12
	bl	_nv_ro32
	bic	w8, w0, w20
	orr	w19, w8, w19
	mov	x0, x21
	mov	w1, #12
	mov	x2, x19
	bl	_nv_wo32
	ubfx	w8, w19, #25, #1
	cmp	w22, #72
	ccmp	w22, #31, #4, ne
	and	w9, w19, #0x4000000
	ccmp	w9, #0, #0, eq
	csel	w8, wzr, w8, eq
	sub	w9, w23, #4
	and	w10, w8, w19, lsr #30
	and	w11, w8, w19, lsr #29
	tst	w19, #0x18000000
	csel	w12, wzr, w8, eq
	cmp	w23, #1
	csel	w8, w8, w12, ne
	cmp	w23, #2
	csel	w8, w11, w8, eq
	cmp	w9, #2
	csel	w8, w10, w8, lo
	lsl	w2, w8, #24
	mov	x0, x21
	mov	w1, #16777216
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nv04_graph_set_ctx1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv04_graph_set_ctx_val
.subsections_via_symbols
