	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_grctx_generate_main      ## -- Begin function gf100_grctx_generate_main
	.p2align	4, 0x90
_gf100_grctx_generate_main:             ## @gf100_grctx_generate_main
	.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
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	32(%rdi), %r14
	movq	(%rax), %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_nvkm_mc_unk260
	movl	16(%rbx), %esi
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	movl	148(%r13), %esi
	movq	%rbx, %rdi
	callq	_gf100_gr_mmio
	movl	144(%r13), %esi
	movq	%rbx, %rdi
	callq	_gf100_gr_mmio
	movl	140(%r13), %esi
	movq	%rbx, %rdi
	callq	_gf100_gr_mmio
	movl	136(%r13), %esi
	movq	%rbx, %rdi
	callq	_gf100_gr_mmio
	movl	132(%r13), %esi
	movq	%rbx, %rdi
	callq	_gf100_gr_mmio
	movl	128(%r13), %esi
LBB0_2:
	movq	%rbx, %rdi
	callq	_gf100_gr_mmio
	movq	%rbx, %rdi
	callq	_gf100_gr_wait_idle
	movq	%r14, %rdi
	movl	$4211028, %esi                  ## imm = 0x404154
	movl	$-1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	*120(%r13)
	movq	%r12, %rdi
	callq	*112(%r13)
	movq	%r12, %rdi
	callq	*104(%r13)
	movq	96(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	*%rax
LBB0_4:
	movq	%rbx, %rdi
	callq	*88(%r13)
	movq	%rbx, %rdi
	callq	_gf100_grctx_generate_floorsweep
	movq	%rbx, %rdi
	callq	_gf100_gr_wait_idle
	movq	64(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_6:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_8
## %bb.7:
	movq	80(%r13), %rsi
LBB0_8:
	movq	%rbx, %rdi
	callq	_gf100_gr_icmd
	movq	72(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_gf100_gr_icmd
LBB0_10:
	movq	64(%r13), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_12:
	movq	%r14, %rdi
	movl	$4211028, %esi                  ## imm = 0x404154
	movl	%r15d, %edx
	callq	_nvkm_wr32
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_14
## %bb.13:
	movq	56(%r13), %rsi
LBB0_14:
	movq	%rbx, %rdi
	callq	_gf100_gr_mthd
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_nvkm_mc_unk260
	movq	48(%r13), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_16:
	movq	40(%r13), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_18:
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_20:
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_22:
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_24:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_26:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.28:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_grctx_generate_main      ; -- Begin function gf100_grctx_generate_main
	.p2align	2
_gf100_grctx_generate_main:             ; @gf100_grctx_generate_main
	.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	x22, x1
	mov	x19, x0
	ldp	x8, x20, [x0, #24]
	ldr	x23, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_nvkm_mc_unk260
	ldr	w1, [x19, #16]
	cbnz	w1, LBB0_2
; %bb.1:
	ldr	w1, [x23, #148]
	mov	x0, x19
	bl	_gf100_gr_mmio
	ldr	w1, [x23, #144]
	mov	x0, x19
	bl	_gf100_gr_mmio
	ldr	w1, [x23, #140]
	mov	x0, x19
	bl	_gf100_gr_mmio
	ldr	w1, [x23, #136]
	mov	x0, x19
	bl	_gf100_gr_mmio
	ldr	w1, [x23, #132]
	mov	x0, x19
	bl	_gf100_gr_mmio
	ldr	w1, [x23, #128]
LBB0_2:
	mov	x0, x19
	bl	_gf100_gr_mmio
	mov	x0, x19
	bl	_gf100_gr_wait_idle
	mov	x0, x20
	mov	w1, #16724
	movk	w1, #64, lsl #16
	mov	w2, #-1
	mov	w3, #0
	bl	_nvkm_mask
	mov	x21, x0
	ldr	x8, [x23, #120]
	mov	x0, x22
	blr	x8
	ldr	x8, [x23, #112]
	mov	x0, x22
	blr	x8
	ldr	x8, [x23, #104]
	mov	x0, x22
	blr	x8
	ldr	x8, [x23, #96]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x22
	blr	x8
LBB0_4:
	ldr	x8, [x23, #88]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_gf100_grctx_generate_floorsweep
	mov	x0, x19
	bl	_gf100_gr_wait_idle
	ldr	x8, [x23, #64]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_6:
	ldr	x1, [x19, #8]
	cbnz	x1, LBB0_8
; %bb.7:
	ldr	x1, [x23, #80]
LBB0_8:
	mov	x0, x19
	bl	_gf100_gr_icmd
	ldr	x1, [x23, #72]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_gf100_gr_icmd
LBB0_10:
	ldr	x8, [x23, #64]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_12:
	mov	x0, x20
	mov	w1, #16724
	movk	w1, #64, lsl #16
	mov	x2, x21
	bl	_nvkm_wr32
	ldr	x1, [x19]
	cbnz	x1, LBB0_14
; %bb.13:
	ldr	x1, [x23, #56]
LBB0_14:
	mov	x0, x19
	bl	_gf100_gr_mthd
	mov	x0, x20
	mov	w1, #1
	bl	_nvkm_mc_unk260
	ldr	x8, [x23, #48]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x19
	blr	x8
LBB0_16:
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	blr	x8
LBB0_18:
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	blr	x8
LBB0_20:
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x0, x19
	blr	x8
LBB0_22:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_24
; %bb.23:
	mov	x0, x19
	blr	x8
LBB0_24:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_26
; %bb.25:
	mov	x0, x19
	blr	x8
LBB0_26:
	ldr	x1, [x23]
	cbz	x1, LBB0_28
; %bb.27:
	mov	x0, x19
	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
	br	x1
LBB0_28:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
