	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv10_gr_load_context
_nv10_gr_load_context:                  ## @nv10_gr_load_context
	.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	%esi, %r14d
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	movq	_nv10_gr_ctx_regs@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	callq	_nvkm_wr32
	incq	%rbx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	(%r15), %rax
	movq	_NV_11@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.4:
	cmpl	$23, 8(%r15)
	jl	LBB0_8
## %bb.5:
	movq	_nv17_gr_ctx_regs@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	callq	_nvkm_wr32
	incq	%rbx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	callq	_nv10_gr_load_pipe
	movq	_NV10_PGRAPH_GLOBALSTATE1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nvkm_rd32
	movzwl	%ax, %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_nv10_gr_load_dma_vtxbuf
	movq	_NV10_PGRAPH_CTX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$268501248, %edx                ## imm = 0x10010100
	callq	_nvkm_wr32
	movq	_NV10_PGRAPH_CTX_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$24, %r14d
	movq	%r15, %rdi
	movl	$-16777216, %edx                ## imm = 0xFF000000
	movl	%r14d, %ecx
	callq	_nvkm_mask
	movq	_NV10_PGRAPH_FFINTFC_ST2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$805306368, %edx                ## imm = 0x30000000
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nv10_gr_ctx_regs,8,3           ## @nv10_gr_ctx_regs
	.comm	_NV_11,8,3                      ## @NV_11
	.comm	_nv17_gr_ctx_regs,8,3           ## @nv17_gr_ctx_regs
	.comm	_NV10_PGRAPH_GLOBALSTATE1,4,2   ## @NV10_PGRAPH_GLOBALSTATE1
	.comm	_NV10_PGRAPH_CTX_CONTROL,4,2    ## @NV10_PGRAPH_CTX_CONTROL
	.comm	_NV10_PGRAPH_CTX_USER,4,2       ## @NV10_PGRAPH_CTX_USER
	.comm	_NV10_PGRAPH_FFINTFC_ST2,4,2    ## @NV10_PGRAPH_FFINTFC_ST2
	.no_dead_strip	_nv10_gr_load_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv10_gr_load_context
_nv10_gr_load_context:                  ; @nv10_gr_load_context
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
Lloh0:
	adrp	x22, _nv10_gr_ctx_regs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nv10_gr_ctx_regs@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x9, x23, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x21]
	ldr	w2, [x8, x9]
	mov	x0, x19
	bl	_nvkm_wr32
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _NV_11@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NV_11@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.4:
	ldr	w8, [x19, #8]
	cmp	w8, #23
	b.lt	LBB0_8
; %bb.5:
Lloh5:
	adrp	x22, _nv17_gr_ctx_regs@GOTPAGE
Lloh6:
	ldr	x22, [x22, _nv17_gr_ctx_regs@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x23, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x9, x23, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x21, #8]
	ldr	w2, [x8, x9]
	mov	x0, x19
	bl	_nvkm_wr32
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_7
LBB0_8:
	mov	x0, x21
	bl	_nv10_gr_load_pipe
Lloh7:
	adrp	x8, _NV10_PGRAPH_GLOBALSTATE1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NV10_PGRAPH_GLOBALSTATE1@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvkm_rd32
	and	w2, w0, #0xffff
	mov	x0, x21
	mov	x1, x20
	bl	_nv10_gr_load_dma_vtxbuf
Lloh10:
	adrp	x8, _NV10_PGRAPH_CTX_CONTROL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NV10_PGRAPH_CTX_CONTROL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #256
	movk	w2, #4097, lsl #16
	bl	_nvkm_wr32
Lloh13:
	adrp	x8, _NV10_PGRAPH_CTX_USER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NV10_PGRAPH_CTX_USER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	lsl	w3, w20, #24
	mov	x0, x19
	mov	w2, #-16777216
	bl	_nvkm_mask
Lloh16:
	adrp	x8, _NV10_PGRAPH_FFINTFC_ST2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NV10_PGRAPH_FFINTFC_ST2@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #805306368
	mov	w3, #0
	bl	_nvkm_mask
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_nv10_gr_ctx_regs,8,3           ; @nv10_gr_ctx_regs
	.comm	_NV_11,8,3                      ; @NV_11
	.comm	_nv17_gr_ctx_regs,8,3           ; @nv17_gr_ctx_regs
	.comm	_NV10_PGRAPH_GLOBALSTATE1,4,2   ; @NV10_PGRAPH_GLOBALSTATE1
	.comm	_NV10_PGRAPH_CTX_CONTROL,4,2    ; @NV10_PGRAPH_CTX_CONTROL
	.comm	_NV10_PGRAPH_CTX_USER,4,2       ; @NV10_PGRAPH_CTX_USER
	.comm	_NV10_PGRAPH_FFINTFC_ST2,4,2    ; @NV10_PGRAPH_FFINTFC_ST2
	.no_dead_strip	_nv10_gr_load_context
.subsections_via_symbols
