	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_gr_new                   ## -- Begin function gk20a_gr_new
	.p2align	4, 0x90
_gk20a_gr_new:                          ## @gk20a_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$36, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	addq	$32, %rax
	movq	%rax, (%rbx)
	movq	_gk20a_gr@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_gf100_gr_ctor
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	leaq	28(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_gf100_gr_ctor_fw
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	leaq	24(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_gf100_gr_ctor_fw
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	leaq	20(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_gf100_gr_ctor_fw
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	16(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_gf100_gr_ctor_fw
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	12(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_gk20a_gr_av_to_init
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	leaq	8(%r14), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_gk20a_gr_aiv_to_init
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdx
	addq	$4, %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_gk20a_gr_av_to_init
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gk20a_gr_av_to_method          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gk20a_gr,4,2                   ## @gk20a_gr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fecs_inst"

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

L_.str.2:                               ## @.str.2
	.asciz	"gpccs_inst"

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

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"sw_nonctx"

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

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_gr_new                   ; -- Begin function gk20a_gr_new
	.p2align	2
_gk20a_gr_new:                          ; @gk20a_gr_new
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, 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_7
; %bb.1:
	mov	x19, x0
	add	x8, x0, #32
	str	x8, [x22]
Lloh3:
	adrp	x0, _gk20a_gr@GOTPAGE
Lloh4:
	ldr	x0, [x0, _gk20a_gr@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_gf100_gr_ctor
	cbnz	w0, LBB0_9
; %bb.2:
	add	x2, x19, #28
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gf100_gr_ctor_fw
	cbnz	x0, LBB0_6
; %bb.3:
	add	x2, x19, #24
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gf100_gr_ctor_fw
	cbnz	x0, LBB0_6
; %bb.4:
	add	x2, x19, #20
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gf100_gr_ctor_fw
	cbnz	x0, LBB0_6
; %bb.5:
	add	x2, x19, #16
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_gf100_gr_ctor_fw
	cbz	x0, LBB0_10
LBB0_6:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	add	x2, x19, #12
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_gk20a_gr_av_to_init
	cbnz	w0, LBB0_9
; %bb.11:
	add	x2, x19, #8
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_gk20a_gr_aiv_to_init
	cbnz	w0, LBB0_9
; %bb.12:
	add	x2, x19, #4
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_gk20a_gr_av_to_init
	cbnz	w0, LBB0_9
; %bb.13:
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gk20a_gr_av_to_method
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gk20a_gr,4,2                   ; @gk20a_gr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fecs_inst"

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

l_.str.2:                               ; @.str.2
	.asciz	"gpccs_inst"

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

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"sw_nonctx"

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

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

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

.subsections_via_symbols
