	.file	"extr_imx-media-csi.c_imx_csi_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"devm_pinctrl_get_select_default() failed: %d\n"
	.text
	.p2align 4
	.type	imx_csi_probe, @function
imx_csi_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 120
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	lea	r13, 40[rax]
	mov	rbx, rax
	mov	rdi, rbp
	mov	rsi, r13
	call	platform_set_drvdata@PLT
	mov	QWORD PTR 32[rbx], rbp
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, QWORD PTR 32[rbx]
	mov	esi, eax
	call	dma_set_coherent_mask@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
.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
.L15:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rbx]
	mov	edi, DWORD PTR 16[rax]
	call	dev_get_drvdata@PLT
	mov	esi, DWORD PTR csi_idmac_eof_timeout[rip]
	lea	rdi, 112[rbx]
	mov	DWORD PTR 104[rbx], eax
	mov	rax, QWORD PTR 32[rbx]
	mov	r14, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [r14]
	test	rax, rax
	mov	QWORD PTR [rbx], rax
	mov	eax, 2
	cmovne	r12d, eax
	mov	eax, DWORD PTR CSI_SRC_PAD_IDMAC[rip]
	xor	edx, edx
	mov	DWORD PTR 8[rbx], r12d
	mov	DWORD PTR 116[rbx], eax
	call	timer_setup@PLT
	lea	rdi, 108[rbx]
	call	spin_lock_init@PLT
	lea	rsi, csi_subdev_ops[rip]
	mov	rdi, r13
	call	v4l2_subdev_init@PLT
	mov	rsi, rbx
	mov	rdi, r13
	call	v4l2_set_subdevdata@PLT
	lea	rax, csi_internal_ops[rip]
	mov	QWORD PTR 56[rbx], rbp
	mov	edi, DWORD PTR 8[r14]
	mov	QWORD PTR 96[rbx], rax
	lea	rax, csi_entity_ops[rip]
	mov	QWORD PTR 88[rbx], rax
	mov	eax, DWORD PTR MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER[rip]
	mov	DWORD PTR 80[rbx], eax
	call	of_fwnode_handle@PLT
	mov	DWORD PTR 76[rbx], eax
	mov	eax, DWORD PTR THIS_MODULE[rip]
	mov	DWORD PTR 72[rbx], eax
	mov	eax, DWORD PTR V4L2_SUBDEV_FL_HAS_DEVNODE[rip]
	or	eax, DWORD PTR V4L2_SUBDEV_FL_HAS_EVENTS[rip]
	cmp	QWORD PTR [rbx], 0
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR IMX_MEDIA_GRP_ID_IPU_CSI0[rip]
	jne	.L16
.L6:
	mov	DWORD PTR 64[rbx], eax
	mov	edi, DWORD PTR 104[rbx]
	call	ipu_get_num@PLT
	mov	edx, DWORD PTR 64[rbx]
	mov	edi, DWORD PTR 68[rbx]
	mov	esi, 4
	mov	ecx, eax
	call	imx_media_grp_id_to_sd_name@PLT
	mov	rdi, QWORD PTR 56[rbx]
	mov	edx, DWORD PTR CSI_SRC_PAD_IDMAC[rip]
	mov	rsi, r13
	call	imx_media_capture_device_init@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	lea	r15, 24[rbx]
	lea	r13, 28[rbx]
	mov	rdi, r15
	call	mutex_init@PLT
	xor	esi, esi
	mov	rdi, r13
	call	v4l2_ctrl_handler_init@PLT
	mov	rdi, QWORD PTR 32[rbx]
	mov	eax, DWORD PTR 8[r14]
	mov	QWORD PTR 48[rbx], r13
	mov	DWORD PTR [rdi], eax
	call	devm_pinctrl_get_select_default@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L8
.L10:
	mov	rdi, rbx
	call	imx_csi_async_register@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
