	.file	"extr_dc.c_tegra_dc_add_shared_planes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tegra_dc_add_shared_planes, @function
tegra_dc_add_shared_planes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[rsi]
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	je	.L7
	mov	QWORD PTR 8[rsp], 0
	mov	r13, rdi
	mov	rbp, rsi
	xor	r15d, r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	add	r15d, 1
	cmp	DWORD PTR [rax], r15d
	jbe	.L12
.L6:
	mov	ebx, r15d
	mov	rsi, QWORD PTR 0[rbp]
	sal	rbx, 5
	add	rbx, QWORD PTR 8[rax]
	cmp	QWORD PTR [rbx], rsi
	jne	.L3
	mov	edx, DWORD PTR 8[rbx]
	test	edx, edx
	je	.L3
	xor	r14d, r14d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	r14d, 1
	cmp	DWORD PTR 8[rbx], r14d
	jbe	.L13
.L5:
	mov	rdx, QWORD PTR 16[rbx]
	mov	eax, r14d
	mov	rdi, r13
	mov	rsi, rbp
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	edx, DWORD PTR 24[rbx]
	call	tegra_shared_plane_create@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L1
	cmp	QWORD PTR 8[rsp], 0
	jne	.L4
	mov	eax, DWORD PTR DRM_PLANE_TYPE_PRIMARY[rip]
	mov	QWORD PTR 8[rsp], r12
	add	r14d, 1
	mov	DWORD PTR [r12], eax
	cmp	DWORD PTR 8[rbx], r14d
	ja	.L5
.L13:
	mov	rax, QWORD PTR 8[rbp]
	add	r15d, 1
	cmp	DWORD PTR [rax], r15d
	ja	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12, QWORD PTR 8[rsp]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	tegra_dc_add_shared_planes, .-tegra_dc_add_shared_planes
	.comm	DRM_PLANE_TYPE_PRIMARY,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_dc.c_tegra_dc_add_shared_planes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tegra_dc_add_shared_planes, %function
tegra_dc_add_shared_planes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r1, #4]
	ldr	r6, [r3]
	cmp	r6, #0
	beq	.L1
	mov	r7, #0
	mov	r8, r1
	mov	r10, r0
	mov	r9, r7
	ldr	fp, .L18
	b	.L6
.L3:
	ldr	r2, [r3]
	add	r7, r7, #1
	cmp	r2, r7
	bls	.L15
.L6:
	ldr	r4, [r3, #4]
	ldr	r2, [r8]
	ldr	r1, [r4, r7, lsl #4]
	add	r4, r4, r7, lsl #4
	cmp	r1, r2
	bne	.L3
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L3
	mov	r5, #0
	b	.L5
.L17:
	cmp	r9, #0
	ldreq	r3, [fp]
	moveq	r9, r6
	streq	r3, [r6]
	ldr	r3, [r4, #4]
	cmp	r3, r5
	bls	.L16
.L5:
	ldr	r3, [r4, #8]
	mov	r1, r8
	ldr	r3, [r3, r5, lsl #2]
	ldr	r2, [r4, #12]
	mov	r0, r10
	bl	tegra_shared_plane_create
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	add	r5, r5, #1
	beq	.L17
.L1:
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, [r8, #4]
	add	r7, r7, #1
	ldr	r2, [r3]
	cmp	r2, r7
	bhi	.L6
.L15:
	mov	r6, r9
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	DRM_PLANE_TYPE_PRIMARY
	.size	tegra_dc_add_shared_planes, .-tegra_dc_add_shared_planes
	.comm	DRM_PLANE_TYPE_PRIMARY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
