	.file	"extr_gk20a.c_gk20a_gr_new.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fecs_inst"
.LC1:
	.string	"fecs_data"
.LC2:
	.string	"gpccs_inst"
.LC3:
	.string	"gpccs_data"
.LC4:
	.string	"sw_nonctx"
.LC5:
	.string	"sw_ctx"
.LC6:
	.string	"sw_bundle_init"
.LC7:
	.string	"sw_method_init"
	.text
	.p2align 4
	.globl	gk20a_gr_new
	.type	gk20a_gr_new, @function
gk20a_gr_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	edi, 36
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	test	rax, rax
	je	.L8
	mov	rbp, rax
	lea	rax, 32[rax]
	mov	edx, r13d
	mov	rsi, r12
	mov	QWORD PTR [rbx], rax
	mov	rcx, rbp
	lea	rdi, gk20a_gr[rip]
	call	gf100_gr_ctor@PLT
	test	eax, eax
	je	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdx, 28[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	gf100_gr_ctor_fw@PLT
	test	rax, rax
	je	.L4
.L5:
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rdx, 24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	gf100_gr_ctor_fw@PLT
	test	rax, rax
	jne	.L5
	lea	rdx, 20[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	gf100_gr_ctor_fw@PLT
	test	rax, rax
	jne	.L5
	lea	rdx, 16[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	gf100_gr_ctor_fw@PLT
	test	rax, rax
	jne	.L5
	lea	rdx, 12[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	gk20a_gr_av_to_init@PLT
	test	eax, eax
	jne	.L1
	lea	rdx, 8[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	gk20a_gr_aiv_to_init@PLT
	test	eax, eax
	jne	.L1
	lea	rdx, 4[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	gk20a_gr_av_to_init@PLT
	test	eax, eax
	jne	.L1
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdx, rbp
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	lea	rsi, .LC7[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	gk20a_gr_av_to_method@PLT
	.cfi_endproc
.LFE0:
	.size	gk20a_gr_new, .-gk20a_gr_new
	.comm	gk20a_gr,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gk20a.c_gk20a_gr_new.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fecs_inst\000"
	.align	2
.LC1:
	.ascii	"fecs_data\000"
	.align	2
.LC2:
	.ascii	"gpccs_inst\000"
	.align	2
.LC3:
	.ascii	"gpccs_data\000"
	.align	2
.LC4:
	.ascii	"sw_nonctx\000"
	.align	2
.LC5:
	.ascii	"sw_ctx\000"
	.align	2
.LC6:
	.ascii	"sw_bundle_init\000"
	.align	2
.LC7:
	.ascii	"sw_method_init\000"
	.text
	.align	2
	.global	gk20a_gr_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	gk20a_gr_new, %function
gk20a_gr_new:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	ldr	r1, .L9
	mov	r6, r0
	ldr	r1, [r1]
	mov	r0, #36
	mov	r5, r2
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L8
	add	r3, r4, #32
	str	r3, [r5]
	mov	r2, r7
	mov	r1, r6
	mov	r3, r4
	ldr	r0, .L9+4
	bl	gf100_gr_ctor
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	ldr	r1, .L9+8
	add	r2, r4, #28
	bl	gf100_gr_ctor_fw
	cmp	r0, #0
	beq	.L4
.L5:
	ldr	r3, .L9+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r4
	ldr	r1, .L9+20
	add	r2, r4, #24
	bl	gf100_gr_ctor_fw
	cmp	r0, #0
	bne	.L5
	mov	r0, r4
	ldr	r1, .L9+24
	add	r2, r4, #20
	bl	gf100_gr_ctor_fw
	cmp	r0, #0
	bne	.L5
	mov	r0, r4
	ldr	r1, .L9+28
	add	r2, r4, #16
	bl	gf100_gr_ctor_fw
	cmp	r0, #0
	bne	.L5
	mov	r0, r4
	ldr	r1, .L9+32
	add	r2, r4, #12
	bl	gk20a_gr_av_to_init
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	ldr	r1, .L9+36
	add	r2, r4, #8
	bl	gk20a_gr_aiv_to_init
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	ldr	r1, .L9+40
	add	r2, r4, #4
	bl	gk20a_gr_av_to_init
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r2, r4
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L9+44
	b	gk20a_gr_av_to_method
.L10:
	.align	2
.L9:
	.word	GFP_KERNEL
	.word	gk20a_gr
	.word	.LC0
	.word	ENODEV
	.word	ENOMEM
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	gk20a_gr_new, .-gk20a_gr_new
	.comm	gk20a_gr,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
