	.file	"extr_imx-media-csc-scaler.c_ipu_csc_scaler_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Created instance %p, m2m_ctx: %p\n"
	.text
	.p2align 4
	.type	ipu_csc_scaler_open, @function
ipu_csc_scaler_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	video_drvdata@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 48
	mov	r12, rax
	call	kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	mov	rbp, rax
	mov	eax, DWORD PTR IPU_ROTATE_NONE[rip]
	mov	rdi, rbx
	mov	DWORD PTR 40[rbp], eax
	call	video_devdata@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	v4l2_fh_init@PLT
	mov	QWORD PTR [rbx], rbp
	mov	rdi, rbp
	call	v4l2_fh_add@PLT
	mov	QWORD PTR 32[rbp], r12
	mov	edi, DWORD PTR 4[r12]
	mov	rsi, rbp
	lea	rdx, ipu_csc_scaler_queue_init[rip]
	call	v4l2_m2m_ctx_init@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L9
	mov	rdi, rbp
	call	ipu_csc_scaler_init_controls@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L10
	lea	rax, 24[rbp]
	mov	rcx, QWORD PTR ipu_csc_scaler_q_data_default[rip]
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 8[rbp], rax
	mov	rdx, QWORD PTR V4L2_M2M_SRC[rip]
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	rdx, QWORD PTR V4L2_M2M_DST[rip]
	mov	rcx, QWORD PTR ipu_csc_scaler_q_data_default[rip]
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdx, rbp
	call	dev_dbg@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	mov	edi, DWORD PTR 0[rbp]
	call	PTR_ERR@PLT
	mov	r13d, eax
.L5:
	mov	rdi, rbp
	call	v4l2_fh_del@PLT
	mov	rdi, rbp
	call	v4l2_fh_exit@PLT
	mov	rdi, rbp
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	v4l2_m2m_ctx_release@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ipu_csc_scaler_open, .-ipu_csc_scaler_open
	.comm	ipu_csc_scaler_queue_init,4,4
	.comm	ipu_csc_scaler_q_data_default,8,8
	.comm	V4L2_M2M_SRC,8,8
	.comm	V4L2_M2M_DST,8,8
	.comm	IPU_ROTATE_NONE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_imx-media-csc-scaler.c_ipu_csc_scaler_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Created instance %p, m2m_ctx: %p\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipu_csc_scaler_open, %function
ipu_csc_scaler_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	video_drvdata
	ldr	r3, .L12
	mov	r6, r0
	ldr	r1, [r3]
	mov	r0, #24
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L9
	ldr	r3, .L12+4
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [r4, #20]
	bl	video_devdata
	mov	r1, r0
	mov	r0, r4
	bl	v4l2_fh_init
	mov	r0, r4
	str	r4, [r5]
	bl	v4l2_fh_add
	mov	r1, r4
	ldr	r2, .L12+8
	ldr	r0, [r6, #4]
	str	r6, [r4, #16]
	bl	v4l2_m2m_ctx_init
	str	r0, [r4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L10
	mov	r0, r4
	bl	ipu_csc_scaler_init_controls
	subs	r5, r0, #0
	bne	.L11
	ldr	r3, .L12+12
	ldr	r2, .L12+16
	ldr	ip, [r3]
	ldr	r0, [r2]
	ldr	r1, [r4, #8]
	add	r2, r4, #12
	str	r2, [r4, #4]
	ldr	r2, .L12+20
	str	ip, [r1, r0, lsl #2]
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4, #8]
	ldr	r0, [r6]
	str	r1, [r3, r2, lsl #2]
	mov	r2, r4
	ldr	r3, [r4]
	ldr	r1, .L12+24
	bl	dev_dbg
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, [r4]
	bl	PTR_ERR
	mov	r5, r0
.L5:
	mov	r0, r4
	bl	v4l2_fh_del
	mov	r0, r4
	bl	v4l2_fh_exit
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L12+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r0, [r4]
	bl	v4l2_m2m_ctx_release
	b	.L5
.L13:
	.align	2
.L12:
	.word	GFP_KERNEL
	.word	IPU_ROTATE_NONE
	.word	ipu_csc_scaler_queue_init
	.word	ipu_csc_scaler_q_data_default
	.word	V4L2_M2M_SRC
	.word	V4L2_M2M_DST
	.word	.LC0
	.word	ENOMEM
	.size	ipu_csc_scaler_open, .-ipu_csc_scaler_open
	.comm	ipu_csc_scaler_queue_init,4,4
	.comm	ipu_csc_scaler_q_data_default,4,4
	.comm	V4L2_M2M_SRC,4,4
	.comm	V4L2_M2M_DST,4,4
	.comm	IPU_ROTATE_NONE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
