	.file	"extr_msm_vfe8x_proc.c_vfe_cmd_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no mem resource?\n"
.LC1:
	.string	"no irq resource?\n"
.LC2:
	.string	"VFE region already claimed\n"
.LC3:
	.string	"vfe"
	.text
	.p2align 4
	.globl	vfe_cmd_init
	.type	vfe_cmd_init, @function
vfe_cmd_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	xor	edx, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, 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, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rdi, rbp
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR IORESOURCE_MEM[rip]
	call	platform_get_resource@PLT
	test	rax, rax
	je	.L22
	mov	esi, DWORD PTR IORESOURCE_IRQ[rip]
	xor	edx, edx
	mov	rdi, rbp
	mov	rbx, rax
	call	platform_get_resource@PLT
	mov	r12, rax
	test	rax, rax
	je	.L23
	mov	r15d, DWORD PTR 0[rbp]
	mov	rdi, rbx
	call	resource_size@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	esi, eax
	mov	edx, r15d
	call	request_mem_region@PLT
	test	rax, rax
	je	.L24
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	call	kzalloc@PLT
	mov	QWORD PTR ctrl[rip], rax
	mov	rbp, rax
	test	rax, rax
	je	.L25
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[rbp], rax
	sub	rsi, rdi
	add	rsi, 1
	call	ioremap@PLT
	mov	rdi, QWORD PTR ctrl[rip]
	mov	DWORD PTR 4[rbp], eax
	mov	edx, DWORD PTR 4[rdi]
	test	edx, edx
	jne	.L8
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L9:
	call	kfree@PLT
.L7:
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rbx]
	sub	rsi, rdi
	add	rsi, 1
	call	release_mem_region@PLT
.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
.L8:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR IRQF_TRIGGER_RISING[rip]
	xor	r8d, r8d
	lea	rcx, .LC3[rip]
	mov	esi, DWORD PTR vfe_parse_irq[rip]
	call	request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L20
	mov	rbp, QWORD PTR ctrl[rip]
	test	r13, r13
	je	.L11
	cmp	QWORD PTR 0[r13], 0
	je	.L11
	mov	QWORD PTR 48[rbp], r13
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	call	kmalloc@PLT
	mov	DWORD PTR 44[rbp], eax
	mov	rbp, QWORD PTR ctrl[rip]
	mov	eax, DWORD PTR 44[rbp]
	test	eax, eax
	jne	.L26
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC0[rip]
	call	CDBG@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L14:
	mov	rdi, QWORD PTR 8[rbp]
	call	disable_irq@PLT
	mov	rax, QWORD PTR ctrl[rip]
	xor	esi, esi
	mov	rdi, QWORD PTR 8[rax]
	call	free_irq@PLT
	mov	rax, QWORD PTR ctrl[rip]
	mov	edi, DWORD PTR 4[rax]
	call	iounmap@PLT
