	.file	"extr_camif-capture.c_s3c_camif_create_subdev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"S3C-CAMIF"
	.text
	.p2align 4
	.globl	s3c_camif_create_subdev
	.type	s3c_camif_create_subdev, @function
s3c_camif_create_subdev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rsi, s3c_camif_subdev_ops[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, 32[rdi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, r13
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	r14, 40[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	v4l2_subdev_init@PLT
	mov	eax, DWORD PTR V4L2_SUBDEV_FL_HAS_DEVNODE[rip]
	or	DWORD PTR 48[rbp], eax
	mov	edx, 4
	mov	edi, DWORD PTR 44[rbp]
	lea	rsi, .LC0[rip]
	call	strscpy@PLT
	mov	rcx, QWORD PTR MEDIA_PAD_FL_SINK[rip]
	mov	rdx, QWORD PTR 24[rbp]
	mov	rdi, r14
	mov	rax, QWORD PTR CAMIF_SD_PAD_SINK[rip]
	mov	esi, DWORD PTR CAMIF_SD_PADS_NUM[rip]
	mov	QWORD PTR [rdx+rax*8], rcx
	mov	rcx, QWORD PTR CAMIF_SD_PAD_SOURCE_C[rip]
	mov	rax, QWORD PTR MEDIA_PAD_FL_SOURCE[rip]
	mov	QWORD PTR [rdx+rcx*8], rax
	mov	rcx, QWORD PTR CAMIF_SD_PAD_SOURCE_P[rip]
	mov	QWORD PTR [rdx+rcx*8], rax
	call	media_entity_pads_init@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	r15, 56[rbp]
	mov	esi, 3
	mov	rdi, r15
	call	v4l2_ctrl_handler_init@PLT
	mov	ebx, DWORD PTR s3c_camif_test_pattern_menu[rip]
	mov	edi, ebx
	call	ARRAY_SIZE@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	xor	r8d, r8d
	xor	r9d, r9d
	push	rbx
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR V4L2_CID_TEST_PATTERN[rip]
	mov	rdi, r15
	lea	rcx, -1[rax]
	lea	rsi, s3c_camif_subdev_ctrl_ops[rip]
	call	v4l2_ctrl_new_std_menu_items@PLT
	pop	rdi
	.cfi_def_cfa_offset 72
	pop	r8
	.cfi_def_cfa_offset 64
	mov	DWORD PTR 20[rbp], eax
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L12
	mov	eax, DWORD PTR 56[rbp]
	test	eax, eax
	jne	.L7
.L6:
	mov	QWORD PTR 32[rbp], r15
	mov	rsi, rbp
	mov	rdi, r13
	call	v4l2_set_subdevdata@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r9d, DWORD PTR V4L2_COLORFX_NONE[rip]
	mov	ecx, DWORD PTR V4L2_COLORFX_SET_CBCR[rip]
	mov	rdi, r15
	mov	r8d, -38944
	mov	edx, DWORD PTR V4L2_CID_COLORFX[rip]
	lea	rsi, s3c_camif_subdev_ctrl_ops[rip]
	call	v4l2_ctrl_new_std_menu@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	xor	ecx, ecx
	mov	rdi, r15
	push	0
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR V4L2_CID_COLORFX_CBCR[rip]
	lea	rsi, s3c_camif_subdev_ctrl_ops[rip]
	mov	r9d, 1
	mov	DWORD PTR 0[rbp], eax
	mov	r8d, 65535
	call	v4l2_ctrl_new_std@PLT
	mov	esi, DWORD PTR 56[rbp]
	pop	rdx
	.cfi_def_cfa_offset 72
	mov	DWORD PTR 16[rbp], eax
	pop	rcx
	.cfi_def_cfa_offset 64
	test	esi, esi
	jne	.L7
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rax], 0
	je	.L6
	mov	edx, DWORD PTR V4L2_COLORFX_SET_CBCR[rip]
	xor	ecx, ecx
	mov	rsi, rbp
	mov	edi, 2
	call	v4l2_ctrl_auto_cluster@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r15
	call	v4l2_ctrl_handler_free@PLT
	mov	rdi, r14
	call	media_entity_cleanup@PLT
	mov	r12d, DWORD PTR 56[rbp]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	s3c_camif_create_subdev, .-s3c_camif_create_subdev
	.comm	s3c_camif_test_pattern_menu,4,4
	.comm	s3c_camif_subdev_ops,4,4
	.comm	s3c_camif_subdev_ctrl_ops,4,4
	.comm	V4L2_SUBDEV_FL_HAS_DEVNODE,4,4
	.comm	V4L2_COLORFX_SET_CBCR,4,4
	.comm	V4L2_COLORFX_NONE,4,4
	.comm	V4L2_CID_TEST_PATTERN,4,4
	.comm	V4L2_CID_COLORFX_CBCR,4,4
	.comm	V4L2_CID_COLORFX,4,4
	.comm	MEDIA_PAD_FL_SOURCE,8,8
	.comm	MEDIA_PAD_FL_SINK,8,8
	.comm	CAMIF_SD_PAD_SOURCE_P,8,8
	.comm	CAMIF_SD_PAD_SOURCE_C,8,8
	.comm	CAMIF_SD_PAD_SINK,8,8
	.comm	CAMIF_SD_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_camif-capture.c_s3c_camif_create_subdev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"S3C-CAMIF\000"
	.text
	.align	2
	.global	s3c_camif_create_subdev
	.syntax unified
	.arm
	.fpu softvfp
	.type	s3c_camif_create_subdev, %function
s3c_camif_create_subdev:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	add	r6, r0, #20
	sub	sp, sp, #16
	ldr	r1, .L13
	mov	r0, r6
	bl	v4l2_subdev_init
	ldr	r2, .L13+4
	ldr	r3, [r4, #32]
	ldr	r2, [r2]
	ldr	r1, .L13+8
	orr	r3, r3, r2
	str	r3, [r4, #32]
	mov	r2, #4
	ldr	r0, [r4, #28]
	bl	strscpy
	ldr	r1, .L13+12
	ldr	r3, .L13+16
	ldr	ip, [r1]
	ldr	r2, [r4, #16]
	ldr	r1, [r3]
	ldr	r0, .L13+20
	str	ip, [r2, r1, lsl #2]
	ldr	r3, .L13+24
	ldr	r1, .L13+28
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r1, .L13+32
	add	r8, r4, #24
	str	r3, [r2, ip, lsl #2]
	ldr	r1, [r1]
	str	r3, [r2, r0, lsl #2]
	mov	r0, r8
	bl	media_entity_pads_init
	subs	r5, r0, #0
	beq	.L11
.L1:
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	add	r7, r4, #36
	mov	r1, #3
	ldr	r9, .L13+36
	mov	r0, r7
	bl	v4l2_ctrl_handler_init
	ldr	r3, .L13+40
	ldr	r0, [r9]
	ldr	r10, [r3]
	bl	ARRAY_SIZE
	ldr	r3, [r9]
	mov	r2, r10
	str	r3, [sp, #8]
	ldr	r1, .L13+44
	sub	r3, r0, #1
	str	r5, [sp, #4]
	mov	r0, r7
	str	r5, [sp]
	bl	v4l2_ctrl_new_std_menu_items
	ldr	r3, [r4, #4]
	str	r0, [r4, #12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [r4, #36]
	cmp	r3, #0
	bne	.L7
.L6:
	mov	r1, r4
	mov	r0, r6
	str	r7, [r4, #20]
	bl	v4l2_set_subdevdata
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r3, .L13+48
	ldr	r1, .L13+52
	ldr	r3, [r3]
	ldr	r9, .L13+56
	ldr	r2, .L13+60
	str	r3, [sp, #4]
	ldr	r3, [r9]
	ldr	r2, [r2]
	mov	r0, r7
	str	r1, [sp]
	ldr	r1, .L13+44
	bl	v4l2_ctrl_new_std_menu
	mov	r1, #1
	str	r0, [r4]
	stmib	sp, {r1, r5}
	ldr	r3, .L13+64
	ldr	r2, .L13+68
	mov	r0, r7
	ldr	r2, [r2]
	ldr	r1, .L13+44
	str	r3, [sp]
	mov	r3, r5
	bl	v4l2_ctrl_new_std
	ldr	r3, [r4, #36]
	str	r0, [r4, #8]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	mov	r3, r5
	mov	r1, r4
	ldr	r2, [r9]
	mov	r0, #2
	bl	v4l2_ctrl_auto_cluster
	b	.L6
.L7:
	mov	r0, r7
	bl	v4l2_ctrl_handler_free
	mov	r0, r8
	bl	media_entity_cleanup
	ldr	r5, [r4, #36]
	b	.L1
.L14:
	.align	2
.L13:
	.word	s3c_camif_subdev_ops
	.word	V4L2_SUBDEV_FL_HAS_DEVNODE
	.word	.LC0
	.word	MEDIA_PAD_FL_SINK
	.word	CAMIF_SD_PAD_SINK
	.word	CAMIF_SD_PAD_SOURCE_C
	.word	MEDIA_PAD_FL_SOURCE
	.word	CAMIF_SD_PAD_SOURCE_P
	.word	CAMIF_SD_PADS_NUM
	.word	s3c_camif_test_pattern_menu
	.word	V4L2_CID_TEST_PATTERN
	.word	s3c_camif_subdev_ctrl_ops
	.word	V4L2_COLORFX_NONE
	.word	-38944
	.word	V4L2_COLORFX_SET_CBCR
	.word	V4L2_CID_COLORFX
	.word	65535
	.word	V4L2_CID_COLORFX_CBCR
	.size	s3c_camif_create_subdev, .-s3c_camif_create_subdev
	.comm	s3c_camif_test_pattern_menu,4,4
	.comm	s3c_camif_subdev_ops,4,4
	.comm	s3c_camif_subdev_ctrl_ops,4,4
	.comm	V4L2_SUBDEV_FL_HAS_DEVNODE,4,4
	.comm	V4L2_COLORFX_SET_CBCR,4,4
	.comm	V4L2_COLORFX_NONE,4,4
	.comm	V4L2_CID_TEST_PATTERN,4,4
	.comm	V4L2_CID_COLORFX_CBCR,4,4
	.comm	V4L2_CID_COLORFX,4,4
	.comm	MEDIA_PAD_FL_SOURCE,4,4
	.comm	MEDIA_PAD_FL_SINK,4,4
	.comm	CAMIF_SD_PAD_SOURCE_P,4,4
	.comm	CAMIF_SD_PAD_SOURCE_C,4,4
	.comm	CAMIF_SD_PAD_SINK,4,4
	.comm	CAMIF_SD_PADS_NUM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
