	.file	"extr_vpe.c_vpe_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vpe_top"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Failed to init mem2mem device\n"
	.section	.rodata.str1.1
.LC2:
	.string	"VPE PID function %x\n"
.LC3:
	.string	"sc"
.LC4:
	.string	"csc"
	.text
	.p2align 4
	.type	vpe_probe, @function
vpe_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 56
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rbp, rax
	lea	rdi, 48[rax]
	call	spin_lock_init@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	v4l2_device_register@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L16
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L16:
	.cfi_restore_state
	xor	esi, esi
	lea	rdi, 44[rbp]
	call	atomic_set@PLT
	lea	rdi, 40[rbp]
	call	mutex_init@PLT
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r13
	call	platform_get_resource_byname@PLT
	mov	edx, DWORD PTR SZ_32K[rip]
	mov	rdi, r13
	mov	QWORD PTR 32[rbp], rax
	mov	esi, DWORD PTR [rax]
	call	devm_ioremap@PLT
	mov	DWORD PTR 28[rbp], eax
	test	eax, eax
	jne	.L4
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L5:
	mov	rdi, rbp
	call	v4l2_device_unregister@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L4:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r13
	call	platform_get_irq@PLT
	mov	edx, DWORD PTR vpe_irq[rip]
	mov	r9, rbp
	xor	ecx, ecx
	mov	r8d, DWORD PTR VPE_MODULE_NAME[rip]
	mov	esi, eax
	mov	rdi, r13
	call	devm_request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rsi, rbp
	mov	rdi, r13
	call	platform_set_drvdata@PLT
	lea	rdi, m2m_ops[rip]
	call	v4l2_m2m_init@PLT
	mov	DWORD PTR 4[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	mov	rdi, r13
	call	pm_runtime_enable@PLT
	mov	rdi, r13
	call	vpe_runtime_get@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L18
.L7:
	mov	rdi, r13
	call	pm_runtime_disable@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	v4l2_m2m_release@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	esi, 1
	mov	rdi, rbp
	call	vpe_set_clock_enable@PLT
	mov	rdi, rbp
	call	vpe_top_reset@PLT
	mov	ecx, DWORD PTR VPE_PID_FUNC_SHIFT[rip]
	mov	edx, DWORD PTR VPE_PID_FUNC_MASK[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR VPE_PID[rip]
	call	read_field_reg@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	vpe_dbg@PLT
	mov	rdi, rbp
	call	vpe_top_vpdma_reset@PLT
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	call	sc_create@PLT
	mov	DWORD PTR 24[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L19
	mov	rdi, r13
	lea	rsi, .LC4[rip]
	call	csc_create@PLT
	mov	DWORD PTR 20[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L20
	lea	rsi, 16[rbp]
	mov	edx, DWORD PTR vpe_fw_cb[rip]
	mov	rdi, r13
	mov	QWORD PTR 8[rbp], rsi
	call	vpdma_create@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
.L9:
	mov	rdi, r13
	call	vpe_runtime_put@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	vpe_err@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L5
.L19:
	mov	edi, DWORD PTR 24[rbp]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L9
.L20:
	mov	edi, DWORD PTR 20[rbp]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	vpe_probe, .-vpe_probe
	.comm	vpe_irq,4,4
	.comm	vpe_fw_cb,4,4
	.comm	m2m_ops,4,4
	.comm	VPE_PID_FUNC_SHIFT,4,4
	.comm	VPE_PID_FUNC_MASK,4,4
	.comm	VPE_PID,4,4
	.comm	VPE_MODULE_NAME,4,4
	.comm	SZ_32K,4,4
	.comm	IORESOURCE_MEM,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_vpe.c_vpe_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vpe_top\000"
	.align	2
.LC1:
	.ascii	"Failed to init mem2mem device\012\000"
	.align	2
.LC2:
	.ascii	"VPE PID function %x\012\000"
	.align	2
.LC3:
	.ascii	"sc\000"
	.align	2
.LC4:
	.ascii	"csc\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vpe_probe, %function
vpe_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L22
	mov	r1, #44
	ldr	r2, [r3]
	sub	sp, sp, #8
	mov	r6, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L16
	add	r0, r4, #40
	bl	spin_lock_init
	mov	r1, r4
	mov	r0, r6
	bl	v4l2_device_register
	subs	r5, r0, #0
	beq	.L17
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	mov	r1, r5
	add	r0, r4, #36
	bl	atomic_set
	add	r0, r4, #32
	bl	mutex_init
	ldr	r3, .L22+4
	ldr	r2, .L22+8
	ldr	r1, [r3]
	mov	r0, r6
	bl	platform_get_resource_byname
	ldr	r3, .L22+12
	ldr	r1, [r0]
	str	r0, [r4, #28]
	ldr	r2, [r3]
	mov	r0, r6
	bl	devm_ioremap
	cmp	r0, #0
	str	r0, [r4, #24]
	bne	.L4
	ldr	r3, .L22+16
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L5:
	mov	r0, r4
	bl	v4l2_device_unregister
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, .L22+16
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mov	r1, r5
	mov	r0, r6
	bl	platform_get_irq
	ldr	r3, .L22+20
	ldr	r2, .L22+24
	ldr	ip, [r3]
	str	r4, [sp, #4]
	str	ip, [sp]
	mov	r1, r0
	mov	r3, r5
	mov	r0, r6
	ldr	r2, [r2]
	bl	devm_request_irq
	subs	r5, r0, #0
	bne	.L5
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	ldr	r0, .L22+28
	bl	v4l2_m2m_init
	str	r0, [r4, #4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L18
	mov	r0, r6
	bl	pm_runtime_enable
	mov	r0, r6
	bl	vpe_runtime_get
	subs	r5, r0, #0
	beq	.L19
.L7:
	mov	r0, r6
	bl	pm_runtime_disable
	ldr	r0, [r4, #4]
	bl	v4l2_m2m_release
	b	.L5
.L19:
	mov	r1, #1
	mov	r0, r4
	bl	vpe_set_clock_enable
	mov	r0, r4
	bl	vpe_top_reset
	ldr	r3, .L22+32
	ldr	r2, .L22+36
	ldr	r1, .L22+40
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r4
	bl	read_field_reg
	ldr	r1, .L22+44
	mov	r2, r0
	mov	r0, r4
	bl	vpe_dbg
	mov	r0, r4
	bl	vpe_top_vpdma_reset
	ldr	r1, .L22+48
	mov	r0, r6
	bl	sc_create
	str	r0, [r4, #20]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L20
	ldr	r1, .L22+52
	mov	r0, r6
	bl	csc_create
	str	r0, [r4, #16]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L21
	ldr	r3, .L22+56
	add	r1, r4, #12
	mov	r0, r6
	ldr	r2, [r3]
	str	r1, [r4, #8]
	bl	vpdma_create
	subs	r5, r0, #0
	beq	.L1
.L9:
	mov	r0, r6
	bl	vpe_runtime_put
	b	.L7
.L18:
	ldr	r1, .L22+60
	mov	r0, r4
	bl	vpe_err
	ldr	r0, [r4, #4]
	bl	PTR_ERR
	mov	r5, r0
	b	.L5
.L20:
	ldr	r0, [r4, #20]
	bl	PTR_ERR
	mov	r5, r0
	b	.L9
.L21:
	ldr	r0, [r4, #16]
	bl	PTR_ERR
	mov	r5, r0
	b	.L9
.L23:
	.align	2
.L22:
	.word	GFP_KERNEL
	.word	IORESOURCE_MEM
	.word	.LC0
	.word	SZ_32K
	.word	ENOMEM
	.word	VPE_MODULE_NAME
	.word	vpe_irq
	.word	m2m_ops
	.word	VPE_PID_FUNC_SHIFT
	.word	VPE_PID_FUNC_MASK
	.word	VPE_PID
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	vpe_fw_cb
	.word	.LC1
	.size	vpe_probe, .-vpe_probe
	.comm	vpe_irq,4,4
	.comm	vpe_fw_cb,4,4
	.comm	m2m_ops,4,4
	.comm	VPE_PID_FUNC_SHIFT,4,4
	.comm	VPE_PID_FUNC_MASK,4,4
	.comm	VPE_PID,4,4
	.comm	VPE_MODULE_NAME,4,4
	.comm	SZ_32K,4,4
	.comm	IORESOURCE_MEM,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