.L9:
	mov	rdi, r13
	call	v4l2_ctrl_handler_free@PLT
	mov	rdi, r15
	call	mutex_destroy@PLT
	mov	rdi, QWORD PTR 16[rbx]
	call	imx_media_capture_device_remove@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR IMX_MEDIA_GRP_ID_IPU_CSI1[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbp
	call	PTR_ERR@PLT
	mov	rdi, QWORD PTR 32[rbx]
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	mov	edx, eax
	call	dev_dbg@PLT
	mov	eax, r12d
	add	eax, DWORD PTR ENODEV[rip]
	je	.L10
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, QWORD PTR 16[rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	imx_csi_probe, .-imx_csi_probe
	.comm	csi_subdev_ops,4,4
	.comm	csi_internal_ops,4,4
	.comm	csi_idmac_eof_timeout,4,4
	.comm	csi_entity_ops,4,4
	.comm	V4L2_SUBDEV_FL_HAS_EVENTS,4,4
	.comm	V4L2_SUBDEV_FL_HAS_DEVNODE,4,4
	.comm	THIS_MODULE,4,4
	.comm	MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER,4,4
	.comm	IMX_MEDIA_GRP_ID_IPU_CSI1,4,4
	.comm	IMX_MEDIA_GRP_ID_IPU_CSI0,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	CSI_SRC_PAD_IDMAC,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-csi.c_imx_csi_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"devm_pinctrl_get_select_default() failed: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	imx_csi_probe, %function
imx_csi_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r1, #80
	ldr	r2, [r3]
	mov	r6, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L15
	add	r7, r4, #24
	mov	r1, r7
	mov	r0, r6
	bl	platform_set_drvdata
	mov	r0, #32
	str	r6, [r4, #20]
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r6
	bl	dma_set_coherent_mask
	subs	r5, r0, #0
	beq	.L16
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r3, [r4, #20]
	ldr	r9, .L18+4
	ldr	r0, [r3, #8]
	bl	dev_get_drvdata
	ldr	r3, [r4, #20]
	ldr	ip, [r9]
	ldr	r8, [r3, #4]
	ldr	r1, .L18+8
	ldr	r3, [r8]
	mov	r2, r5
	cmp	r3, #0
	str	r3, [r4]
	movne	r3, #2
	str	ip, [r4, #76]
	str	r3, [r4, #4]
	ldr	r1, [r1]
	str	r0, [r4, #64]
	add	r0, r4, #72
	bl	timer_setup
	add	r0, r4, #68
	bl	spin_lock_init
	ldr	r1, .L18+12
	mov	r0, r7
	bl	v4l2_subdev_init
	mov	r1, r4
	mov	r0, r7
	bl	v4l2_set_subdevdata
	ldr	r3, .L18+16
	ldr	r2, .L18+20
	ldr	r1, [r3]
	ldr	r3, .L18+24
	ldr	r0, [r8, #4]
	str	r6, [r4, #32]
	str	r1, [r4, #52]
	str	r2, [r4, #60]
	str	r3, [r4, #56]
	bl	of_fwnode_handle
	ldr	r1, .L18+28
	ldr	r3, .L18+32
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r1, [r4]
	ldr	r2, .L18+36
	orr	r3, r3, ip
	cmp	r1, #0
	ldr	r2, [r2]
	str	r3, [r4, #24]
	ldrne	r3, .L18+40
	ldreq	r3, .L18+44
	str	r0, [r4, #48]
	str	r2, [r4, #44]
	ldr	r5, [r3]
	ldr	r0, [r4, #64]
	str	r5, [r4, #36]
	ldr	r6, [r4, #40]
	bl	ipu_get_num
	mov	r2, r5
	mov	r3, r0
	mov	r1, #4
	mov	r0, r6
	bl	imx_media_grp_id_to_sd_name
	mov	r1, r7
	ldr	r2, [r9]
	ldr	r0, [r4, #32]
	bl	imx_media_capture_device_init
	str	r0, [r4, #8]
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L17
	add	r7, r4, #12
	add	r6, r4, #16
	mov	r0, r7
	bl	mutex_init
	mov	r1, r5
	mov	r0, r6
	bl	v4l2_ctrl_handler_init
	ldr	r3, [r8, #4]
	ldr	r0, [r4, #20]
	str	r6, [r4, #28]
	str	r3, [r0]
	bl	devm_pinctrl_get_select_default
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L8
.L10:
	mov	r0, r4
	bl	imx_csi_async_register
	subs	r5, r0, #0
	beq	.L1
.L9:
	mov	r0, r6
	bl	v4l2_ctrl_handler_free
	mov	r0, r7
	bl	mutex_destroy
	ldr	r0, [r4, #8]
	bl	imx_media_capture_device_remove
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r3, .L18+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r0, r5
	bl	PTR_ERR
	mov	r5, r0
	mov	r2, r0
	ldr	r1, .L18+52
	ldr	r0, [r4, #20]
	bl	dev_dbg
	ldr	r3, .L18+56
	ldr	r3, [r3]
	cmn	r5, r3
	beq	.L10
	b	.L9
.L17:
	ldr	r0, [r4, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	PTR_ERR
.L19:
	.align	2
.L18:
	.word	GFP_KERNEL
	.word	CSI_SRC_PAD_IDMAC
	.word	csi_idmac_eof_timeout
	.word	csi_subdev_ops
	.word	MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER
	.word	csi_internal_ops
	.word	csi_entity_ops
	.word	V4L2_SUBDEV_FL_HAS_EVENTS
	.word	V4L2_SUBDEV_FL_HAS_DEVNODE
	.word	THIS_MODULE
	.word	IMX_MEDIA_GRP_ID_IPU_CSI1
	.word	IMX_MEDIA_GRP_ID_IPU_CSI0
	.word	ENOMEM
	.word	.LC0
	.word	ENODEV
	.size	imx_csi_probe, .-imx_csi_probe
	.comm	csi_subdev_ops,4,4
	.comm	csi_internal_ops,4,4
	.comm	csi_idmac_eof_timeout,4,4
	.comm	csi_entity_ops,4,4
	.comm	V4L2_SUBDEV_FL_HAS_EVENTS,4,4
	.comm	V4L2_SUBDEV_FL_HAS_DEVNODE,4,4
	.comm	THIS_MODULE,4,4
	.comm	MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER,4,4
	.comm	IMX_MEDIA_GRP_ID_IPU_CSI1,4,4
	.comm	IMX_MEDIA_GRP_ID_IPU_CSI0,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	CSI_SRC_PAD_IDMAC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
