	.file	"extr_ipu-ic.c_ipu_ic_task_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ipu_ic_task_enable
	.type	ipu_ic_task_enable, @function
ipu_ic_task_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12, QWORD PTR 48[rdi]
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR IC_CONF[rip]
	mov	rdi, rbp
	call	ipu_ic_read@PLT
	mov	rdx, QWORD PTR 0[rbp]
	or	eax, DWORD PTR 16[rdx]
	cmp	QWORD PTR 40[rbp], 0
	mov	esi, eax
	je	.L2
	or	esi, DWORD PTR 12[rdx]
.L2:
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR 32[rbp], rax
	je	.L3
	or	esi, DWORD PTR 4[rdx]
.L3:
	cmp	QWORD PTR 24[rbp], 0
	je	.L4
	mov	ecx, DWORD PTR 8[rdx]
	or	ecx, DWORD PTR 4[rdx]
	or	esi, ecx
	cmp	rax, QWORD PTR 16[rbp]
	je	.L4
	or	esi, DWORD PTR [rdx]
.L4:
	mov	edx, DWORD PTR IC_CONF[rip]
	mov	rdi, rbp
	call	ipu_ic_write@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	ipu_ic_task_enable, .-ipu_ic_task_enable
	.comm	IC_CONF,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_ipu-ic.c_ipu_ic_task_enable.c"
	.text
	.align	2
	.global	ipu_ic_task_enable
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipu_ic_task_enable, %function
ipu_ic_task_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, [r0, #24]
	ldr	r6, .L13
	mov	r1, #0
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r1, [r6]
	mov	r0, r4
	bl	ipu_ic_read
	ldr	r3, [r4, #20]
	ldr	ip, [r4]
	cmp	r3, #0
	ldr	r1, [ip, #16]
	ldrne	r3, [ip, #12]
	orr	r1, r0, r1
	ldr	r2, [r4, #16]
	orrne	r1, r1, r3
	ldr	r3, [r4, #4]
	cmp	r2, r3
	ldrne	r2, [ip, #4]
	orrne	r1, r1, r2
	ldr	r2, [r4, #12]
	cmp	r2, #0
	beq	.L4
	ldr	r0, [r4, #8]
	ldr	r2, [ip, #8]
	ldr	lr, [ip, #4]
	cmp	r3, r0
	ldrne	r3, [ip]
	orr	r2, r2, lr
	orr	r1, r1, r2
	orrne	r1, r1, r3
.L4:
	mov	r0, r4
	ldr	r2, [r6]
	bl	ipu_ic_write
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L14:
	.align	2
.L13:
	.word	IC_CONF
	.size	ipu_ic_task_enable, .-ipu_ic_task_enable
	.comm	IC_CONF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
