	.file	"extr_iss_csi2.c_csi2_init_entities.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CSI2%s"
.LC1:
	.string	"OMAP4 ISS %s"
	.text
	.p2align 4
	.type	csi2_init_entities, @function
csi2_init_entities:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rsi
	push	r12
	.cfi_offset 12, -48
	lea	r12, 8[rdi]
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	mov	r15, QWORD PTR 80[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR V4L2_SUBDEV_NAME_SIZE[rip]
	mov	rcx, rsp
	mov	r14, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L13:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L13
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L14
.L4:
	lea	rsi, csi2_ops[rip]
	mov	rdi, rbx
	call	v4l2_subdev_init@PLT
	mov	rcx, r13
	mov	esi, r14d
	mov	rdi, rsp
	lea	rax, csi2_internal_ops[rip]
	lea	rdx, .LC0[rip]
	mov	QWORD PTR 24[rbx], rax
	call	snprintf@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rcx, rsp
	mov	esi, 8
	lea	rdx, .LC1[rip]
	call	snprintf@PLT
	mov	edi, 16
	call	BIT@PLT
	mov	rsi, rbx
	mov	rdi, rbx
	mov	DWORD PTR 20[rbx], eax
	call	v4l2_set_subdevdata@PLT
	mov	eax, DWORD PTR V4L2_SUBDEV_FL_HAS_DEVNODE[rip]
	or	DWORD PTR 16[rbx], eax
	mov	rdi, r12
	mov	edx, DWORD PTR MEDIA_PAD_FL_SOURCE[rip]
	mov	rax, QWORD PTR CSI2_PAD_SOURCE[rip]
	mov	DWORD PTR [r15+rax*4], edx
	mov	rax, QWORD PTR CSI2_PAD_SINK[rip]
	mov	edx, DWORD PTR MEDIA_PAD_FL_SINK[rip]
	mov	DWORD PTR [r15+rax*4], edx
	lea	rax, csi2_media_ops[rip]
	mov	esi, DWORD PTR CSI2_PADS_NUM[rip]
	mov	rdx, r15
	mov	QWORD PTR 8[rbx], rax
	call	media_entity_pads_init@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L1
	xor	esi, esi
	mov	rdi, rbx
	call	csi2_init_formats@PLT
	mov	eax, DWORD PTR V4L2_BUF_TYPE_VIDEO_CAPTURE[rip]
	mov	edi, 16777216
	mov	DWORD PTR 40[rbx], 131040
	mov	DWORD PTR 64[rbx], eax
	lea	rax, csi2_issvideo_ops[rip]
	mov	QWORD PTR 56[rbx], rax
	movabs	rax, 4294967328
	mov	QWORD PTR 32[rbx], rax
	mov	eax, DWORD PTR 72[rbx]
	mov	DWORD PTR 48[rbx], eax
	call	PAGE_ALIGN@PLT
	lea	rdi, 32[rbx]
	mov	rsi, rsp
	lea	eax, [rax+rax*2]
	mov	DWORD PTR 44[rbx], eax
	call	omap4iss_video_init@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L15
	xor	r13d, r13d
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -40[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r12
	call	media_entity_cleanup@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	csi2_init_entities, .-csi2_init_entities
	.comm	csi2_ops,4,4
	.comm	csi2_media_ops,4,4
	.comm	csi2_issvideo_ops,4,4
	.comm	csi2_internal_ops,4,4
	.comm	V4L2_SUBDEV_NAME_SIZE,4,4
	.comm	V4L2_SUBDEV_FL_HAS_DEVNODE,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE,4,4
	.comm	MEDIA_PAD_FL_SOURCE,4,4
	.comm	MEDIA_PAD_FL_SINK,4,4
	.comm	CSI2_PAD_SOURCE,8,8
	.comm	CSI2_PAD_SINK,8,8
	.comm	CSI2_PADS_NUM,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_iss_csi2.c_csi2_init_entities.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CSI2%s\000"
	.align	2
.LC1:
	.ascii	"OMAP4 ISS %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	csi2_init_entities, %function
csi2_init_entities:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	mov	r4, r0
	mov	r6, r1
	ldr	r3, .L9
	ldr	r1, .L9+4
	ldr	r7, [r3]
	ldr	r3, .L9+8
	ldr	r5, [r0, #52]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	add	r3, r7, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	v4l2_subdev_init
	ldr	r2, .L9+12
	mov	r3, r6
	mov	r1, r7
	str	r2, [r4, #16]
	mov	r0, sp
	ldr	r2, .L9+16
	bl	snprintf
	mov	r3, sp
	ldr	r2, .L9+20
	mov	r1, #4
	ldr	r0, [r4]
	bl	snprintf
	mov	r0, #16
	bl	BIT
	mov	r1, r4
	str	r0, [r4, #12]
	mov	r0, r4
	bl	v4l2_set_subdevdata
	ldr	r2, .L9+24
	ldr	r0, .L9+28
	ldr	r1, .L9+32
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	ldr	ip, [r0]
	ldr	r0, [r1]
	orr	r3, r3, r2
	ldr	r1, .L9+36
	ldr	r2, .L9+40
	str	r3, [r4, #8]
	str	ip, [r5, r0, lsl #2]
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, .L9+44
	ldr	r3, .L9+48
	str	r0, [r5, r2, lsl #2]
	add	r6, r4, #4
	mov	r2, r5
	str	r1, [r4, #4]
	mov	r0, r6
	ldr	r1, [r3]
	bl	media_entity_pads_init
	subs	r5, r0, #0
	blt	.L1
	mov	r1, #0
	mov	r0, r4
	bl	csi2_init_formats
	mov	ip, #32
	mov	r0, #1
	ldr	r3, .L9+52
	ldr	r1, .L9+56
	ldr	r3, [r3]
	ldr	r2, .L9+60
	str	r3, [r4, #44]
	ldr	r3, [r4, #48]
	str	ip, [r4, #20]
	str	r0, [r4, #24]
	str	r1, [r4, #40]
	str	r2, [r4, #28]
	str	r3, [r4, #36]
	mov	r0, #16777216
	bl	PAGE_ALIGN
	add	r0, r0, r0, lsl #1
	str	r0, [r4, #32]
	mov	r1, sp
	add	r0, r4, #20
	bl	omap4iss_video_init
	subs	r5, r0, #0
	movge	r5, #0
	blt	.L7
.L1:
	ldr	r3, .L9+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r5
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L7:
	mov	r0, r6
	bl	media_entity_cleanup
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	V4L2_SUBDEV_NAME_SIZE
	.word	csi2_ops
	.word	.LC2
	.word	csi2_internal_ops
	.word	.LC0
	.word	.LC1
	.word	V4L2_SUBDEV_FL_HAS_DEVNODE
	.word	MEDIA_PAD_FL_SOURCE
	.word	CSI2_PAD_SOURCE
	.word	MEDIA_PAD_FL_SINK
	.word	CSI2_PAD_SINK
	.word	csi2_media_ops
	.word	CSI2_PADS_NUM
	.word	V4L2_BUF_TYPE_VIDEO_CAPTURE
	.word	csi2_issvideo_ops
	.word	131040
	.size	csi2_init_entities, .-csi2_init_entities
	.comm	csi2_ops,4,4
	.comm	csi2_media_ops,4,4
	.comm	csi2_issvideo_ops,4,4
	.comm	csi2_internal_ops,4,4
	.comm	V4L2_SUBDEV_NAME_SIZE,4,4
	.comm	V4L2_SUBDEV_FL_HAS_DEVNODE,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE,4,4
	.comm	MEDIA_PAD_FL_SOURCE,4,4
	.comm	MEDIA_PAD_FL_SINK,4,4
	.comm	CSI2_PAD_SOURCE,4,4
	.comm	CSI2_PAD_SINK,4,4
	.comm	CSI2_PADS_NUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
