	.file	"extr_ipu-common.c_ipu_module_disable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ipu_module_disable
	.type	ipu_module_disable, @function
ipu_module_disable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR IPU_CONF[rip]
	mov	rdi, rbp
	call	ipu_cm_read@PLT
	mov	esi, ebx
	mov	edx, DWORD PTR IPU_CONF[rip]
	mov	rdi, rbp
	not	esi
	and	esi, eax
	call	ipu_cm_write@PLT
	mov	esi, DWORD PTR IPU_DISP_GEN[rip]
	mov	rdi, rbp
	call	ipu_cm_read@PLT
	mov	esi, eax
	test	DWORD PTR IPU_CONF_DI0_EN[rip], ebx
	je	.L2
	mov	eax, DWORD PTR IPU_DI0_COUNTER_RELEASE[rip]
	not	eax
	and	esi, eax
.L2:
	test	DWORD PTR IPU_CONF_DI1_EN[rip], ebx
	je	.L3
	mov	eax, DWORD PTR IPU_DI1_COUNTER_RELEASE[rip]
	not	eax
	and	esi, eax
.L3:
	mov	edx, DWORD PTR IPU_DISP_GEN[rip]
	mov	rdi, rbp
	call	ipu_cm_write@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ipu_module_disable, .-ipu_module_disable
	.comm	IPU_DISP_GEN,4,4
	.comm	IPU_DI1_COUNTER_RELEASE,4,4
	.comm	IPU_DI0_COUNTER_RELEASE,4,4
	.comm	IPU_CONF_DI1_EN,4,4
	.comm	IPU_CONF_DI0_EN,4,4
	.comm	IPU_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-common.c_ipu_module_disable.c"
	.text
	.align	2
	.global	ipu_module_disable
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipu_module_disable, %function
ipu_module_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r7, .L12
	mov	r5, r1
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r1, [r7]
	mov	r0, r4
	bl	ipu_cm_read
	ldr	r6, .L12+4
	ldr	r2, [r7]
	bic	r1, r0, r5
	mov	r0, r4
	bl	ipu_cm_write
	ldr	r1, [r6]
	mov	r0, r4
	bl	ipu_cm_read
	mov	r1, r0
	ldr	r3, .L12+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r5, r3
	ldrne	r3, .L12+12
	ldrne	r3, [r3]
	bicne	r1, r0, r3
	ldr	r3, .L12+16
	mov	r0, r4
	ldr	r3, [r3]
	tst	r5, r3
	ldrne	r3, .L12+20
	ldrne	r3, [r3]
	bicne	r1, r1, r3
	bl	ipu_cm_write
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	IPU_CONF
	.word	IPU_DISP_GEN
	.word	IPU_CONF_DI0_EN
	.word	IPU_DI0_COUNTER_RELEASE
	.word	IPU_CONF_DI1_EN
	.word	IPU_DI1_COUNTER_RELEASE
	.size	ipu_module_disable, .-ipu_module_disable
	.comm	IPU_DISP_GEN,4,4
	.comm	IPU_DI1_COUNTER_RELEASE,4,4
	.comm	IPU_DI0_COUNTER_RELEASE,4,4
	.comm	IPU_CONF_DI1_EN,4,4
	.comm	IPU_CONF_DI0_EN,4,4
	.comm	IPU_CONF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
