	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm200_gr_new_                  ## -- Begin function gm200_gr_new_
	.p2align	4, 0x90
_gm200_gr_new_:                         ## @gm200_gr_new_
	.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	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$36, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	addq	$32, %rax
	movq	%rax, (%r13)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_gf100_gr_ctor
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movl	(%r14), %edi
	movq	_NVKM_SECBOOT_FALCON_FECS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nvkm_secboot_is_managed
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movl	(%r14), %edi
	movq	_NVKM_SECBOOT_FALCON_GPCCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nvkm_secboot_is_managed
	testl	%eax, %eax
	je	LBB0_7
LBB0_9:
	leaq	12(%r15), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_gk20a_gr_av_to_init
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	leaq	8(%r15), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_gk20a_gr_aiv_to_init
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdx
	addq	$4, %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_gk20a_gr_av_to_init
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gk20a_gr_av_to_method          ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	28(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_gf100_gr_ctor_fw
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	leaq	24(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_gf100_gr_ctor_fw
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_6
LBB0_7:
	leaq	20(%r15), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_gf100_gr_ctor_fw
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	leaq	16(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_gf100_gr_ctor_fw
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NVKM_SECBOOT_FALCON_FECS,4,2   ## @NVKM_SECBOOT_FALCON_FECS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gr/fecs_inst"

L_.str.1:                               ## @.str.1
	.asciz	"gr/fecs_data"

	.comm	_NVKM_SECBOOT_FALCON_GPCCS,4,2  ## @NVKM_SECBOOT_FALCON_GPCCS
L_.str.2:                               ## @.str.2
	.asciz	"gr/gpccs_inst"

L_.str.3:                               ## @.str.3
	.asciz	"gr/gpccs_data"

L_.str.4:                               ## @.str.4
	.asciz	"gr/sw_nonctx"

L_.str.5:                               ## @.str.5
	.asciz	"gr/sw_ctx"

L_.str.6:                               ## @.str.6
	.asciz	"gr/sw_bundle_init"

L_.str.7:                               ## @.str.7
	.asciz	"gr/sw_method_init"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gm200_gr_new_                  ; -- Begin function gm200_gr_new_
	.p2align	2
_gm200_gr_new_:                         ; @gm200_gr_new_
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #36
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	add	x8, x0, #32
	str	x8, [x22]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_gf100_gr_ctor
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _NVKM_SECBOOT_FALCON_FECS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVKM_SECBOOT_FALCON_FECS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_nvkm_secboot_is_managed
	cbz	w0, LBB0_10
LBB0_3:
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _NVKM_SECBOOT_FALCON_GPCCS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVKM_SECBOOT_FALCON_GPCCS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_nvkm_secboot_is_managed
	cbz	w0, LBB0_12
LBB0_4:
	add	x2, x19, #12
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_gk20a_gr_av_to_init
	cbnz	w0, LBB0_9
; %bb.5:
	add	x2, x19, #8
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_gk20a_gr_aiv_to_init
	cbnz	w0, LBB0_9
; %bb.6:
	add	x2, x19, #4
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_gk20a_gr_av_to_init
	cbnz	w0, LBB0_9
; %bb.7:
Lloh15:
	adrp	x1, l_.str.7@PAGE
Lloh16:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, 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
	b	_gk20a_gr_av_to_method
LBB0_8:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
	add	x2, x19, #28
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gf100_gr_ctor_fw
	cbnz	w0, LBB0_9
; %bb.11:
	add	x2, x19, #24
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gf100_gr_ctor_fw
	cbnz	w0, LBB0_9
	b	LBB0_3
LBB0_12:
	add	x2, x19, #20
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gf100_gr_ctor_fw
	cbnz	w0, LBB0_9
; %bb.13:
	add	x2, x19, #16
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_gf100_gr_ctor_fw
	cbnz	w0, LBB0_9
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NVKM_SECBOOT_FALCON_FECS,4,2   ; @NVKM_SECBOOT_FALCON_FECS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gr/fecs_inst"

l_.str.1:                               ; @.str.1
	.asciz	"gr/fecs_data"

	.comm	_NVKM_SECBOOT_FALCON_GPCCS,4,2  ; @NVKM_SECBOOT_FALCON_GPCCS
l_.str.2:                               ; @.str.2
	.asciz	"gr/gpccs_inst"

l_.str.3:                               ; @.str.3
	.asciz	"gr/gpccs_data"

l_.str.4:                               ; @.str.4
	.asciz	"gr/sw_nonctx"

l_.str.5:                               ; @.str.5
	.asciz	"gr/sw_ctx"

l_.str.6:                               ; @.str.6
	.asciz	"gr/sw_bundle_init"

l_.str.7:                               ; @.str.7
	.asciz	"gr/sw_method_init"

.subsections_via_symbols