.L20:
	mov	rdi, QWORD PTR ctrl[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, .LC1[rip]
	call	CDBG@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, .LC2[rip]
	call	CDBG@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, 40[rbp]
	xor	r12d, r12d
	call	spin_lock_init@PLT
	mov	rax, QWORD PTR ctrl[rip]
	lea	rdi, 36[rax]
	call	spin_lock_init@PLT
	mov	rax, QWORD PTR ctrl[rip]
	lea	rdi, 32[rax]
	call	spin_lock_init@PLT
	mov	rdi, QWORD PTR ctrl[rip]
	mov	DWORD PTR [rdi], 4
	add	rdi, 28
	call	spin_lock_init@PLT
	mov	rax, QWORD PTR ctrl[rip]
	lea	rdi, 24[rax]
	call	INIT_LIST_HEAD@PLT
	mov	rax, QWORD PTR ctrl[rip]
	mov	QWORD PTR 16[rax], r14
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vfe_cmd_init, .-vfe_cmd_init
	.comm	vfe_parse_irq,4,4
	.comm	ctrl,8,8
	.comm	IRQF_TRIGGER_RISING,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	IORESOURCE_IRQ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_msm_vfe8x_proc.c_vfe_cmd_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no mem resource?\012\000"
	.align	2
.LC1:
	.ascii	"no irq resource?\012\000"
	.align	2
.LC2:
	.ascii	"VFE region already claimed\012\000"
	.align	2
.LC3:
	.ascii	"vfe\000"
	.text
	.align	2
	.global	vfe_cmd_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	vfe_cmd_init, %function
vfe_cmd_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L30
	mov	r5, r1
	mov	r6, r0
	mov	r7, r2
	mov	r0, r1
	mov	r2, #0
	ldr	r1, [r3]
	sub	sp, sp, #12
	bl	platform_get_resource
	subs	r4, r0, #0
	beq	.L25
	ldr	r3, .L30+4
	mov	r2, #0
	mov	r0, r5
	ldr	r1, [r3]
	bl	platform_get_resource
	subs	r8, r0, #0
	beq	.L26
	mov	r0, r4
	ldr	r9, [r4]
	bl	resource_size
	ldr	r2, [r5]
	mov	r1, r0
	mov	r0, r9
	bl	request_mem_region
	cmp	r0, #0
	beq	.L27
	ldr	r10, .L30+8
	mov	r0, #4
	ldr	r1, [r10]
	bl	kzalloc
	ldr	r9, .L30+12
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r9]
	beq	.L28
	ldm	r4, {r0, r1}
	ldr	r3, [r8]
	sub	r1, r1, r0
	str	r3, [r5, #8]
	add	r1, r1, #1
	bl	ioremap
	ldr	r3, [r9]
	str	r0, [r5, #4]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	bne	.L8
	ldr	r2, .L30+16
	ldr	r5, [r2]
	rsb	r5, r5, #0
.L9:
	mov	r0, r3
	bl	kfree
.L7:
	ldm	r4, {r0, r1}
	sub	r1, r1, r0
	add	r1, r1, #1
	bl	release_mem_region
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r8, #0
	ldr	r0, [r3, #8]
	ldr	r2, .L30+20
	ldr	r3, .L30+24
	str	r8, [sp]
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L30+28
	bl	request_irq
	subs	r5, r0, #0
	blt	.L23
	cmp	r6, #0
	ldr	fp, [r9]
	beq	.L11
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L11
	str	r6, [fp, #40]
	mov	r0, #4
	ldr	r1, [r10]
	bl	kmalloc
	str	r0, [fp, #36]
	ldr	fp, [r9]
	ldr	r3, [fp, #36]
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L30+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L14
.L28:
	ldr	r3, .L30+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L7
.L25:
	ldr	r0, .L30+32
	bl	CDBG
	ldr	r3, .L30+36
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, .L30+40
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L14:
	ldr	r0, [fp, #8]
	bl	disable_irq
	ldr	r3, [r9]
	mov	r1, #0
	ldr	r0, [r3, #8]
	bl	free_irq
	ldr	r3, [r9]
	ldr	r0, [r3, #4]
	bl	iounmap
.L23:
	ldr	r3, [r9]
	b	.L9
.L26:
	ldr	r0, .L30+44
	bl	CDBG
	ldr	r3, .L30+36
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	ldr	r0, .L30+48
	bl	CDBG
	ldr	r3, .L30+52
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	add	r0, fp, #32
	bl	spin_lock_init
	ldr	r0, [r9]
	mov	r5, r8
	add	r0, r0, #28
	bl	spin_lock_init
	ldr	r0, [r9]
	add	r0, r0, #24
	bl	spin_lock_init
	mov	r3, #4
	ldr	r0, [r9]
	str	r3, [r0], #20
	bl	spin_lock_init
	ldr	r0, [r9]
	add	r0, r0, #16
	bl	INIT_LIST_HEAD
	ldr	r3, [r9]
	str	r7, [r3, #12]
	b	.L1
.L31:
	.align	2
.L30:
	.word	IORESOURCE_MEM
	.word	IORESOURCE_IRQ
	.word	GFP_KERNEL
	.word	ctrl
	.word	ENOMEM
	.word	IRQF_TRIGGER_RISING
	.word	vfe_parse_irq
	.word	.LC3
	.word	.LC0
	.word	ENODEV
	.word	EINVAL
	.word	.LC1
	.word	.LC2
	.word	EBUSY
	.size	vfe_cmd_init, .-vfe_cmd_init
	.comm	vfe_parse_irq,4,4
	.comm	ctrl,4,4
	.comm	IRQF_TRIGGER_RISING,4,4
	.comm	IORESOURCE_MEM,4,4
	.comm	IORESOURCE_IRQ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
